Arduino UNO R3 Pinout: Digital, Analog, PWM, and Power

Push button wired to an Arduino input pin with a 10k pull-up resistor

Arduino UNO R3 Pinout: Digital, Analog, PWM, and Power

Answer in brief: The Arduino UNO R3 has 14 digital pins, 6 analog inputs, and 6 PWM pins. It runs on 5 volt logic at a 16 megahertz clock. This guide maps each pin, the power pins, and the current limits. It also covers I2C, SPI, UART, and the pins to avoid.

Quick Facts

Item Detail Source
Chip ATmega328P Arduino UNO R3 documentation
Clock speed 16 megahertz Arduino UNO R3 documentation
Logic voltage 5 volts Arduino UNO R3 documentation
Digital pins 14 pins, D0 to D13 Arduino UNO R3 documentation
PWM pins 6 pins: D3, D5, D6, D9, D10, D11 Arduino UNO R3 documentation
Analog inputs 6 inputs, A0 to A5, 10-bit Microchip ATmega328P datasheet DS40002061B
Analog range 0 counts to 1023 counts Microchip ATmega328P datasheet DS40002061B
Per-pin current, recommended 20 milliamperes Microchip ATmega328P datasheet DS40002061B
Per-pin current, absolute max 40 milliamperes Microchip ATmega328P datasheet DS40002061B
Chip total current 200 milliamperes Microchip ATmega328P datasheet DS40002061B
3V3 output, max About 50 milliamperes Arduino UNO R3 documentation
VIN range, recommended 7 volts to 12 volts Arduino UNO R3 documentation

Arduino UNO R3 Pinout Table

This table is an original pinout table built from the Arduino UNO R3 documentation. It is not a copied image. The D names are the printed header names on the board. Use the table with the board in front of you.

Pin Function Shared functions
D0 Digital I/O UART RX
D1 Digital I/O UART TX
D2 Digital I/O Interrupt INT0
D3 Digital I/O, PWM Interrupt INT1, PWM at 490 hertz
D4 Digital I/O None
D5 Digital I/O, PWM PWM at 980 hertz
D6 Digital I/O, PWM PWM at 980 hertz
D7 Digital I/O None
D8 Digital I/O None
D9 Digital I/O, PWM PWM at 490 hertz
D10 Digital I/O, PWM SPI SS, PWM at 490 hertz
D11 Digital I/O, PWM SPI MOSI, PWM at 490 hertz
D12 Digital I/O SPI MISO
D13 Digital I/O SPI SCK, onboard LED
A0 Analog input Digital pin D14
A1 Analog input Digital pin D15
A2 Analog input Digital pin D16
A3 Analog input Digital pin D17
A4 Analog input Digital pin D18, I2C SDA
A5 Analog input Digital pin D19, I2C SCL
VIN Power input 7 volts to 12 volts recommended
5V Power output 5 volt rail from USB or regulator
3V3 Power output 3.3 volt output, about 50 milliamperes max
GND Ground Common ground for all wiring
IOREF Reference Board logic voltage, 5 volts
AREF Reference Analog reference input
RESET Reset Pull low to restart the chip

Power Pins

Power the UNO R3 through USB, the barrel jack, or the VIN pin. The barrel jack and VIN accept 7 volts to 12 volts. The on-board regulator drops that input to 5 volts. A higher input makes the regulator run hotter. Keep the input near 9 volts for bench work when you can.

The 5V pin is a 5 volt output when USB or the jack powers the board. It can also act as a 5 volt input. Feed it only with a clean, regulated 5 volt supply. Do not feed it with a higher voltage. The 3V3 pin gives 3.3 volts at about 50 milliamperes max. Use it only for small 3.3 volt parts.

IOREF tells a shield the board logic voltage. On this board, IOREF is 5 volts. AREF sets the top of the analog range. Leave AREF unconnected for normal use. The default reference is 5 volts. Ground pins appear on both headers. Use the nearest ground for each part.

Boot and Reset Pins

The UNO R3 has no strapping pins like an ESP32 board. It starts code on power-up or reset. The RESET pin restarts the chip when pulled low. The on-board RESET button does the same job. A shield can also pull RESET low.

Uploads use the USB port and the on-board USB-to-serial chip. The IDE resets the board through the serial link. No jumper is needed for normal uploads. If an upload fails, press RESET once and try again. Check the board and port selection in the IDE first.

The ICSP header near the chip carries SPI and reset for direct programming. Most users never need it. Leave it alone unless you program the chip with an external programmer. A wrong ICSP connection can erase the bootloader.

ADC Pins

The UNO R3 has 6 analog inputs, A0 through A5. Each input reads 10-bit values from 0 counts to 1023 counts. A 0 volt input reads 0 counts. A 5 volt input reads 1023 counts. That step size is about 4.9 millivolts per count at the default reference.

A0 through A5 also work as digital pins D14 through D19. Use them as digital outputs when you run out of digital pins. Set the pin mode in code. A pin cannot read analog and drive digital at the same time.

PWM Pins

PWM is available on 6 pins: D3, D5, D6, D9, D10, and D11. The PWM frequency is 490 hertz on D3, D9, D10, and D11. It is 980 hertz on D5 and D6. That split matters for some loads. A motor driver may buzz at one frequency and run smooth at the other.

PWM drives a signal, not a load. Use a transistor or a driver for a motor. Use a series resistor for an LED. A PWM pin still follows the 20 milliampere recommended limit. Do not connect a motor directly to a PWM pin.

I2C Pins

I2C uses A4 for SDA and A5 for SCL. Those two analog pins carry the bus. Connect a display or a sensor to those two pins. Share the bus with more than one device when each device has a different address.

A4 and A5 cannot read analog while they run the I2C bus. Plan the pin budget when you need both I2C and analog reads. Use A0 through A3 for analog in that case. That leaves A4 and A5 free for the bus.

SPI Pins

SPI uses D10 for SS, D11 for MOSI, D12 for MISO, and D13 for SCK. Those four pins carry the bus. Pick a different digital pin for a second chip select when you add a second SPI device. D10 must stay an output for the board to act as SPI master.

SPI runs at 5 volt logic on this board. Check the device voltage before you connect it. A 3.3 volt SPI device needs a level shifter. A direct 5 volt connection can damage a 3.3 volt part.

UART Pins

UART uses D0 for RX and D1 for TX. Those pins connect to the USB-to-serial chip. They carry the serial monitor link. They also carry uploads. Do not connect a GPS module to D0 and D1 while you debug over USB. The two uses clash.

Keep the baud rate the same on both ends of a UART link. A mismatch gives garbled text. Start at 9600 baud for a new device. Raise the rate only after the link works.

USB Pins

The UNO R3 has a USB port for power and programming. The product in this guide uses a USB cable in the box. Check the product page for the cable type in your pack. The USB link powers the board at 5 volts. It also carries uploads and serial debug output.

The USB port does not expose D0 and D1 as separate pads. Those pins are the UART lines behind the USB chip. Treat D0 and D1 as busy during uploads. Free them only after the upload ends.

Pins to Avoid

Avoid D0 and D1 for sensors while you debug over USB. Avoid A4 and A5 for analog reads while I2C is active. Avoid D10 as a general input when SPI runs as master. It must stay an output in that mode.

Avoid AREF as a power output. It is a reference input only. Avoid feeding 5 volts into the 3V3 pin. Avoid feeding more than 5 volts into the 5V pin. Both mistakes can damage the regulator or the chip.

Avoid a load above 20 milliamperes on any single pin. Avoid a total load above 200 milliamperes across the chip. Those limits come from the Microchip ATmega328P datasheet DS40002061B. Stay under them for a long board life.

Max Current and Logic Voltage

Logic voltage is 5 volts on every digital pin. That value comes from the Arduino UNO R3 documentation. Treat 5 volts as the high level. Treat 0 volts as the low level. A 3.3 volt sensor output may read as high on a 5 volt input, but check the sensor datasheet first.

The recommended current per pin is 20 milliamperes. The absolute max per pin is 40 milliamperes. The chip total is 200 milliamperes. Those three numbers come from the Microchip ATmega328P datasheet DS40002061B. Treat 20 milliamperes as the working limit. Treat 40 milliamperes as a damage threshold, not a target.

The 3V3 output gives about 50 milliamperes max. That value comes from the Arduino UNO R3 documentation. Use it only for small 3.3 volt parts. A WiFi module or a large display needs its own regulator.

Wiring and Power Warnings

Power the board before you connect a sensor. Keep the USB cable short. Use a cable under 3 feet for bench tests when you can. Long wires pick up noise. Noise causes analog jitter and I2C errors.

Use a series resistor for every LED. A 220 ohm resistor is a common bench value for a 5 volt LED test. Check the LED datasheet for its own forward voltage before you pick a resistor. A LED with no resistor can draw too much current from the pin.

Use a driver for any motor, relay, or solenoid. The GPIO pin only signals the driver. The driver handles the load current. A direct motor connection can damage the pin and reset the board.

Pin Test Sketch

Language: Arduino. Library: Arduino AVR core version 1.8.6, with no extra library install. Code status: code not compiled. No arduino-cli or PlatformIO is installed in this environment.

// Arduino UNO R3 pin test sketch
// Board: UNO R3, ATmega328P
// Arduino AVR core version 1.8.6
// Code status: code not compiled

// PWM test pin is D9. It runs at 490 hertz.
const int pwmPin = 9;
// Analog test pin is A0. It reads 0 to 1023 counts.
const int analogPin = A0;
// Onboard LED pin is D13.
const int ledPin = 13;

void setup() {
  // Start serial at 9600 baud for debug output.
  Serial.begin(9600);
  delay(500); // Wait 500 milliseconds for the monitor.

  // Set the PWM pin and the LED pin as outputs.
  pinMode(pwmPin, OUTPUT);
  pinMode(ledPin, OUTPUT);

  Serial.println("UNO R3 pin test started");
}

void loop() {
  // Read the analog value on A0.
  int adcValue = analogRead(analogPin);
  Serial.print("A0 value: ");
  Serial.println(adcValue);

  // Fade the PWM output on D9 from off to full.
  for (int level = 0; level <= 255; level += 5) {
    analogWrite(pwmPin, level);
    delay(20); // Wait 20 milliseconds per step.
  }

  // Blink the onboard LED on D13 once per loop.
  digitalWrite(ledPin, HIGH);
  delay(500); // Wait 500 milliseconds.
  digitalWrite(ledPin, LOW);
  delay(500); // Wait 500 milliseconds.
}

Expected result: the serial monitor shows an A0 value each loop. The value changes with the voltage on A0. The PWM output on D9 fades up in steps. The onboard LED blinks once per loop. If no serial output appears, check the board and port selection in the IDE.

Frequently Asked Questions

How many digital pins does the UNO R3 have?

It has 14 digital pins, D0 through D13. Six of those pins support PWM. The analog pins A0 through A5 can also work as digital pins D14 through D19.

Which pins are PWM on the UNO R3?

PWM pins are D3, D5, D6, D9, D10, and D11. D5 and D6 run at 980 hertz. The other four PWM pins run at 490 hertz.

What is the current limit per pin?

The recommended limit is 20 milliamperes per pin. The absolute max is 40 milliamperes per pin. The chip total is 200 milliamperes. Stay under the recommended limit for normal use.

Can I power the UNO R3 from the VIN pin?

Yes, feed VIN with 7 volts to 12 volts. The on-board regulator drops that input to 5 volts. Keep the input near 9 volts for bench work. A higher input makes the regulator run hotter.

Boards That Match This Pinout

These boards use the pinout in this guide. Check the product page for current stock before you order. Stock changes over time.

Related reading: compare this board with other microcontroller families in the staged pillar RP2040 vs ESP32 (row 24, staged). For a first project, see the live post How to Start with a UNO R3 Board for Arduino Projects (live post #15177) and the live post How to Build Your First Arduino Project with UNO and OLED (live post #15203). For sibling pinouts, see Nano V3.0 USB-C Guide: ATmega328P Board for Arduino IDE and Raspberry Pi Pico Pinout.

Sources

  • Arduino UNO R3 documentation, https://docs.arduino.cc/hardware/uno-rev3/
  • Microchip ATmega328P datasheet DS40002061B, https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7810-Automotive-Microcontrollers-ATmega328P_Datasheet.pdf
  • Arduino UNO R3 schematic, https://docs.arduino.cc/hardware/uno-rev3/

Last updated 2026-11-21.