Simple Solar Circuits

33,246

218

37

Introduction: Simple Solar Circuits

I am a photographer, a tinker, an electronics technology engineer, and author; I write short stor...

Each spring I gather solar lights my neighbors tossed in the garbage after the lights have stopped working. The ones that only need minor repairs, I repair, and the ones that need major work I strip for parts and reverse engineer the circuit boards. Most of the circuit designs used in automated decretive garden lights are simple and easy to reverse engineer.

https://www.instructables.com/id/Reverse-Engineering-1/

Although it can be more work, I repair the solar cells.

https://www.instructables.com/id/Repairing-Polymer-Degradation-on-Solar-Cells/

https://www.instructables.com/id/Repairing-Solar-Cells/

Garden lights incorporate three basic circuits, the charging circuit, the dark detecting circuit that turns the LED driver on and off, and the LED driver. Some LED drivers incorporate a voltage multiplier or voltage booster in the LED driver circuit since 1.2 volts is insufficient to power the ultra-bright LEDs.

Now to get started adding solar power to your small electronics projects and use the sun to power your battery powered night lights, garden lights, and other automated decorations or projects. The circuits are easy to build and to get working. They are fun to build and to teach your kids, how to work with light.

In the last step I control a 5 volt motor with a 1.2 volt battery and the solar light IC.

Step 1: Parts & Tools

Most of the circuits in this Instructable work as long as you are in the ball park so it is easy to substitute parts and get the circuits to work.

Transistors; just about any general purpose low power transistor, can be used for these circuits.

2N2222, 2N3904, 2N4401, S9013, S8050, BC546, BC547, or similar NPN transistor

2N2907, 2N3906, 2N4403, S9012, S8550, BC556, BC557, or similar PNP transistor

Diodes; just about any general purpose, switching or other low power diodes, can be used for these circuits, however Schottky diodes have lower voltage drops and work very well.

1N4001 to 1N4007 series, 1N914 to 1N4448 series, and 1N5817 to 1N5819 series.

Resistors; you will need an assortment of resistors for these circuits most of them only need to be ¼ watt, once in a while depending on the circuit you build a ½ watt resistor for circuits over 3 volts. The resistors do not need to be exact so if the schematic calls for a 50Ω resistor, a 47Ω or a 51Ω resistor will work. There is a lot of room to play in these circuits.

50Ω, 100Ω, 150Ω, current limiting resistors for the LEDs.

1kΩ, 2kΩ, 5kΩ, 6.8kΩ, 10kΩ, 15kΩ, 22kΩ, 47kΩ, 100kΩ, 1MΩ, most of these resistors you will only need 1 resistor of each for a circuit but it is always nice to have extras.

Photo Resistor, if you salvage garden lights like I do you should have plenty.

1 ultra-bright LED more if you are doing more than one project, colored LEDs if you like, just for fun and children like pretty colors.

1 switch

Assorted batteries and holders

Assorted Solar Cells

1 bread board for testing.

1 multi meter

Capacitors; a must for the voltage multipliers.

1.2nF, 100pF, one of each.

Inductors

Two 0.47mH

One 22mH

If you make the circuits in the garden light IC datasheet you will need the parts listed in the datasheets.

Step 2: Testing the Solar Cells

The first part of a solar circuit is the solar cell or other device for collecting light and making use of it; I have quite a collection of solar cells and solar panels, most of them salvaged from solar garden lights rescued from the garbage. Many of them were repaired by me and they range from 1.5 volt solar cells to 6 volt solar cells and 20 mA to over 100 mA.

Now that you have solar cells it is time to find out what you can do with them. You do this by checking the voltage and the amperage produced by the solar cell. On a good sunny the best as you can get, adjust the cell as close to a 90⁰ angle to the sun. Just a small cloud across the sun, or the cell not facing the sun at a 90⁰ angle can affect the cells output.

Never check the voltage or the current of the solar cell unloaded, that means do not just attach meter leads to the solar cells leads. Unloaded the meter misinterprets the current going through it as voltage and gives you a much higher voltage than the solar cell is producing.

Start by connecting the solar cell to a resistor, the resistor can be any size. I chose a 51Ω resistor because I wanted to use the same resistor for checking the current. Then measure the voltage across the resistor, now you get a much more accurate output voltage between 1.5 to 3 volts.

Next test the current; it is always good practice to never test a power source’s current without a load, dead shorts tend to be detrimental to electronics. With the 51Ω resistor attached to my circuit I got a fairly accurate current of 25 to 65 mA.

Solar cells are less affected by dead shorts; most solar cells convert less than 8% of the suns energy to electricity. If you dead short a battery the current will climb until something blows, if you dead short a power supply the current will climb until something blows. With a solar cell if you connect the amp meter to the cell without a load, the current will climb like a battery or a power supply but the current will stop climbing once it reaches 8% of the energy of the sun. That doesn’t mean this is safe to do in all cases, just some solar cells will not be damaged by it.

Since the solar cells were salvaged from solar garden lights most fell into two groups; 1.5 volt and 3 volt cells, however in the two groups the currents varied, 25 mA, 35 mA, and 65 mA.

Step 3: Battery Charging Circuit

Now you have the basic specks of the solar cells it is time to look at the batteries that are charged by these solar cells. The batteries come in 1.2 volt NiCads with a capacity of, 200 mAh, 300 mAh, 600 mAh and 1000 mAh.

When you match the battery to the solar cell all you need for a charging circuit is a diode. To charge the high capacity of a NiCad battery or battery pack it is recommended to charge the battery at the rate listed on the battery label. But when you don’t have these instructions follow the C/10 charging rate.

To achieve a complete charge of a NiCad battery it must be charged at a rate equal to or greater than C/10. Where C = cell capacity in mAh. For example: A 1000 mAh cell requires 1000/10 or a minim 100 mA charge rate or greater. Charging at a lower rate than C/10 will not result in a completely charged battery.

http://www.powerstream.com/NiCd.htm

Although a current-limiting resistor between a solar panel and a battery is technically needed, it is not necessary if the battery will not be overcharged. In our case, the solar cells will not overcharge the battery. These solar cells should be able to charge one 1.2 volt, battery, or two 1.2 volt batteries in series at a rate of 20 mA for 200 mAh battery, 30 mA for a 300 mAh battery, or 60 mA for a 600 mAh battery.

The charging circuit for these batteries is simple, a solar cell connected to a diode then connected to a NiCad battery. The diode isolates the batteries from the solar cell so that when the sun is not out the solar cell will not drain the batteries.

You can use almost any switching diode for this circuit, and you can use a much more efficient circuit with a lower voltage drop than a diode, but you would be hard pressed to do it with the same ease or price as a 1N5817 schottky barrier diode.

Step 4: Dark Detecting With a PNP Transistor

Dark detecting LED driver circuit, to add darkness detecting capability to a solar circuit is easy, because the solar panel can directly serve as a sensor to tell when it’s dark outside. To perform the switching you need a diode between the transistors base and its emitter, (PNP Transistor) or the collector, (NPN Transistor). The diode isolates the base of the transistor from the batteries so only the solar cell powers the transistors base.

In this circuit I use a PNP transistor as Q1 that is controlled by the voltage output from the solar panel. When it’s sunny, the output of the solar cell is high at the transistors base, which opens the transistor and switches off the LED.

When it gets dark; the solar cells voltage drops to zero, the current flows out the transistors base and through the solar cell to ground, this closes the transistor letting the current flow through the LED switching it on.

This circuit works very well for low power applications when there in not enough current coming out of the base to damage the solar cell. However with circuits that produce higher currents coming out of the PNP transistors base, you can burn out the solar cell.

Step 5: Dark Detecting With NPN Transistors

With higher currents you do not want the current passing from the base of Q1 through the solar cell or you risk burning out the solar cell. When you use a NPN Transistor the current travels from the solar cell to the base of Q1.

This circuit uses the solar cell for dark detection, this charges the batteries and turns the LED on when the solar cell is in the sun, or turns off the LED when the solar cell is in the dark not charging the batteries. When the solar cell is producing power, the power is applied to the base and the collector of Q1, the transistor switches to closed, and lights up the LED. When the solar cell is in the dark and not producing power, no power reaches Q1s base and the transistor is open turning off the LED. This is a good charge indicating circuit however it doesn’t make a good nightlight since the sun must be out to light the LED.

Step 6: The LED Driver

This circuit is the LED driver using a NPN transistor, when the switch is closed power goes to the base and the collector of Q2 lighting up the ultra-bright LED. When the switch is open no power gets to the circuit and the ultra-bright LED is off.

When you combine the LED driver circuit without the charge indicating LED and the dark detecting circuit; the ultra-bright LED will come on when the solar cell is not charging the circuit. Now when light is on the solar cell it powers the base of Q1 closing Q1 and reducing the voltage to the base of Q2 to near zero volts opening Q2 and turning the ultra-bright LED off. When the solar cell is in the dark there is no power to the base of Q1 opening Q1 and increasing the voltage to the base of Q2 closing Q2 and turning the ultra-bright LED on. Now you have an automatic on and off light.

This circuit has one disadvantage, if you miss calibrate R1 and R2 the ultra-bright LED can come on with a very low drop in sunlight, or only come on in total darkness. To calibrate the light level the ultra-bright LED turns on and off, adjust the value of R1 up or down until the ultra-bright LED changes state at the desired light level.

Step 7: Photo Resistor Circuit

This circuit is a little different than the circuits that use the solar cell for a dark detection; this circuit uses a photo resistor for the dark sensor in place of the solar cell. Now the diode is placed right after the solar cell so Q1 and Q2 are powered by the battery. The advantage of this circuit is the dark sensing LED driver can be one location and the charging circuit with the solar cell can be in another location.

The value of R1 changes with the light, its value goes down as the amount of light goes up and its value goes up as the amount of light goes down. This action of R1 varies the power applied to the base of Q1 and allows Q1 to control the ultra-bright LEDs on and off cycle.

Since the value of R1 changes with light and R2 is fixed, to calibrate the dark sensing circuit you adjust the value of R2 up or down to adjust the light level that turns the ultra-bright LED on or off.

To switch Q1 from a NPN transistor to a PNP transistor you need to swap R1 for R2 and R2 for R1 for the circuit to function as an automatic light.

Step 8: 1.2 Volt LED Driver

No matter what circuit you use 1.2 volts is just not enough to power the ultra-bright LEDs, you need a Joule Thief or Voltage Booster built into the LED driver.

This circuit increases the voltage so the 1.2 volt batteries will power the ultra-bright LEDs. The circuit doesn't deliver a DC voltage to the LED but a high-frequency pulse. This creates the same brightness from the LED as a constant DC voltage while needing less than 50% of the energy enabling a single 1.2 volt cell to be used. Since this circuit does not have a resistor for the LED it further increases the circuit’s efficiency.

Step 9: 1.2 Volt Solar Light

Now that you have a 1.2 volt LED driver it is a simple matter of attaching the dark detecting circuit to the LED driver. Ether of the dark detecting circuits will work, when the solar cell or the photo resistor is in the light Q1 is closed reducing the base of Q2 to near 0 volts opening the transistor and shutting down the LED driver.

Step 10: Solar Light ICs

Solar light ICs are very handy, they have the dark detection circuit and the voltage multiplying LED driver built into one small four pin component. Using the solar light IC all you need is the solar IC, an inductor, and the ultra-bright LED to make the circuit. Add the battery and the solar cell and you have a solar light.

I haven’t had much luck finding the datasheet for the solar light ICs and the three I found are not in English. That aside the inductor controls the power to the LED.

Step 11: Controlling a 5 Volt Motor

When I first started experimenting with the IC I used a PC817 optocoupler to connect the solar IC circuit to a more powerful LED. The solar IC would continually trigger and turn on the LED until I added a 1N4148 switching diode to the optocoupler input. Now the 1.2 volt solar IC turns the more powerful LED on and off cleanly.

Turning an LED on with a solar LED was not very impressive so I went to a 5 volt motor by removing the ultra-bright LED and its resistor and connecting the motor in its place.

If you watch this video you can see the circuits in action.

Renewable Energy Contest

Runner Up in the
Renewable Energy Contest

5 People Made This Project!

Recommendations

  • Metalworking Contest

    Metalworking Contest
  • Water Contest

    Water Contest
  • Tiny Home Contest

    Tiny Home Contest

37 Discussions

Glad I found your instructable. Been looking for a long time for solar powered motion sensing garden light. I found one and now trying to reverse engineer it. But what on earth is the 8 pin IC that the PIR connects too?

1 reply

What is written on top of the 8 pin IC?

My guess is the IC would be an Op amp connected something like this.

PIR Motion Sensor.png

This is great!! I have been looking for a way to solar power these Led signs I've made. I am using 5- 20ma slow burning RGB's Set them up to run on 5v. Or rather 4.5 using 3AA rechargeable battery's. Each Led has a 56ohm resistor attached to them. I think this circuit is my answer. One question is. If I used a 5v solar cell, only a few $ off amazon, and my 4.5v battery pack. will this circuit work the same?

And I do plan on getting Pot's for the R1-R2 to test desired resistance before getting the right resistors.

8 more answers

You might need to adjust the resistors for current but these circuits should work with even higher voltages.

Thank you for the reply. I ordered a 20k and 200k pot for R1 and R2. I'll let you know how it works out.

when you order parts from Digikey, on your saved oders you can find the PDF data for the parts. I also have links for many project enclosures. but thanks.

Got the parts. Works great. looks like R-1 100K R-2 12k seems to work best. The 15K had lights low power on with dim light. At least RGB stuck on a slight red. Again thatk you very much for the curcuit.

Great article. I retired a year ago and electronics is my next "project" since I have always tinkered with such for years. Now i can dilve in more deeply. I started with exactly what you show here - fixing all my solar lights that just stop working for one reason or other. The simple stuff like broken wires, etc was easy, but want to get more into the circuit level and this is perfect.

Now for a question. I tested one light and when I put a regular non-rechargeable 1.5v battery into it, the light comes on, regardless of the light sensor being dark or not. Do the light sensing diodes go bad by being "open" or do you think it may be the transistor switching component? I put the same battery on a "working" solar light and the light goes off as expected when the light sensing diode is exposed to light.

3 replies

Also, do you have other articles for simple electronics that I can read to help me baby step my way into more areas? Thanks again.

Free Ebooks in pdf format.

1-100 Transistor Circuits

101-200 Transistor Circuits

50-555 Circuits

100 IC Circuits

PM me with your Email and I will send them to you.

Photoresistor or diode and yes they go bad. It could be anyone of the components. If you PM me your Email address I can send you some free Ebooks of simple transistor and IC circuits.

Thank you so much for the circuit with the two transistors and inductors. The circuit works great as is or with wrong capacitors, other inductors and all sorts of variants.

My wife's solar light over her grave gave up the ghost (she would laugh) and I am using the two inductor, two transistor circuit to fix it. I could not simulate it using spice however.

Here are the traces of the circuit on an oscilloscope taken with the first channel before the load (yellow) and the second channel after the second inductor when it also is ringing. I like this better for an outdoor application than an IC.

SDS00177.png
2 replies

I'm glad you found this Instructable helpful, I fixed the solar lights on my best friends grave also, his daughter put them there and she likes seeing her lights on his grave.

I do a lot of reverse engineering just to keep my skills sharp, I learned to do this before the W.W.W.

These circuits are reverse engineered from solar lights I disassembled, the BC547 was in parallel with the LED in the solar light when I reverse engineered it and it worked on the bread board so I didn't change it in the Instructable. I will try that circuit change when I get a chance.

I build a lot of circuits that do not work in SPICE or other circuit simulator programs. The programs do not always adhere to real world reactions in circuits. They are programmed to close to ideal component values and reactions.

You won't believe how often I'm told this circuit won't work.

Love the pic of the oscilloscope display, is it a USB oscilloscope?

IR Remote 5.bmp

Hi Josehf,

Thanks again, it is a very important application for myself and I am glad you used it for similar good purpose - it is a touching and wonderful thing to be able to make something for a loved one's memory.

The oscilloscope I used is stand alone but has a USB connection both on the front and back.

I was told the circuit was impossible! LOL! I am an old nuclear engineer but total newbee to analog electronics.

I noticed I made a mistake, switching the 101 and 102 capacitors in the circuit, so mine did not work without having the LED in series before the Q1 collector. With the goof, my hand calculation for the resonant frequency (inductors followed by RC looks like a second order lowpass filter?) of the base H(j=0) =1/sqrt(2) is 777 KHz and H(j=-1) 471 KHz (also had a 550 KHz when first starting the circuit on oscilloscope) so I think it makes sense. If one does it correctly with the capacitors in the right place, I think the transfer function resonances should be 254 and 118 KHz.

My bet is there is some capacitance in the solar battery that comes into play if one grounds through the solar battery?

Thanks again, your efforts are greatly appreciated and I have learned a great deal.

I'm not disputing you idea that you should put a resistor in circuit to test voltage and current, but by my small amount of knowledge gained from studying solar charge controllers and solar panels, I know that the spec sheets for solar panels show open circuit voltage (Voc) and short circuit current (Isc). So why not check those values.

1 more answer

These are cheep mystery solar cells.
Loaded gives you a more accurate working voltage and current, otherwise you are guessing.
Also some meters will tell you a higher voltage because all the available current is pushed through the meter.