Questions tagged [arduino-uno]

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

The Arduino Uno has become one of the most popular Arduino boards and is now in its third official revision. It is available in DIP and SMD configurations and supports a wide range of shields. There are also many third-party clones that use the same layout and specifications.

Use this tag when asking a question about using Uno boards (or exact clones), for example, asking about shield compatibility or pin configuration. Alternatively, use the tag when the question is specific to the surface-mount version of the Uno (as opposed to the DIP version).

From the official Arduino site:

Arduino Uno

Arduino/Genuino Uno is a microcontroller board based on the ATmega328P (datasheet). It has 14 digital input/output pins (6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button. It contains everything needed to support the microcontroller; Connect it to a computer with a USB cable or power it with an AC-to-DC adapter or battery to get started.

Technical specs

  • Microcontroller: ATmega328P
  • Operating Voltage: 5V
  • Input Voltage (recommended): 7-12V
  • Input Voltage (limit): 6-20V
  • Digital I/O Pins: 14 (of which 6 provide PWM output)
  • PWM Digital I/O Pins: 6
  • Analog Input Pins: 6
  • DC Current per I/O Pin: 20 mA
  • DC Current for 3.3V Pin: 50 mA
  • Flash Memory: 32 KB (ATmega328P) of which 0.5 KB used by bootloader
  • SRAM: 2 KB (ATmega328P)
  • EEPROM: 1 KB (ATmega328P)
  • Clock Speed: 16 MHz
  • LED_BUILTIN: 13

Notes

  • The "Input Voltage" above refers to the power input (to the power jack), not the amount of voltage you can put on the input pins (which is a maximum of 5 V).

  • The six analog input pins can also be used as digital pins, so you actually have 20 pins that can be used for digital input/output.

Resources

8146 questions
105
votes
3 answers

Have I bricked my Arduino Uno? Problems with uploading to board

I can't upload sketches to my Arduino Uno. Have I "bricked" it? What steps can I take to work out what is wrong? What can I do to fix it?
Nick Gammon
  • 38,901
  • 13
  • 69
  • 125
83
votes
9 answers

How can I create multiple running threads?

Is there a way I can have multiple parts of the program running together without doing multiple things in the same code block? One thread waiting for an external device while also blinking a LED in another thread.
Bja
  • 953
  • 1
  • 8
  • 8
67
votes
2 answers

How do you use SPI on an Arduino?

With reference to the Arduino Uno, Mega2560, Leonardo and similar boards: How does SPI work? How fast is SPI? How do I connect between a master and a slave? How do I make an SPI slave? Please note: This is intended as a reference question.
Nick Gammon
  • 38,901
  • 13
  • 69
  • 125
65
votes
13 answers

Is there a way to have more than 14 Output pins on arduino?

Is it possible to have more than 14 output pins on the Arduino, I am working on a project in which I need to light up several LEDs individually. I only have an Arduino Uno, and I don't want to get a Mega.
JVarhol
  • 1,903
  • 2
  • 17
  • 22
54
votes
2 answers

What happens if I power the Arduino with both the USB and external power voltage simultaneously?

I am a new Arduino user. I am not sure whether I can connect both USB and external supply through power adaptor to Arduino simultaneously. Would this burn the controller? Basically, I want to automatically shut down the computer after saving all…
Jagat
  • 563
  • 1
  • 5
  • 5
49
votes
11 answers

Is an Arduino capable of running 24/7?

I'm making a simple Arduino web server and I want to keep it turned on all the time. So it must endure to stay working continuously. I'm using an Arduino Uno with a Ethernet Shield. It's powered with a simple outlet power supply 5V @ 1A. My…
Butzke
  • 802
  • 1
  • 7
  • 21
47
votes
11 answers

Mac OSX Yosemite no serial ports showing for Uno R3

I have a MacBook Pro running OS X Yosemite (10.10.3). I connected my Arduino UNO R3 to my computer for the first time after the Yosemite upgrade - it worked fine before this! When I opened the Arduino IDE I selected Tools > Board > "Arduino UNO",…
revive
  • 571
  • 1
  • 4
  • 3
35
votes
12 answers

How can I connect to an Arduino using WiFi?

I'm working on building a solar powered, Arduino based weather station. The weather station consists of a temperature sensor and a photoresistor, and I plan to add an anemometer in the future. I would like to connect the weather station to my…
jlbnjmn
  • 978
  • 2
  • 9
  • 15
35
votes
3 answers

What are the AREF, IOREF, and the unlabeled pin next to IOREF on the Uno R3?

There are some pins on the Arduino which I haven't been able to find out anything about: IOREF AREF An unlabeled one next to IOREF What are they?
tbodt
  • 453
  • 1
  • 6
  • 8
34
votes
14 answers

Most compact method of powering Arduino from wall socket

There are a lot of methods to power an Arduino from a large range of voltages: USB cable from PC or from a phone charger or an USB hub step down converters step up converters switching power supply batteries (connected to the power jack or USB or…
vlad b.
  • 749
  • 2
  • 7
  • 13
30
votes
2 answers

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 current firmware into something that can behave like a…
Stuyvenstein
  • 435
  • 1
  • 5
  • 6
30
votes
3 answers

What is Serial.begin(9600)?

I know that this is to initialize something: Serial.begin(9600); But I want to know what it really means?
shajib0o
  • 551
  • 2
  • 6
  • 9
29
votes
8 answers

How can I get a unique ID for all my Arduino boards?

Once you have uploaded a sketch to one of your Arduino boards, it is hard to know exactly what source code led to that sketch. Indeed, you may change the source code of your sketch on your PC without updating it (in binary format) to your board. I…
jfpoilpret
  • 9,162
  • 7
  • 38
  • 54
27
votes
2 answers

Arduino USB Power vs External Power Supply

Why is the Arduino able to accept ~5V from the USB, but requires a min of 7V when using an external power supply?
Nyxynyx
  • 1,419
  • 4
  • 23
  • 25
23
votes
2 answers

Why can't I upload a sketch while other components/devices are connected to my Uno?

I wanted to make a fairly simple circuit which would flash a series of LEDs in sequence, using my Arduino Uno (more specifically, a SainSmart clone). I wrote my sketch and it compiled fine. After that, I connected 8 LEDS+resistors to pins 0 through…
Peter Bloomfield
  • 10,982
  • 9
  • 48
  • 87
1
2 3
99 100