← Pinout libraryArduino Nano pinout
The classic Arduino Nano and its CH340 compatibles use the ATmega328P at 5 V and 16 MHz, the same chip as the UNO R3, so UNO code and shields' wiring carry over. Pins are labelled on the board: D0–D13 digital, A0–A7 analog.
- Power
- Ground
- GPIO
- Bus (I2C, SPI, UART)
- Special: read the note
Header with D12 to D2
| Pin | Functions | Notes |
|---|
| D1 / TXD1 | UART TX | Used by USB upload and Serial |
| D0 / RXD0 | UART RX | Used by USB upload and Serial |
| RSTReset | — | Pull low to reset |
| GNDGround | — | |
| D2 | Interrupt INT0 | |
| D3 | PWM, interrupt INT1 | |
| D4 | — | |
| D5 | PWM (980 Hz) | |
| D6 | PWM (980 Hz) | |
| D7 | — | |
| D8 | — | |
| D9 | PWM | |
| D10 | PWM, SPI SS | |
| D11 | PWM, SPI MOSI | |
| D12 | SPI MISO | |
Header with D13 and the analog pins
| Pin | Functions | Notes |
|---|
| D13 | SPI SCK | On-board LED |
| 3V33.3 V out | — | Small current only |
| AREFAnalog reference | — | |
| A0 | Analog in, digital D14 | |
| A1 | Analog in, digital D15 | |
| A2 | Analog in, digital D16 | |
| A3 | Analog in, digital D17 | |
| A4 | Analog in, I2C SDA | |
| A5 | Analog in, I2C SCL | |
| A6 | Analog in only | Cannot be used as a digital pin |
| A7 | Analog in only | Cannot be used as a digital pin |
| 5V5 V | — | Output from the regulator or USB; or a regulated 5 V input |
| RSTReset | — | |
| GNDGround | — | |
| VINSupply in | — | 7–12 V recommended |
Good to know
- Each I/O pin can source or sink up to about 20 mA comfortably (40 mA absolute maximum), with no more than 200 mA for the whole chip.
- PWM pins are D3, D5, D6, D9, D10 and D11. D5 and D6 run at about 980 Hz, the others at about 490 Hz. Using the Servo library disables PWM on D9 and D10.
- Analog inputs read 0–5 V as 0–1023 by default. A6 and A7 are analog-only.
- Keep D0 and D1 free if you use the Serial monitor or upload over USB.
- Compatible boards with the CH340 USB chip may need the CH340 driver on Windows and, on older ones, the "ATmega328P (Old Bootloader)" option in the Arduino IDE.
- The newer Nano boards (Nano Every, Nano 33 IoT, Nano ESP32, Nano RP2040 Connect) share the footprint, but several run at 3.3 V and have different pin functions. Check their own pinouts.