ToolSphere
All perfboard layouts

Arduino Nano Perfboard Layout (LED, Button)

A Nano lying along the board on female headers, with LEDs on D5 and D6, a push button on D2 and a 4-pin header for an I2C sensor or OLED. Ground runs along the top row, +5V along the bottom, so every part has a short hop to power.

Arduino Nano project perfboard layoutA1 NanoR1 220RLED1R2 220RLED2SW1J1 I2C
Open this layout in the simulator Connection check: no shorts, 9 named nets

Red wires carry power, white is ground, yellow and blue are signals. Every hole is an isolated pad; connections are the wires shown. In the simulator you can move parts, add your own and re-run the check.

Parts list

As an Amazon Associate, ToolSphere earns from qualifying purchases.

How it works

Pin choices. D5 and D6 are PWM pins, so the LEDs can fade with analogWrite. D2 is an interrupt pin, handy for a button. A4 (SDA) and A5 (SCL) are the Nano's I2C pins.

LEDs: (5 V − 2 V) ÷ 220 Ω ≈ 13.6 mA each, inside the 20 mA per pin that is comfortable for the ATmega328P.

Button: wired from D2 to GND with no resistor; the sketch turns on the internal pull-up:

pinMode(2, INPUT_PULLUP);   // HIGH when released, LOW when pressed

I2C: most sensor and OLED breakout boards already have pull-up resistors on SCL and SDA. The SCL and SDA wires run below the Nano's pin row so they never cross another pin.

Building it, step by step

  1. Solder two 15-way female headers six holes apart and plug the Nano in, rather than soldering it down.
  2. Run GND along the top row and +5V along the bottom; wire the Nano's GND and 5V pins to them.
  3. Fit each LED with its 220 Ω resistor between D5 or D6 and GND, anode towards the resistor.
  4. Fit the button between D2 and GND.
  5. Fit the I2C header (GND, VCC, SCL, SDA) and wire SCL to A5 and SDA to A4. Test with Blink before adding the sensor.

Tools for this build

Frequently asked questions

Which Arduino Nano pins are I2C?

A4 is SDA and A5 is SCL on the classic Nano (ATmega328P).

Should I solder the Nano directly to the perfboard?

Use female headers instead: you can unplug the Nano to reprogram it elsewhere, replace it, or reuse it.

Do I need a resistor for the button?

Not with INPUT_PULLUP: the Nano's internal pull-up holds D2 high and the button pulls it low when pressed.