The classic Arduino: an ATmega328P at 5 V with 14 digital pins (6 with PWM), 6 analog inputs and the ICSP header. The Uno R4 keeps the header positions but uses another chip, so its pin functions and limits differ.
Top view, USB and power jack at the top, digital pins on the right.
| Position | Pin | In code | Functions | Notes |
|---|---|---|---|---|
| Power header | – | – | Not connected. | |
| Power header | – | – | Tells a shield which logic voltage the board uses. On the Uno it is connected to 5 V. | |
| Power header | – | –PC6, PCINT14 | Pull low to reset the ATmega328P, like pressing the reset button. | |
| Power header | – | – | 3.3 V output for small 3.3 V parts. 50 mA maximum. | |
| Power header | – | – | The board's 5 V rail, fed by USB or by the on-board regulator when you power the Uno through the barrel jack or VIN. Arduino's documents give no current limit for this pin. | |
| Power header | – | – | ||
| Power header | – | – | ||
| Power header | – | – | Input to the 5 V regulator, the same as the barrel jack. Use 7 to 12 V; 20 V is the absolute maximum and Arduino advises against getting near it. | |
| Analog header | A0 (D14) | ADC0PC0, PCINT8 | ||
| Analog header | A1 (D15) | ADC1PC1, PCINT9 | ||
| Analog header | A2 (D16) | ADC2PC2, PCINT10 | ||
| Analog header | A3 (D17) | ADC3PC3, PCINT11 | ||
| Analog header | A4 (D18) | ADC4, SDAPC4, PCINT12 | A4 is the I2C data line (SDA) and A5 the clock (SCL). While I2C is running they can't be used as analog inputs. | |
| Analog header | A5 (D19) | ADC5, SCLPC5, PCINT13 | A4 is the I2C data line (SDA) and A5 the clock (SCL). While I2C is running they can't be used as analog inputs. | |
| Digital header | A5 (D19) | SCLPC5 | I2C clock. Wired to A5 on the board: the same signal, not a second I2C port. | |
| Digital header | A4 (D18) | SDAPC4 | I2C data. Wired to A4 on the board: the same signal, not a second I2C port. | |
| Digital header | – | – | ReferenceAnalog reference input, 0 to 5 V only. Only connect a voltage here after calling analogReference(EXTERNAL): with the default reference it is shorted to the chip's internal reference and can damage it. | |
| Digital header | – | – | ||
| Digital header | 13 | SCKPB5, PCINT5 | Also drives the on-board LED (LED_BUILTIN). | |
| Digital header | 12 | CIPO (MISO)PB4, PCINT4 | ||
| Digital header | 11 | PWM (OC2A), COPI (MOSI)PB3, PCINT3 | ||
| Digital header | 10 | PWM (OC1B), SSPB2, PCINT2 | ||
| Digital header | 9 | PWM (OC1A)PB1, PCINT1 | ||
| Digital header | 8 | –PB0, ICP1, CLKO, PCINT0 | ||
| Digital header | 7 | –PD7, AIN1, PCINT23 | ||
| Digital header | 6 | PWM (OC0A)PD6, AIN0, PCINT22 | PWM runs at 980 Hz on pins 5 and 6, 490 Hz on the others. | |
| Digital header | 5 | PWM (OC0B)PD5, T1, PCINT21 | PWM runs at 980 Hz on pins 5 and 6, 490 Hz on the others. | |
| Digital header | 4 | –PD4, T0, XCK, PCINT20 | ||
| Digital header | 3 | PWM (OC2B)PD3, INT1, PCINT19 | External interrupt INT1: attachInterrupt() works on pins 2 and 3. | |
| Digital header | 2 | –PD2, INT0, PCINT18 | External interrupt INT0: attachInterrupt() works on pins 2 and 3. | |
| Digital header | 1 | TXPD1, TXD, PCINT17 | USB serialShared with the USB serial link that uploads sketches and carries Serial. Anything connected here can block uploads; disconnect it while you upload. | |
| Digital header | 0 | RXPD0, RXD, PCINT16 | USB serialShared with the USB serial link that uploads sketches and carries Serial. Anything connected here can block uploads; disconnect it while you upload. | |
| ICSP pin 1 | 12 | CIPO (MISO) | Same signal as digital pin 12. The ICSP header is how you program the ATmega328P without the bootloader, and some shields take SPI from here. | |
| ICSP pin 2 | – | – | The board's 5 V rail. | |
| ICSP pin 3 | 13 | SCK | Same signal as digital pin 13. The ICSP header is how you program the ATmega328P without the bootloader, and some shields take SPI from here. | |
| ICSP pin 4 | 11 | COPI (MOSI) | Same signal as digital pin 11. The ICSP header is how you program the ATmega328P without the bootloader, and some shields take SPI from here. | |
| ICSP pin 5 | – | – | The ATmega328P's reset line, the same as the RESET pin on the power header. | |
| ICSP pin 6 | – | – |
Every board is drawn from the top, the way you see it on the bench, with the pins in their real order. Red pins are power, black are ground, grey are control pins such as reset, and green are general-purpose I/O. A yellow ring marks a pin with a catch: a strapping pin that changes how the chip boots, a pin wired to flash or USB, or an input-only pin.
Pick a function above the drawing (I2C, SPI, ADC…) to light up the pins that can do it and see each pin's name for that function. Pins marked default are the ones the board's own documentation uses; on the ESP32 and the Pico most peripherals can move to other pins in software.
The label printed on the board, the physical pin number and the number you type in code are often three different things. On a Raspberry Pi, physical pin 11 is GPIO17. On an ESP32 the board says IO32 and the code says 32. The table under each drawing lists all three.
| Board | Logic level | 5 V on a GPIO? | Current per pin | All pins together |
|---|---|---|---|---|
| ESP32-DevKitC | 3.3 V | No (3.6 V max) | ~20 mA default, ~40 mA max drive | 1,200 mA (abs. max) |
| Arduino Uno R3, Nano | 5 V | Yes | 20 mA (40 mA abs. max) | 200 mA (abs. max) |
| Raspberry Pi Pico | 3.3 V | No | 2–12 mA, 4 mA default | 50 mA |
| Raspberry Pi (40-pin header) | 3.3 V | No | 16 mA | 50 mA |
The ESP32, the Pico and the Raspberry Pi run their pins at 3.3 V and none of them is 5 V tolerant. A 5 V sensor output on one of their GPIOs needs a level shifter or a resistor divider. The Arduino Uno and Nano run at 5 V; most 3.3 V modules need their inputs shifted down when you connect them to an Arduino.
The current limits are for the I/O pins, not for driving motors or relays. A small indicator LED is fine on any of these boards with a series resistor that keeps it under the pin's limit; anything bigger goes through a transistor or a driver. The LED resistor calculator works out the resistor.
GrandpaCAD's chat picks real parts, draws the schematic, routes the PCB and checks it against JLCPCB's rules. You get Gerbers, BOM, pick-and-place, a KiCad project and a 3D board, plus a printed case if you want one.
"Arduino Uno shield with an OLED screen and three buttons"