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)

-3
votes
2answers
26 views

How to blink a series of LED alternately only one at a time

I am very much new to Arduino. I recently bought an adruino uno. i can blink an LED alternately. Such as, 1st blink red, then blink green, then blue like that. once only one LED should blink. I have ...
0
votes
1answer
17 views

How to use a grove speaker without using delayMicroseconds?

is there another way to replace delayMicroseconds(BassTab[note_index]) as I cannot have delays in my loop due to the need of having multi-tasking in my sketch. Grove speaker: ...
0
votes
0answers
16 views

Portability and selection of Arduino

I have written some code for Arduino Uno, which is an ATMEGA microcontroller based device. Can I port the same code over to Arduino Due, without having to make any changes. Arduino Due is a ARM based ...
1
vote
2answers
32 views

digitalWrite queued signals?

I have this simple code who send a signal to a android phone when I press a button: const int botonPinD = 8; const int relayPin = 12; int retardo = 100; int finBoton=1000; void setup() { ...
0
votes
3answers
25 views

Does the arduino board have to be always physically connected to the electronic device you are running?

If I have a basic electronic board with some LEDs and sound fx and I want to program them (I'm a beginner, learning about arduino), does the arduino board always have to be connected to the actual ...
1
vote
1answer
21 views

Arduino Program uses less RAM then expected and doesn't run

I am trying to make a program for my Arduino that will run 4 motors with random actions (forward,backward,left,right) and execution is determined by a random number generator. When I compile there is ...
0
votes
1answer
38 views

adding a dead band to my motor and gearbox

I have a motor and gearbox that has limits and a pot built in. I have some code what drives the motor one way to when it hits its limits takes a value and drives the other way and takes a value, then ...
0
votes
2answers
25 views

Problem with codebender project not compiling

I have written a codebender project which returns this error: Oops! Looks like there was a serious issue with your project. If you are not sure what could be wrong please contact us ...
0
votes
1answer
28 views

How to change the topic_name string to PROGMEM?

I'm trying to save SRAM on my Arduino pro mini by going through some libraries. I've noticed that to use my Arduino as a ROS node the library stores the topic name and message type as constants. ...
1
vote
2answers
153 views

What does “LSB per degree per second” mean?

I'm currently working with a digital output gyroscope. Its sensitivity is given as 120 least-significant bit per degree per second. While every single component of that unit is easy to understand I ...
0
votes
3answers
36 views

Can I use micros() to analyze TX23 anemometer signal?

I'm very new to Arduino, and I'm trying to read data from a LaCrosse TX23 V02(X) anemometer. It's supposed to behave like this ...
1
vote
0answers
31 views

How can Arduino Mega2560+Wifi Shield 2.0 (seeedstudio) receive data from database in xampp server on my pc

I'm trying to connect my Arduino Mega via wi-fi to my xampp server. My main objective is get a value at my database and store it on a variable in Arduino code. With this new variable I'll be able to ...
1
vote
2answers
50 views

Run a part of code upon call

Lets say I have something that sends a command to the Arduino (for example, a PC sending through serial, Ethernet, etc). I want the Arduino to "check" what command it is and run a specific function ...
0
votes
1answer
47 views

Reducing read time for reading DS18B20 temp sensors

I have a number of temperature sensors connected up to an Arduino - I've split it into 3 sections, with each section having a 2-4 sensors on it (due to distances). This works, but the code I'm using ...
0
votes
1answer
29 views

Need assistance with program for POV Project

I've created a very basic POV project. It has a 12V DC motor with a piece of wood on it. The wood has 6 LEDs on it as well as a copper ring. The power is delivered to the LEDs from brushes connecting ...
0
votes
1answer
54 views

Run an Arduino without a PC

I would like to use an Arduino to make tasks in my life automatic - maybe to rotate every morning a motor, or to open a door. So, can I run an Arduino as solo with no pc needed? Can i connect it to ...
0
votes
1answer
36 views

Using STL vector to create an array causes an error

I have installed the STL for arduino, and it has been working fine. Then I tried to create a vector using a custom class, and it gave me a massive error message. When using it on primitive data types ...
-1
votes
2answers
41 views

Wrong code ouput, when the specific function runs more than once

If I run the following code, I get the correct output, and the path is displayed on the serial monitor. However when I run the code together with the commented out portion (in the code below) I don't ...
1
vote
2answers
47 views

Existence of a non blocking and task yield framework for Arduino programming

I've been playing around with Arduino and understand that the standard runtime provides a single thread essentially. I was wondering if it is possible to write a thin layer (library) that allows one ...
0
votes
1answer
30 views

lcd.print then dataFile.print

My program is a bit large and I'm worried about stability. I need to print data to both a file and to my LCD. It's like this: if (hour<10) { dataFile.print("0"); } dataFile.print(hour, DEC); ...
0
votes
1answer
40 views

Why I could not read the other sms's except the first SMS?

I have to read the incoming SMS on my GSM module SIM900, and I want to print the sender number and message to the serial monitor. I first configure the GSM module with AT commands and Response() ...
0
votes
1answer
30 views

Arduino Bluetooth connection with Android

I am wondering why my Arduino program won't start its sketch to connect a bluesmirf to an android device and send data to the android whenever I use an external power supply. The sketch starts ...
0
votes
1answer
59 views

Can't upload sketches to breadboard Arduino

I have an ATmega328 chip with the boot-loader installed. I also have an Arduino Uno with the ATmega328 chip removed. I hooked this chip up to a breadboard with the proper 22pF caps, 16MHz crystal, ...
0
votes
0answers
12 views

Background Processes - Arduino Mega and SeeedStudio CAN shield

I am attempting to interface an Arduino Mega 2560 with a system of four Black Jaguar motor controllers connected in CAN. I'm using the CAN shield from SeeedStudios to accomplish this. So down to the ...
0
votes
1answer
28 views

Servo motors won't work with motor controller

I have a motor controller controlling two motors, which works perfectly fine when I comment out the two servos in the below code. These two servos are not connected to the motor controller but simply ...
-1
votes
0answers
50 views

Coding If Conditions in Arduino [closed]

int leftInput=A0; int rightInput=A1; int leftMotor=11; int rightMotor=10; int leftValue = 0; int rightValue = 0; void setup() { pinMode (leftMotor, OUTPUT); pinMode (rightMotor, OUTPUT); } void ...
0
votes
1answer
81 views

Arduino Web Server and Relay Module

I am working on a web server project for work. I have a web server setup with an Arduino Meg2560 with Ethernet. I also have a 16 relay board connected to Ethernet with its own IP. I wanted to see if ...
0
votes
1answer
69 views

How to input keyboard commands using Arduino Mega 2560? [duplicate]

I have an Arduino Mega 2560 connected to a Windows 8 laptop. I want to program it to send keystrokes to the attached computer (when a pin's digital read goes from HIGH to LOW.) The trouble is, I ...
0
votes
2answers
208 views

Can I Implement a PLL on an Arduino?

Is it possible to create a system like a PLL using an Arduino? I ask this because there are some parts in the PLL system, such as: phase detector, VCO, divider, and I don't know how to make for each ...
2
votes
1answer
86 views

How to detect if more than one button was pressed

I am designing a turn signal bicycle blinker using two pushbuttons as input, one for each side, with a corresponding light for each button. The idea is this: Pressing one side makes same side start ...
1
vote
0answers
44 views

Using CD4053 for arduino

I would like to use CD4053 for multiplexing in arduino but the problem is that I don't understand how CD4053 works, is it the same as CD4051, can someone help me, provide example code and circuit??
0
votes
3answers
86 views

AES Simplified for Arduino - Having hard time achieving desired result

Okay, here's the story. I'm not very familiar with how Arduino works but learning. I have a project that requires AES encryption on the Arduino Uno. As per a previous question we managed to figure out ...
1
vote
1answer
42 views

Quick Programming Check/Review

I've been racking my head trying to start programming in a library organized method. My code works, but the translation and split to a .h and .cpp file is riddled with errors. It's gotta be stupidly ...
1
vote
2answers
41 views

Empty char variable

How do I empty all the values inside a variable char array[256];? I tried a for loop assigning an empty value at each iteration, but it doesn't compile.
0
votes
4answers
202 views

deprecated conversion from string constant to 'char*'

What does this error means? I can't solve it in any way. warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
1
vote
1answer
109 views

Implementing DES or AES Encryption with DateTime Synchronization on Uno

We are trying to implement AES or DES encryption using an Arduino Uno. We have a keypad module attached that will be used to input integers. A String should be generated based on the entered data and ...
0
votes
1answer
74 views

seperate ATmega 2560 - turn on a single LED - troubleshooting

I have got my own PCB with "some stuff" on it and first I want to make it run a simple "turn on LED". My setup: Atmega 2560 LED connected to PE4 (D2 in Arduino language) => PE4 - LED - 1K resistor ...
2
votes
1answer
55 views

Using an Arduino as an LED controller for an arcade stick

I'm attempting what seemed to be a rather simple problem at first glance, but due to my limited knowledge of Arduino workings I need some help. I'm trying to use button outputs from a PS360+ arcade ...
0
votes
1answer
32 views

xBox receiver code output is scrambled

I'm running the following code: #include <XBOXRECV.h> // Satisfy the IDE, which needs to see the include statment in the ino too. #ifdef dobogusinclude #include <spi4teensy3.h> #include ...
0
votes
4answers
85 views

Interrupt fires multiple times

I have a Photo Interrupter which I am using to count the RPM of a motor. I am incrementing an integer to show the amount of interrupts there have been. The issue is that there can be several ...
0
votes
2answers
60 views

Arduino UNO with CD4510 Counter

I am new in Arduino but I have experience in electronics. I was wondering how can I make a countdown timer using a CD4510 and an Arduino UNO. I know you would suggest that I should connect my seven ...
1
vote
1answer
65 views

Why would you program Intel Edison in NodeJS? [closed]

What's the purpose to program boards like Arduino, or specifically the Intel Edison in NodeJS when you can program them in "Arduino language"? Is NodeJS more powerful? Does it give the code more ...
0
votes
1answer
65 views

Counting revolutions of a DC motor with a Photo Interrupter

I have a DC motor which is rated at 11 200 RPM. I would like to count the actual RPM (it seems to be maybe 1500 RPM from what I can tell manually.) I bought a Photo Interrupter, and have connected ...
0
votes
1answer
34 views

0 value integer does not enter If

I'm sure this is a very basic coding mistake... I'm picking up a reading from A0. If the value is 0, I want the value of the serial to be written to the Serial Monitor. I also want it only to write ...
0
votes
1answer
147 views

rfid_default_keys check with RC522

I just received a RC522 board and since i am new to RFID, I tried out some examples from "Arduino RFID Library for MFRC522". Here's one of them rfid_default_keys /* * ...
0
votes
0answers
17 views

Is an Arduino Board Manager available in Visual Studio 2013 Community Edition?

I want to try different hardware but it is tedious switching to the Arduino ide to install hardware. Surely I can do this from Visual Studio? If so then how? I can't find the options.
0
votes
3answers
54 views

How can I reference an object from another file?

I am trying to write some code to make it easy to add different buttons to a touch screen. I need each object to be a different object of class 'touchButton'. I'd like to be able to run a ...
0
votes
1answer
45 views

Error in code saying “expected primary expression before ”<“ token” and other errors

I am Creating a laptop controlled robot using an arduino nano using the instructbles. I have tried running the code but it is throwing back lots off error and the main one is "expected primary ...
0
votes
1answer
52 views

I am having an issue reading a HIGH LOW signal from a pressure switch

I'm trying to read either high or low from a pressure switch, I do have a pulldown resistor attached but even if I plug in a wire with nothing on it i get a false high. I've changed pins, tried adding ...
0
votes
2answers
53 views

Arduino Starter Kit

I am not sure if this question is allowed, feel free to remove if it is not. I am new to Arduino and looking for advice on a good starter kit to purchase. I have done some research but felt it would ...