Skip to content
Board reference

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

D133V3AREFA0A1A2A3A4A5A6A75VRSTGNDVIND12D11D10D9D8D7D6D5D4D3D2GNDRSTD0D1

Hover or tap any pin on the board

LEFT ROW header · pin 4

A0

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.PinSignalsStatus
1D13PB5, SCK, LED_BUILTINCaution
23V33.3 V supply for low-voltage modules. Logic on the I/O pins is still 5 V.
3AREFExternal reference for analogRead() with analogReference(EXTERNAL). Apply 0 to 5 V only.
4A0PC0, ADC0OK
5A1PC1, ADC1OK
6A2PC2, ADC2OK
7A3PC3, ADC3OK
8A4PC4, ADC4, SDAOK
9A5PC5, ADC5, SCLOK
10A6ADC6Caution
11A7ADC7Caution
125VThe board's 5 V rail, from USB or the on-board regulator.
13RSTPull low to restart the ATmega328P, the same as pressing the reset button.
14GNDGround
15VINExternal supply input. The on-board LDO regulates it down to 5 V.

RIGHT ROW · right side

No.PinSignalsStatus
1D12PB4, MISOOK
2D11PB3, MOSI, OC2A, PWMOK
3D10PB2, SS, OC1B, PWMOK
4D9PB1, OC1A, PWMOK
5D8PB0, CLKOOK
6D7PD7OK
7D6PD6, OC0A, PWMOK
8D5PD5, OC0B, PWMOK
9D4PD4, T0OK
10D3PD3, INT1, OC2B, PWMOK
11D2PD2, INT0OK
12GNDGround
13RSTSecond reset pin, same signal as the other RST.
14D0PD0, RXDCaution
15D1PD1, TXDCaution

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

    Plug in with a Mini-B cable

    The power LED lights and your computer sees a new serial port.

  2. 2

    Pick the board and port

    Tools → Board → Arduino AVR Boards → Arduino Nano

    Then choose the port under Tools → Port.

  3. 3

    Upload Blink

    arduino-cli compile --upload -p <port> --fqbn arduino:avr:nano Blink

    The L LED on D13 starts blinking.

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

Board basics guide coming soon

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

No Arduino Nano projects yet — we're adding them soon

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.

Tested on Arduino Nano