Saturday, March 26, 2016

Solar night light - simple circuit


Simple Solar Circuits:
How to get started adding solar power to your small electronics projects. Use the sun to power small solar and battery powered night lights, garden lights, and decorations for halloween.

SolarCircuits - 12   SolarCircuits - 11

The first part of a solar circuit is  a device for collecting sunlight. To keep things simple, we’re using a single nicely made small solar panel for all of these circuits. The panel that we’re using for these circuits is this one, part number PWR1241 from BG Micro, about $3 each. This is a monolithic copper indium diselenide solar panel, apparently printed on a 60mm square of glass and epoxy coated for toughness. On the back of the panel are two (thin) solderable terminals, with marked polarity. (While you can solder directly to the terminals, be sure to stress-relieve the connections, e.g., with a blob of epoxy over your wires.) In full sunlight the panel is specified to produce 4.5 V at up to 90 mA, although 50 mA seems like a more typical figure.
[Before we move onto our first examples, a word of caution: These are small simple circuits. In building these, we will quite intentionally gloss over a number of minor details and issues that are unimportant at these low powers, but could become critical if you were to try to scale up.]
Direct Drive:
The most obvious way to use power from a solar panel is to connect your load directly to the output leads of the solar panel.
solar1
Here are a couple of examples of this in practice:

SolarCircuits - 02   SolarCircuits - 01
On the left, we’ve hooked up one of our little solar panels directly to a small motor taken from an old CD player. When you set it out in the sunlight or bring it close to a lamp, the motor starts to spin. On the right we’ve hooked one of the panels right up to a high-power blue LED. The reason that we’ve used a high-power LED here is that it can easily withstand 50-90 mA from the solar panel– a “regular” LED designed for 20 mA would be destroyed by that current. (The LED is the same type that we used for our high-power LED blinking circuit.)
Interruption-resistant direct drive:
The “direct drive” circuits work well for their design function, but are rather basic. They provide no energy storage, and so are quite vulnerable to blinking out when a bird or cloud passes overhead. For some applications, like running a small fan or pump, that may be perfectly acceptable. For other cases, like powering a microcontroller or other computer, a brief power interruption can be disruptive. Our next circuit design adds a supercapacitor as a “flywheel” to provide continued power during brief interruptions.
solar2
SolarCircuits - 03
Instead of adding a single supercapacitor, you might notice that we’ve actually added two. That’s because the supercaps that we had on hand are rated for 2.75 V– not enough to handle the 4.5 V output of the panel when sunlight is present. To get around this limitation, we used two of the caps in series, for which the voltage ratings add, giving us a barely-okay total rating of 5.5 V. (Note: be careful adding capacitors of different values in series– the voltage ratings may scale in non-obvious ways.) When first exposed to the light, this circuit takes about 30 s to 1 minute to charge the capacitors enough that the LED can turn on. After it’s fully charged, the circuit can be removed from the sunlight and still drive the blue LED for about 30 s to 1 minute– a very effective flywheel for light duty applications.

Adding a battery
While interruption resistance is nice, a capacitor generally does not provide sufficient energy storage to power a solar circuit for extended periods of time in the dark. A rechargeable battery can of course provide that function, and also provides a fairly consistent output voltage that a capacitor cannot. In this next circuit, we use the solar panel to charge up a NiMH rechargeable battery and also LED off of the power, which will stay on when it gets dark out.
solar3
SolarCircuits - 04
In this circuit the solar panel charges up a 3-cell NiMH battery (3.6 V). Between the two is a “reverse blocking” diode. This one-way valve allows current to flow from the solar panel to the battery, but does not allow current to flow backwards out of the battery through the solar panel. That’s actually an important concern because small solar panels like these can leak up to 50 mA in the reverse direction in the dark. We’re using a garden-variety 1N914 diode for reverse blocking, but there are also higher-performance diodes available that have a lower “forward voltage.”

In this design we are continuously “trickle charging” up the battery when sunlight is present. For NiMH batteries and sealed lead-acid batteries (the two types that are most suitable for this sort of un-monitored circuit) it is generally safe to “trickle” charge them by feeding them current at a rate below something called “C/10″. For our 1300 mAh battery cells, C/10 is 130 mA, so we should keep our charging below 130 mA; not a problem since our solar panels only source up to 90 mA.
The other thing to notice about this circuit is that it’s pretty darned inefficient. The LED is on all the time, whenever the battery is at least slightly charged up. That means that even while the circuit is in bright sunlight it is wasting energy by running the LED: a sizable portion of the solar panel current goes to driving the LED, not to charging the battery.
Detecting Darkness
To add a darkness detecting capability to our solar circuit is even easier, actually, because our solar panel can directly serve as a sensor to tell when it’s dark outside.
solar4
SolarCircuits - 06
To perform the switching, we use a PNP transistor that is controlled by the voltage output from the solar panel. When it’s sunny, the output of the panel is high, which turns off the transistor, but when it gets dark, the transistor lets current flow to our yellow LED. This circuit works very well.

No comments:

Post a Comment

What is the difference between Socket and Port?

Socket Sockets allow communication between two different processes on the same or different machines. To be more precise, it's a way to ...