Skip to content

Guide

Arduino Uno R3 Pinout: Every Pin Explained (Digital, Analog, PWM, Power)

Complete Arduino Uno R3 pinout reference: all 14 digital pins, 6 analog inputs, PWM, UART, SPI, I2C, AREF, and power rails explained with wiring tips and common mistakes.

  • 15 min read
  • Updated November 21, 2026
Arduino Uno R3 Pinout: Every Pin Explained (Digital, Analog, PWM, Power)

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.

Arduino Uno R3 pinout diagram
NCIOREFRESET3.3V5VGNDGNDVINA0A1A2A3A4A5SCLSDAAREFGNDD13D12D11D10D9D8D7D6D5D4D3D2D1D0

Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.

Every header pin on the SolderHub Simulator Uno: green is free I/O, orange is shared with something on the board (D0/D1 with USB serial, D13 with the L LED), red is power, grey is ground, blue is reset and reference pins.

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.

FeatureUno R3
Digital I/O14 (D0–D13)
PWM outputs6 (~3, ~5, ~6, ~9, ~10, ~11)
Analog inputs6 (A0–A5), 10-bit
External interrupts2 (D2, D3)
Hardware UART1 (D0, D1), shared with USB
SPID10–D13, also on the ICSP header
I2CA4 (SDA), A5 (SCL), repeated next to AREF
Logic level5 V
What's on an Arduino Uno R3: the ATmega328P, the ATmega16U2 USB bridge, the regulator, jack, headers, LEDs and ICSP, labelled on the SolderHub Simulator Uno
Uno current budget: how much each source can supply
USB port (5V rail)
500 mA

Everything on the board plus your 5V loads

All I/O pins combined
200 mA

Total for the whole chip, however it is split

3.3V pin
50 mA

Enough for one small sensor, not a radio module

One pin, absolute max
40 mA

Damage threshold, never design to it

One pin, recommended
20 mA

Use this for LEDs and logic

Per-pin figures are from the ATmega328P datasheet: 40 mA is the absolute limit, 20 mA the recommended working current. The USB figure is a typical laptop port.

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).

Power, ground and reset pins
NCIOREFRESET3.3V5VGNDGNDVINA0A1A2A3A4A5SCLSDAAREFGNDD13D12D11D10D9D8D7D6D5D4D3D2D1D0

Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.

PinWhat it does
VINInput 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.
5VRegulated 5 V, from USB or from the regulator. An output, not a safe input for higher voltages.
3.3VRegulated 3.3 V, about 50 mA maximum.
GNDThree ground pins, all the same net.
RESETPull LOW to restart the ATmega328P, same as the button.
IOREFTells 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.

Which power input should I use?
You need to power an Uno project
Q1 Is it plugged into a computer or a USB charger?
yes → Use USB. It skips the regulator, so nothing gets hot. Keep total draw under about 500 mA.
no
Q2 Do you have a 7–12 V adapter or battery pack?
yes → Use the barrel jack (or VIN). Stay near 7–9 V to keep the regulator cool.
no
Q3 Do you have a regulated 5 V supply?
yes → Feed it into the 5V pin, and only if it is a clean, regulated 5 V. There is no protection on this path.
no
Get a 7–9 V adapter or a USB power bank. Do not wire unregulated batteries to 5V.
USB and VIN go through protection; the 5V pin does not.

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.

Regulator heat for a 200 mA load at different VIN voltages
VIN = 7 V
0.4 W
VIN = 9 V
0.8 W
VIN = 12 V
1.4 W
(VIN − 5 V) × 0.2 A. Above about 1 W the small regulator gets too hot to touch and may shut down.

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).

Digital pins D0–D13
NCIOREFRESET3.3V5VGNDGNDVINA0A1A2A3A4A5SCLSDAAREFGNDD13D12D11D10D9D8D7D6D5D4D3D2D1D0

Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.

sketch.ino
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.

PWM pins
NCIOREFRESET3.3V5VGNDGNDVINA0A1A2A3A4A5SCLSDAAREFGNDD13D12D11D10D9D8D7D6D5D4D3D2D1D0

Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.

sketch.ino
analogWrite(9, 128);   // about 50% duty cycle

Not 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.

The six Uno PWM pins grouped by Timer0, Timer1 and Timer2, with PWM frequency and the libraries that take each timer over

⚠️ 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.

External interrupt pins
NCIOREFRESET3.3V5VGNDGNDVINA0A1A2A3A4A5SCLSDAAREFGNDD13D12D11D10D9D8D7D6D5D4D3D2D1D0

Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.

sketch.ino
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.

UART pins D0 (RX) and D1 (TX)
NCIOREFRESET3.3V5VGNDGNDVINA0A1A2A3A4A5SCLSDAAREFGNDD13D12D11D10D9D8D7D6D5D4D3D2D1D0

Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.

sketch.ino
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.

SPI pins
NCIOREFRESET3.3V5VGNDGNDVINA0A1A2A3A4A5SCLSDAAREFGNDD13D12D11D10D9D8D7D6D5D4D3D2D1D0

Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.

PinSPI signal
D10SS / CS (chip select)
D11MOSI (controller out)
D12MISO (controller in)
D13SCK (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.

SPI wiring: Arduino Uno connected to an SD card module on pins 10, 11, 12 and 13

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.

I2C pins: A4/A5 and the duplicated SDA/SCL
NCIOREFRESET3.3V5VGNDGNDVINA0A1A2A3A4A5SCLSDAAREFGNDD13D12D11D10D9D8D7D6D5D4D3D2D1D0

Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.

sketch.ino
#include <Wire.h>
Wire.begin();
Wire.beginTransmission(0x3C);   // a common OLED address

Each 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.

Wiring an SSD1306 OLED to the Uno over I2C: GND, 5V, A5 to SCL and A4 to SDA (the module has its own pull-ups)

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.

Analog inputs A0–A5
NCIOREFRESET3.3V5VGNDGNDVINA0A1A2A3A4A5SCLSDAAREFGNDD13D12D11D10D9D8D7D6D5D4D3D2D1D0

Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.

sketch.ino
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.

AREF
NCIOREFRESET3.3V5VGNDGNDVINA0A1A2A3A4A5SCLSDAAREFGNDD13D12D11D10D9D8D7D6D5D4D3D2D1D0

Highlighted on the SolderHub Simulator Arduino UNO R3. Explore every pin on the Arduino UNO R3 board page.

sketch.ino
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.

AREF wiring: a 2.5 V external reference on the AREF pin for analogReference(EXTERNAL)
Interactive Uno pinout: tap any pin

32 of 32 pins match

NCIOREFRESET3.3V5VGNDGNDVINA0A1A2A3A4A5SCLSDAAREFGNDD13D12D11D10D9D8D7D6D5D4D3D2D1D0

Hover or tap any pin on the board

ANALOG IN header · pin 1

A0

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
Tap or hover any pin for its functions and warnings.

Pins That Share a Job

These are the conflicts behind most "it worked yesterday" problems.

PinShared betweenWhat goes wrong
D0, D1Your device and the USB serial chipUploads fail; the Serial Monitor shows garbage
D13SPI clock and the L LEDLED flickers during SPI; a button on D13 reads unreliably
D10SPI chip select and controller/peripheral modeIf it is an input and goes LOW, SPI stops
A4, A5I2C and analog inputsUsing I2C costs you two analog pins
D9, D10Timer1 and the Servo libraryanalogWrite() stops on these pins
D3, D11Timer2 and tone()PWM stops while a tone plays

Complete Pin Table

PinPortFunctionsInterrupt
D0 (RX)PD0UART RXD, shared with USBPCINT16
D1 (TX)PD1UART TXD, shared with USBPCINT17
D2PD2Digital I/OINT0, PCINT18
D3PD3PWM (Timer2, ~490 Hz)INT1, PCINT19
D4PD4T0, XCKPCINT20
D5PD5PWM (Timer0, ~980 Hz), T1PCINT21
D6PD6PWM (Timer0, ~980 Hz), AIN0PCINT22
D7PD7AIN1PCINT23
D8PB0CLKO, ICP1PCINT0
D9PB1PWM (Timer1, ~490 Hz)PCINT1
D10PB2PWM (Timer1, ~490 Hz), SPI SSPCINT2
D11PB3PWM (Timer2, ~490 Hz), SPI MOSIPCINT3
D12PB4SPI MISOPCINT4
D13PB5SPI SCK, L LEDPCINT5
A0 (D14)PC0ADC0PCINT8
A1 (D15)PC1ADC1PCINT9
A2 (D16)PC2ADC2PCINT10
A3 (D17)PC3ADC3PCINT11
A4 (D18)PC4ADC4, I2C SDAPCINT12
A5 (D19)PC5ADC5, I2C SCLPCINT13

Five Mistakes That Kill Projects (or Boards)

  1. Higher voltage into the 5V pin. Use VIN or the jack for anything above 5 V.
  2. 3.3 V modules on 5 V pins. Many GPS modules, radios and ESP chips are 3.3 V only. Use a level shifter.
  3. Relays and motors without a flyback diode. The spike when they switch off can damage the driving pin.
  4. Too much on USB power. A laptop port gives about 500 mA. Several servos or an LED strip will cause brownouts and random resets.
  5. Driving LEDs with no resistor. Each pin is fine at 20 mA, but the chip's 200 mA total runs out fast.
Driving a relay the safe way: a 5 V relay module on D7. The module's transistor carries the coil current and its flyback diode absorbs the switch-off spike

Troubleshooting

Pick your symptom and work down its column. Stop at the first fix that works.

Flowchart: Arduino Uno troubleshooting for failed uploads, garbled Serial Monitor and I2C devices that do not respond

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.

Continue learning

Related articles

All articles

Signal In

Built from what makers search for

The lookups piling up in SolderHub's search bar every day shape what we publish next — new component pages, board guides, and firmware notes, sent out as they go live.

By subscribing you agree to our Privacy Policy. Unsubscribe anytime.