Arduino Nano
Breadboard-friendly and pocket-sized
Arduino Nano (A000005) · ATmega328P
The UNO's chip on a breadboard-friendly stick: an ATmega328P at 16 MHz with 5 V logic, 14 digital pins (6 with PWM), 8 analog inputs and a Mini-B USB port.
Tested in the SolderHub Simulator. Opens a ready-wired circuit that runs in your browser.
- Digital I/O
- 14
- PWM / Analog in
- 6 / 8
- Clock
- 16 MHz
- Flash / SRAM
- 32 kB / 2 kB
Every header pin at a glance
- 17 safe I/O
- 5 use with care
- 0 avoid
- 0 not available
- 8 power, ground & other
01Pinout
Every pin, live
The two rows as they sit on the board, USB end at the top. Hover or tap a pin for what it does.
30 of 30 pins match
Hover or tap any pin on the board
LEFT ROW header · pin 4
A0
Safe to use
10-bit analog input (0 to 1023 across 0 to 5 V). Also works as a normal digital pin.
Nothing else on the board depends on this pin. A good first choice for sensors, LEDs and buttons.
Can be used as
- Analog in
Signals on this pad
- A0
- PC0
- ADC0
Full header tables (LEFT ROW, RIGHT ROW)
LEFT ROW · left side
| No. | Pin | Signals | Status |
|---|---|---|---|
| 1 | D13 | PB5, SCK, LED_BUILTIN | Caution |
| 2 | 3V3 | 3.3 V supply for low-voltage modules. Logic on the I/O pins is still 5 V. | |
| 3 | AREF | External reference for analogRead() with analogReference(EXTERNAL). Apply 0 to 5 V only. | |
| 4 | A0 | PC0, ADC0 | OK |
| 5 | A1 | PC1, ADC1 | OK |
| 6 | A2 | PC2, ADC2 | OK |
| 7 | A3 | PC3, ADC3 | OK |
| 8 | A4 | PC4, ADC4, SDA | OK |
| 9 | A5 | PC5, ADC5, SCL | OK |
| 10 | A6 | ADC6 | Caution |
| 11 | A7 | ADC7 | Caution |
| 12 | 5V | The board's 5 V rail, from USB or the on-board regulator. | |
| 13 | RST | Pull low to restart the ATmega328P, the same as pressing the reset button. | |
| 14 | GND | Ground | |
| 15 | VIN | External supply input. The on-board LDO regulates it down to 5 V. |
RIGHT ROW · right side
| No. | Pin | Signals | Status |
|---|---|---|---|
| 1 | D12 | PB4, MISO | OK |
| 2 | D11 | PB3, MOSI, OC2A, PWM | OK |
| 3 | D10 | PB2, SS, OC1B, PWM | OK |
| 4 | D9 | PB1, OC1A, PWM | OK |
| 5 | D8 | PB0, CLKO | OK |
| 6 | D7 | PD7 | OK |
| 7 | D6 | PD6, OC0A, PWM | OK |
| 8 | D5 | PD5, OC0B, PWM | OK |
| 9 | D4 | PD4, T0 | OK |
| 10 | D3 | PD3, INT1, OC2B, PWM | OK |
| 11 | D2 | PD2, INT0 | OK |
| 12 | GND | Ground | |
| 13 | RST | Second reset pin, same signal as the other RST. | |
| 14 | D0 | PD0, RXD | Caution |
| 15 | D1 | PD1, TXD | Caution |
02Safety
Pins to avoid, and why
Five pins come with a catch: the USB serial pair, the LED pin and the two analog-only inputs.
Use with care
5 pins
Usable, but shared with the USB link or an on-board LED, or analog only.
- D0Shared with USB. D0 and D1 are the hardware serial port that the USB-to-serial chip talks to. Anything wired here can garble the serial monitor and make sketch uploads fail, so leave them free while you upload.
- D1Shared with USB. D0 and D1 are the hardware serial port that the USB-to-serial chip talks to. Anything wired here can garble the serial monitor and make sketch uploads fail, so leave them free while you upload.
- D13On-board LED. The L LED is wired to D13 (LED_BUILTIN), so it lights whenever the pin is high, including while SPI clocks data. Fine for outputs; pick another pin for a sensitive input.
- A6Analog input only. A6 and A7 are dedicated ADC channels on the ATmega328P, not port pins. analogRead() works; digitalRead(), digitalWrite() and INPUT_PULLUP do not.
- A7Analog input only. A6 and A7 are dedicated ADC channels on the ATmega328P, not port pins. analogRead() works; digitalRead(), digitalWrite() and INPUT_PULLUP do not.
03Layout
How the board fits together
Same ATmega328P as the UNO, packed onto a 30-pin stick.
Mini-B USB
Uploads and the serial monitor
VIN → LDO
External supply regulated to 5 V
ATmega328P
8-bit AVR · 16 MHz · 32 kB flash · 2 kB SRAM
Digital D0–D13
6 PWM, UART, SPI, 2 interrupts
Analog A0–A7
10-bit ADC; A4/A5 are I2C; A6/A7 analog only
04Specs
Full specifications
Microcontroller
- Chip
- Microchip ATmega328P8-bit AVR
- Clock
- 16 MHz
- Flash
- 32 kB2 kB of it holds the bootloader.
- SRAM
- 2 kB
- EEPROM
- 1 kB
Power
- Logic level
- 5 V
- Inputs
- USB or VINVIN goes through an on-board LDO regulator to 5 V.
- Current per I/O pin
- 40 mA absolute max200 mA absolute max through the chip's VCC and GND pins in total.
Analog
- Inputs
- 8 (A0 to A7)A6 and A7 are analog only.
- Resolution
- 10-bit0 to 1023 across 0 to 5 V.
- References
- 5 V default, 1.1 V internal, AREFAREF accepts 0 to 5 V only.
Peripherals
- PWM
- 6 pins: D3, D5, D6, D9, D10, D11About 490 Hz; 980 Hz on D5 and D6.
- Serial
- 1 UART on D0/D1Shared with the USB connection.
- SPI / I2C
- 1 SPI, 1 I2C
- Interrupts
- D2 and D3 external
Board
- USB
- Mini-B
- Form factor
- Breadboard-friendlyTwo rows of 15 pins straddle a breadboard's centre gap.
- Internal pull-ups
- 20 to 50 kΩEnable with pinMode(pin, INPUT_PULLUP). Not on A6/A7.
05Buses
Where each bus lives
Serial (UART)
RX on D0, TX on D1, the same port your computer uses for uploads and the serial monitor.
I2C (Wire)
SDA on A4, SCL on A5.
SPI
SS on D10, COPI (MOSI) on D11, CIPO (MISO) on D12, SCK on D13.
PWM (analogWrite)
D3, D5, D6, D9, D10 and D11. D5/D6 run at about 980 Hz, the rest at about 490 Hz.
External interrupts
D2 (INT0) and D3 (INT1), through digitalPinToInterrupt().
06Power & start
Power it up and get connected
Power options
- Mini-B USB5 V from your computer. Also the upload and serial-monitor connection.
- VIN pinAn external supply, regulated down to 5 V by the on-board LDO.
- 5V and 3V3 pinsOutputs for sensors and modules. The I/O pins stay at 5 V logic, so 3.3 V-only modules need level shifting.
- 1
Plug in with a Mini-B cable
The power LED lights and your computer sees a new serial port.
- 2
Pick the board and port
Tools → Board → Arduino AVR Boards → Arduino NanoThen choose the port under Tools → Port.
- 3
Upload Blink
arduino-cli compile --upload -p <port> --fqbn arduino:avr:nano BlinkThe L LED on D13 starts blinking.
- 4
No board on your desk?
Open the tested Nano circuit in the SolderHub Simulator below.
07Gotchas
Things that trip people up
01
A6 and A7 can't blink an LED
They are analog-only inputs. digitalWrite(), digitalRead() and INPUT_PULLUP do nothing on them, so buttons and LEDs belong on A0–A5 or the D pins.
02
Upload fails with something on D0 or D1
Those pins are the serial link to your computer. Disconnect whatever is on them while uploading.
03
Servo switches off PWM on D9 and D10
The Servo library takes Timer1, so analogWrite() on D9 and D10 stops working once it is included.
04
tone() fights PWM on D3 and D11
tone() uses Timer2, the timer behind PWM on D3 and D11.
05
A4 and A5 are the I2C bus
Using an OLED, RTC or BME280 over I2C takes these two analog inputs.
06
Pins are not power outputs
40 mA is the absolute maximum per pin and 200 mA for the chip. Drive motors, relays and LED strips through a transistor or driver.
08SolderHub Simulator
Wire up the Arduino Nano without the hardware
The simulator runs Arduino Nano sketches in your browser. Start from the tested board circuit, then change the wiring or the code.
Board Basics
Introduction, pinout, and protocols — all in one guide.
Sensor Modules & Library
Wiring sensors and modules, plus the library you need to talk to them.
Sensor Integration
Coming soon
Library & Setup
Coming soon
Projects
SolderHub Simulator
Arduino Nano circuits you can run in the browser
Ready-wired circuits with working code. Open one, press run, then change the wiring or the sketch.
More From This Board
6More Arduino Nano guides worth reading.

How to Build an Amateur Radio Telegraph Practice Oscillator (And Learn Morse Code the Way Hams Actually Do)
16m
Arduino Uno Ek R4: What Indian Buyers Should Know
10m
Arduino PWM Tutorial: analogWrite, LED Dimming, Motor Speed and Frequency
6mArduino Nano RP2040 Connect Pinout: D0–D13, A0–A7 and the NINA Pins
7m
Arduino Nano ESP32 Pinout: D/A Pins to ESP32-S3 GPIO, Power and Numbering Modes
7m
Arduino UNO R4 Minima vs WiFi: Which One Is Worth Buying?
10m