3
votes
1answer
215 views

Trouble loading code to Arduino board from Mac OSX Mavericks

I have an Arduino Uno and code was loading fine yesterday but today I am consistently getting the following error (shown by setting the upload section to verbose) avrdude: Version 5.11, compiled on ...
2
votes
0answers
20 views

Can I use a transistor as a switch to close a pin to GND? [migrated]

I need to short an external pin to another external pin (gnd). (http://pinoutsguide.com/DigitalCameras/nikon_d90_pinout.shtml) I want to control this with an Arduino, can I use a transistor for this? ...
1
vote
2answers
40 views

Set an array to different array of unknown size

So I've been programming for my arduino which is some variant of c++. I have been writing a program to tick through every number of a 4 digit seven segment display. I have been having trouble setting ...
1
vote
2answers
966 views

arduino error: expected ',' or '…' before numeric constant

I am new to arduino and C++ and am running into the above error. It seems pretty self-explanatory, however I can't find the missing comma within the code. The code worked fine before I added the ...
1
vote
1answer
77 views

LCD outputs Chinese characters instead of alphanumeric?

Trying to output a simple string of data "ABCD" using my arduino uno and a LCD you can view in the datasheet link below. My LCD is outputting Chinese characters instead of the string I specify. I've ...
1
vote
3answers
41 views

Arduino Leonardo Endless Loop

My Code: *int led = 13; void setup(){ Serial.begin(9600); pinMode(led, OUTPUT); while (!Serial) { //My code get stack here! //it stay here looping on endlessly! digitalWrite(led, HIGH); ...
1
vote
1answer
47 views

where is the Serial.println() defined ..? can i see source code for it?

im just looking for how to send/ write date to pc over serial port from arduino..vice versa. I have few Question to ask after taking so much time and couldn't figure it out myself. I hope you guys ...
1
vote
3answers
85 views

Serial.print only once Arduino

I have a light sensor that prints the value of its input to the Serial monitor. It's pretty much a trip wire but when an object is in its way, it prints the value every 1 millisecond. If I add a delay ...
1
vote
1answer
88 views

Light Gate Timer Arduino

I have been trying for the past few hours to get a light gate timer to work with 2 photocells and lasers. It is like a trip wire, when the 1st sensor is low (when it is tripped), it triggers to start ...
1
vote
1answer
125 views

Arduino Uno + WiFi shield hangs on WiFi.status()

I have some very simple test code: #include "WiFi.h" void setup() { Serial.begin(9600); Serial.println("go"); WiFi.status(); Serial.println("done"); } void loop() { } I'm using an Arduino ...
1
vote
1answer
68 views

parsing json response from serial window

Hi i'm trying to parse JSON resposne from webserver in my arduino in order to turn on and off a LED light. I'm using the wifi client repeating example to make a get request to my server: ...
0
votes
2answers
33 views

Arduino Matrix Math?

I'm looking for a library that can handle matrix math on the Arduino. I know that there is one library featured on the Arduino Playground, but I've found it to be a little lackluster in it's inability ...
0
votes
2answers
40 views

Arduino multiplication error

Arduino not is able to multiply numbers from 40 onwards by 1000 for example void setup() { Serial.begin(9600); } void loop() { float a = 60 * 1000; Serial.print(a); } the result is -5536 ...
0
votes
1answer
35 views

Serial.print slows/fails on arduino

I have the following piece of code in my arduino loop while( !Serial.available()){//wait for data to start but keep sending the distance distance = analogRead(A0); Serial.print(F("d")); ...
0
votes
1answer
29 views

Arduino Loop Error: Waits several seconds to respond to input change

I am trying to write a simple control program for an Arduino Uno for an experiment I'm running at work. Quite simply it just needs to read if an input pin is high, if it is wait 10 milliseconds to ...
0
votes
1answer
25 views

arduino serial erratic behaviour missing characters and occasionally the whole transmission

I have a problem with the hardware serial on the UNO, in many occasions it seems to drop a character (usually the first character being received) and in some cases it misses a whole transmission. this ...
0
votes
1answer
25 views

ARDUINO analog input & LED

I take analog input from force sensor and can see them real time on serial monitor. The simple code I wrote for this is int SensorIn1 = 1; void setup() { Serial.begin (9600); } void loop() { ...
0
votes
3answers
42 views

How to open a webpage from an arduino uno

I was wondering if it's possible to open an internet browser from code in your arduino IDE or any other sort of program connected to the arduino and in turn open a specific webpage. My idea was to ...
0
votes
1answer
46 views

Identified amplitude in secret knock project

I'm doing project like this http://grathio.com/2013/11/new-old-project-secret-knock-drawer-lock/ The project only process time interval between knock, and I try to add amplitude as input, if I just ...
0
votes
1answer
69 views

Arduino Uno Code Creates Incorrect Time Values

Hello I have an Arduino Uno board that I got recently and I am trying to run a stopwatch function on the board. I have two momentary pushbuttons. When the first button is pressed it stores the amount ...
0
votes
1answer
162 views

Arduino programming modes, bootloader, Arduino as ISP

I am currently working on a project using an Arduino Uno (rev3) board. Eventually I might let it run independantly from Arduino and that got me thinking how the whole programming and bootloader stuff ...
0
votes
1answer
182 views

Json parsing with arduino uno

Hi I was wondering if there is a way to parse json response from a server. I'm using arduino uno with a wifi shield. Also is it advisable to process json? I read that the uno may have too little ...
0
votes
1answer
119 views

Arduino wifi shield cannot find IP address

Hi i'm trying to access my wifi shield's ip address on the browser but I keep getting Oops! Google Chrome could not connect to "IP ADDRESS". Things I've done: 1.)Updated firmware on wifi shield ...
0
votes
1answer
24 views

Arduino upgrading firmware

Hi I'm trying to upgrade firmware on my wifi shield by following the http://arduino.cc/en/Hacking/WiFiShieldFirmwareUpgrading instructions for mac. I was wondering what this means? "Connect a jumper ...
0
votes
0answers
13 views

file directory for saving .cpp & .h for the Arduino IDE for short #include statement [migrated]

I am trying to write a class/function that I think I will be using often in my Arduino IDE, I know the code but where should i save the file so that the IDE picks it up without a full directory ...
0
votes
1answer
22 views

if else commands just staying on the first logic gate

This code is to make a simple rgb led thermometer. The problem i am having is that i have three color tiers of temperature, and something in my syntax is making it so the it only looks at the first ...
0
votes
0answers
10 views

Arduino Uno R3 Bluetooth Shield is not discovering in any of the device [migrated]

I have a problem regarding Seeedstudio Bluetooth shield http://www.seeedstudio.com/depot/Bluetooth-Shield-p-866.html I can't detect its presence by any other devices. The code I uploaded to Arduino ...
0
votes
1answer
35 views

Test LED before starting code

Can't quite find exactly what I am looking for. I've written the following code: /* Traffic Lights Turns on an LED on in a predetermined sequence - Red, Red Amber, Green, Amber, Red. This ...
0
votes
0answers
12 views

Arduino multiples GET

I have this code and does not work. I want 2 get send to another device without success. The first value is saved, the other not. Data can not be sent in a GET. Code running on the Arduino UNO and ...
0
votes
0answers
31 views

How to do Graph traversal in arduino and implementation with depth first search?

I have a data logging system later on in which I have to apply graph traversal technique, the code needs to work in arduino mega or arduino leonardo. An SD card is provided for data logging
0
votes
1answer
45 views

Connecting Arduino and Android Bluetooth

I tried to connect arduino and Android via bluetooth and it's working pretty good. But while initialising the connection I wrote a setup in my arduino I don't know how to call it. void setup() { // ...
0
votes
0answers
26 views

Watch code Simulink before deploy arduino

I am trying to do an HIL system with Arduino and Simulink but the driver of my motor (Pololu VNH5019) works at 20kHz and simulink PWM block only supports 490Hz. I would like to read and modify the ...
0
votes
1answer
36 views

One buttoned bandit slot machine - int function

I'm making one-buttoned bandit slot machine made on 3x 7 segment displays and 3x 74HC595 Shift Registers. Problem is that I want to have some kind of indicator that you won (or you partially won - 2 ...
0
votes
1answer
51 views

Arduino GSM shield not connecting

I have an arduino GSM shield sitting on top of an arduino uno. I have the code below. The shield just shows me it is connecting but it never shows me it is connected.I want to know why it is not ...
0
votes
1answer
41 views

Converting accelerometer data to activity using ADXL345

I've currently built out a simple circuit using the Arduino Uno R3 and added in a ADXL345 accelerometer. In addition I've thrown in an RTC for prepending a timestamp using the millis() function. I've ...
0
votes
0answers
35 views

Arduino to arduino i2c code

I have an OPT101 connected to a slave arduino to measure light intensity. I want to send the data received from the OPT101 circuit to a master arduino that will print the data on the serial monitor. ...
0
votes
0answers
43 views

Is it ok to pool a serial connection with Java? (I'm using it to connect to Arduino)

I am trying a way to efficiently communicate with my arduino-uno board using Java. I use the following code to read from Arduino (the code is the same posted on arduino website, only adjusted to my ...
0
votes
0answers
99 views

Arduino GSM module(SIM900) not fetching received SMS from sim card

I am trying a sample code I got from Open Electronics site. The code is suppose to receive and sms with instruction to turn on/off a light bulb via arduino and SIM900. the is as follows: #include ...
0
votes
0answers
162 views

Mac + Uno + avrdude: stk500_recv(): programmer is not responding

I'm trying to upload .hex file to Arduino. I don't have any problems with uploading code through IDE (like blink example or any other). The port and board are correct. So problem appears when I try ...
0
votes
2answers
53 views

Converting character buffer to an integer (arduino)

SOLVED: You can change the char buffer by using: char *arg; arg = SCmd.next(); int i; sscanf(arg, "%d", &i); Serial.print("String value "); Serial.println(arg); Serial.print("Integer value ...
0
votes
1answer
48 views

What is the exact frequency of PWM signals produced from Arduino pins

In http://arduino.cc/en/Reference/analogWrite it says, " The frequency of the PWM signal on most pins is approximately 490 Hz. On the Uno and similar boards, pins 5 and 6 have a frequency of ...
0
votes
2answers
34 views

Arduinosumo bot with rotatory motor

I am making a sumo bot for a project by using an Arduino. I have no experience with Arduino code, but I do have java experience. That said this bot has an edge detector to prevent it from falling off, ...
0
votes
1answer
224 views

avrdude: error: buffered memory access not supported

I am trying to upload this firmware sck_beta_v0_8_6 via Arduino 1.0.5-r2. I have chosen LilyPad Arduino USB as the board. The device is a Smart Citizen Kit Urban Shield v.1.1. The upload fails with ...
0
votes
1answer
115 views

Maximum size of 2D array on Arduino Uno

I tried making an array double data[640][14], but the compiler says that the array size is too big. Can anyone tell me what is the maximum size I can use, and how can I work around this problem?
0
votes
0answers
27 views

Javascript string to buffer and serial communication

I have a string variable (result of a JSON parsing function) and i want to send it to my arduino uno through the serial port. Anyway i can't get my serial port to send directly char or string ...
0
votes
0answers
26 views

LiquidCrystal Library - autoscroll() not working

I am using the LiquidCrystal library with an Arduino UNO to print some text from a serial port. Now, problem is that whenever I use the autoscroll() function, no text is displayed on the LCD but just ...
0
votes
0answers
68 views

Arduino not connecting to computer after working before

I bought my Arduino Uno R3 a few months ago. It's been working like a charm since then, but today, it stopped interfacing with my computer. Let me be more specific. I have a 2013 Macbook Pro Retina ...
0
votes
0answers
73 views

Define Loud and Soft Volume of Sound

Analog_Read() in Arduino range from 0-1023. If I'm using a Piezo Buzzer, how I can define from range 0-1023 that the sound I read are Loud or Soft? I'm already testing it (basic Piezo Buzzer and ...
0
votes
1answer
34 views

Android and BarTender Arduino 1.0.5-r2

I am creating drink using Android nexux5 and Arduino Board. When I send the data from android device to Arduino Board It giving me the output "Evt disconnected Advertising time out error" I am ...
0
votes
1answer
499 views

Why does it puts error: expected constructor, destructor, or type conversion before 'void' in arduino uno code?

This code is for opening four leds when the switch is opened, and depending on the temperature there are two more leds opened or closed, one red and one green. const int sensorPin = A0; type void ...