Introduction: Build a Color Changing, Battery Operated LED Night Light
A small but mighty battery operated night light. Select from different solid color modes, or disco flashy mode! Would also make an excellent bike light. Built from 7 color LEDs and a dot-it.
I found these LEDs while buying components for another project. I had an dead dot-it lying around, and was struck by inspiration.
I made a video, since photos don't really do it justice. Check it out.
Step 1: Materials
I started with three 7 color flashing LEDs, three 51 ohm resistors, a small round circuit board, and a SPST momentary push button switch from Radio Shack. You'll also need a "Dot-it" LED battery powered light. From your toolbox, you'll need some wire for jumpers, wire cutters, needlenose pliers, technical screwdrivers, solder, and a soldering iron. I found a glue gun, a set of "helping hands" (a stand with a magnifying glass and alligator clips,) and a desoldering iron helpful, but they aren't crucial.
Step 2: Loosen the Glue
Start by twisting the dot-it to loosen the 3 glue dots on the side that are holding the cover on.
Step 3: Unscrew the Battery Cover
Use a phillips 0 to unscrew the three small screws holding the battery cover on. Remove batteries.
Step 4: Pry Off Cover
Using a slotted screwdriver, carefully pry off the cover. It's only held on with three dots of glue.
Step 5: Remove Cover
Once the cover is loosened, carefully pop it out. Remove the lens and reflector, and set aside. You'll need these parts again soon.
Step 6: Remove Old Guts
Use your soldering iron to melt the solder connections and remove the old circuit board. It's printed, and won't work for our 7 color LEDs. I removed the nice, bright white LEDs so I could use them in another project.
Step 7: Make New Circuit Board Fit
I had to file a bit off the edges to make it fight right.
Step 8: Tack LEDs in Place With Hot Glue
I used hot glue to temporarily hold my new LEDs in place in the reflector so I could be sure they would line up with the holes later. Only use a little so you can pop it off later.
Step 9: Fit Circuit Board Onto LEDs
Push the circuit board onto the legs of the LEDs. Since they're tacked in place in the reflector, they won't move around. Make sure that the reflector fits in the case right, and that the circuit board lies where it is supposed to.
From this point on, test everything frequently or you may be very sad once you get it all back together.
Step 10: Attach Resistors and Switch
Solder a resistor in place on the non-foiled side of the circuit board (with the LED's.) One leg of each resistor should be attached to the CENTER leg of each of the LEDs. The other leg of each resistor should be soldered to all the other resistors. The hot (positive) from the batteries will be soldered here. Add your switch now too. DO NOT SOLDER THE SWITCH TO THE POSITIVE. I know this seems counter-intuitive, but the switch is for the "control leg" of the LEDs. If you find a micro-sized switch, no modification is necessary. If, like me, you can only find a submini switch, you will need to drill a hole in the reflector and the cover. It's messier, but works just fine. The original switch is NOT a momentary switch and can't be used.
Step 11: Wire Jumpers and Leads
Almost there! Now that your "hot" has been soldered to the resistors, it's time to hook up the neutral and the control legs. The leg with a 90 degree bend near the top is the neutral. Use jumpers to wire these all together. Add a lead that will go to the neutral end of the battery holder.
The leg with the slanted top is the control leg. Use jumpers to attach all of them to one leg of your switch. Next, solder a jumper from the other leg of the switch to your neutral lead and neutral jumpers.
When the switch is pushed, it will interrupt the neutral going to the control leg, which will cause the LED to jump to the next stop in its cycle. Do not interrupt the positive; the switch on the control leg will turn the light on and off.
Solder the other ends of the hot and neutral leads to the battery holder.
Step 12: Reassemble and Enjoy!
push the circuit board and reflector back in place. Snap on the lens. I bent the cover in slightly around the edge and it "grabbed" the battery holder fine, but you could glue it back in place, I guess. Put in your batteries, and screw the battery cover back on.
Once you put in the batteries, the LEDs will go through a test cycle that can only be described as "surprising." That's why you don't want to interrupt the hot. Once they appear to turn off, you're ready to go. Each time you push the button, it should move through each step of the cycle as follows:
disco color change
Push button repeatedly and enjoy!