Evil Dark Detecting Solar Piggy Night Light

by BrownDogGadgets in Circuits > LEDs

6229 Views, 17 Favorites, 0 Comments

Evil Dark Detecting Solar Piggy Night Light

IMG_5895.jpg

Adding lights to random things in your house is great fun for kids of all ages. Adding solar lights to random things in your house is even more fun. Adding red eyes to a piggy bank to make it evil is probably the most fun you'll have all afternoon.

I found this piggy bank at my local Dollar Store and instantly knew he'd look great with evil red eyes. I could have gone the simple route and wired the eyes to a power adaptor, but where would the fun be in that?

In the end I made a simple light detecting solar circuit that fits inside the pig. I'll stick him in my classroom next week and see if the kids notice him.

This is cheap to put together, easy to build, and long lasting. (Also, you don't have to stick this circuit into a pig. It'll work with anything.)

If you'd like to build this circuit I happen to have a kit available on my gadget site browndoggadgets.com, as well as a variety of solar cells for projects like this.

What You'll Need

IMG_5683.jpg
IMG_5846.jpg
IMG_5848.jpg

Parts:
Container (In my case a $1 piggy bank)
Two Red LEDs (For this project they need to be red)
Two 100 ohm resistors (or 50 ohm works as well)
Two AAA or AA rechargeable batteries
One AAA or AA battery holder
One solar cell with a power greater than 4 volt
One blocking diode (1N914)
One PNP transistor
One 5,000 ohm resistor (or close to it)
Wire

I also used two 5mm LED mounts, but you might not need them.

Equipment:
Soldering Iron
Wire Cutter
Drill
Hot Glue Gun

Cost: $5-10

Time: 30-60 minutes.

The Circuit

2963306745_82a5b69db1_o.jpg

I did not come up with this circuit. It's an awesome design by the people over at evilmadscientist.com. Quite simple to make and very effective for a lot of situations.

The limitation to this circuit is that because of the low voltage of the two batteries, we can only power red LEDs. Red LEDs only need 2.4 volts to run, and two rechargeable batteries supply a total of 2.4 volts.

You'll also need a solar cell greater than 4 volts, otherwise you're not going to be able to recharge the batteries.

Other color LEDs....

If you want to use three rechargeable batteries, for a total of 3.6 volts, you can run any color LED you want. You'll just need to use a 5-6 volt solar panel in order to recharge the batteries.

Alternately you could use a voltage booster circuit (aka joule thief) to boost the power of your rechargeable batteries. Meaning you'd only need one or two batteries in order to power higher voltage LEDs. It's not all that difficult to do and I've even wrote an instructable on how to do that.

If you're interested in such a circuit I have a kits available. A fun step up from this project.

Wire Up the Solar Panel

IMG_5852.jpg

Due to the fact that my piggy bank is very awkward to work with, I'm going to be assembling the entire circuit outside and then sticking it inside. The only hitch is that I want the solar panel to stick out through the coin slot. In order for this to work, I soldered on some long wires onto my solar panel.

I think I used about a foot so of wire for positive and negative.

Any solar panel will do as long as it provides a voltage greater than 4 volts. Mine throws out 4.5 volts at 80 mah. You can get your panels from a variety of sources. Online sellers, eBay, old solar garden lights, or even from me!

Breadboard Is Fun Board

IMG_5853.jpg
IMG_5857.jpg
IMG_5858.jpg

Before I start to solder everything together I'm going to breadboard it. Just on the off chance I've got a bad part, or I did something wrong. In fact, I actually had the wrong type of transistor the first time I tried this...

The light detecting circuit is very handy. It uses the solar panel to detect light, which directs the flow of power! When power is flowing from the panel the LEDs turn off and the battery charges. When there is no power from the panel the battery kicks in powering the light. Darned useful.

Drill Piggy Drill

IMG_5859.jpg
IMG_5861.jpg

Before I start all my soldering I drilled eye holes. As the piggy is made of a soft ceramic I need to be careful not to crack the pig nor cut too much out.

I assume a regular wood drill bit would be fine, but to be on the safe side I used a glass/ ceramic drill bit I had. I probably could have drilled through the pig with a pencil...

Be sure to get the right size the first time. Better to drill a hole too small than too big.

Turn Up the Heat

IMG_5863.jpg
IMG_5864.jpg
IMG_5865.jpg
IMG_5867.jpg

First thread the solar panel's long wires down through the coin slot and out the bottom of the pig. Give yourself enough wire to work comfortably with and cut off the rest. (We can always stuff excess wire into the pig at the end.

To the positive wire of the solar panel solder the 5,000 ohm resistor and the blocking diode. make sure the black bar on your blocking diode is on the transistor side. The black bar tells you which leg is negative and in which direction power will flow. (Wired in wrong and it'll block power from ever leaving the solar panel!)

Next, solder the blocking diode and the positive wire from the battery holder to the left leg of the transistor. (You did breadboard this out so you know which leg of the transistor goes where.... right?)

Lastly, wire the other end of the resistor to the middle leg of the transistor.

Annnnnndddddd we're done with the dark detecting circuit.

Wire Up the LEDs

IMG_5862.jpg
IMG_5868.jpg
IMG_5869.jpg

First solder the 100 ohm resistors onto the positive legs of the LEDs. (The positive is the long leg.)

Now you have two options. You can either hook those resistors directly up to the transistor OR hook up a wire to each resistor and then hook the wires to the transistor. The first option being slightly easier, the second option will make positioning everything easier.

(I chose the first option and wished I had chosen the second.)

Then solder some wires to the negative legs of the LEDs.

Now solder the two (or one) negative LED wire(s) to the negative solar wire and the negative battery wire. Twist them all together first. It makes things easier.

You've done it! Test out your circuit to make sure it's working.

Most importantly be sure to give yourself ample amounts of wire. It'll make positioning the LEDs inside the pig much much easier.

Warm Liquid Goo Phase

IMG_5870.jpg
IMG_5871.jpg

Using a hot (melt) glue gun cover all the exposed metal wire bits with glue. This prevents shorts and also is quite fun.

At this point you'll probably want to try putting in your LED holders if you've not already. (Unless you're not using them.) Don't glue them in.

Hook Up the Eyes & Stuff

IMG_5872.jpg

This part is very annoying. You need someone with long and skinny fingers to help you. Or cheap child labor. Either or.

I found that it was easiest to first stick the LEDs in, running them up to the eye holes and out a bit. Then attaching the mounts to the eyes, and then sticking them in. In all honesty just do whatever you can to get them in.

Once they're in place you may or may not want to put some glue down to keep them in place. As my glue gun is way way way to big to go into the pig, and as I don't trust my glue gun aim, I applied melt glue by hand (finger).

Note: This isn't very safe. Hot glue is... HOT.

So I squeezed some glue onto the table, waited a couple of second for it to slightly cool, picked it up with my finger, and applied it inside the pig behind the LED. I was only mildly burned.

Then just stuff everything else inside the pig. Battery pack, extra wires, the transistor circuit. Everything.

Enjoy!

IMG_5873.jpg
IMG_5895.jpg

Well that's it. You're now set. Put the pig next to a window and you'll always have a night light. An evil looking one.

For extra evil you might want to use a black or red piggy bank. Or paint it evil colors. If I had any artistic skills I would paint wings on my piggy.

This simple solar circuit is easy to make and quite a bit of fun. You can adapt it into most any sort of container or project.

If you're having problems finding solar cells I have quite a few of these cells for sale on my gadget site browndoggadgets.com. I also have all the parts needed to build this available as a kit, as well as a different kit that will let you use different colored lights.

If you make a piggy, post a picture! I'd love to see what people come up with.