ToolSphere
All perfboard layouts

LED and Resistor Perfboard Layout

The first circuit almost everyone solders: one LED and the resistor that stops it burning out, between a +5V rail along the top of the board and ground along the bottom.

LED + resistor perfboard layoutR1 330RLED
Open this layout in the simulator Connection check: no shorts, 3 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

The resistor sets the current. With a 5 V supply and a red LED that drops about 2 V:

I = (5 V − 2 V) ÷ 330 Ω ≈ 9.1 mA

That is bright enough to see clearly and well under the 20 mA most small LEDs are rated for. A blue or white LED drops about 3 V, so the same resistor gives (5 − 3) ÷ 330 ≈ 6 mA, a little dimmer. The resistor can go on either side of the LED; what matters is that the LED's anode (longer leg) faces the positive side.

Building it, step by step

  1. Solder a bare or insulated wire along the top row for +5V and along the bottom row for GND.
  2. Fit the 330 Ω resistor (orange, orange, brown) vertically, with a short wire from its top leg up to the +5V rail.
  3. Fit the LED below it, anode (long leg) towards the resistor, and link the resistor's lower leg to the anode.
  4. Run the cathode (short leg, flat side of the case) down to the GND rail.
  5. Before power, check with a multimeter that +5V and GND are not shorted.

Tools for this build

Frequently asked questions

What resistor do I need for an LED on 5 V?

330 Ω gives about 9 mA with a red LED, a safe, bright choice. Work it out as (supply − LED forward voltage) ÷ current; the LED resistor calculator does it for any LED and supply.

Which way round does the LED go?

The anode (longer leg) goes towards positive, the cathode (shorter leg, next to the flat on the case) towards ground. Backwards, it simply stays off.

Can I use 220 Ω instead?

Yes, on 5 V with a red LED that is (5 − 2) ÷ 220 ≈ 13.6 mA: brighter, still within a typical 20 mA rating.