Skip to content
Voltomni
← Pinout library

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

Header with D12 to D2

PinFunctionsNotes
D1 / TXD1UART TXUsed by USB upload and Serial
D0 / RXD0UART RXUsed by USB upload and Serial
RSTReset—Pull low to reset
GNDGround—
D2Interrupt INT0
D3PWM, interrupt INT1
D4—
D5PWM (980 Hz)
D6PWM (980 Hz)
D7—
D8—
D9PWM
D10PWM, SPI SS
D11PWM, SPI MOSI
D12SPI MISO

Header with D13 and the analog pins

PinFunctionsNotes
D13SPI SCKOn-board LED
3V33.3 V out—Small current only
AREFAnalog reference—
A0Analog in, digital D14
A1Analog in, digital D15
A2Analog in, digital D16
A3Analog in, digital D17
A4Analog in, I2C SDA
A5Analog in, I2C SCL
A6Analog in onlyCannot be used as a digital pin
A7Analog in onlyCannot 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.

Boards with this pinout

More pinouts

Raspberry Pi GPIO pinout (40-pin header)ESP32 GPIO pinout and pin functions