CNAP

Arduino Nano Reference

The ATmega328P-based board — electrically identical to the Uno, in a compact breadboard-friendly DIP form factor.

Pin names

Pin IDLabelSignalNotes
0D0 / RXUSARTSerial receive
1D1 / TXUSARTSerial transmit
2D2DigitalExternal interrupt INT0
3D3PWMExternal interrupt INT1, analogWrite()
4D4Digital
5D5PWManalogWrite()
6D6PWManalogWrite()
7D7Digital
8D8Digital
9D9PWManalogWrite()
10D10 / SSSPISPI slave select, analogWrite()
11D11 / MOSIPWM / SPISPI data out, analogWrite()
12D12 / MISOSPISPI data in
13D13 / SCKSPISPI clock, built-in LED
GNDGNDPowerGround (multiple pins)
RESETRESETPull LOW to reset the board
AREFAREFAnalog reference voltage
3.3V3.3VPower3.3 V output
5V5VPower5 V output
VINVINPowerExternal power input (7–12 V)
A0A3A0–A3AnaloganalogRead(), 10-bit (0–1023)
A4A4 / SDAI²CI²C data
A5A5 / SCLI²CI²C clock
A6 / A7A6, A7AnalogAnalog input only — not usable as digital I/O

Quick reference

CapabilityPins
Digital I/OD0–D13 (14 pins)
Analog inputA0–A7 (8 pins, 10-bit; A6/A7 analog-only)
PWM outputD3, D5, D6, D9, D10, D11
SPID10 (SS), D11 (MOSI), D12 (MISO), D13 (SCK)
I²CA4 (SDA), A5 (SCL)
USARTD0 (RX), D1 (TX)
Operating voltage5 V
Clock speed16 MHz

Usage

void setup() {
  pinMode(13, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  digitalWrite(13, HIGH);
  int val = analogRead(A0);
  analogWrite(9, 128);
  Serial.println(val);
  delay(500);
}

Code written for an Uno runs unmodified on a Nano — the two share the same ATmega328P core, pinout, and Arduino API. Reach for the Nano when board size matters (e.g. permanent breadboard projects) rather than for any functional difference.

See also

  • Arduino Uno — same core and pinout, larger form factor
  • Arduino Mega — same programming model with far more I/O
  • ESP32 DevKit V1 — WiFi/Bluetooth-capable alternative with a different pin layout