Questions tagged [arduino-uno]

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

Filter by
Sorted by
Tagged with
3
votes
3answers
2k views

Arduino PWM fading led

I am trying to blink an LED with PWM on Arduino. I don't know what is wrong but my LED is not fading as expected. What is wrong? I think that I have bad registers settings, but I am not sure. LED ...
0
votes
1answer
104 views

How to program arduino for ethernet with only usb cable

I have arduino UNO r3 ATMEGA 328P board and this kind of a cable. But I want to make and test a program that need to get the data through ethernet port. Can I do only with them. I want to know whether ...
-5
votes
2answers
79 views

Reading speed of different arduinos

I'm thinking about using an Arduino for one of my Projekts. This would require that the Arduino can read/write a digital input/output in the order of 100kHZ to 1MHz. Is this possible or do I have to ...
1
vote
2answers
3k views

Reading the rpm of multiple fans

I am trying to build a fan controller for my pc, the problem is that the example code(http://playground.arduino.cc/Main/ReadingRPM) im using utilizes interrupts. On my uno I can then only read the rpm ...
1
vote
1answer
327 views

Detecting ball moving between IR pair and handling ambient light changes

I plan to use the SEN-00241 IR Emitter and Detector pair to detect a ping pong ball moving fast between them. I understand I could watch for voltage changes to detect this passing object, however how ...
1
vote
3answers
3k views

Serial port /dev/cu.usbmodemfa131 vs /dev/cu.usbserial-A702NY8S

On Mac OSX Mavericks, why does Arduino Uno uses serial port named /dev/cu.usbmodemfa131 while Arduino Nano uses /dev/cu.usbserial-A702NY8S? Are they using different FTDI drivers?
1
vote
1answer
1k views

Wired serial connection between two Arduinos - do they need a common Ground (GND)?

I would like to connect two Arduinos by a serial connection. Is it sufficient to connect TX1<-->RX2 and RX1<-->TX2 or do I also need to connect the GND of the two Arduinos?
-1
votes
1answer
2k views

what is the coversion details of temperature usnig lm35?

I found similar type of code in many sites for coverting analog signal lm35 to centigrade. But i can't understand that fully. So I need some help what this equation means tempC = (5.0 * tempC * 100.0)...
1
vote
1answer
514 views

How does this code work?

I've found this code below, but I can't figure out how it works. Can someone explain to me the flow of the program? #include <LiquidCrystal.h> LiquidCrystal lcd(2, 3, 10, 7, 5, 4); int mem=0; ...
0
votes
2answers
2k views

Problems controlling servos using proximity sensor

I've just started using Arduino and I need to make a code to simulate the behavior of a lizard, meaning that if you come close to it, it moves away from you. I'm using a "Arduino duemilanove" that my ...
1
vote
1answer
1k views

Calculating location with 4 piezo's

i've got the following problem i'd like to get solved and i'm breaking my head, so please help! I have a rectangle with the following size 40 cm * 50 cm. On each corner of this rectangle I placed a ...
1
vote
1answer
3k views

Setting up the MMA8452 to trigger interrupt

I am working with the MMA8452q accelerometer by Freescale. I am trying to set it up to be in low power mode, to go to sleep when no motion has happened, and to wake up due to motion being detected ...
0
votes
1answer
5k views

Problems with Dallas temperature sensor code

I have connected up my temperature sensor and I am trying to run the one wire address finder to find the address of the sensor. The problem is that when I run the code it gives me the error: 'OneWire'...
0
votes
1answer
334 views

Unable to light up all the LEDS connected to Arduino using processing

I have 3 LEDs connected to my arduino which are controlled via laptop key presses with processing. While the LEDs are able to light up when the respective buttons are pressed, i am unable to light up ...
1
vote
1answer
1k views

Reading text/strings via processing

I'm trying to control an led attached to my arduino via key presses on my laptop.When i hold down a key, the led should light up, and when i release the key, the led should turn off. While my code ...
1
vote
2answers
1k views

Arduino time(milli) and pressure sensor

I've succeeded to get an Arduino to work with a pressure sensor. What I want to do is when I put pressure on the sensor, after 5 minutes the led lights on. it starts over again if there's no ...
0
votes
1answer
8k views

Keyboard/mouse libraries with UNO [duplicate]

I have an Arduino Uno Rev. 3 and I'm trying to make it so that the Arduino can send a key press / mouse action to the computer. However, these libraries are restricted to a few other versions of the ...
3
votes
1answer
1k views

Modifying serial message for Adafruit NFC/RFID card

Using an Uno configured with an Adafruit RFID-NFC shield to send the UID values to a desktop game I am building. Works fine. However, in addition to just the UID, I need to send 1 additional value, ...
0
votes
1answer
643 views

Zigbee Relay board communication with Arduino

I have bought this wireless ZigBee relay board. I was wandering about an arduino sketch to get started, I have searched for 2 days now but with no results. What I was thinking of is to have an ...
0
votes
2answers
99 views

Processing Input

How to make an input from computer using processing (like a password form) and trigger pin in arduino? If you let some link to read more that would be very helpful.
0
votes
0answers
28 views

Weirdest behaviour with arduino and bootloaders for GPS [duplicate]

I have an EM408 GPS and an Arduino Duemilanove with an ATMega328. I have the following code to talk to the GPS and get raw data: #include <SoftwareSerial.h> SoftwareSerial GPS = SoftwareSerial(...
3
votes
1answer
4k views

Do I need to use a resistor if I am using a potentiometer to control an LED's brightness?

I am currently tinkering with an arduino, and am using a potentiometer to change the brightness of an LED. I understand that usually, a resistor is added to the circuit to limit the current flowing ...
7
votes
1answer
3k views

Why does increasing resistance make a capacitive sensor more sensitive?

From the Capacitive Sensor Page on the Arduino website, it states the following: The capacitiveSensor method toggles a microcontroller send pin to a new state and then waits for the receive pin to ...
1
vote
1answer
6k views

How to use String.substring?

I have the following code in which requestLine is always empty and I can't figure out why. request contains a raw HTTP request, and I want to get the first line of the request which contains the ...
1
vote
1answer
149 views

How do I avoid this error trying to connect arduino to pc with linux fedora 20

I used Arduino successfully on my old Linux Fedora 12 system. Now I have a brand new PC with Fedora 20, and have today installed Arduino on it. In my first attempt to use it I typed Arduino as follows ...
6
votes
2answers
6k views

bootloader uploading into Atmega328

Here is mine circuit. Intially i used arduino UNO directly for programming. Now i am Using atmega 328 IC for programming. I am trying to connect 32 hall sensor via Mux circut. I wanted to How to ...
1
vote
2answers
2k views

Error while connecting Arduino to Macbook: “serial port already in use. try quitting any programs that may be using it”

I'm trying to connect to my Arduino board through a macbook pro with mac os x 10.9.3 installed. I'm following the instructions from the arduino guide and in the connection section: " Connect the ...
4
votes
3answers
1k views

Significance of the numbers used in the manual

i just bought the starter kit and am currently working my way through the examples in the book when i came across some numbers used in the manual that seems a little too specific. For example, in ...
1
vote
2answers
219 views

help with input in a Simon arduino uno game

I' making a Simon game with the arduino uno. I know something is wrong with the inputs but i don't know why or how to fix it. The problem is the program takes an input and says it is correct no ...
3
votes
1answer
3k views

Reset fuses on atmega328p using Arduino

I bought a few atmega328p chips but unfortunately they came with the Arduino bootloader and they are set to use the external clock. I want to reset their fuses using avrdude so I can use the internal ...
0
votes
2answers
446 views

Stacking shields without headers

In the project I am working on, I have a limited space with which I can work. I am using an Arduino Uno with 2 Adafruit motor shields, and when I stack them using normal, female stacking headers it is ...
2
votes
0answers
629 views

Negative value conversion for modbus slave

I have an analog sensor which reads values 0-5v, -75 degrees to 75 degrees. Now I have converted to +75 degrees and -75 degrees format depend on the voltage. From 2.5v to 5v data is read properly (i....
-2
votes
1answer
911 views

Analog average sample wind speed sensor

I have wind speed sensor that can measure max speed upto 30 m/s with analog out put 0-5v. I have simple code calling from the loop. When I put the wind speed average code, the web server is not ...
2
votes
1answer
869 views

Connect to more than one Arduino with Adobe AIR

I am using the arduinconnector ANE to connect to an arduino baord in an AIR application. https://code.google.com/p/as3-arduino-connector/ Can anyone tell me if its possible to connect to more than 1 ...
3
votes
1answer
422 views

Setting time frame in Arduino Uno

I have built the circuit below using mux ICs. In a particular interval the respective selector pins get selected and analog signal from hall sensors are read and give a particular analog value out. ...
1
vote
0answers
40 views

How to communicate arduino with Matlab [duplicate]

I have been working on a project which deals with analysing data from sensors to matlab. How do i establish this communication. Please help me
3
votes
1answer
778 views

Timer1 stops firing

I am trying to use interrupts to play notes on a speaker. Timer2 works fine, but after about 15 seconds, Timer1 stops firing for about 5 seconds, and then it comes back on. If I keep running the ...
3
votes
1answer
644 views

To connect a simple toy circuit and trigger with an arduino?

I have a small circuit from a toy sword that has an LED and a small speaker. It was powered by a couple of small coin cells. I am trying to figure out how to connect it to my Arduino so I can trigger ...
4
votes
1answer
603 views

Can a PC connect to an Arduino for serial communication without installing the entire dev kit?

I'd like to send a prototype board to a friend pre-programmed and wired. Ideally they should just need to plug in the USB and connect to it over a serial COM port. With another laptop I used for ...
1
vote
1answer
872 views

Unable to read text file from server

I saw the Web client Example , In the example, the server connection is initialized in setup(). But I want the server to update the text file every time. So, I need the server connection to be in ...
0
votes
1answer
709 views

DC-DC converter with Arduino not working

I've got a program running on the Arduino that is supposed to turn on and off a pump. currently, I am outputting the reads of the components that need to be read and it shows when the port (port 13) ...
7
votes
2answers
3k views

Use Higher Resistance Than Instructed in a Circuit

I'm following the "Get Started with Arduino" Guidebook, and I'm at the part where pulse width modulation (PWM) is discussed. The instructions say to create a simple circuit with a breadboard, red ...
-2
votes
1answer
1k views

Cheapest way to connect android device to arduino wirelessly

I'm building a simple RC car which I want to control using android phone. The phone has bluetooth and Wi-Fi. My questions is what will be the cheapest way to connect the two devices at about 50-120m ...
7
votes
2answers
2k views

Convert a Bitstring into an integer value

I have got a String filled up with 0 and 1 and would like to get an Integer out of it: String bitString = ""; int Number; int tmp; bitString = ""; for (i=1;i<=10;i++) { tmp= analogRead (...
0
votes
1answer
2k views

Adafruit motor shield + Adafruit stepper not working

I have the Adafruit Motor Shield V2 and an Adafruit stepper motor. I have not soldered the shield onto the Arduino (which is an Uno) yet because I don't want to make anything permanent yet. I have the ...
5
votes
1answer
2k views

How to make XBee module interrupt/wake arduino

What I am trying to do is, to have arduino in low power mode and waking up only when a packet is received and is available to be read from the buffer. A scenario : Zigbee XBee module is not ...
13
votes
4answers
25k views

What's the deal with Uno's pin 13 LED?

(I have a Sparkfun RedBoard, but this question seems to apply to R3 Unos and Uno-compatible boards.) As I was building the first circuit in my SIK guidebook (add a resistor, LED, hook it up and make ...
-2
votes
1answer
433 views

Receive SMS example gives me a garbage values

When I run my Receive SMS example code, By default every time I get the same thing.I am trying to send sms to my sim card present in the Arduino GSM shield. I don't want this message. How to solve ...
1
vote
1answer
345 views

digital pin's current limit, ohm's law and DC motor

A digital pin's output voltage on an UNO board is 5V, which is equal to the output from the VCC. I read that the DC current limits of those pins are 40mA and 200mA respectively, and that a higher ...
5
votes
1answer
361 views

Is the Sparkfun RedBoard pre-loaded with a blink sketch?

As soon as I plugged my brand new RedBoard (Sparkfun's Uno) into my computer, I saw the onboard LED (for pin 13) blink on and off every 1 second. This was before I even sent the first demo sketch to ...