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.
0
votes
0answers
11 views
Integration of Mobile camera using Arduino UNO
I need some help,I want to to add a wireless camera on to my robotic car,and I don't want to buy the wireless camera rather I want to integrate my Android mobile camera with Arduino Uno only,so can ...
0
votes
0answers
38 views
Electromagnetic levitation
I'm a newbie to arduino and I'm attempting a project involving an electromagnet oscillating quickly causing a magnetic object to float in mid air.
I'd like to know basically if this is possible using ...
2
votes
1answer
21 views
Passing a static array to a function
I have a functon that creates a instance of KeyReport and I want to fill statically the KeyReport.keys array. I'm new in the Arduino world so I'll put a example to explain it better:
void ...
1
vote
2answers
38 views
Using random() in a header file
#ifndef FOO_H
#define FOO_H
struct Foo{
int randInt = random(0, 101);
};
#endif
I have a header file with a struct like above but when I compile I get this error:
'random' was not declared in ...
0
votes
1answer
16 views
Issue with leOS2 for one-time tasks
I'm trying to use the last version of leOS2 scheduler from Leonardo Miliani ( https://github.com/leomil72/leOS2 ) but I have a strange behavior with a very simplistic ONETIME task.
Platform : Arduino ...
1
vote
1answer
85 views
A whole basic game project Arduino
Firstly, I know that I have already posted this. I do not think anyone here is stupid so:
The game is: a power source connected to 6 buttons connected to 6 LEDs. you press them all in the randomly ...
0
votes
1answer
28 views
Help with arduino car project
So in computer engineering I've got to make a arduino based car, I've added a whole bunch of features such as IR tracking, obstacle avoidance(proximity sensor), optical tracking(follow a black line), ...
0
votes
1answer
33 views
Is it possible to create an interface between Teensy3.2 and a DSP
I realize that this is a forum for Arduino but since the teensy3.2 is compatible with the Arduino IDE I thought it would be appropriate to ask the question here.
Anyways, my question is:
Can I ...
0
votes
0answers
15 views
ADK USB Programming
I have an Arduino Mega ADK. I want to send data[the state of LED in Blink Sketch] using the in-built USB port. What should be my code to access the USB port for data transfer???
2
votes
1answer
41 views
How does this code move the bird sprite in this sketch?
I'm teaching this sketch in my class. I understand most of the sketch and can see the class that makes the bird move, but I still don't quite understand how the code makes the sprite "move." I can ...
1
vote
2answers
49 views
MPU-9250 : How to convert pitch (+90/-90) to 360 degree?
I'm using Arduino Uno with MPU-9250 to find roll, pitch and yaw.
Everything works fine but I want to covert pitch from (+90/-90) to 360 degree.
I'm using this code:
vec.setX(atan2(2.0 * (m_data[2] ...
0
votes
1answer
71 views
Programming a motor with an RGB
Please see the comments section if confused.
I am trying to turn a motor on and off once per second, and when the motor is on, the RGB turns green. When the motor is off, the RGB is red. Everything is ...
0
votes
1answer
42 views
Help with Flappy Bird Sketch
I am compiling the sketch found here. I just downloaded the .ino and .h files and opened them, so I have not modded the code at all. I keep getting the following error.
In file included from ...
0
votes
0answers
77 views
I want an algorithm for this code
I have a code that I want an algorithm for , this code was developed by Browndogs
it is a code for a solar tracker
please if you can help me
#include // include Servo library
// 180 horizontal ...
0
votes
2answers
25 views
how to change variable when a button connected to pin 2 is pressed
Hi i am writing a code where, i have to switch a variable called toggle from 0 to 1 to 0.... every time the button is pressed (the button is on a 2 pin). I am a little lost as I am new to arduino need ...
-1
votes
2answers
50 views
arduino project for c programming language
i am a student from 2nd semester BCA (Bachelor in Computer Application). My group need some project for presentation from c programming language so i thought of using #ARDUINO project for our ...
0
votes
2answers
36 views
Identical statements, different outcome
First a little background on me and my project. Most of my programming experience is with PHP and javascript. I have just recently started looking at C and C++ for this Arduino project. My project is ...
0
votes
1answer
29 views
RGBs, photoresistors, and delays
I am having a little trouble with a program of mine. My circuit consists of (mainly) an arduino UNO, two RGB LEDs, and a photoresistor. My current code(programmed in c#) operates the hardware as so: ...
0
votes
1answer
31 views
Querying streaming sensor data on the Arduino board
I am new to Arduino and this forum, so please forgive me if I am asking something really trivial and stupid.
I have an Ardino board which collects sensor readings from a mpu6050 ...
1
vote
2answers
34 views
How to count the time until the next day of the week?
I wants to do in Arduino countdown that shows how many days, hours and minutes remaining to Friday 12:00.
In my program I used a function in php strtotime('next friday') which thus could calculate ...
0
votes
1answer
79 views
Arduino: Record value of the encoder only once at the instant the PS2 joystick reads 128 (when at rest)
I'm working on a project where I need my arduino to detect the value of encoder at the instant the reading of the joystick change to 128. When the joystick is at rest, the reading is 128 which also ...
1
vote
2answers
82 views
How do nested for loops work?
In the following code from an Arduino sketch will it run the first "for" statement before enacting the second "for" statement. Also how does it know go run the first stamens again? Will it continue to ...
1
vote
2answers
27 views
Can I automatically loop inside a library?
I want to write a little library;
the unlibrarized functionality does:
checking in every loop-cycle some inputs,
doing some calculations with it
and finally setting a boolean to either true or false.
...
0
votes
1answer
32 views
Serial comms failure after long time - can't open COM port
I've been using an Arduino UNO to log data: it's queried by a LabView VI over a VISA connection. It'll happily sit there and log for days, but very occasionally one of the VISA functions will fail.
...
0
votes
2answers
34 views
How do I send an arduino PIN state to a local PC using the ethernet connection?
As a PIN goes high I need to trigger an event that will send the IP or MAC of the arduino and the PIN state over the wired Ethernet to a local computer. I am using an Ethernet shield to send and ...
0
votes
1answer
40 views
Arduino programmers for hire?
How do I best connect with Arduino programmers who are willing to design small projects for some extra cash?
0
votes
1answer
62 views
Arduino Mega with two Arduino Unos as slaves via I2C?
Good morning! This is my first post here, and my first time diving into the world of microcontrollers. Bear with me, as I describe this theoretical project.
I've got an Arduino Mega 2560, two ...
-4
votes
2answers
63 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
43 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: ...
1
vote
2answers
46 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
31 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
37 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
56 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
35 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
...
1
vote
1answer
35 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
202 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
57 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
54 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
55 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
126 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
52 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
79 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
53 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
73 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
40 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
58 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
50 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
112 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
19 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 ...