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
5answers
7k views

Arduino communicating back and forth with PHP server

I am researching to find the best method to work with in order to control the arduino from a web interface (hosted on a web server using PHP) and also sending data from arduino to webserver and save ...
6
votes
3answers
19k views

How to reset ATmega328P fuses using USBasp programmer?

I think I bricked two ATmega328Ps when I was trying to burn new bootloaders using Arduino Pro Mini, the USBasp programmer and the Extreme Burner AVR software. I had two ATMega328p with bad booloaders ...
3
votes
1answer
3k views

MCP7940 RTC Library

I am looking to implement a Microchip MCP7940 real time clock into my sensor data logging circuit that I have based on the Uno. Would the most logical solution be to attempt at changing an existing ...
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 ...
2
votes
1answer
678 views

Is there some sample code for operating a servo with an Adafruit Motor Shield?

I have an Adaruit Motor Shield v2, and a Tower Pro SG92R micro servo. I've got it setup so the shield works with my Arduino Uno, and I've successfully tested using other types of motors on the shield. ...
2
votes
1answer
127 views

Frequency will not change

I am working on a project where I am trying to get an input signal filtered according to its frequency. I checked the signal before it went into my DSP algorithm to see where the problem was and I ...
2
votes
4answers
3k views

What background do I need to have before starting Arduino? [closed]

Like: basics of electrical circuits, etc.. In order to go far in Arduino and electronics.
-1
votes
1answer
435 views

Can Arduino intercept USB data?

A friend of mine has a Zebra label printer. When connected to one of her laptops it prints out normally but when connected to another (which she wants to use) it inserts blank labels between printed ...
1
vote
3answers
1k views

why there is 4 ground in l293d? [closed]

I am using L293d motor driver to drive 2 motors simutaniusly in several direction. But I am not shure why there is 2 Vcc and 4 GND in this IC. Can anyone tell explain it? Thank You...
2
votes
1answer
2k views

Controlling Arduino through MATLAB?

I had a Roboteq motor controller, but it wasn't fast enough. I'm hoping Arduino will be faster. Supposing that the transfer is fast enough for my purposes, how can I read angular velocity, given that ...
0
votes
1answer
590 views

Unexpected behavior of sprintf with i32/u32

I'm trying to build a string of characters from several elements given by the TinyGPS++ library with the use of sprintf(). This is my code making the string and printing it in the serial monitor. ...
6
votes
3answers
27k views

I2C 2 way communication between Arduino Uno and Arduino Mega

If I remove the transmission code from slave this works properly but I need to transmit from slave. Here is my master code #include <Wire.h> void setup() { Wire.begin(3); Wire.onReceive(...
2
votes
1answer
995 views

Controlling an LED with the 74HC4067E multiplexer

I am testing a 74HC4067E MUX setup with my Arduino Uno which I would like to use to selectively light up many LEDs, one at a time. For this first test, I am using a modified version of the blink ...
2
votes
1answer
282 views

Arduino Laser Trip Wire with Analytics

I've done this laser trip wire: http://www.instructables.com/id/Another-Arduino-Laser-Tripwire/ Got it working, and now I'd like to send info to analytics - to measure how many times I enter the ...
2
votes
1answer
702 views

Arduino Uno rev 3 toggling a 230 V submersible pump on intervals

I am software programmer and hobby farmer. While I was working on a hydroponic farming stuff, I had to use submersible pumps with timers. I don't want to buy timers that are actually a tedious ...
1
vote
1answer
347 views

Arduino Uno wiring and code with Parallax PMB-688

I'm new to Arduino GPS and am wondering if I could be pointed in the right direction regarding code and wiring when hooking up my Parallax PMB-688 to an Arduino Uno
0
votes
2answers
1k views

Read Arduino code generated by Simulink

I am trying to do a Hardware-in-the-loop (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 ...
-1
votes
1answer
977 views

Grid Based navigation [closed]

I have a Dodecagonal mobile robot base with 12 HC sr04 ultrasonic range finders mounted and connected to an arduino. I would like to use them to avoid obstacles and make the robot find the best way ...
1
vote
1answer
507 views

7 Segment Display SET UP

I am new to Arduino. I have been trying to connect a 7 segment display (3 digits) to my Arduino and I was successful, but I am not doing any connection to ground. I do not find the data sheet so I am ...
-1
votes
2answers
73 views

Keyboardmessage on Arduino UNO

Can an Arduino UNO and Arduino Leonardo do the same things? Some of the examples in the Arduino software say to use Leonardo e.g. KeyboardMessage.
1
vote
1answer
330 views

splitable jumper wires question

I just received my starter kit from oddwires.com today and it came with a split-able ribbon cable for prototyping. I was curious if it is possible to split each wire off and use only what I need to ...
0
votes
5answers
4k views

Can't send serial data throught serial pins but it works with the usb port

I am just starting out a project and I am having a little bit of trouble. I want to send data collected from an IR distance sensor, and send it with an XBee Pro S2B to my computer so I can do other ...
1
vote
1answer
101 views

Why voltage at AREF is given by Vin * R2 / Rtotal

In chapter 4 of Arduino Workshop on page 85 (or page 31 in the pdf) it says that the voltage at AREF in the schematic is given by: Vin * R2 / (R2 + R1) However, the voltage is flowing from 5V to ...
3
votes
4answers
8k views

SRF04 Ultrasonic sensor - inaccurate readings

I have an Arduino Uno linked up to an SRF04 ultrasonic sensor. I'm using the library from here: https://code.google.com/p/srf04-library/ I'm then using the basic script "Centimeter" that comes in the ...
0
votes
1answer
102 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
78 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 ...
8
votes
3answers
22k views

nRF24L01 pipe question

I am looking through the example code found here. I know there are 6 pipes that the nRF24L01 module can use but I've been searching the internet for the address designations and have been able to find ...
6
votes
6answers
12k views

Is it possible to press a button from Arduino and my computer will get a key event?

My idea seems easy: I connect a button with arduino, then write some code and upload it to arduino. Then I open the notepad(or any other editor) on my computer. When I press the button, there will ...
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 ...
-1
votes
1answer
754 views

How does RXD/TXD request signal look betwen 16u2 and 328p on oscilloscope?

I have a broken Arduino Uno. The man tells that he connected power supply and USB at the same time. I got the new 16u2 (empty) chip. then asked my friend to re-solder it. He was using an air ...
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
991 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)...
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 ...
0
votes
3answers
2k views

Feasability of flashing Arduino UNO r3 with teensy firmware for HID (keyboard) emulation purposes

I've been working on a DIY keyboard project I have all the hardware designed and now its time for the code. For the microcontroller, I'm sort of locked into an Arduino UNO r3 as I already have it ...
7
votes
4answers
31k views

What is the work of pulseIn?

I have code for an ultrasonic sensor which I found from a site. Here is the code: #define trigPin 12 #define echoPin 13 void setup() { Serial.begin (9600); pinMode(trigPin, OUTPUT); pinMode(...
1
vote
1answer
506 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
1answer
326 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 ...
2
votes
2answers
1k views

How can I reset the program on an Arduino Uno while the device isn't recognised by my computer at all?

So I've recently been playing around with my arduino uno, and today it completely refuses to communicate with my computer at all. I've tried using other cables, switched OS (Tried Windows 8.1 and ...
5
votes
4answers
19k views

How to connect more than 10 sensors to Arduino uno r3

How I can connect more than 10 sensors to Arduino Uno R3? I calculated it and I can connect just 4 fire flame sensors (sensors which can find a fire (a candle, for example)) and maybe 1 ultrasonic ...
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 ...
3
votes
5answers
13k views

How to emulate an analog potentiometer with PWM

I have a piece of electronic that controls a motor. It takes power from AC power. Now there is a 10KOhm Potentiometer. The data sheet of this controller says that the control signal is 10Vcc. Here's ...
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'...
6
votes
2answers
2k views

How to measure voltage with Arduino analog input

I'm totally new to Arduino and to electrodynamics in general. I'm wondering what happens if I connect my digital pin to an analog input on Arduino, and make digitalWrite and analogRead on the ...
12
votes
5answers
18k views

Reducing lag between the arduino and a processing sketch on my computer

I'm currently on project #14 of the Arduino project book. I'm trying to control a processing sketch on my laptop using my Arduino. This is accomplished by using a potentiometer to control the ...
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 ...
0
votes
1answer
618 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 ...
3
votes
1answer
3k 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 ...
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(...
7
votes
2answers
794 views

Arduino ADC Reference Voltage if it is Battery Powered

I am looking to possibly monitor battery power to the Arduino using its ADC. This is fairly straight forward and simple (especially if using the Arduino API); however, if the battery is powering the ...