The Arduino Nano has 30 pins: 14 digital pins (D0–D13), 8 analog inputs (A0–A7) and power pins (VIN, 5V, 3V3, GND, RST, AREF). Six digital pins give PWM output (D3, D5, D6, D9, D10, D11). I2C is on A4 (SDA) and A5 (SCL), SPI on D10–D13, serial on D0 (RX) and D1 (TX), and external interrupts on D2 and D3. A6 and A7 work as analog inputs only. This guide explains every pin group with safe limits.
Arduino Nano pin table
| Pin | Function |
|---|---|
| D0 (RX), D1 (TX) | Digital I/O and hardware serial. Also used for USB uploads, so keep them free while uploading. |
| D2, D3 | Digital I/O and external interrupts (INT0, INT1). D3 also has PWM. |
| D3, D5, D6, D9, D10, D11 | PWM output (marked ~) for LED dimming, motor speed and servos. |
| D10 (SS), D11 (MOSI), D12 (MISO), D13 (SCK) | SPI bus for SD cards, RFID readers and TFT displays. |
| D13 | Also connected to the on-board LED (L). |
| A0–A5 | Analog inputs (10-bit, 0–1023). Can also be used as digital pins. |
| A4 (SDA), A5 (SCL) | I2C bus for I2C LCDs, OLEDs, RTC modules and MPU6050. |
| A6, A7 | Analog input only (cannot be used as digital pins). |
| VIN | External power input, 7–12V recommended. |
| 5V | Regulated 5V output (or 5V input from a regulated supply). |
| 3V3 | 3.3V output for low-current sensors only. |
| GND (2 pins) | Ground. |
| RST (2 pins) | Reset. Connect to GND to restart the board. |
| AREF | Optional reference voltage for analog readings. |
| ICSP header | For burning the bootloader or programming with a USBasp. |
Power pins: how to power the Nano
- USB: 5V from the Mini-B USB port. Best for programming and small projects.
- VIN: 7–12V from a battery pack or adapter, for example a 7.4V Li-ion pack. The on-board regulator makes 5V.
- 5V pin: only from a clean, regulated 5V supply. More than 5V here damages the board.
The Nano has no DC barrel jack, unlike the Uno.
Safe current limits
- About 20 mA per I/O pin is safe; 40 mA is the absolute maximum.
- Keep the total current of all pins well under 200 mA.
- The 3V3 pin can supply only a small current. Power 3.3V modules that need more current from a separate regulator.
- Drive relays, motors and LED strips through a transistor, a relay module or a motor driver, never directly from a pin.
Common wiring examples
| Module | Nano pins |
|---|---|
| 16x2 I2C LCD / 0.96 inch OLED | VCC → 5V, GND → GND, SDA → A4, SCL → A5 |
| HC-SR04 ultrasonic sensor | VCC → 5V, GND → GND, TRIG → D9, ECHO → D10 |
| SG90 servo | Red → 5V (separate supply for more than one servo), Brown → GND, Orange → D9 (PWM) |
| DHT11 sensor | VCC → 5V, GND → GND, DATA → D2 |
| HC-05 Bluetooth | VCC → 5V, GND → GND, TX → D10, RX → D11 through a voltage divider (with SoftwareSerial) |
Nano vs Uno pins
The Nano has the same chip and the same digital pins as the Uno, plus two extra analog inputs (A6, A7). It has no DC jack and no shield headers, and uses Mini-B USB. Code written for the Uno runs on the Nano. See Arduino Uno vs Nano vs Mega.
FAQ
How many pins does the Arduino Nano have?
30 pins: 14 digital (D0–D13), 8 analog (A0–A7) and 8 power/control pins, plus a 6-pin ICSP header.
Which pins are PWM on the Arduino Nano?
D3, D5, D6, D9, D10 and D11.
Which pins are I2C on the Arduino Nano?
A4 is SDA and A5 is SCL.
Can A6 and A7 be used as digital pins?
No. On the Nano, A6 and A7 are analog inputs only.
What is the Arduino Nano price in Pakistan?
At MREECO the Arduino Nano V3 is Rs. 660 (November 2026), sold at Shop #30, Mashallah Center, Hall Road, Lahore, with delivery all over Pakistan.
New to Arduino? Start with the Arduino IDE install guide.