The process of designing and writing source code as part of a program (or sketch) for Arduino. Do not use for uploading to an Arduino board.

learn more… | top users | synonyms (1)

0
votes
0answers
30 views

problem with my arduino project

I am making a smart bin which automatically sense (with the help of IR sensor ) and dispose the trash by moving with help of DC geared motor 12V 60 RPM and it also detects for obstacles with the help ...
1
vote
2answers
18 views

Serial Data Formatting not Correct?

I am writing two Arduino Uno programs. One is a remote with a joystick and the other has five LED's indicating which direction the joystick is pointing. They are Bluetooth, so everything is sent and ...
0
votes
0answers
7 views

receiving sms by arduino with wavecome to control the led with sms

how to code the arduino program for turning on / off thhe led if we use wavecome modem fastrack on the arduino, please help me i'am in a trouble about this. Please i dont understand about how to ...
0
votes
1answer
28 views

Trying to start a timer to change lights when a button is pressed

I am trying to setup a series of lights (traffic lights) that change based on a timer that begins when a button is pressed. The goal is to use the lights to track how long its been since you pressed ...
0
votes
0answers
12 views

Running script file/programe on Intel Galileo gen2

How do I run a script file/programs like C / python / shell script in an Arduino IDE like how We use System(); Commands like grep, cut, cat works fine but running System("python file.py"); doesn't. ...
0
votes
0answers
12 views

OV7670 non FIFO with AL440?

I am trying to build a low-cost Arduino-based camera image to SD card prototype and would like to know if it is feasible to connect a non-FIFO OV7670 camera to an AL440B video buffer to avoid the ...
0
votes
2answers
46 views

While loop not breaking

I'm trying to build a circuit that buzzes until a button is pressed, or it buzzes 5 times: void alarm() { int AlarmState = 0; //Just to get while loop going int count = 1; while(AlarmState==0) ...
0
votes
0answers
30 views

Library for DIY Keyboard

I'm planning on making my own Bluetooth Mechanical keyboard using the Adafruit Feather 32u4 Bluetooth LE. Something that I haven't really figured out is the programming side of things. I was wondering ...
0
votes
1answer
13 views

Expected Initializer?

I keep getting the error "Expected initializer" at different points in my code whenever I try to verify it. Currently, the error exists before "void setup." How can I fix this error and not allow it ...
0
votes
1answer
32 views

LEDs instruction code does not loop

I am using Neopixel Library and a Trinket Pro 5V Microcontroller to chase first three LEDs on a strip and then burst the last 2 (could be modified based on the number of LEDs). The LEDs chase only ...
0
votes
1answer
21 views

Arduino join multiple strings and numbers and then seperate them

OK, I'm working on a remote controlled robot. Both the robot and the remote use Arduino with a Bluetooth shield. The Bluetooth is working and I need to send something similar to this over Bluetooth: ...
4
votes
2answers
80 views

Why does DHT-library (and others) only allow one object instance?

I came across the problem to handle two DHT22 devices. I use the Adafruit DHT Sensor library. Since my Arduino sketch works as a "relay" for Serial commands on a host, I tried to wire up and ...
0
votes
1answer
32 views

Arduino Prototype on Breadboard: “avrdude: stk500_recv(): programmer is not responding”

I have created an arduino prototype using the exact instructions found on this page: https://www.arduino.cc/en/Main/Standalone However, when I plug in the micro USB power supply and try to upload a ...
0
votes
2answers
27 views

“Return” Code Not Working

I'm trying to experiment with a "return" function. Yet each time I try to run my program, there happens to be an error, like "expected declaration before '}' token." Can someone explain the basics of ...
1
vote
0answers
15 views

LED and LCD game

I am making a game where four different colored LEDs are flashing randomly, and when the green LED lights up, the user presses a button. If the user pushes the button when the LED is green, I want my ...
1
vote
1answer
19 views

How to exclude a ino/pde file from Arduino projects

I would like to be able to exclude from the auto-including process of the current project (without renaming the extension or delete it) a sketch with pde or ino extension that is used in certain ...
0
votes
1answer
25 views

Arduino UNO stuck in Setup function when interfacing UNO with ESP8266 module

Following is my code that i am trying to use it with Arduino Uno with ESP8266 module but my code stucked in setup function why is that. #include "ESP8266.h" #include <SoftwareSerial.h> ...
1
vote
1answer
73 views

What is pulseIn in programming Arduino?

I have seen some tutorials on ultrasonic range detector sensor. In that, what is the meaning of the word pulseIn?
1
vote
0answers
59 views

Arduino NTP clock glitches every 7 seconds

Please ignore all of the comments, this is basically a Frankenstein program with several different programs combined together. Basically what happens is the time prints out in seconds like this: 00, ...
0
votes
2answers
35 views

Has anybody seen/created a gps guided vehicle with arduino? [closed]

I thought the idea of Amazon Prime air drone delivery was a pretty cool one when it first came out and I started to question whether something like that (an autonomous gps guided vehicle) could ...
0
votes
0answers
9 views

Are there any good quadcopter tutorials? [duplicate]

I want to make a quadcopter with the arduino development board and I have no clue where to begin and I was wondering if anybody knows any good tutorials to help me get started?
2
votes
3answers
83 views

How to send data from an Arduino to PC, without using the Serial Monitor?

I have an analog sensor which I want to send data from my Arduino Certified Intel Edison to PC, without using a Serial Monitor and preferably putting the data into a text file.
0
votes
0answers
12 views

Voice Recognition Automatic Train

Voice Recognition with Arduino - RGB LED and Light Bulb (Home Automation) In the link provided above, what code will I use to automatically input another set of voice commands into the Arduino using ...
1
vote
1answer
25 views

PC Cannot Access HC-06 Bluetooth COM Port

I have an HC-06 Bluetooth module connected to an Arduino UNO board to allow for the data received by the Ultrasonic sensor to be transferred to my PC via bluetooth and serial communication. I am using ...
1
vote
2answers
28 views

Servo control using DIP switch

I am pretty new to Arduino and programming too. I want to sweep a servo using DIP switch. At the moment, I use 4 position DIP switch. To each of the switches, I want to set the number of times the ...
0
votes
1answer
27 views

Understanding the contents of a library in C

So this is a question not just about the #include but most all includes you find while programming in C. So I understand a library is prewritten code and when you include that library are you able ...
-3
votes
1answer
101 views

How do I learn C? (was Computer project) [closed]

Can you help me writing a code for this question guys?? You have an Arduino Uno with 8 LEDs connected to digital pins 2 to 9. Create an array of 8 elements. Fill it with random numbers between 2 and 9 ...
0
votes
1answer
121 views

Send JSON via POST on SIM900 shield with AT commands

I'm trying to send a JSON POST in SIM900 shield with AT commands. After I call the AT+HTTPACTION=1 command, it returns a 601 error: +HTTPACTION:1,601,0. I saw here that the error was 601 Network ...
1
vote
2answers
115 views

Combining 2 State Machines?

I want to gain from recent advice from this forum by re-doing my project using 'state machine' logic if possible, in an effort to reduce wasted processor time and variables usage. I'm starting from ...
1
vote
1answer
40 views

int not declared in this scope

This posting contains 2 sketches. the analogmux1 compiles successfully. Concerning analogmuvvolts sketch an error stating updateMux1 was not declared in this scope results. The int Mux1_State [8] = 0: ...
0
votes
2answers
70 views

Will a .ino Arduino Sketch compile directly on GCC-AVR?

Okay, we all have seen those questions all over the web such as Arduino v.s. C++, or other similar questions. And a vast majority of the answers do not even touch compilation differences other than ...
1
vote
0answers
23 views

how to write program for line follower with adafruit motor shield

i have analog sensor with Ada-fruit motor shield how to write the program to control motors, please tell me the program to run the motor
1
vote
1answer
57 views

Advice for checking integrity of serial char strings?

I'm trying to create a flexible but reliable system for arduinos to interact using serial ascii strings. I'm using a message structure comprised of Command[10] + (optional) Params[20] + (optional) ...
0
votes
1answer
49 views

How to use strtok() and strstr() with arduino?

Can anyone explain how things like strtok() and strstr() can be used to provide a numeric value for a substring location position within the mainstring array. I've tried to understand from the C++ ...
1
vote
2answers
52 views

“'Serial' does not name a type” error

I'm getting a "'Serial' does not name a type" error when this program is compiled. I need for the 8 channels of voltage to be displayed. I'm sure it's a simple fix, however I'm still learning Arduino ...
1
vote
3answers
141 views

Bluetooth HC-05 Library for Proteus

I m working on a project in which I am using HC04 module so can anyone give me any Arduino Library for Proteus which have HC05 in it. Or tell me how to use HC05 in Proteus. Thanks.
0
votes
1answer
23 views

Help with a rather specific implementation of FFT Library?

So, I guess what I'm trying to do here is properly understand the FFT library posted here by Open Music Labs, done in C++. I believe I understand the Fourier transform, but the FFT has some nuance ...
0
votes
4answers
89 views

How to pad an ascii number with leading zeros?

I need to include a 3 digit ascii representation of message length number in the message header, but I am having difficulty trying to pad the number with leading '0' zeros in order to keep the number ...
0
votes
0answers
152 views

ESP8266 (Wi-Fi Module) interfacing with PIC 16F or 18F microcontroller

Has anyone interface PIC16f877A or PIC18f4520 or any other PIC microcontroller with wifi ESP8266 Module, need some sample code to send and hit url using TCP connection command. My hardware part is ...
-1
votes
1answer
56 views

Arduino vs Raspberry, Advantages And Disadvantes [closed]

I have done extensive research into the differences and here are the questions i have: What is a micro controller and what differs it from the raspberry pi system Why buy the Arduino when it is less ...
5
votes
3answers
82 views

Return value of 0 if value is less than zero

Background: I am using an analog pressure sensor with a range from 0-100PSI returning voltage values .44v to 4.44v. It's open air (or 0 PSI) voltage on the signal pin is .47 volts. I have a function ...
1
vote
1answer
57 views

Arduino command line vs. Arduino builder

I'm working on adding my Arduino to continuous integration and I came across two different possible ways of doing this, Arduino command line, and arduino-builder. Can someone explain why the ...
1
vote
1answer
22 views

Arduino Pro Mini

I have the following problem I have a pro mini clone, with 328/5V. It was successfully working in my board. I pulled it out of the board, and wanted to update my software. I connected it to my FTDI, ...
1
vote
2answers
80 views

How to write array of functions in arduino library?

I've nine functions each of type void as follow: void zero(); void one(); void two(); void three(); void four(); void five(); void six(); void seven(); void eight(); void nine(); I've put all these ...
1
vote
1answer
40 views

How to speed up

I found that using more float variable in arduino uno(atmega328p) slows it down (very muck that i can get slow response) so, how to speed up it processing ? my data are euler's angle with 2 digits ...
0
votes
0answers
38 views

Processing White Screen?

I'm new to using Arduino and I am trying to replicate this guide, Build a simple Transistor Curve Tracer using an Arduino and Processing. I got my Arduino wired correctly with the code uploaded to ...
1
vote
0answers
26 views

Trinket error code

I am trying to get the Trinket to run a simple servo, but keep getting an error code. This is the error message: exit status 1 Error compiling. I got the code from the Trinket Library at Adafruit ...
1
vote
0answers
22 views

ICT Bill Accepter

I have a ICT a6-15scp-usd4-ii. I have all of the wires for it. I dont have the gambling machine it came out of and it was laying around. Is it possible to make a Light come on when a bill is put in? ...
3
votes
4answers
139 views

Multiple non-blocking countdown timers?

I'm building a control system for three sump pumps using a single Arduino and a set of relays. I have float sensors for each one, and need the Arduino to trigger the relays when the float sensors are ...
-2
votes
1answer
50 views

What isthe best programming language for embedded systems? [closed]

I would start to learn the best programming language for embedded systems to control devices. What I have heard about that is Assembly Language. I want to know if there is any better languages to code ...