Questions tagged [arduino-uno]

The Arduino Uno is the most common of the Arduino boards. It is based on the ATmega328P microcontroller.

2
votes
3answers
1k views

Arduino starter kit servo is shaking

In the example of the arduino starter kit the point is to use a potenciometer to control a servo. The code is angle = map(potVal, 0, 1023, 0, 179); The output in the serial potVal: 1023, angle: ...
0
votes
2answers
364 views

Serial data to arduino problem

I cant understand what is going on here , I was trying to find way to send through Serial a number for example 12 and then extract from it number 1 and 2 and store them in two different variables , ...
0
votes
1answer
119 views

Connecting arduino to a PC

How would you send data wirelessly from arduino uno to a pc? I know you can connect wifi shield / wifi breakout to arduino and use that, but what other ways are there and how practical would they be?
1
vote
2answers
4k views

Can I power an Arduino with a computer's motherboard?

I was thinking of using my Arduino to turn on and off a computer remotely. I would like to know if the 5v header pin on a computer's motherboard (which I’m using instead of a USB because the 5v pin ...
2
votes
1answer
6k views

How does serialEvent gets into main()?

Ok, serialEvent "runs after loop()" and it is not an interrupt. AS far as I know main() has two functions - setup and "infinite" loop. So where does serialEvent comes in? And if I do not want loop()...
0
votes
1answer
907 views

Keyboard Control Not Working As Intended

I'm trying to control a single motor. If I press 'a', then motor 1 should turn to 0, if I press 's', then motor 1 should turn to 180 #include <Servo.h> char key = 0; const unsigned int ...
3
votes
1answer
3k views

Curious: What would happen if you connect 5V and GND port directly with a wire

Has anyone ever accidentally or inadvertently connected connected the supply port with the ground port with a wire? Does Arduino provide internal safety to prevent the circuit board from shorting ...
1
vote
1answer
852 views

Arduino starter kit example LEDS modification

I just begun with the Arduino starter kit, and in the second example I would like to test some changes to learn more. The point is to have a green LED shining, and when pressing the button the two ...
1
vote
1answer
90 views

Is it bad to leave my Arduino UNO on uninterruped? [duplicate]

I'm developing a project (Data logger) that requires that the Arduino remains on for several weeks. Is it okay to leave it on for about 6 weeks? Do I need to frequently reset it?
6
votes
5answers
9k views

Simultanous read and read/write on two serial connections

At the moment I'm using two softserials to connect to a GPS and an GSM module. It seems not possible to have two open software-serials. So I was looking for an solution After the initial-setup, the ...
0
votes
1answer
159 views

Arduino not responding [duplicate]

I have been using my arduino uno for many months and it worked very well even till today morning but an hour ago I tried to upload a sketch and arduino IDE showed my this "avrdude: stk500_getsysc(): ...
0
votes
1answer
361 views

Arduino + simple DC motors? (4WD kit)

I am trying to connect 4 small DC motors to Arduino, like those in the following image: The specification for each of them is: Suggested Voltage: 3V DC; No Load Speed: 65 ± 10rpm; No Load ...
-3
votes
2answers
10k views

Break statement terminating loop() [closed]

I am experiencing some very strange behavior with my arduino. I have a switch-case statement in the loop() method, and the break methods are not only breaking out of the case block, but also out of ...
2
votes
2answers
2k views

Arduino UNO USB not recognized

I've just received my Uno today and already I think I may have broken it :( I was able to connect to usb and upload a sketch (the blink). However, I then tried to connect a circuit to do the Hello ...
0
votes
1answer
180 views

Arduino Uno- Analog serial monitor not reading values over 174

I am simultaneously using a LEGO sound sensor in pin A5 and a RadioShack Tricolor LED Strip (Product #2760339) in pin A0. The sound sensor alone works as expected (producing values based on volume) ...
0
votes
3answers
2k views

What's the best way to control a USB-powered desk light

I recently bought a USB-powered desk light. Is it possible to control (turn on/off) it with the Arduino Uno? The desk light has 3W so needs 600mA. Should I connect the USB wire with the 5V pin of the ...
1
vote
0answers
350 views

Flame Sensors Problems

I am making a fire fighting robot and I need a sensor. I want the sensor detection range to be about 6m or 7m (about 18ft to 20ft). The question is which sensor should I choose to get that detection ...
4
votes
1answer
143 views

In Linux, how do I get this Arduino library to work

In Linux Fedora 20 Arduino I want to use the Timer library from here, from which I have downloaded the folder Timer-master.zip, but, when I try to import it, I get the Arduino message that it cannot ...
1
vote
1answer
728 views

Is it advisable to reload Pro Mini with the bootloader originally designed for UNO to save 1.5 KB flash space?

In order to allow bigger user program size, is it possible and advisable to reload Pro Mini with the boot loader originally designed for UNO. This will save 1.5 KB flash space (UNO boot loader is 0....
5
votes
2answers
4k views

Is it possible to run a binary from EEPROM?

Say I wrote a compiled sketch to EEPROM then read it. Could I run the program from EEPROM? I guess the question is: Can an Arduino run software not in flash memory in the middle of executing the ...
4
votes
1answer
7k views

Does ATMega 328/2560 chips support JTAG-type programmer and hardware debugger?

As stated in www.Arduino.cc FAQ, "Can I use an Arduino board without the Arduino software? Sure. It's just an AVR development board, you can use straight AVR C or C++ (with avr-gcc and avrdude or AVR ...
0
votes
2answers
2k views

Why does my dc motor immediately spin when connected to a 9v battery?

I've set up a DC motor connected to my Arduino Uno with the following layout. I'm using a 1.5V - 3V DC motor that was purchased from RadioShack. Here is my code: int controlPin = 9; void setup(){ ...
1
vote
1answer
2k views

How to upload an arduino sketch from java / processing?

I'm trying to upload a hex file from Java/Processing but running into some issues. Here is my code so far, based on the Arduino IDE's upload verbose output: void setup(){ //C:\Program Files (x86)\...
11
votes
2answers
2k views

Making analog telephone calls?

How can we make the Arduino board interact with old, analog telephone, and to make phone calls? I guess it involves connecting the board to the telephone with some specific cable (how it's called?) ...
1
vote
1answer
1k views

Release power to stepper motor

I'm driving a large stepper motor via a GeckoBoard G213V and arduino UNO and I have that mostly working fine. However, I'd like to 'release' the stepper so it can swing freely. There's two reasons I ...
8
votes
2answers
25k views

How to send numbers to Arduino UNO via Python 3 and the module serial

I am new to Arduino (and computer programming in general), so I apologize if this question looks silly. Once I set up a basic arduino-LED connection, I have problems sending INTEGERS to arduino ...
1
vote
1answer
899 views

LM386 module not working

I have arduino UNO hooked up with wtv020-sd-16p and it works fine, playing audio files - speaker is connected right to the WTV020's pin #4 and #5. However, volume is rather low. So I have ordered ...
1
vote
0answers
100 views

Can I use the SVG headers on the SainSmart Uno to drive servos?

I am working with a Sainsmart Uno with SVG header pins. This header is really convenient for hooking a servo to directly, so I have two servos connected to it on D9 and D10 and a 9v battery supplying ...
2
votes
2answers
255 views

What transparent casings are commonly used for smaller devices with a display [closed]

Not exactly Arduino-specific, but if you want to get a daily usable device (instead of a floating wire connection on your table) you eventually want to put your (Arduino-based) device into a nice ...
0
votes
1answer
395 views

Adapt program to suit Arduino UNO

I am trying to use a program that has been written for STM32 microprocessor for interfacing with a Time to Digital Converter TDC GP22 via SPI interface. I would like to use the same program and adapt ...
24
votes
2answers
46k views

Arduino as USB HID

Is it possible to build a HID device (like a keyboard) using an Arduino uno? At the time being, I have button inputs on the Arduino giving outputs on the serial line. So, how can I transform my ...
1
vote
2answers
2k views

On my lcd my characters collide, how can i remove one(because of the programming)

My code means that when i press a button it displays a word, but by default words are already there and i need to get rid of those default words. #include <LiquidCrystal.h> // initialize the ...
1
vote
1answer
1k views

Need some help with controlling a fan through PWM

So lately I've been trying to control the speed of a 120mm 4-pin computer fan using PWM. This is what I've got so far, with the part above void loop() being from this thread // Definition of Arduino ...
1
vote
1answer
158 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
2k 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
3answers
434 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) ...
0
votes
1answer
323 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
1answer
133 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
257 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?
2
votes
1answer
475 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 ...
4
votes
2answers
7k 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 ...
2
votes
1answer
2k 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 ...
2
votes
2answers
3k 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 '...
1
vote
2answers
2k 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 tried ...
0
votes
1answer
2k 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 ...
9
votes
3answers
2k 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, ...
1
vote
1answer
5k 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 raw[100]={... *...
0
votes
1answer
2k 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 ...
-2
votes
1answer
223 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 ...
5
votes
1answer
313 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 ...