The Arduino Uno R3 is the board most people start with, and its header is short enough to learn completely in one sitting. This guide walks through it one group at a time: power, digital I/O, PWM, interrupts, serial, SPI, I2C, analog inputs and AREF. Each section highlights the pins on a real Uno drawing, so you always know exactly where to plug in.
In a hurry? The diagram below labels every pin. Further down there's an interactive version: tap any pin to see what it does and what it shares.
Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.
What's Actually on the Board
The Uno R3 runs an ATmega328P, an 8-bit AVR at 16 MHz with 32 KB flash (0.5 KB used by the bootloader), 2 KB SRAM and 1 KB EEPROM. A second chip, the ATmega16U2, turns USB into serial for uploads and the Serial Monitor.
| Feature | Uno R3 |
|---|---|
| Digital I/O | 14 (D0–D13) |
| PWM outputs | 6 (~3, ~5, ~6, ~9, ~10, ~11) |
| Analog inputs | 6 (A0–A5), 10-bit |
| External interrupts | 2 (D2, D3) |
| Hardware UART | 1 (D0, D1), shared with USB |
| SPI | D10–D13, also on the ICSP header |
| I2C | A4 (SDA), A5 (SCL), repeated next to AREF |
| Logic level | 5 V |
Everything on the board plus your 5V loads
Total for the whole chip, however it is split
Enough for one small sensor, not a radio module
Damage threshold, never design to it
Use this for LEDs and logic
Power Pins
The power header sits on the left edge, next to the analog pins. There are three ways in (USB, the barrel jack and VIN) and two regulated rails out (5V and 3.3V).
Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.
| Pin | What it does |
|---|---|
| VIN | Input from an external supply, 7–12 V recommended (6–20 V limits). Goes through the on-board 5 V regulator. The barrel jack feeds the same point. |
| 5V | Regulated 5 V, from USB or from the regulator. An output, not a safe input for higher voltages. |
| 3.3V | Regulated 3.3 V, about 50 mA maximum. |
| GND | Three ground pins, all the same net. |
| RESET | Pull LOW to restart the ATmega328P, same as the button. |
| IOREF | Tells shields the board's logic level. Reads 5 V on the Uno. |
🚨 Danger
Never feed 9 V or 12 V into the 5V pin. It bypasses the regulator and goes straight to the chip. Higher voltages belong on VIN or the barrel jack.
Why 12 V on VIN Gets Hot
The Uno's regulator is linear: it burns the extra voltage as heat. The heat it has to shed is (VIN − 5 V) × current drawn from the 5V rail. The same 200 mA load costs three and a half times more heat at 12 V than at 7 V.
Power motors, servos and LED strips from their own 5 V supply and join the grounds, rather than pulling that current through the board's regulator.
Digital I/O Pins (D0–D13)
Fourteen pins along the top edge. Each can be an input or an output, switching between 0 V (LOW) and 5 V (HIGH).
Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.
pinMode(13, OUTPUT);
digitalWrite(13, HIGH); // on-board LED on
pinMode(7, INPUT_PULLUP); // button between D7 and GND, no resistor needed
bool pressed = (digitalRead(7) == LOW);- Every pin has an internal pull-up of roughly 20–50 kΩ, switched on with
INPUT_PULLUP. - Keep each pin at 20 mA or less, and the whole chip under about 200 mA in total.
- D13 also drives the on-board L LED, which is handy as a heartbeat to show your loop is still running.
PWM Pins (~3, ~5, ~6, ~9, ~10, ~11)
The six pins marked with a tilde (~) can fake an analog output by switching on and off very fast. The duty cycle sets the average voltage your LED or motor sees.
Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.
analogWrite(9, 128); // about 50% duty cycleNot all six run at the same speed. D5 and D6 run at about 980 Hz (Timer0). D3, D9, D10 and D11 run at about 490 Hz (Timers 1 and 2). That's invisible on an LED, but it matters for motor drivers and audio.
⚠️ Warning
The Servo library takes Timer1, so analogWrite() stops on D9 and D10. tone() takes Timer2 and stops PWM on D3 and D11. If a PWM output goes dead after you add a library, this is why.
External Interrupt Pins (D2, D3)
Only D2 (INT0) and D3 (INT1) have true external interrupts. Your code jumps to a handler the instant the pin changes, so it can't miss a fast pulse.
Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.
attachInterrupt(digitalPinToInterrupt(2), onPulse, FALLING);Use them for rotary encoders, flow sensors and tachometers. Every other pin has the slower pin-change interrupt, which takes more code to handle.
Serial (UART) Pins: D0 RX, D1 TX
The Uno has one hardware serial port, and the USB chip uses it too: for uploads and for the Serial Monitor.
Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.
Serial.begin(9600);
Serial.println("Hello from the Uno");⚠️ Warning
Unplug anything wired to D0/D1 before uploading, or the upload fails. A GPS or Bluetooth module on these pins also fights the Serial Monitor. SoftwareSerial can give you a slow second port on two other pins.
SPI Pins (D10–D13)
SPI is the fast bus for SD cards, TFT displays and radios like the nRF24L01. The same four signals also come out on the 6-pin ICSP header in the middle of the board.
Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.
| Pin | SPI signal |
|---|---|
| D10 | SS / CS (chip select) |
| D11 | MOSI (controller out) |
| D12 | MISO (controller in) |
| D13 | SCK (clock), shared with the L LED |
Keep D10 set as an OUTPUT while the Uno is the SPI controller. If it is an input and gets pulled LOW, the chip silently drops into peripheral mode and SPI stops.
I2C Pins (A4 SDA, A5 SCL)
Two wires, many devices: OLEDs, RTCs, IMUs and most sensor breakouts. The same two signals are repeated as SDA and SCL next to AREF on R3 boards.
Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.
#include <Wire.h>
Wire.begin();
Wire.beginTransmission(0x3C); // a common OLED addressEach device needs a unique address, and both lines need pull-ups (typically 4.7 kΩ). Most breakout boards already have them; bare chips don't. Using I2C means you lose A4 and A5 as analog inputs.
Analog Input Pins (A0–A5)
Six inputs feed a 10-bit ADC: readings run from 0 to 1023 across 0–5 V, which is about 4.9 mV per step.
Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.
int raw = analogRead(A0);
float volts = raw * (5.0 / 1023.0);- A0–A5 also work as digital pins D14–D19. Call
pinMode()first, exactly as you would for D2. - Each reading takes about 100 µs.
- A floating input reads random noise, so tie unused pins to GND if you poll them.
- Unlike the Nano, the Uno has no A6 or A7.
AREF: Better Resolution for Small Signals
AREF sets the top of the ADC range. Feed it 2.5 V and call analogReference(EXTERNAL), and a 0–2.5 V sensor uses all 1024 steps instead of half.
Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.
analogReference(EXTERNAL); // call this BEFORE connecting a voltage to AREF
// or: analogReference(INTERNAL); // built-in 1.1 V reference🚨 Danger
Select EXTERNAL before you connect anything to AREF. Until then the internal reference is tied to the pin, and an outside voltage shorts against it.
32 of 32 pins match
Hover or tap any pin on the board
ANALOG IN header · pin 1
A0
Safe to use
10-bit analog input (0 to 1023 across 0 to 5 V). Also works as a normal digital pin.
Nothing else on the board depends on this pin. A good first choice for sensors, LEDs and buttons.
Can be used as
- Analog in
Signals on this pad
- A0
- PC0
- ADC0
Pins That Share a Job
These are the conflicts behind most "it worked yesterday" problems.
| Pin | Shared between | What goes wrong |
|---|---|---|
| D0, D1 | Your device and the USB serial chip | Uploads fail; the Serial Monitor shows garbage |
| D13 | SPI clock and the L LED | LED flickers during SPI; a button on D13 reads unreliably |
| D10 | SPI chip select and controller/peripheral mode | If it is an input and goes LOW, SPI stops |
| A4, A5 | I2C and analog inputs | Using I2C costs you two analog pins |
| D9, D10 | Timer1 and the Servo library | analogWrite() stops on these pins |
| D3, D11 | Timer2 and tone() | PWM stops while a tone plays |
Complete Pin Table
| Pin | Port | Functions | Interrupt |
|---|---|---|---|
| D0 (RX) | PD0 | UART RXD, shared with USB | PCINT16 |
| D1 (TX) | PD1 | UART TXD, shared with USB | PCINT17 |
| D2 | PD2 | Digital I/O | INT0, PCINT18 |
| D3 | PD3 | PWM (Timer2, ~490 Hz) | INT1, PCINT19 |
| D4 | PD4 | T0, XCK | PCINT20 |
| D5 | PD5 | PWM (Timer0, ~980 Hz), T1 | PCINT21 |
| D6 | PD6 | PWM (Timer0, ~980 Hz), AIN0 | PCINT22 |
| D7 | PD7 | AIN1 | PCINT23 |
| D8 | PB0 | CLKO, ICP1 | PCINT0 |
| D9 | PB1 | PWM (Timer1, ~490 Hz) | PCINT1 |
| D10 | PB2 | PWM (Timer1, ~490 Hz), SPI SS | PCINT2 |
| D11 | PB3 | PWM (Timer2, ~490 Hz), SPI MOSI | PCINT3 |
| D12 | PB4 | SPI MISO | PCINT4 |
| D13 | PB5 | SPI SCK, L LED | PCINT5 |
| A0 (D14) | PC0 | ADC0 | PCINT8 |
| A1 (D15) | PC1 | ADC1 | PCINT9 |
| A2 (D16) | PC2 | ADC2 | PCINT10 |
| A3 (D17) | PC3 | ADC3 | PCINT11 |
| A4 (D18) | PC4 | ADC4, I2C SDA | PCINT12 |
| A5 (D19) | PC5 | ADC5, I2C SCL | PCINT13 |
Five Mistakes That Kill Projects (or Boards)
- Higher voltage into the 5V pin. Use VIN or the jack for anything above 5 V.
- 3.3 V modules on 5 V pins. Many GPS modules, radios and ESP chips are 3.3 V only. Use a level shifter.
- Relays and motors without a flyback diode. The spike when they switch off can damage the driving pin.
- Too much on USB power. A laptop port gives about 500 mA. Several servos or an LED strip will cause brownouts and random resets.
- Driving LEDs with no resistor. Each pin is fine at 20 mA, but the chip's 200 mA total runs out fast.
Troubleshooting
Pick your symptom and work down its column. Stop at the first fix that works.
No Uno on your desk? Wire any of these examples on the virtual Uno in the SolderHub Simulator. The board you see in this guide is the same one you'll place there.
Quick Answers
How many pins does the Arduino Uno have? Twenty I/O pins: 14 digital (D0–D13) and 6 analog (A0–A5), plus the power header (VIN, 5V, 3.3V, GND, RESET, IOREF).
Which pins are PWM on the Uno? 3, 5, 6, 9, 10 and 11, marked with a tilde (~).
Can I use analog pins as digital pins? Yes. A0–A5 are D14–D19 and work with pinMode(), digitalWrite() and digitalRead().
Which pins are I2C on the Uno? A4 is SDA and A5 is SCL. R3 boards repeat them as SDA and SCL next to AREF.
Is the Uno R3 pinout the same as the R4? The header layout is the same, so shields fit. The R4 uses a different chip (Renesas RA4M1), so some peripheral details, like ADC resolution, differ.
Why does my upload fail when a module is connected? It's probably wired to D0/D1. Those pins share the USB serial link, so unplug the module while you upload.
Keep Reading
The Arduino Nano pinout covers the same chip on a breadboard-friendly board with A6 and A7. The Mega 2560 pinout is the step up when you run out of pins. The ESP32 pinout guide is the jump to Wi-Fi and Bluetooth.




