How to Build a Battery Powered LED Flashing Light Circuit with Scraps You Have at Home
Building a simple flashing LED light circuit using common household items is an easy and fun electronics project. With just a few cheap components and basic circuit knowledge, I was able to make a unique light that runs off battery power.
What You'll Need
To build the flashing LED light circuit, you'll need:
-
LEDs - I used 3 brightly colored 5mm LEDs. Red, green and yellow looked nice.
-
Battery - A 9V battery is perfect. AA or AAA batteries can work too.
-
Resistors - I used 220 ohm resistors to limit current through each LED.
-
Switch - A simple toggle or push button switch to turn the LEDs on and off.
-
Transistor - I used a 2N2222 NPN transistor as a current amplifier to flash the LEDs.
-
Capacitor - A 10μF electrolytic capacitor to create the flashing effect.
-
Breadboard - For easily connecting components together.
-
Jumper wires - For making connections on the breadboard.
How the Circuit Works
The circuit uses a transistor wired in an astable multivibrator oscillator configuration to create the flashing effect. Here's how it works:
When power is first applied, the capacitor is uncharged. This allows current to flow through the base of the transistor, turning it on. The transistor then supplies current to light the LEDs.
At the same time, the charging capacitor starts to pull the transistor base voltage lower, eventually turning the transistor off. This turns the LEDs off.
The capacitor then starts to discharge through the resistor, allowing the transistor to turn back on again, lighting the LEDs. This charge/discharge cycle repeats, creating a flashing effect.
The resistor and capacitor control the timing of the flashes. I picked common values to give a noticeable but not too fast flashing speed.
Building the Circuit on a Breadboard
Step 1) Place the transistor, capacitor, resistors and LEDs on the breadboard as shown:
Step 2) Connect the positive side of the battery to the breadboard power rail marked '+'.
Step 3) Connect the negative side of the battery to the power rail marked '-'.
Step 4) Connect the switch between the positive rail and the transistor base.
Step 5) Connect the transistor collector to the positive rail.
Step 6) Connect all the resistor legs and LED anodes to the transistor emitter.
Step 7) Connect the LED cathodes to the negative rail.
Step 8) Connect the capacitor between the transistor base and negative rail.
Once everything is wired up, flip the switch and enjoy the flashing LEDs! Adjust the resistor and capacitor values to change the flash timing.
Troubleshooting Tips
If the circuit doesn't work, here are some things to check:
-
Confirm the transistor, capacitor and LEDs are inserted in the correct orientation.
-
Check that the battery is good and making good contact with the rails.
-
Make sure the breadboard joints are clean and the wires are fully inserted.
-
Try swapping the transistor, resistors or capacitor for known good parts.
With a little testing and adjustments, you should be able to get the circuit working! The simple construction and customizable flashing effect make this a fun electronics project using basic components.