The Arduino Uno is the most common and one of the newest Arduino boards. It is based on the ATmega328 microcontroller.

learn more… | top users | synonyms (1)

1
vote
1answer
19 views

Read multiple char from USART

int i, j; char data; int flag=0; void loop() { if(Serial.available() > 0){ data = Serial.read(); flag=0; } if (data == 'd' && 'b') { digitalWrite(cONOF, HIGH); } else ...
0
votes
4answers
46 views

H_Bridge with PWM gets too hot

I'd like to use an H-Bridge AND send PWM signal. I've used this schematics: http://itp.nyu.edu/physcomp/Labs/DCMotorControl and use the PWM signal inside the enablePin. But the H_Bridge is getting ...
1
vote
0answers
28 views

LED's won't light up when LCD/RNG hits 2 || 3 of a kind

I am a true beginner here. Trying to build a "slot machine" type game and am in the beginning stages. Found a RNG for LCD code and tweaked it a bit to get three digits to display randomly. Worked just ...
0
votes
1answer
24 views

Coding and libraries for Maxtronix Ultrasonic sensors

I need to access distance data using a LV-EZ0 Maxtronix ultrasonic sensor. http://www.maxbotix.com/Ultrasonic_Sensors/MB1000.htm Can anyone suggest what particular arduino libraries or code would be ...
1
vote
1answer
54 views

Why can't this C++ program read my arduino's Serial.write()?

I made a super simple arduino uno sketch to send a serial byte once every second: void setup(){ Serial.begin(9600); } void loop(){ Serial.write(12); // send a byte with the value 12 ...
1
vote
2answers
49 views

Using Arduino to learn AVR programming

I want to learn AVR C programming instead of arduino programming. I have an arduino UNO board and few Atmega328 chips that I bought, and Atmel studio for programming. Can I UNO board as programmer to ...
0
votes
0answers
40 views

RGB LED strip with Arduino

I am trying to control an RGB LED strip with an Arduino. I have followed the tutorials in both of these websites: Using MOSFETs: https://learn.adafruit.com/rgb-led-strips?view=all Using LED ...
0
votes
1answer
36 views

Can anyone tell me the best books for studying UAV? [closed]

It's kind of hard to get full guide from the internet. I just wanna buy a book for UAV guide. I gotta make DIY drones. I'd appreciat it if you recommend good books.
0
votes
0answers
18 views

ANALOG ANGLE CONVERSION FROM +70 DEG TO -70 DEG

I am using below sensor (accelometer ).My application is solar tracker, Where i wanted to convert the sensor output into +70 degree to -70 degree format.My question How to convert the angle #define ...
0
votes
0answers
34 views

Connection issues with TI CC3000 & Arduino Uno

I bought a CC3000 Wifi Shield from Sparkfun and attached it to Arduino Uno board. As first thing I tested the board with the board test example: SparkFun CC3000 - Board Test CC3000 ...
1
vote
3answers
57 views

arduino boot loader problem

I am using atmega 328pu instead of atmega328p-pu. I am trying to upload the bootloader using AVR pocket programmer. I have changed signature from 0x1e 0×95 0x0F to 0x1e 0×95 0×14. (Relevant link) ...
1
vote
0answers
44 views

Cannot read from 2 I2C slaves consecutively

I am currently trying to communicate between 3 Arduinos using I2C. One of them act as a master, while the rest act as a slave. I can request data correctly from the master. But if I were to do a ...
3
votes
2answers
79 views

Parsing JSON on the Arduino

I'm using the ArduinoJson library. There is a great example for parsing a single JSON object in the source code. I am attempting to iterate over an array of JSON objects: #include ...
0
votes
1answer
26 views

MakeyMakey + Arduino

I am trying to use the MakeyMakey with the Arduino (not as an Arduino) and then use a USB to TTL module to send the keys pressed to the Arduino. Is this possible? Do I have to reprogram?
0
votes
2answers
38 views

Arduino amplifier

I want to drive my model trains (märklin) with my arduino UNO, it requires 32 watt (0-12/24v, 2A MAX(changes)) This is Direct current How can I amplify the output of the arduino to get my 32 watt?
0
votes
1answer
10 views

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

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 ...
1
vote
1answer
29 views

MCU Type ATmega16U2 not avaliable in Eclipse AVR Plugin

I am following this guide. Now I want to create the Create the "ArduinoCore library". But when I am creating a new project, I can not select ATmega16U2 as MCU type. But my Arduino Due R3-E and UNO ...
0
votes
1answer
28 views

9 DoF Sensor Accelerometer Readings Inconsistent

I have the following sensor stick: https://www.sparkfun.com/products/10724 It has an accelerometer, gyroscope, and magnetometer. I have connected it to an arduino and am reading the accelerometer ...
1
vote
2answers
85 views

Unstable reading from pushbutton on digital pin

I use the Pin 7 to get the status of a push button. I put 10Kohm R on the - . The status is unstable because arduino says thet I push it but it is not true... int button = 7; ... // var for reading ...
1
vote
1answer
45 views

How to use two Sonar's

I'm using a single sonar, but I want to use two sonar to know another distance. Here is how I use my single sonar: #include <NewPing.h> #define TRIGGER_PIN 9 #define ECHO_PIN 10 ...
0
votes
0answers
40 views

Can't read from / write to EEPROM

I'm currently trying to write to and read from an 25LC256-E EEPROM with my Arduino Uno via SPI. I've made a program which is supposed to do this, but I only get weird answers. I'm sending in a ...
0
votes
3answers
25 views

Arduino uno + XBee Shield Not transmitting when under battery power?

I have a few Arduino's along with XBee Shields communicating with one another. The problem I'm having is that, when all the Arduinos+XBee Shields are powered via USB(PC) they seem to work fine and ...
1
vote
2answers
53 views

How can I get two arduinos to “talk” to each other?

I'm pretty new to this whole thing so please excuse my lack of familiarity with terminology. I'm looking to build two "buzzers" of sorts. One will live on the ground floor and the other will live on ...
1
vote
2answers
50 views

Bit mask first 2 bits of 16 bits for accelerometer

The datasheet for the accelerometer states that: Here is the data output from the accelerometer: I have tried to mask the first two bits using a bitwise AND command with B0011111111111111. I ...
0
votes
1answer
38 views

How do I set Grove GPS to use A-GPS?

I am using a grove GPS http://www.seeedstudio.com/wiki/Grove_-_GPS I attached the GPS to Serial1 of Arduino Mega 2560. The baudrate of the GPS is set to 9600. Library wise, I am using TinyGps to ...
0
votes
1answer
42 views

Unable to send data from Processing to Arduino through ports

I'm just beginning to use Processing along side with Arduino and need help linking the two. Just to get started, I just wanted to send a single character (eventually strings) to the Arduino and have ...
1
vote
2answers
96 views

Changing direction of DC motor

i am working on a project which requires changing the direction of the DC motor using arduino. that is I want the DC motor to rotate clockwise when i press key 'A' and anti clockwise when i press key ...
0
votes
0answers
19 views

No display to LED matrix for spectrum analyzer

I'm basing my project off of this Instructable but I am using a different LED matrix and I'm afraid a different driver chip, rendering the author's code useless to me. This is the matrix I am using. ...
0
votes
0answers
33 views

Arduino Controlling through C#

i would like to measure some signals from arduino and send it to a pc using USART and display the results in a c# winform application. Does anyone have such a project example ? Besides, i want to send ...
0
votes
0answers
11 views

Modifying smbus code to work with sending receiving 2bytes of data [migrated]

I have the following which works with sending and receiving a single byte of data. But I need to send receive 2 byte values, ie numbers greater than 255. I'm trying to send data to my Arduino from my ...
0
votes
0answers
27 views

Open loop solar tracking system

I am trying to build open loop solar tracking using actuator . My algorithm gives degree of solar position 9AM as -45 degree and 4PM as +45 degree with actuator system .since i don't have any feedback ...
2
votes
1answer
77 views

Why is my real time clock getting the wrong time from my PC?

I want my real-time clock to set its time as the time on my PC. However, when I run the following sketch, the real-time clock reports the time as being 32-33 seconds earlier than my PC says the time ...
1
vote
0answers
21 views

Lockup while evaluating Wire.requestFrom function (Arduino)

I am currently working on a Arduino project that combines an InertiaOne IMU sensor board (from Atmel), with an Arduino UNO and two motors driven by a Makeblock driver board. All sensors communicate ...
1
vote
2answers
119 views

error: redefinition of ' '

When I am trying to compile the following code, int delayTime = 1; int charBreak = 2.1; #include <MemoryFree.h> int rled1 = 1; int rled2 = 2; int rled3 = 3; int rled4 = 4; int rled5 = 5; int ...
0
votes
0answers
24 views

CC3000 with Temboo

Your solution looks amazingly helpful but I'm having a very hard time implementing. For other reasons I'm trying to avoid using Biicode, so I copied all the files and set them up in the same directory ...
0
votes
2answers
46 views

Sonar and servo stop working when usb cable unplugged

I am using the following components to build simple motobot: Arduino Uno Arduino motor shield, servo, sonar HC-SR04, magician chessis, DC adapter with 4 AA batteries. All works fine while USB ...
2
votes
3answers
133 views

Any problems taking arduino(esque) devices through airport security?

I'm flying out for vacation, and I want to take some of my half-done arduino projects with me to work on. I'm concerned that aiprort security might mistake my devices for something sinister or at ...
2
votes
2answers
68 views

What purpose have the yellow and green LEDs on the Arduino?

I have wired up a small project with a shift register see below, but depending on how I put the 74hc595 IC, the green and yellow LEDs of the Arduino stop shining. What are these LEDs for? Do the tell ...
0
votes
0answers
26 views

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

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 ...
2
votes
2answers
73 views

No valid serial ports for Arduino UNO on Mac

UPDATE: The issue turned out to be with my work laptop. Our IT department has them configured in such a way that the assignment of serial ports is different somehow. When I plugged in on my personal ...
-1
votes
1answer
46 views

How does one build a door motion sensor project with Arduino Uno board to send alerts to an Android Phone? [closed]

What are the materials I will need for the project? We want the project to work like this: When the door is opened, we get an alert to our Android Phone. What is the circuit structure going to look ...
0
votes
1answer
65 views

Why PIN3 stays at 1v3 in a IR emitter project?

Here is my very simple IR emitter circuit. OSI5FU5111C-40 is an infrared LED. I am using the IRremote library from here in this simple sketch, #include <IRremote.h> unsigned int ...
0
votes
1answer
50 views

UNO R3 board not detected

When I plug my new UNO R3 board into a PC's USB port it powers on but no device is detected by the operating system. I've tried on three different PCs, Windows 7, 8 and 8.1 with multiple different ...
3
votes
1answer
78 views

What is causing my Uno to wake up?

NOTE: this code was working perfectly fine in another program. I have a simple piece of code that puts the Arduino to sleep. When it is finished and intergrated into my project, it will only wake the ...
4
votes
1answer
45 views

Sending MIDI messages using PING ultrasonic sensor

I am working on a project that uses a potentiometer and an ultrasonic sensor to create MIDI signals. This is my first time working with an arduino. I took a class in C++, but am teaching myself some C ...
2
votes
2answers
272 views

How can I make my Arduino code work?

I am trying to make an automatic lock which stays open during different times and on different days. I want the door open Monday through Friday 8am to 5pm. On Saturdays and Sundays I want the door ...
5
votes
3answers
94 views

Digital Read Serial tutorial - calculating the resistor value

The Arduino Digital Read Serial tutorial guides you through the wiring of a simple button. My questions are centered around the resistor. Why is the resistor necessary? I think I understand this, ...
0
votes
1answer
84 views

Arduino based small LCD screen with camera video capturing

i have a idea to create a small screen which displays video recorded from arduino with camera. so camera will be back side of human and screen will be at near to eye. human can see the pictures from ...
1
vote
2answers
68 views

Questions on programming logic?

So I am learning arduino code by going through examples and playing with them, and I came across something interesting. I am not fluent in any coding language but I am fully familiarized with computer ...
-1
votes
3answers
70 views

Does Arduino run AC or DC

Does arduino run AC or DC? Based on my small knowledge on the crystal in an arduino, it seems like AC makes sense. True? No?