A very simple automatic solar light system for illuminating your garden passages can be built using some LEDs, a rechargeable battery and a small solar panel. The system automatically switches ON the lamps at dusk and switches them OFF at dawn.
How it Works
The circuit design is extremely straightforward and may be understood with the following points:
As can be seen in the given circuit diagram, the design basically consists of a solar panel, a PNP transistor, few LEDs, a battery and a few resistors.
The transistor is the only active component which is positioned as a switch for preventing the battery voltage from reaching the connected LEDs during day time.
During broad day light, the solar panel produces the required amount of voltage which is applied across the rechargeable battery via the 1N4007 diode and the resistor R*. This voltage charges the battery gradually from dawn to dusk.
You may also like this PIR Controlled Solar Garden Light Circuit
Selecting the Current Limiter Resistor
The resistor R* value should be adjusted as per the specs of the battery for limiting excessive current to it.
The resistor also serves as the current limiting resistor for the connected LEDs when the transistor is switched ON.
Here it has been calculated as 10 Ohms.
As long as the solar panel generates the optimal amount of power, the positive potential at the base of the transistor keeps it switched OFF.
However when dusk sets in the solar voltage begins to drop, and when it drops below the zener diode rating, the transistor slowly starts conducting, illuminating the LEDs gradually.
With complete absence of sun light or when its completely dark, the transistor conducts fully with the help of the 1K resistor, and produces full brightness over the LEDs.
The next morning, the cycle repeats all over again.
The circuit can be modified in many different ways.
Circuit Diagram
The above diagram may also be built in the following manner. It looks more sensible now as the resistor is removed from the emitter for facilitating efficient triggering of the transistor.
PCB Design
Pictorial Diagram
Parts List
The diagram shows an incorrect transistor number (8050), use 8550 instead.
Recommended Solar Panel Specs
- 6 to 8V/2 watt
- Voltage - 6V
- Current - 330 mA
Using a 9 V Battery and High Bright White LED
The next shows an elaborate yet simple solar garden light diagram in pictorial form
R2 is the LED current limiting resistor which can be calculated using the following formula:
R2 = Battery Voltage - LED Fwd Voltage / LED Current
R3 is the charging current limiter resistor for the battery, and it can be calculated using the following formula:
R3 = Solar Panel Voltage - Battery Voltage / 10% of Battery mAH Rating
The battery voltage must be at least 3 V higher than LED voltage.
The panel voltage must be at least 3 V higher than the battery voltage.
Using NPN Transistors
The above explained designs can be also replicated using two NPN transistors as shown in the following diagram:
Solar Pathway Light Circuit with Constant Voltage
If a Li-Ion battery is intended to be used for the above explained circuit, a constant voltage feature becomes crucial for safeguarding battery life and prolonging it.
The following circuit show how this may be done by adding a simple voltage follower regulator circuit:
If a 3.7V Li-Ion battery is used, make sure to adjust the 10K preset to achieve precisely 4V across the output points where the battery is supposed to be connected, do this adjustment without connecting the battery.
The 4V level ensures that the battery is never overcharged (at 4.2V) and this also allows the circuit charge the battery without a constant current supply.
1.5V Solar Garden Light with Enhanced Features
The following solar powered garden light was designed by Mr. Guido which includes additional features such over charge and low charge cut off for the battery and with a Schmidt trigger.
This ensures that the connected battery is never allowed to charge or discharge beyond unsafe levels.
The main attraction of the circuit is the use of a single rechargeable AAA penlight cell, which is able to light up a 3.3V high bright LED through an attached Joule thief circuit.
High Power 12V Garden Light Circuit
The following image shows a high power automatic garden porch light circuit using a 12V 7 Ah battery. The LEDs used are high power 1 watt LED each. Since 9 LEDs are used the total power output becomes 9 watt.
The circuit is designed to automatically switch ON the LEDs when the darkness level drops sufficiently and the solar panel voltage drops below 3 V.
The LED series resistor values can be calculated using the following formula:
R = Battery Supply - LED FWD V Drop / LED Current
= 13 - (3.3 x 3) / 0.3
= 2.1 / 0.3 = 7 Ohms
Resistor wattage = 2.1 x 0.3 = 0.63 watts or 1 watt.
The solar panel can be rated at 18V, 3 amp. The battery specification is 12V, 7 Ah. The solar panel output voltage is regulated using the LM338 voltage regulator.
Make sure that the 5K pot of the LM338 circuit is precisely adjusted to produce 14V for charging the 12V battery.
Tibor says
Hi Swagatam,regarding 3.7V Li-ion voltage circuit. I am trying to make solar light powered with 6Ah Li-ion unprotected battery, which will turn on only at night, and only when PIR sensor detects movement. LEDs power should be about 0.5W and I expect ~60lm from them. What is the most efficient way to make this, as I need long last device without additional charging?
I saw all topics for solar lights and PIR sensors, but did not find any that I know how to modify for my requirements. Do you maybe have a PCB design that will fulfill those requirements?
Thank you in advance and best regards,
Tibor
Swagatam says
Thanks Tibor,
To get accurate results you will need a two transistor circuit which will ensure that the LEDs do not turn ON until it is totally dark outside.
An additional LDR might not be required, we can manage with the solar panel voltage for the detection.
I have understood your requirement and will design the entire circuit soon and let you know, with all the part specifications.
Swagatam says
Hi Tibor,
here is the complete circuit diagram that will fulfil all the specifications you need in your design:
https://www.homemade-circuits.com/wp-content/uploads/2023/12/simple-12V-solar-garden-liight-circuit.jpg
Tibor says
Hi Swagatam,
this looks like something I need! Thank you very much for your help!
Also, I want to know why you choose 9V and 1A panel? Isn’t 1A not enough for 6Ah capacity?
And if I want to use 6V panel, whould it still work in this configuration?
Btw. I saw you wrote LED 1W, what will be the difference if I use 0.5W LED?
Thank you!
Swagatam says
No problem Tibor, I am always happy to help!
https://www.homemade-circuits.com/wp-content/uploads/2023/12/simple-12V-solar-garden-liight-circuit.jpg
In the shown diagram, the two diodes and the transistor combined will drop around 2.5V, so the panel voltage has to be at least 2 volt higher than this drop.
If your battery is 3.7V then its full charge level will be around 4.1V, that means the solar panel must be rated at 4.1 + 2.5 = 6.6V, but considering the sunlight fluctuations it is recommended to add 3V more to the panel, so it must be around 6.6 + 3 = 9.6V or higher.
Yes, for a 6Ah Li-ion battery 1 amp current is quite low, in that case you can consider adding more panels in parallel and upgrade the input current to 3 amps.
In that case the transistor will need to be replaced with a 2N3055 and the base resistor reduced to 50 ohms 1 watt.
The diodes can be 6A4 diodes each.
Also, there’s one mistake in the diagram. The 1K connected with the base of the 2N2222 must be removed because we want to activate the 2N2222 only through the PIR, and not from any other source.
For the LED, you can use any desired 3.3V LED, just make sure to change the series resistor accordingly.
Leon (Paul Ebert says
Sir: where does one get all these components. Thanks
Swagatam says
Hello Leon, you can search for the following phrase, you may find many good electronic stores for buying electronics spare parts:
buy electronic spare parts
Leon (Paul Ebert says
Sir: need a circuit board for a LED lite string 3-5 volt dusk to dawn for a cross I am trying to light .Would like a board made in the USA. have a 12 volt solar panel on the cross. Need your recommend as I have failed many times because at 83 years old I have tremors bad and soldering is areal struggle. Thank you
Swagatam says
Hello Leon,
According to me, the last circuit from the above article will be most suitable for your application. If you are having difficulty soldering, you can hire somebody to do it for you. Please let me know if you have any further questions.
Eleanor Barsic says
I’d like to know how to convert a battery Operated garden stake globe into a solar powered garden stake globe (using a dollar store solar-lit garden stake). Is this possible? What should I do?
Swagatam says
I do not know the voltage and current specifications of the units you have mentioned, so it is difficult for me to suggest.
Ray Steelman says
EB, do you have a dc voltmeter? if yes then we need pictures of your project. if the original light uses two bateries that would be 3 vdc, if the dollar store uses one that is only 1.5 .
kartik says
Hi swagatam
I need your help, for making a circuit of AUTOMATIC CUT OFF WHEN SOLAR CELL PLACE UNDER THE SUN AND TURN OFF LIGHT & CHARGE BATTERY. WHEN I PLACED THE SOLAR CELL UNDER THE SHADOW THEN AUTOMATIC LIGHT TURN ON, on battery
Swagatam says
Hi Kartik,
Automatic cut off is not required. You can simply use a LM338 IC regulator and set it to provide a constant voltage to the battery which should be slightly lower than the extreme full charge level of the battery.
Here’s the design which you should build:
https://www.homemade-circuits.com/wp-content/uploads/2022/08/12V-high-power-garden-poch-light-circuit.jpg
kartik says
Thanks Swagatam, Let me try this solution…
Swagatam says
Sure, no problem.
Krish R says
I have bought a 3W 6V solar panel what value of diode,resistor and transistor and led bulb should I use for a solar lighting system project. Can you please tell the assembling diagram too.thanks
Swagatam says
You can try the following setup:
https://www.homemade-circuits.com/wp-content/uploads/2023/05/solar-garden-light-circuit-diagram-with-regulated-input-supply.jpg
Adjust the zener diode so it creates around 4 V across the battery terminals (without connecting a battery)
The battery can be any 3.7 V Li-ion battery
TJS says
Hi Swagatam, many thanks for the awesome website and content!
The wife bought some LED garden lights, but they don’t come with solar charging. I’ve decided to try and build the solar charging + automatic dusk toggling. These lights come with an IP44 3x AA enclosure, and I’m wondering if I can reuse them. The LED lights are 10x 0.3W. Based on this, am I correct in thinking I can use the second circuit listed under the “Circuit Diagram” title, without modification?
Cheers!
Swagatam says
Hi TJS,
yes you can use the second circuit, however if you find the 2N2907 heating up a bit then you can replace it with a BD140 or TIP32 transistor. If you find the brightness is not optimal, you can try reducing the a 10 ohm resistor or the 1K resistor with some trial and error.
TJS says
Hi Swagatam, many thanks for the quick response. I’ve taken on board your suggestions for alternative components.
What changes would be needed to use a CL-SM3P cellevia power solar panel? Is it too powerful for this application?
Swagatam says
Thank you TJS, can you please tell me the specifications of the solar panel in terms of its voltage and current? I will try to solve it for you.
TJS says
Hi Swagatam, sure thing. Here goes:
Really appreciate your help!
Swagatam says
Thank you TJS,
17V is a lot for a 3.7 V battery. If your battery is a 3.7 V rated then either you may have to use a step down regulator to control the voltage or use a 8 V solar panel instead.
TJS says
Understood sir. I’ve found a 6V 2W panel. I believe this will work with the circuit we have been discussing.
Swagatam says
yes, that should be OK, however if your 3.7 V battery would still require some kind of voltage regulation so that it is not overcharged beyond 4.2V. I would recommend the following type of simple regulator. The resistor can be a 1K resistor, the transistor can be BD139 and the zener diode can be selected such that the transistor emitter output generates around 4.2V. Check the 4.2V after putting a load resistor of 470 ohms across the emitter and ground of the circuit.
https://www.homemade-circuits.com/wp-content/uploads/2022/09/solar-regulator-emitter-follower.jpg
TJS says
Hi Swagatam. Sorry, but I’m a little confused. Where do the lights go, in the diagram you’ve shared?
Swagatam says
Hi TJS, here is the complete circuit diagram with the regulator. The zener diode value should be selected such that a full charge level of the battery is available across the points where the battery needs to be connected. This must be checked and set without the battery connected.
https://www.homemade-circuits.com/wp-content/uploads/2023/05/solar-garden-light-circuit-diagram-with-regulated-input-supply.jpg
Blazej says
Hello, I made this system, but the LED lights up too early, where to insert the resistor to delay the LED lighting. Regards
Swagatam says
Hi, thank you for trying this circuit….However If your solar voltage drops below 1V then the transistor will switch ON and the LEDs will light up, We cannot do anything about it.
Blazej says
Thank you for the quick reply. My problem is that the voltage is still 3 -5v and the LED is already starting to shine, I will add that the 1 Watt LED, 6v solar panel and 3.7v battery should the 1n4007 diode be only behind the 1k resistor or the 2n2222 transistor also give ?regards. Ps. very helpful site thank you very much!
Swagatam says
At 3V you can check the base/emitter voltage of the transistor, if it is above 0.3V then the LEDs might start to shine a bit. To avoid this you can try adding a 1N4148 diode in series with the gate terminal of the transistor. Anode will go to the base and the cathode towards the 1K resistor.
The right side 1N4007 diode is important and cannot be removed. The left side 1N4007 transistor is only to protect the circuit from an accidental wrong polarity connection of the solar panel. If you are sure that the polarity connection is correct you can remove the left side 1N4007 diode
Ray Steelman says
amazing to me your depth of knowledge, did you get most of your knowledge from a certain book? I am very interested in building resourceful projects. Maybe you have a suggested reading? please keep posting all your great ideas.
Swagatam says
Thank you for your kind words. My knowledge of electronics has come from books and practical experience. Do let me know if you have any further doubts or questions.
Duncan says
Hi SwagatamRegarding your last circuit “High Power 12V Garden Light Circuit”, could you please advise as to where the best placement of a 12V Zener diode would be for low battery cut off? Would it be between Q2 base and battery +, or would it need to be in series with the 1K resistor and battery positive?
Many thanks for a very impressive site BTW
Swagatam says
Thank you Duncan,
As correctly guessed by you, it must be in series with the 1K base resistor of TIP122
Duncan says
So I tried this insertion over the weekend, and it did not work as intended. When the 12V zener was connected, the lighting was illuminated, but very very dim. Even after removing the 1K resistor, the effect was the same.
Any ideas on this for a solution?
Swagatam says
In that case you may have to reduce the value of the zener diode. You can try a 11V or 10V zener diode and check the response. However, first you may have to confirm whether the LEDs are illuminating brightly or not without the zener diode. If it does then the problem may be with the zener diode, and you can try using lower values.
Duncan says
Yes, my LED lights do illuminate fully without the diode. But, to give feedback, as you suggested I tried an 11V zener, and this seems to work. Although not 100% what I’d like, as it drops the battery down to ±10.8V which is not the best level to have your battery at.
But I guess it’s better than running the battery completely flat and into irreversible damage. What was interesting is that the diode starts to activate at around 12.2V and starts to put the lights into like a “limp mode”, at about ¾ brightness, then gradually dims until the zener voltage kicks in for total shut off.
Swagatam says
Thank you for the feedback and update! It looks interesting, however I guess a simple zener network may be too basic to provide accurate cut-off results. So getting perfect results might not be possible using a zener diode only. Instead, a combination of an opamp and a zener diode might do the job to provide the desired accurate results.
Ravi KUMAR says
Hi Swagatham,Thanks for the response and appreciate.As you asked me for specification of type of batteries and voltage and amperage. To myself clear I thought it would be more precise if I sent you pictures of the units I have. I have three varieties . Please have look . But it seems there is no way to send photos. 1.AAA 1.2V. 600mAh,NIMH BATTERY, one battery(2) AA 1.2V 600mAh,NIMH ,2 batteries.(3)AA1.2V 600Ah,Ni-Cd ,1 battery. All solar panels. I have AC to DCpower supplies of 5 V DC out put. Or any you may suggest.
Swagatam says
Hi Ravi,
You can try two NiMH in series, and connect it with the following circuit:
https://www.homemade-circuits.com/wp-content/uploads/2013/03/garden-2.png
You can replace the solar panel with your 5V DC input.
Then adjust the 10K preset such that battery points are set at exactly 3V. Do this without connecting the batteries initially. Once the preset is set then you can connect the batteries.
For the LEDs you can use 6 nos of high bright 20mA LEDs in parallel
Ravi Kumar says
Hi, My name is Ravi and I am in UK. I USED TO LIVE IN USA ALSO. I have accumulated lot of solar path lights and others. Here in UK climate does not offer sun shire consistently. Hence can charge the solar panels fully. So I now decided to use DC power. I have combination of 1.2 V and 1.5 V battery models. What modification I need to add appropriate resisters/ and some thing else.I WOULD BE GREATFUL IF YOU COULD PROVIDE ME A CIRCUIT DIAGRAMS AND RESISTER VALUES, I WILL SOLDER THEM ON TO THE CIRCUIT BOARD. I AM REASONABLY HANDY TO THIS IF I KNOW WHAT TO DO. IF you feel some other details you need to help me, I will provide. Kind regards. Ravi
Swagatam says
Hi Ravi,
Can you please tell me the specifications of the battery. Are they rechargeable type, such as NiCd or NiMH type? If they are rechargeable type then you may need a charger circuit also to charge them from an AC to DC adapter.
jwc says
i have a solar panel which used to runasmall water fearute the circit got smashed at a house move time the remains suggest it was a simple 1fuse 1 diode system the remains cannot be identified correctly need fuse and diode identified or suitable substitutes solar working ok
Swagatam says
What is the voltage and current specifications of the solar panel?
jwc says
no idea it was bought as a working unit by my son all i can say is the water fountain was a 12 volt unit worked ok in his garden then he moved to oz hence i ended up with it the solar panel has no information on physically its 17 by 12 ins that’s actual solar panel measured inside its housing i have a voltmeter panel shows over18 volts in full sun,thanks for answering
Swagatam says
OK, in that case, the fuse amp rating will depend on the amp rating of the load. For example if the max current of the load consumption is 2 amps then the fuse can be rated at 2 amps.
And the diode can be a 1N5402 assuming your panel current is less than 3 amps.
jwc says
new problem fan not working still works of 12 volt battery solar panel still giving 17 volts as soon as you switch fan on voltage from solar panel drops to almost nothing
Swagatam says
It means that the solar panel current delivering capacity is far too less compared to the fan’s current rating….you can confirm the panel’s AMP output capacity by connecting an ammeter across its terminals at peak sunshine.
Robert and Pamela Piers-Leake says
We’re due to move into a new house in the Spring of 2023 for which I am preparing my “Charlie Dimmock” design for the back garden.
I need to include lighting for the said design, ideally not using power from the grid, i.e. instead using solar power. However, rather than having individual solar lights, I need advice on perhaps having a single solar collector, placed in the best possible position for the sun and a battery storage system from which the garden lights will be fed when the sun goes down.
However, to compound things, we are also considering PV panels to hopefully reduce our reliance on the grid house power consumption, so would it be best to combine the two systems?
Whilst I shall print off the content of your web article, any early advice on the aforementioned would be mush appreciated.
Swagatam says
It may be possible to extract the power from the PV panels for the garden lights so separate solar panels may not be necessary for the garden lights.
If you tell me the total wattage of the LED lights and the number of LEDs, I will try to figure out the automatic system and the controller for the LEDs.
EN says
Hi Swagatam. i’m EN
I have a question.
For example, if I think I use 50W of a solar cell, is there a way to calculate the specifications of the battery or how many W of LED can be used?
Swagatam says
Hi EN,
Can you please tell me the voltage rating of the solar cell, I will try to figure it out for you!
EN says
solar Power 30W
Max power voltage 18V
Max power current 1.66A
open circuit voltage 21.6V
Let me know if you need any further information. Thank you
Swagatam says
You can use a 12V 7 Ah battery with a LM338 solar voltage regulator set to control the max voltage to the battery at 14V.
For the LEDs you can use 3.3 V 1 watt LEDs. Make 3 LEDs in series and connect 5 of these strings in parallel. Each string must have a individual series resistor rated at 7 ohms 1 watt
EN says
The maximum voltage of the solar cell is 18V, but is there a reason why the battery uses 12V?
Also, I wonder why LEDs are used in a combination of series and parallel.
How many hours is the LED light based on this connection?
Swagatam says
Using a 12V battery leaves a good margin for the battery to charge even while the sunshine is not at its peak. For LED total forward voltage must be lower than the battery lowest voltage level. With 3 in series, the total forward voltage of the string becomes 9.9V which means even if the battery voltage drops to 11V the LEDs will still remain illuminated. The LEDs will not illuminate if the series forward voltage of the LEDs become higher than the battery voltage. With a fully charged battery the backup time should be around 4 to 5 hours.
The battery should be charged through a LM338 regulator
EN says
Hi. swagatam.
Do you have a sample circuit for your explanation?
And I hope to be lit for more than 10 hours using 10 LEDs.
Swagatam says
Hi EN,
I have updated the diagram for you at the end of the above post. It will last for 10 hours, using 9 nos LEDs, 1 watt each
EN says
Thank you for your answer. I’ll test it.
Previously, the LED was said to operate for 5 hours, but the circuit is a circuit that operates for 10 hours. What’s the difference?
And if I change the specifications of solar cells and batteries, do I just change the resistance in the circuit?
Swagatam says
Sure, you can build it and let us know the results.
Previously 15 LEDs were used, and now only 9 LEDs are used, therefore the backup time has increased. These are only approximate values, the actual value can be found only by testing it practically.
You don’t have to change anything in the circuit upto 30 V input. But as the solar voltage is increased, the heat on the LM338 will increase proportionately.
Bob Wareham says
Thank you for all the circuits you proved with your emails, I always look forward to receiving your emails to see what circuit ideas you have.
Many thanks, keep going you should do a YouTube channel I would join.
Swagatam says
Thank you so much, I appreciate your kind response.
I have a video channel, you can view it here: https://www.youtube.com/c/SwagatamMajumdar/videos