Welcome DIYers and hobbyists! If you want to build a handy LED night light that turns on automatically when it gets dark, you can make one easily using just a few basic electronic components and simple household materials.
In this comprehensive guide, I'll walk you step-by-step through the entire process of building your own simple but effective LED night light circuit using common parts like LEDs, resistors, transistors, batteries, and cardboard or plastic to make the enclosure.
No soldering is required for this beginner-friendly project. I'll also explain some key circuit concepts like current, resistance, and transistors so you understand how the night light works. Let's get started!
What You'll Need to Build the LED Night Light
To build the LED night light circuit, you'll need just a few basic components that many hobbyists, students, and teachers likely already have at home:
-
5mm white LEDs - 2 or 3 LEDs will work. More LEDs will provide brighter light.
-
470 ohm resistor - Limits current to protect the LEDs.
-
NPN phototransistor - Detects ambient light and turns circuit on when dark.
-
3V coin cell battery - Powers the circuit. CR2032 or CR2025 work well.
-
Battery holder - Holds the coin cell battery securely.
-
Cardboard or plastic - For building the night light enclosure.
-
Hook-up wire - For making the electrical connections.
-
Tape - Helps secure components to the enclosure.
That's it! Chances are you can find all of these parts pretty easily without having to buy anything new. Let's look at how the circuit works before we start building.
How the Automatic LED Night Light Circuit Works
Here is a simplified diagram showing how the components in the circuit work together:
The phototransistor acts like a light-sensitive switch. During the day or when room lights are on, the phototransistor detects the ambient light which keeps it switched "off." This breaks the circuit so no current flows and the LEDs stay off.
But at night or when it's dark, there's no light hitting the phototransistor. This turns the phototransistor "on" so current can flow from the battery through the resistor and LEDs, lighting them up!
Using a transistor rather than a physical switch allows the circuit to turn itself on automatically based on ambient light conditions. Pretty cool!
Now let's get building.
Step-by-Step Instructions to Build the Night Light Circuit
Follow these step-by-step instructions to build your own automatic LED night light:
1. Insert the LEDs into the Cardboard Enclosure
-
Take a piece of cardboard and cut or poke holes for the LEDs to fit through. Insert the LED leads through the holes.
-
Position the LEDs where you want them on the front of the enclosure.
-
Tip: Place the LEDs along one edge of the enclosure so they shine sideways rather than straight out. This gives wider, softer illumination.
2. Connect the LEDs in Parallel
-
Connect the positive/longer LED leads together.
-
Connect the negative/shorter LED leads together.
-
This wires the LEDs in parallel which allows them all to light up nicely.
3. Add the Resistor
-
Take the resistor and twist one end onto the bundle of positive LED leads.
-
Twist the other end of the resistor onto the positive wire from the battery holder.
-
The resistor protects the LEDs by limiting current through the circuit.
4. Install the Phototransistor
-
Place the phototransistor near a hole or transparent area to allow light through.
-
Connect its collector lead to the positive resistor/LED leads.
-
Connect its emitter lead to the negative battery/LED leads.
5. Connect the Battery and Switch
-
Connect the positive battery wire to the resistor.
-
Connect the negative battery wire to the LEDs and phototransistor emitter lead.
-
Insert battery into holder and switch it on!
The circuit is complete. Let's test it out.
Testing and Using Your Automatic LED Night Light
When you're finished, here's how to test and use your homemade LED night light:
-
Turn out the lights and verify the LEDs turn on automatically!
-
Cover phototransistor with hand to turn LEDs off. Uncover to turn back on.
-
For softer light, diffuse LEDs by gluing tissue paper over them.
-
Place night light in hallway, bedroom, or any other dark area that needs some automatic illumination at night.
Some optional ways to improve your night light:
-
Add more LEDs for brighter light.
-
Craft a decorative enclosure from cardboard, wood, plastic, etc.
-
Use different colored LEDs like blue or green for fun effects.
-
Power with bigger battery for longer run time.
That's it! I hope you enjoyed this handy guide to building your own automatic LED night light circuit with common household items and basic electronic components.
Let me know if you have any other questions! I'm happy to help explain circuit concepts or troubleshoot any issues with your build. Have fun lighting up the night with your homemade LED night light.