A project that works on a breadboard is one bumped wire away from not working. Moving it to perfboard or stripboard makes it permanent, and the Arduino Nano is ideal for that: it is the same shape as a 30-pin chip, so it drops straight into a 0.1-inch grid.
The Nano's footprint
The Nano has two rows of 15 pins, 0.6 inches (six holes) apart, on the standard 0.1-inch pitch. On a board that's a block of 2 × 15 holes with five free columns between the rows.
The pins you'll use most:
| Pins | What they do |
|---|---|
| D2, D3 | digital, and the two external-interrupt pins |
| D3, D5, D6, D9, D10, D11 | PWM (analogWrite), for LEDs and motor speed |
| D10–D13 | SPI (D13 also drives the on-board LED) |
| A0–A5 | analog inputs, also usable as digital pins |
| A4, A5 | I2C: SDA and SCL |
| A6, A7 | analog input only |
| 5V, 3V3, GND, VIN | power: VIN takes about 7–12 V into the on-board regulator |
Plan which pin does what before soldering: pick the Nano and your parts in the Arduino pin planner, and it assigns every pin, flags wiring mistakes, and writes the pin setup for your sketch.
Step 1: use female headers
Solder two strips of 15-way female headers to the board and plug the Nano into them, rather than soldering the Nano down. You can unplug it to reprogram from another computer, swap it if it dies, or reuse it in the next project. Solder one pin at each end of each header first, check the header sits flat and straight, then do the rest.
Step 2: power rails
Run a 5V rail along one long edge and a GND rail along the other, and connect them to the Nano's 5V and GND pins with short, thick wires. Every part then has a short hop to power.
- Powered from USB, the Nano supplies 5V from the USB port.
- For a battery or wall adapter, feed 7–12 V into VIN (or regulated 5 V straight into the 5V pin, never both at once with USB unless you know your board's protection).
- Add a 10 µF electrolytic across the rails near where power comes in, and a 100 nF ("104") ceramic close to any sensor.
Step 3: on stripboard, cut under the Nano
If you use stripboard (Veroboard), place the Nano across the strips (pins 1–15 running down one side), so each pin sits on its own strip. Then cut every strip between the two rows of pins, one cut per strip, 15 in all. Without those cuts, D12 is shorted to D13 across the board, and so on down the Nano. A drill bit turned by hand or a spot-face cutter makes clean cuts; check each one with a multimeter.
On perfboard, each pad is separate, so there's nothing to cut: you wire each pin to where it's needed.
A worked layout: two LEDs, a button and an I2C sensor
LEDs on D5 and D6 (PWM, so they can fade):
D5 → 220 Ω → LED anode, LED cathode → GND
(5 V − 2 V) ÷ 220 Ω ≈ 13.6 mA per LED
That's under the 20 mA per pin that's comfortable for the ATmega328P. Work out your own value with the LED resistor calculator; red, red, brown is 220 Ω on a 4-band resistor (colour code guide).
A push button on D2, wired between D2 and GND, with no resistor: use the internal pull-up.
pinMode(2, INPUT_PULLUP); // reads HIGH when released, LOW when pressed
An I2C sensor or OLED on a 4-pin header: GND, 5V (or 3V3 for 3.3 V-only boards), SCL to A5, SDA to A4. Most breakout boards already have pull-up resistors on SCL and SDA; add 4.7 kΩ pull-ups to 5V only if yours doesn't.
Placement: Nano in the middle; LEDs and resistors in a row beside D5/D6; the button near the board edge so you can reach it; the I2C header at the opposite edge, where its cable will go. Keep the A4/A5 wires short and away from the LED wires.
Check before power
- Continuity test the 5V and GND rails to each other: they must not beep.
- Check for solder bridges between adjacent header pins, and on stripboard, that all 15 cuts are clean.
- Plug in the Nano without the sensor first, upload Blink, and check the on-board LED.
- Add the sensor and run an I2C scanner sketch; it should report the sensor's address.
Plan it on screen first
The perfboard simulator has an Arduino Nano part in its parts bar: the real 2 × 15 footprint with every pin named (D2, A4, 5V…), so wires land on the right pin. In stripboard mode its connection check flags the 15 missing cuts under the Nano until you make them, and the parts list adds the Nano to your shopping list. The general perfboard planning guide covers placement for any circuit, and the 555 timer layout is a good first board if you haven't soldered one yet.
The worked layout above is in the perfboard layout library, ready to open in the simulator with every wire in place.