Project · Beginner

Build a 555 LED blinker on perfboard

The classic first project, from schematic to switch-on: a 555 timer flashing an LED about once a second from a 9 V battery. Every part's job, both layouts, and the build and test, step by step.

About 8 minutes to read · Written for beginners · New words? See the glossary

What you're building

A 555 timer chip switching an LED on and off about once a second, powered by a 9 V battery, on a perfboard 20 holes by 15. It's the classic first project for good reasons: a handful of cheap parts, a chip you'll meet again and again, and an obvious sign that it works.

About 1 HzThe flash rate, on and off for about equal times
11 partsOn a board of 20 × 15 holes, or the stripboard version
About 15 mARoughly a day and a half of blinking from a fresh 9 V battery
The 555 LED blinker laid out on perfboard: the battery terminal on the left, the chip in the middle, the timing parts on the right and the LED at the bottom left
The finished plan in Perfboard Designer, from the component side.

The schematic

Read it left to right: power comes in through a protection diode, the 555 in the middle keeps time, and the LED on the right shows it.

Schematic of the 555 LED blinker: a 9 V battery through the protection diode D2 feeds the +9 V rail, with C3 and C4 across the supply; R1 and R2 charge C1, which pins 2 and 6 of the NE555 watch; pin 7 discharges it; pin 3 lights the LED D1 through R3; C2 steadies pin 5
Tap or click the schematic to open it full size.

The same thing in words, connection by connection:

  • +9 V: from the battery's + through D2, to the + of C3, to C4, R1, and the 555's pins 4 and 8.
  • 0 V: the battery's −, the − of C3 and C1, C4, C2, the LED's cathode and the 555's pin 1.
  • Timing: R1 and R2 meet at pin 7; R2 and C1's + meet at pins 6 and 2, which are joined together.
  • Output: pin 3 lights the LED through R3, and C2 sits between pin 5 and 0 V.

How it works

Wired like this, the 555 is astable: it never settles, but flips its output between high and low by itself, forever. C1 is the clock:

  1. Charge

    C1 charges through R1 and R2. Meanwhile the output, pin 3, is high, and the LED is on.

  2. Flip to off

    When C1 reaches two thirds of the supply, pin 6 (threshold) notices: the output goes low, the LED goes off, and pin 7 (discharge) starts emptying C1 through R2.

  3. Flip to on

    When C1 falls to one third of the supply, pin 2 (trigger) notices: the output goes high again, pin 7 lets go, and C1 charges once more.

The parts set the times:

FormulaHere
LED on0.693 × (R1 + R2) × C10.693 × 69 kΩ × 10 µF ≈ 0.48 s
LED off0.693 × R2 × C10.693 × 68 kΩ × 10 µF ≈ 0.47 s
Flashes per second1.44 ÷ ((R1 + 2 × R2) × C1)1.44 ÷ (137 kΩ × 10 µF) ≈ 1.05

Because R1 is small next to R2, the LED is on and off for almost the same time. To change the speed, change C1: 4.7 µF flashes about twice as fast, 22 µF about half as fast.

Every part's job

PartValueIts job
U1NE555 timerThe clock: switches its output as C1 charges and discharges
R11 kΩCharges C1 with R2, and stops pin 7 shorting the supply when it discharges
R268 kΩSets both times with C1
C110 µFThe timing capacitor: bigger is slower
C210 nFSteadies pin 5 (control), so noise can't nudge the timing
R3470 ΩLimits the LED's current to about 10 mA
D1Red LEDThe blink
D21N4001Blocks the current if the battery goes on backwards
C3100 µFThe bulk capacitor: steadies the supply
C4100 nFDecouples the 555: supplies the quick gulps of current it takes as it switches
J1Screw terminalWhere the battery clip's wires go

Parts list

PartWhat to buyNotes
U1NE555 timer, 8-pin DIPAnd an 8-pin DIP socket
R11 kΩ resistor, ¼ WBands: brown, black, red
R268 kΩ resistor, ¼ WBands: blue, gray, orange
R3470 Ω resistor, ¼ WBands: yellow, violet, brown
C110 µF electrolytic capacitor16 V or more
C210 nF ceramic capacitorMarked 103
C3100 µF electrolytic capacitor16 V or more
C4100 nF ceramic capacitorMarked 104
D1Red LED, 3 or 5 mmAnother color works too
D21N4001 diodeAny 1N400x will do
J12-way screw terminal, 5.08 mmFor the battery clip's wires. The stripboard version takes a 2-pin header, 2.54 mm, instead

And: a 9 V battery and clip, perfboard of at least 20 × 15 holes (a 5 × 7 cm board has room), bare tinned wire for the copper side, a little red and yellow solid-core wire, and four M3 screws and standoffs if you'll mount it.

The perfboard layout

The 555 LED blinker on perfboard from the component side, with the chip's pin 1 at top left
From above: the plan you place the parts by.
The 555 LED blinker on perfboard turned over, mirrored, with every joint to solder marked
Turned over: the view you solder from.

Power comes in on the left edge through D2, with C3 beside it; +9 V runs along the top and 0 V along the bottom; the chip sits in the middle with C4 across its supply pins, the timing parts in a column on the right and the LED at the bottom left. A red jumper takes reset to +9 V, and a short link under the socket joins pins 2 and 6. How it was planned is in the layout guide's worked example.

See this board up close

The stripboard version

The 555 LED blinker on stripboard with horizontal strips, six links and six cuts
The same circuit on stripboard: the strips do most of the wiring.

The same parts, but for J1, on a stripboard 20 holes by 15. J1 is a 2-pin header (2.54 mm) here, for a battery clip with a matching plug, as its two pins sit on the neighboring +9 V and ground strips. Six links and six cuts: four under the chip, one to put D2 in line with the supply, and one to keep the LED's strip short. The stripboard guide explains each one.

See the stripboard version up close

Build it

  1. Prepare the board: cut it to size if you need to, and put a dot of marker on the same corner of both faces, to count holes from.
  2. Solder the lowest parts first: the red jumper; then R1, R2, R3 and D2; the socket, with no chip in it; C2 and C4; the LED and the electrolytics C1 and C3; and the terminal J1 last.
  3. Check every polarity as each part goes in: D2's band away from the terminal, the LED's flat side and the capacitors' stripes toward 0 V, the socket's notch at the top.
  4. Wire the copper side from a print of the solder side: the solder bridges between neighboring pads, then the bare wire, rails first, and the yellow link under the socket from pin 2 to pin 6.
  5. Tidy up: trim the leads and clean the flux off with isopropyl alcohol.

The order is explained in How to solder, and the wiring in How to wire a perfboard. The bench card has the essentials on one page for the bench.

Test it, then switch on

  1. Look at every joint and every polarity again.
  2. Beep every connection with a meter, and the near misses: pins 2 and 6 are joined, but neither may beep to pins 3 or 7.
  3. Measure across C3 with the chip out: the reading climbs as the capacitors charge. Close to 0 Ω means a short.
  4. Power up with the chip out, through a 100 Ω resistor or a 50 mA current limit: almost no current once the capacitors have charged.
  5. Measure from socket pin 1 to pin 8: a little under the battery's voltage.
  6. Switch off, plug the 555 in with its notch matching the socket's, and power up: the LED flashes about once a second, and the board draws about 15 mA.

Every step, with the readings, is in the testing guide's worked example.

If it doesn't blink

What you seeWhat to check
Nothing at allThe battery and its clip; D2 the right way round, band away from the terminal; the terminal's screws
The LED never lightsThe LED the right way round, flat side to 0 V; R3 and its joints; pin 3's wiring
The LED stays on, or stays offThe link between pins 2 and 6; C1 the right way round; R2's value (blue, gray, orange)
Too fast or too slowC1 and R2: a 1 µF in place of 10 µF flashes ten times as fast
Something gets warmDisconnect first. Then a short across the supply, or C1, C3 or D2 in backwards
Works only when you press itA bad joint, or the chip not pushed fully into its socket

Frequently asked questions

How do I make the 555 LED blink faster or slower?

Change C1 or R2. Halving C1 doubles the rate: 4.7 µF flashes about twice a second, 22 µF about once every two seconds. The rate is 1.44 ÷ ((R1 + 2 × R2) × C1).

Can the 555 blinker run from 5 V or USB?

Yes, with two changes. The NE555 needs at least 4.5 V and D2 takes about 0.7 V, so use a Schottky diode such as a 1N5817, or the CMOS TLC555, which runs from 2 V. And lower R3 to about 220 Ω so the LED stays bright.

What does the capacitor on pin 5 do?

It steadies the 555's control voltage, which sets the two-thirds and one-third switching points. The blinker usually works without it, but the timing can wobble with noise on the supply.

Why is there a diode at the power input?

It's reverse-polarity protection: if the battery goes on backwards, D2 blocks the current instead of letting it flow through the chip and capacitors the wrong way. It costs about 0.7 V, which the 555 doesn't mind at 9 V.

Further reading

The sources behind this guide, and good places to go deeper:

Plan your next board in Perfboard Designer

Free, in your browser, no sign-up: lay out perfboard or stripboard, check every connection, flip to the solder side and print it at true size.

Open the designer