The original breadboard-sized Arduino: the same ATmega328P as the Uno, plus two extra analog inputs (A6, A7). The Nano Every, Nano 33 and Nano ESP32 share the footprint but not the chip, so check which one you have.
Top view, USB at the top. Board pin 1 is D1/TX, bottom right; pin 30 is VIN, bottom left.
| Position | Pin | In code | Functions | Notes |
|---|---|---|---|---|
| Pin 1 | 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. | |
| Pin 2 | 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. | |
| Pin 3 | – | –PC6, PCINT14 | Pull low to reset the ATmega328P. Both RESET pins are the same signal. | |
| Pin 4 | – | – | ||
| Pin 5 | 2 | –PD2, INT0, PCINT18 | External interrupt INT0: attachInterrupt() works on pins 2 and 3. | |
| Pin 6 | 3 | PWM (OC2B)PD3, INT1, PCINT19 | External interrupt INT1: attachInterrupt() works on pins 2 and 3. | |
| Pin 7 | 4 | –PD4, T0, XCK, PCINT20 | ||
| Pin 8 | 5 | PWM (OC0B)PD5, T1, PCINT21 | PWM runs at 980 Hz on pins 5 and 6, 490 Hz on the others. | |
| Pin 9 | 6 | PWM (OC0A)PD6, AIN0, PCINT22 | PWM runs at 980 Hz on pins 5 and 6, 490 Hz on the others. | |
| Pin 10 | 7 | –PD7, AIN1, PCINT23 | ||
| Pin 11 | 8 | –PB0, ICP1, CLKO, PCINT0 | ||
| Pin 12 | 9 | PWM (OC1A)PB1, PCINT1 | ||
| Pin 13 | 10 | PWM (OC1B), SSPB2, PCINT2 | ||
| Pin 14 | 11 | PWM (OC2A), COPI (MOSI)PB3, PCINT3 | ||
| Pin 15 | 12 | CIPO (MISO)PB4, PCINT4 | ||
| Pin 16 | 13 | SCKPB5, PCINT5 | Also drives the on-board LED (LED_BUILTIN). | |
| Pin 17 | – | – | 3.3 V output for small 3.3 V parts. 50 mA maximum. | |
| Pin 18 | – | – | 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. | |
| Pin 19 | A0 (D14) | ADC0PC0, PCINT8 | ||
| Pin 20 | A1 (D15) | ADC1PC1, PCINT9 | ||
| Pin 21 | A2 (D16) | ADC2PC2, PCINT10 | ||
| Pin 22 | A3 (D17) | ADC3PC3, PCINT11 | ||
| Pin 23 | 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. | |
| Pin 24 | 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. | |
| Pin 25 | A6 | ADC6 | Analog onlyAnalog input only. A6 and A7 are ADC channels with no digital port behind them, so digitalRead(), digitalWrite() and pinMode() don't work here and there is no pull-up. | |
| Pin 26 | A7 | ADC7 | Analog onlyAnalog input only. A6 and A7 are ADC channels with no digital port behind them, so digitalRead(), digitalWrite() and pinMode() don't work here and there is no pull-up. | |
| Pin 27 | – | – | The board's 5 V rail: an output when the Nano runs from USB or VIN, or an input for a regulated 5 V supply. | |
| Pin 28 | – | –PC6, PCINT14 | Pull low to reset the ATmega328P. Both RESET pins are the same signal. | |
| Pin 29 | – | – | ||
| Pin 30 | – | – | Unregulated input to the on-board 5 V regulator. Arduino's pinout gives 7 to 12 V; the Nano user manual's feature list says 7 to 15 V. Staying within 7 to 12 V keeps the regulator cool. |
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 Nano carrier board with a buzzer and four buttons"