Electronic circuits · no code

Two-Transistor Flip-Flop Blinker

Two LEDs that take turns lighting up non-stop, with no chip and no code: just two transistors and two capacitors passing the baton. It is an astable multivibrator, the most classic blinker in electronics.

  • LevelBeginner
  • Time25 min
  • Power6 V DC (4 AA batteries)
  • CategoryLights & LEDs

Bill of materials

Everything you need to build it, with the reference you will see on the schematic.

Bill of materials
Qty Part Ref.
2 270 Ω resistor (red-violet-brown) R1, R2
1 red LED D1
1 green LED D2
1 27 kΩ resistor (red-violet-orange) R3
1 33 kΩ resistor (orange-orange-orange) R4
2 BC547 NPN transistor Q1, Q2
2 47 µF electrolytic capacitor C3, C4
1 Holder with 4 AA batteries (6 V) BT1
1 Breadboard (400 tie-points or more)
12 Jumper wires

Missing parts? The kits recommended by Impeca Tech include almost all of them. See the kits

Schematic & wiring

On the left, the circuit diagram; on the right, the same circuit built on a breadboard. Both connect exactly the same things.

Circuit diagram of “Two-Transistor Flip-Flop Blinker”
Circuit diagram
Breadboard layout of “Two-Transistor Flip-Flop Blinker”
Breadboard layout

Wire it step by step

  1. Place the components
    • 270 Ω resistor R1 (bands: red, violet, brown, gold): one leg in 3f and the other in 6f (either way round).
    • red LED D1: the long leg (+, anode) in 6g and the short leg (−, cathode, flat side) in 7g.
    • 270 Ω resistor R2 (bands: red, violet, brown, gold): one leg in 8f and the other in 11f (either way round).
    • green LED D2: the long leg (+, anode) in 11g and the short leg (−, cathode, flat side) in 12g.
    • 27 kΩ resistor R3 (bands: red, violet, orange, gold): one leg in 13f and the other in 16f (either way round).
    • 33 kΩ resistor R4 (bands: orange, orange, orange, gold): one leg in 26f and the other in 22f (either way round).
    • BC547 transistor Q1 with the flat face (the one with the text) towards you, left to right: collector (C) in 18f, base (B) in 19f, emitter (E) in 20f.
    • BC547 transistor Q2 with the flat face (the one with the text) towards you, left to right: collector (C) in 23h, base (B) in 24h, emitter (E) in 25h.
    • 47 µF electrolytic capacitor C3: the leg marked with the stripe and the − sign in 22g and the other leg (+) in 21g. Reversed, it can be damaged.
    • 47 µF electrolytic capacitor C4: the leg marked with the stripe and the − sign in 16g and the other leg (+) in 17g. Reversed, it can be damaged.
  2. Add the jumper wires
    • Red wire: from 3j to the + (red) rail.
    • Red wire: from 8j to the + (red) rail.
    • Red wire: from 13j to the + (red) rail.
    • Red wire: from 26j to the + (red) rail.
    • Orange wire: from 18j to 7j.
    • Turquoise wire: from 18i to 21j.
    • Purple wire: from 12j to 17j.
    • Pink wire: from 12i to 23j.
    • Lime green wire: from 16j to 19j.
    • Black wire: from 20j to the − (blue) rail.
    • Black wire: from 25j to the − (blue) rail.
    • Sky blue wire: from 22j to 24j.
  3. Connect the battery
    • Connect the holder with 4 AA batteries (6 V): the red lead to the + (red) rail and the black one to the − (blue) rail. Do this last, once everything else is in place.
  4. Test the circuit
    • When you connect the 4 AA pack (6 V) the two LEDs light in turns: first one, then the other. Count one full cycle (red and green): it should take about 1.6 seconds. If both look lit for a fraction of a second when you connect it, that is normal: the circuit unbalances itself and starts alternating right away.

How to read the holes: the letter is the row and the number is the column of the breadboard (for example 7f). The red (+) and blue (−) rails are the two long lines along the edge.

How does it work?

  1. 1One transistor conducts and its LED lights
  2. 2Its capacitor switches the other transistor off
  3. 3That capacitor charges and the other transistor wakes up
  4. 4It flips and the LEDs take turns

The two transistors make a symmetrical circuit: the output (collector) of each one is tied to the input (base) of the other through a capacitor. When Q1 conducts, its collector drops almost to 0 V and, through C3, pulls the base of Q2 down: Q2 switches off and so does its LED. Meanwhile C4 charges through R3 (27 kΩ). When the base of Q1 rises to about 0.6 V the change is abrupt: Q2 conducts, its collector drops, C4 now switches Q1 off, and the cycle repeats the other way round. Each LED has its own 270 Ω resistor and about 15 mA flows through the one that is on. A full cycle takes about 1.6 s; the timing is set by the capacitors (47 µF) and by R3 and R4 (27 kΩ and 33 kΩ): with other values the blinking is faster or slower.

Testing & troubleshooting

What you should see

Running on its own (hands off)
Time for one full cycle (both LEDs)≈ 1.61 V
Current of the lit LED≈ 15 mA

Approximate values, calculated with typical parts. With real parts they can vary by 10 % or more.

If something does not work

Both LEDs stay on and do not alternate?

It is almost always a capacitor the wrong way round: on C3 and C4 the long leg (+) goes to the collector (the LED side) and the − stripe to the base of the other transistor. Also check that R3 and R4 are 27 kΩ and 33 kΩ.

Only one LED blinks?

Check that each transistor is the right way round (flat face towards you: legs C, B, E from left to right, as in the diagram) and that each 270 Ω resistor is in series with its LED.

Want to automate this circuit with code?

Learn how to program sensors and custom schedules in our e-book “Arduino from Scratch”.