A sketch is compiled code that is uploaded to an Arduino board.
0
votes
0answers
17 views
How to control motors without conflict from joysticks?
I am building an ROV that will control motors with 3 2-axis joysticks. I have four horizontal motors that are vectored in this configuration in order to allow for more axes of motion such as crab and ...
0
votes
1answer
17 views
Using two ultrasonic sensors together
Using two ultrasonic sensors together, how can I enable one before the other?
0
votes
2answers
32 views
Include Git tag (or SVN revision) in Arduino sketch?
Is there any way to get the current Git tag/commit identifier into an Arduino sketch binary?
For normal desktop program development, you can pull some tricks with the Makefile (as pointed out in this ...
0
votes
1answer
24 views
Controlling HC-05 from a sketch
Hi I am making a sketch and circuit with a HC-05 BT receiver to upload sketches via Bluetooth to my Uno. This requires giving AT commands from the sketch. I would like to see the response from the ...
0
votes
1answer
46 views
Arduino OOP and [this] keyword
Lets say I have a sketch called mysketch.ino with these contents:
String globalString = "ThisisGlobal";
void setup(){}
void loop(){}
How can I pass THIS sketch mysketch.ino as an object or its ...
1
vote
0answers
18 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
2answers
60 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
1answer
57 views
Upload sketch via Bluetooth using HC-06 module
I'm dealing with an application in which I need to upload sketches remotely to an arduino UNO board. I successufully managed to upload sketches using an HC-06 bluetooth adapter. The only problem is ...
2
votes
1answer
195 views
How to generate true random numbers over Arduino Uno without any external hardware?
Using a 'random' function in sketch gives same pattern of numbers every-time. But, I need to generate different numbers such that any number to repeat itself should have a very less probability.
1
vote
1answer
52 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 ...
1
vote
1answer
24 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
0answers
13 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 ...
-2
votes
1answer
67 views
Problem: “stray '#' in program” [closed]
I got a sketch from the internet (http://www.instructables.com/id/How-to-build-an-8x8x8-LED-cube-and-control-it-with/) for controlling the display of an 8x8x8 LED cube. The program won't compile and ...
0
votes
1answer
23 views
Stuck on uploading sketch via USB 6 pin
I'm just got a Galileo Gen2 and wanted to try a simple blinking-led. The firmware have been updated to 1.0.4. My problem is whenever I try to upload the code I get this error:
Sketch uses 83,775 ...
-4
votes
1answer
59 views
String matching serial input (was Code for voice recognition for arduino uno) [duplicate]
#include <SoftwareSerial.h>// import the serial library
SoftwareSerial Genotronex(10, 11); // RX, TX
int ledpin=13; // led on D13 will show blink on / off
int BluetoothData; // the data given ...
0
votes
2answers
91 views
how to count blinking LED flashes using arduino uno boards and LDR?
i want to know code for counting the flashes of LEDs and display no. of flashes in particular time given.by using LDR.
basically i tried it with interrupts but i'm not getting it,so please help in ...
-3
votes
1answer
78 views
questions about sketch [closed]
int k ;
int q ;
int f;//pot
void setup() {
pinMode(k, OUTPUT);
pinMode(q, OUTPUT);
pinMode(f, INPUT);
}
void loop() {
zzf();
}
void gf()
{
int a = f;//test the conditions of f and store in ...
4
votes
1answer
42 views
Double ## in macros
I was looking at some macro use in an Arduino code. I believe what this macro does is it expands into a state that basically sets a pin to either input or output, but I'm a little confused about ...
0
votes
2answers
98 views
Using Rx and Tx pins(0 and 1) on Arduino Uno for GSM
I am using a GSM module sim800. My module responds to the output given by my PIR sensor and sends sms according to it. My module has got +5V, GND, Rx and Tx pins. What are the pin connections that I ...
0
votes
0answers
167 views
Sending sms through GSM module sim800
I want to send an sms through my gsm module.I am using the basic GSM.h library included with the IDE. I wanted for the sms to be sent only when I receive output from my PIR sensors. I have created a ...
1
vote
2answers
155 views
Can an a Arduino make music or speech without a speaker?
I have an Arduino Leonardo that can turn a relay off and on and the click is audible on the relay -this is simply done by making one of the control wires HIGH in the program code to turn the relay on ...
1
vote
0answers
34 views
How does one build an arduino version of a slime controlled robot? [closed]
Recently robots controlled by the emotions of biological slime have been built. See for example the New scientist article titled robot move by fear of slime mould. The hard part of building an arduino ...
1
vote
1answer
77 views
Problem while writing sketch for GSM module sim800
I wanted to my GSM to recieve SMSs. I have written a sketch for it. But while verifying the sketch an error pops out in this part:
if (sms.available()) {
sms.remoteNumber(senderNnumber, 20);
...
0
votes
1answer
20 views
Detecting Motion behind a robot
I am building a motion following robot. It has two PIR sensors on the left and right. It has an ultrasonic sensor in the front. When either of the PIR sensors detect motion then it turns to that side. ...
1
vote
1answer
31 views
How to make two wheels turn only for a particular amount of time?
I am trying to make a robot turn (dc motors are being used) back 180 degrees. So I used an l289n for it and made one wheel turn clockwise and vice-versa.
But as I wan't it to make only a 180 degrees ...
0
votes
1answer
97 views
What if Ultrasonic sensor doesn't detect object?
I am trying to write a sketch where a function will only be triggered when the ultrasound doesn't return back. Thus when the echo pin is checked after 1 second after the trigger pin was written high, ...
2
votes
4answers
129 views
Take an Arduino or Teensy prototype to Mass production - Loading software onto microcontroller
I am developing an educational product that I would like to mass produce. I am not sure of the quantity yet, but I imagine we will make a few hundred PCBs at least to begin
I spoke with an electrical ...
0
votes
1answer
29 views
Details on OV7670
I am thinking of working on a project based on a camera module OV7670. I am making a security system using an arduino where detected motion (I am also using a PIR sensor) will trigger the camera ...
0
votes
1answer
133 views
How to upload Arduino sketches to Atmel chips
I am new in this Arduino coding world and I was trying to make a project. I normally used Arduino Unos all the time, but I was facing a problem and that is that the Arduino Uno has only 13 digital ...
0
votes
1answer
49 views
Arduino compiler uploading last saved version of sketch, not current
Is this an issue or a defined behavior? I am using Arduino IDE 1.6.6
Sometimes I made changes in code, and immediately upload them to the Arduino board. And many times issues already fixed are ...
0
votes
2answers
58 views
uint8_t etc as color variable
I am very new to coding and I am attempting to teach myself the best I can. I have no prior knowledge of coding and am filling in the blanks via YouTube and forums alike. One place I keep getting ...
0
votes
2answers
91 views
Clearing SRAM in loop()
Very broad question here. I don't know exactly what the problem is but I'll edit this post as we narrow down the possibilities.
I think I'm running into memory constraints.
I'm running a sketch ...
0
votes
1answer
24 views
How to extract the last byte out of an IP adress
Newbie question:
I need to pass the last byte of a local IP as a parameter.
Eg.: when Ethernet.localIP() returns 192.168.0.100,
I need to extract the 100 and put it in a char array or string.
Anyone ...
2
votes
4answers
529 views
What is better: one sprintf() or multiple strcat() and itoa()?
I was creating Arduino function which sends two int and additional chars between them and at the beginning and end of char array - then print that array to the serial port in almost real time. (For ...
2
votes
1answer
62 views
What is Arduino Uno default sketch?
When I bought my aruino uno and connected it to my computer, I tried to make the simple blink circuit(before programming arduino) and suddenly the led started blinking.
Is the blink example is the ...
1
vote
1answer
62 views
Arduino sketch does not repeat
I have a Problem with my code.
My Goal is to receive a Ethernet message via UDP and send the message back via CAN.
It works fine but only with the first packet I send. When I send the same packet ...
1
vote
2answers
124 views
Python script to toggle LED's
I have 8 LED's connected to a shift register on my arduino uno r3. I am trying to write a Python3 script that will prompt a user to select one of the LED's and then prompt to toggle on or off.
Should ...
1
vote
1answer
246 views
Graph plotting on Processing from Arduino sensor data
I am trying to plot a graph on processing but I'm having challenges going about it. The processing sketch below does work for plotting only one axis, and I'm trying to plot all three axis on the same ...
0
votes
1answer
21 views
Broken Score on Game Sketch
I have modified the code for Flappy Duino to give me a score at the end of the game. Here is the code:
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>
...
0
votes
3answers
74 views
TMP36 probe reading 0 on analog
I've designed this system which is supposed to turn on the LEDs when the temperature of a particular probe exceeds 32 degrees. From what I can tell, this should be functional but the analog sensor is ...
0
votes
2answers
65 views
Sending data from Arduino to the server where arduino (sketch) acts as a client
I want to make simple client-server program where arduino behave as a client. For example I have a LED connected in arduino board that is controlled by a switch. With the switch I can turn off and on ...
0
votes
1answer
43 views
Sketch upload freezes during write
I'm trying to upload a huge sketch to my Uno R2. It's compiling just fine but it fails to upload at 94% of writing to flash...
The program is so large because of a big array of data in a separate .h ...
2
votes
2answers
133 views
How to program an offbrand arduino uno?
So I recently bought this off brand arduino uno from betemcu.cn.
it says its r3 compatible.
Can I program this thing with the arduino coder or do I need to use something else? whenever I try ...
0
votes
1answer
254 views
Difference in bootloader of ATmega with 16MHz external crystal and 8MHz external crystal
I have used your bootloader for ATmega2560-16AU with 16MHz external crystal and it works like a wonder.
In my new project I have a 3V power supply. Therefore, I am planning to use a low frequency ...
1
vote
2answers
106 views
Modify SSID and Passwords in WiFi sktechs
This is a question about modifying sketches other than through the IDE.
I'm using an Arduino Uno r3 + Arduino WiFi Shield (not the 101). Up to now I've been using the IDE to manually change the ...
0
votes
0answers
22 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
46 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 ...
0
votes
0answers
178 views
Arduino/Atmega328P on a Breadboard - Cannot Upload
I'm having a tough time trying to get the Arduino on a breadboard working and it's driving me crazy! I've never done anything with Arduino before (only the Raspberry Pi). I followed the instructions ...
0
votes
1answer
80 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 ...
1
vote
3answers
67 views
Arduino code on Raspberry? [closed]
Is there any way to run Arduino sketches on Raspberry Pi (basically on Raspbian)? I have several projects that work on Arduino and I would like to run the exact same stuff on my Raspberry Pi. Is there ...