All pinouts

Arduino AVR

Arduino Nano Pinout

The Arduino Nano is the Uno's compact cousin — same ATmega328P, same Arduino IDE compatibility, but laid out as a 30-pin DIP that drops straight into a breadboard. It also adds two extra analog inputs (A6, A7) the Uno doesn't expose.

Specifications

MCU
ATmega328P, 16 MHz
Flash
32 KB (2 KB used by bootloader)
SRAM
2 KB
Digital I/O
14 (6 PWM-capable)
Analog inputs
8 (A0–A7, 10-bit ADC)
Operating voltage
5V (7–12V on VIN)

Pin reference

PinNameType / functionsNotes
D0RXDigital I/O, UART RXUsed by USB serial.
D1TXDigital I/O, UART TXUsed by USB serial.
D2INT0Digital I/O, external interrupt
D3INT1 / PWMDigital I/O, PWM, interrupt
D4D4Digital I/O
D5PWMDigital I/O, PWM
D6PWMDigital I/O, PWM
D7D7Digital I/O
D8D8Digital I/O
D9PWMDigital I/O, PWM
D10SS / PWMDigital I/O, SPI SS, PWM
D11MOSI / PWMDigital I/O, SPI MOSI, PWM
D12MISODigital I/O, SPI MISO
D13SCK / LEDDigital I/O, SPI SCK, onboard LED
A0Analog 0Analog input / Digital I/O
A1Analog 1Analog input / Digital I/O
A2Analog 2Analog input / Digital I/O
A3Analog 3Analog input / Digital I/O
A4SDAAnalog input / I2C SDA
A5SCLAnalog input / I2C SCL
A6Analog 6Analog input onlyCannot be used as digital I/O.
A7Analog 7Analog input onlyCannot be used as digital I/O.
AREFAnalog referenceReference voltage for ADC
VINVINPower input, 7–12V
5V5V outputRegulated 5V, ~500 mA
3V33.3V outputRegulated 3.3V, ~50 mA
GNDGroundPower
RESETResetPull LOW to reset

Gotchas

  • 01A6 and A7 are analog-input ONLY. Calling digitalRead/digitalWrite on them does nothing.
  • 02Older Nanos use the CH340 USB-serial chip, which needs a separate driver on macOS and Windows.
  • 03The 3.3V rail is generated by the FTDI/CH340 chip and can only supply ~50 mA.
  • 04Only D2 and D3 support hardware interrupts.

Explain code for this board

Paste a sketch and get a plain-English breakdown.

Open code explainer

Generate a wiring diagram

Describe your circuit and get a Mermaid diagram you can share.

Open diagram generator

Other boards