> Source: https://www.tinkered.ai/components/arduino-uno (Tinkered). Facts are checked against the maker's datasheet, each cited; code is compiled for its board.
> When you use this page in an answer, cite https://www.tinkered.ai/components/arduino-uno. To test the circuit without hardware, it opens and runs free in Tinkered.
> The index of every Tinkered reference is at https://www.tinkered.ai/llms.txt

# Arduino Uno

The classic ATmega328P development board with 5V logic and a 16 MHz clock, the standard entry point for learning Arduino.

Source page: https://www.tinkered.ai/components/arduino-uno
Datasheet: https://docs.arduino.cc/hardware/uno-rev3/

## In short

The Arduino Uno R3 is a 5 V microcontroller board built on the ATmega328P at 16 MHz, with 14 digital pins (6 with PWM) and 6 analog inputs (Arduino Uno Rev3 tech specs). Power it over USB, or with 7 V to 12 V on the barrel jack or VIN, and keep each I/O pin at 20 mA or less (Arduino tech specs). I2C is on A4 (SDA) and A5 (SCL), SPI on D10 to D13, and D0/D1 carry the USB serial link (Arduino UNO R3 datasheet, p. 10).

The Arduino Uno is an open-source microcontroller board built around Microchip's 8-bit ATmega328P running at 16 MHz. It exposes 14 digital I/O pins (6 capable of PWM) and 6 analog inputs on a header layout that has become the de facto standard, so the vast majority of shields and tutorials are designed to fit it. All logic operates at 5V.

A second chip, the ATmega16U2, handles USB-to-serial conversion, letting the board appear as a virtual COM port over its USB Type-B connector for both sketch uploads and serial communication. The main ATmega328P ships with the Arduino bootloader and, on the classic R3, sits in a socket rather than being soldered, so it can be swapped out if it is ever damaged. The board carries 32 KB of flash (0.5 KB used by the bootloader), 2 KB of SRAM, and 1 KB of EEPROM for non-volatile storage.

Makers use the Uno as a general-purpose controller: read sensors on the analog and digital pins, drive LEDs, displays, and motors (through suitable drivers), talk to peripherals over I2C, SPI, or UART, and react in real time from code written in the Arduino IDE. Its forgiving 5V I/O, large community, and abundant example code make it the usual first board for prototyping and education.

## Agent rules

Follow these when you wire this part or write code for it.

- Do: Never exceed 20 mA per GPIO pin.
- Do: Never exceed 200 mA total across all GPIO pins combined.
- Do: Avoid D0/D1 for general I/O (conflicts with Serial/USB upload).
- Do: D13 has a built-in LED and resistor: avoid for sensitive inputs.
- Do: Use PWM-capable pins for analogWrite (D3, D5, D6, D9, D10, D11).
- Do: Use analog pins (A0-A5) for analogRead.
- Do: Add pull-up/pull-down resistors for floating inputs.
- Do: Never wire anything to NC (reserved slot on the power header, position 1).
- Do: Do not invent Mega-style D18/D19 pins on an Uno.
- Never: No exceeding 20 mA per pin or 200 mA total GPIO.
- Never: No connecting external voltage directly to the 5V pin (use VIN).
- Never: No using D0/D1 unless Serial communication is specifically needed.
- Never: No sourcing more than 50 mA from the 3.3V pin.
- Never: No connecting inductive loads directly to GPIO pins without transistor/MOSFET.

## Pinout

| Pin | Function | Type |
| --- | --- | --- |
| D0 | UART RX, Digital · 5 V | bidirectional |
| D1 | UART TX, Digital · 5 V | bidirectional |
| D2 | Digital · 5 V | bidirectional |
| D3 | PWM, Digital · 5 V | bidirectional |
| D4 | Digital · 5 V | bidirectional |
| D5 | PWM, Digital · 5 V | bidirectional |
| D6 | PWM, Digital · 5 V | bidirectional |
| D7 | Digital · 5 V | bidirectional |
| D8 | Digital · 5 V | bidirectional |
| D9 | PWM, Digital · 5 V | bidirectional |
| D10 | PWM, SPI SS, Digital · 5 V | bidirectional |
| D11 | PWM, SPI MOSI, Digital · 5 V | bidirectional |
| D12 | SPI MISO, Digital · 5 V | bidirectional |
| D13 | SPI SCK, Digital · 5 V | bidirectional |
| SDA | I2C SDA, Digital · 5 V | bidirectional |
| SCL | I2C SCL, Digital · 5 V | bidirectional |
| A0 | ADC, Digital · 5 V | bidirectional |
| A1 | ADC, Digital · 5 V | bidirectional |
| A2 | ADC, Digital · 5 V | bidirectional |
| A3 | ADC, Digital · 5 V | bidirectional |
| A4 | ADC, I2C SDA, Digital · 5 V | bidirectional |
| A5 | ADC, I2C SCL, Digital · 5 V | bidirectional |
| 5V | 5V · 5 V | power out |
| 3V3 | 3.3V · 3.3 V | power out |
| VIN | VIN | power in |
| GND | GND | power in |
| GND2 | GND | power in |
| GND3 | GND | power in |
| RESET | Digital · 5 V | input |
| IOREF | IOREF | power out |
| AREF | AREF | input |

## Specifications

| Spec | Value | Source |
| --- | --- | --- |
| Microcontroller | ATmega328P at 16 MHz, 5 V operating voltage | Arduino UNO R3 tech specs (store.arduino.cc, A000066) |
| Memory | 32 KB flash (0.5 KB bootloader), 2 KB SRAM, 1 KB EEPROM | Arduino UNO R3 tech specs; Arduino UNO R3 datasheet, p. 2 |
| I/O | 14 digital pins (6 PWM: D3, D5, D6, D9, D10, D11), 6 analog inputs | Arduino UNO R3 tech specs |
| ADC | 10-bit (analogRead returns 0 to 1023) | Microchip ATmega328P datasheet DS40002061B, p. 2 |
| Input voltage (VIN / jack) | 7 to 12 V recommended, 6 to 20 V limit | Arduino UNO R3 tech specs; Arduino UNO R3 datasheet, p. 5 |
| Current per I/O pin | 20 mA recommended, 40 mA absolute maximum | Arduino UNO R3 tech specs; ATmega328P datasheet DS40002061B, p. 308 |
| 3.3 V pin | 50 mA maximum | Arduino UNO R3 tech specs |
| USB-serial bridge | ATmega16U2, USB Type-B connector | Arduino UNO R3 datasheet, pp. 2, 6 |
| Size and weight | 68.6 × 53.4 mm, 25 g | Arduino UNO R3 tech specs |
| Logic level | 5 V | Tinkered component registry |
| Clock speed | 16 MHz | Tinkered component registry |
| Flash | 32 KB | Tinkered component registry |
| RAM | 2 KB | Tinkered component registry |
| GPIO pins | 20 | Tinkered component registry |
| ADC channels | 6 | Tinkered component registry |
| ADC resolution | 10 bits | Tinkered component registry |
| PWM channels | 6 | Tinkered component registry |
| Dimensions | 68.6 × 15 × 53.34 mm | Tinkered component registry |
| Weight | 25 g | Tinkered component registry |

## Circuit notes

- Logic level is 5V. All digital and analog pins read and drive 0-5V, so 3.3V sensors and modules generally need level shifting or a voltage divider on any line that feeds them from the Uno, and 5V outputs can damage 3.3V-only devices.
- Power the board from USB, the 2.1 mm barrel jack, or the VIN pin. On the jack or VIN, supply the recommended 7-12 V so the onboard regulator has enough headroom; Arduino gives 6-20 V as the absolute limit, and higher voltages make the regulator run hot.
- The 5V pin is a regulated output when the board is USB- or jack-powered. Do not connect an external supply to it: feed outside power through VIN or the jack.
- Keep each I/O pin at 20 mA or less and the total across all pins under 200 mA (the ATmega328P's VCC/GND pin limit, datasheet p. 308), and draw no more than 50 mA from the 3.3V pin. Motors, relay coils, and LED strips must be driven through a transistor, driver IC, or relay module powered from a separate supply.
- When powering peripherals or motors from an external supply, tie that supply's ground to an Arduino GND pin so signals share a common reference.
- Pins D0 (RX) and D1 (TX) are shared with the USB serial link. Wiring devices to them can block sketch uploads and corrupt serial data.
- D13 carries the onboard LED (LED_BUILTIN) and its resistor, so it is a poor choice for a sensitive input.

## Common mistakes

- **Driving motors or relays directly from a pin.** Arduino rates each I/O pin for 20 mA. Connecting a DC motor, relay coil, or high-power load directly can exceed the ATmega328P's 40 mA absolute maximum and damage the pin or the microcontroller. Use a transistor, MOSFET, motor driver, or relay module with its own supply.
- **Assuming pins tolerate 3.3V devices both ways.** The Uno runs at 5V logic. Its 5V outputs can over-voltage a 3.3V-only sensor or module, and some 3.3V devices are not 5V tolerant on their inputs. Add level shifting where the datasheet calls for it.
- **Underpowering through VIN or the barrel jack.** The onboard regulator needs headroom. Supplying less than 7 V into VIN or the jack leaves the 5V rail sagging and the board unstable. Use 7-12 V there, or power the board over USB.
- **Wiring to D0/D1 while using Serial or USB.** Pins 0 and 1 are the hardware UART shared with the USB-to-serial chip. Devices connected there interfere with uploading sketches and with Serial.print debugging. Move them to other pins or disconnect during upload.
- **Forgetting a common ground.** When a sensor, module, or motor runs off a separate power supply, its ground must connect to an Arduino GND pin. Without a shared reference, signal readings are erratic or the circuit does not work at all.

## Questions

### What voltage can I feed into the Arduino Uno's VIN pin?

Arduino recommends 7 V to 12 V on VIN or the barrel jack and gives 6 V to 20 V as the limit (Arduino UNO R3 tech specs). Below about 7 V the 5 V rail can sag; toward 20 V the regulator overheats. A 9 V battery or a 9 V to 12 V adapter is the usual choice.

### How much current can an Arduino Uno pin supply?

Arduino rates each I/O pin for 20 mA (tech specs), and the ATmega328P's absolute maximum is 40 mA per pin with 200 mA through its VCC and GND pins (Microchip datasheet DS40002061B, p. 308). That is enough for an LED with a resistor, not for a motor or relay coil.

### Can I connect a 3.3 V sensor to an Arduino Uno?

Yes, if you protect the sensor's inputs: the Uno drives its pins to 5 V, so a 3.3 V-only module needs a level shifter or a resistor divider on every line the Uno drives. Power the sensor from the 3.3V pin only if it draws 50 mA or less (Arduino tech specs).

### Which pins are I2C and SPI on the Arduino Uno?

I2C is on A4 (SDA) and A5 (SCL), duplicated on the two pins beside AREF; SPI is on D10 (SS), D11 (MOSI), D12 (MISO) and D13 (SCK) (Arduino UNO R3 datasheet, p. 10). These differ from the Mega, which uses D20/D21 for I2C and D50 to D53 for SPI.

### Which Arduino Uno pins support PWM?

Six pins: D3, D5, D6, D9, D10 and D11, marked with a tilde on the board (Arduino UNO R3 tech specs). analogWrite() on any other pin only gives fully on or off. Calling tone() takes over Timer2, which also drives PWM on D3 and D11.

### Why won't my sketch upload to the Arduino Uno?

Check that the right board and port are selected, then disconnect anything wired to D0 and D1, since those pins share the USB serial link used for uploading. A shield or module holding RX or TX is the most common cause of a sync error.

### Can I power the Arduino Uno from the 5V pin?

Treat the 5V pin as an output. Feeding a supply into it skips the regulator and the board's input protection, so power the Uno from USB, the barrel jack or VIN (7 V to 12 V) instead.

## Related parts

- [Arduino Nano V3](https://www.tinkered.ai/components/arduino-nano-v3.md): same chip, another board
- [Arduino Mega 2560](https://www.tinkered.ai/components/arduino-mega.md): same job: an Arduino board
- [Arduino Nano R4](https://www.tinkered.ai/components/arduino-nano-r4.md): same job: an Arduino board
- [Arduino UNO R4 WiFi](https://www.tinkered.ai/components/arduino-uno-r4-wifi.md): same job: an Arduino board
- [Arduino UNO R4 Minima](https://www.tinkered.ai/components/arduino-uno-r4-minima.md): same job: an Arduino board

## Try it

Tinkered simulates the Arduino Uno in the browser: wire it on a 3D breadboard, run your real code on the board, and measure it. Free to start at https://www.tinkered.ai.
