• Skip to main content
  • Skip to primary sidebar

Making Easy Circuits

Learn and build electronic circuits

You are here: Home / Solar Controller Circuits / Make this Solar Battery Charger Circuit using IC 7812

Make this Solar Battery Charger Circuit using IC 7812

Last Updated on March 22, 2026 by Admin 2 Comments

Here we talk about a simple solar charger circuit. It takes power from a 20V, 1A solar panel and then charges a 12V battery. We are using a 7812 voltage regulator IC, three 1N4007 diodes, and a 2.2kΩ resistor to make sure the charging happens safely. Now let’s go step by step.

Circuit Diagram

Main Working Principle

We have that 20V / 1A solar panel first, which gives raw DC, just direct panel voltage, and then that raw line goes into LM7812 voltage regulator, or 7812, which then holds the voltage near 12V at its output.

From that output, the line goes toward the battery through one 2k2 resistor and one 1N4007 diode, while battery negative stays directly with panel negative, so now the charging line simply becomes panel positive to 7812 then resistor and diode side then battery positive.

Why 4 Diodes Are Connected at the Ground Pin

The real trick happens at the regulator ground pin, because 4 series 1N4007 diodes are placed between the 7812 ground pin and actual ground which means each diode lifts that ground by around 0.6V, so four of them together make near 2.4V.

Since 7812 always keeps 12V above its own ground pin, then if that ground rises by 2.4V, output also rises with it, so now 12V becomes nearly 14.4V. However, due to the presence of the output 1N4007 diode, this 14.4V now become 13.8V, which is just about what is required for optimally charging a 12v battery...

So now instead of behaving like plain 12V regulator, the 7812 starts acting like a 14V charger regulator, and that is the clever adjustment here.

Why Around 14V Matters

A 12V lead acid battery usually wants around 13.8V to 14V if floating, although for normal charging then 14.2V to 14.4V is better, so all these five diodes are doing that correction because without them the battery would only find 12V and then charging becomes weak and slow.

Role of the 2k2 Resistor

That 2k2 resistor is there, but practically it does not push real charging current, since at 14V the current through 2k2 stays only about 6.3mA, very small, almost nothing for charging so actual battery current mainly goes through the main output path and diode side.

It still helps a little with regulator reference and startup behavior, but not as the main current path.

Role of the Output Diode

The output 1N4007 near battery is very necessary, because when sunlight goes away then battery can try to send current backward into the panel, and that diode stops it, so daytime current goes forward, night time current stays blocked.

Available Charging Current and Heat

The panel rating is 20V × 1A, so maximum current can reach 1A, but because 7812 is linear, then extra voltage becomes heat, so whatever drops from 20V down to 14V turns into heat inside the regulator.

At 1A, that loss becomes about 5.6W, which is a lot for this small IC, therefore heatsink is not optional, it must be there otherwise the regulator will get hot fast and may shut down or fail.

A medium aluminium heatsink is usually enough here, but without it then trouble starts quickly.

Weak Point of This Circuit

There is no current control, so if battery is deeply discharged then current can rise hard at first, depending on battery condition, and since 7812 practical safe current stays near 700mA with good heatsink, then charging remains suitable only for small battery sizes.

For 7Ah battery, that matches reasonably, because ideal charge current comes near 700mA, so this circuit fits that range, but bigger batteries will charge too slowly.

Capacitors Are Necessary

One more thing, capacitors must be added in real build because without them regulator can oscillate.

At input side, add 0.33uF and 470uF, and at output side add 0.1uF and 220uF, so input line gets smoother and output stays stable.

A 470uF / 35V at input and 220uF / 25V at output works well in practice.

Better Diode Choice

For output diode, better if you use 1N5408 instead of 1N4007, because it handles current better and heats less, though 1N4007 can still survive at 1A if conditions stay normal.

Better Regulator Option

If stronger regulator is wanted, then LM338 is better, because voltage can be adjusted and current handling is stronger, so operation becomes cooler with proper heatsink.

Practical Improvements

You can replace the four diodes with preset adjustment, add 1 ohm / 5W current limiter, add 100nF capacitors, use 1N5408 diode, and place 1A fuse at battery positive, because fuse saves things when fault comes.

Conclusion

This charger works fine if battery is small, sunlight remains steady, heatsink is present, and you watch charging manually, however good thing is that, auto cut off may not be required because 13.8V is below the full charge level of the 12V battery...

So if building exactly this one, then 7812 with large heatsink, 4 diodes at ground pin, 1N5408 at output, 470uF input capacitor, 220uF output capacitor, and 1A fuse, that makes it much safer and more dependable.

You'll also like:

  • 1.  Simple Solar Battery Charger Circuits
  • 2.  How to Build a Self Optimizing Solar PWM Charger Circuit with Buck Converter
  • 3.  Make this Solar Charger Circuit with Auto Cut-Off Using Only Transistors
  • 4.  How to Build a Solar Induction Heater Circuit
  • 5.  Easy Solar Cooker Apparatus for Free Home Cooking
  • 6.  Hybrid Solar, Wind Battery Charger Circuit

Tagged With: 7812, Battery, Charger, Solar

About Admin

Hey friends, Thanks a bunch for stopping by this site! I am an engineer with a Bachelor of Engineering in Electronics and Telecommunication.

One of my passions is gathering information from all sorts of electronics books and tutorials. I then take that information and compile it into a language that is super easy to understand.

My goal is to make those complex electronics circuit concepts and technical terms much more accessible for all the new and budding electronics engineers out there.

I can also design customized circuit diagrams as required by the users.

If you have any questions related to this field, please do not hesitate to drop a comment!

I am always here and ready to help you out with any queries you might have. I cannot wait to hear from you!

Reader Interactions

Comments

  1. John says

    March 9, 2026 at 2:58 am

    Hello mister Admin,
    thanks for sharing your knowledge and experience! I don’t think I qualify as a ‘budding electronics engineer’ yet, but I am passionate about electronics and eager to learn. I’ve read your post about this solar battery charger, and I wish to build one. However, I have some/many questions about its construction:
    1. I don’t have the 20V, 1A solar panel, but I’m ready to buy it. Do you have a part number for it?
    2. “connect a 2.2kΩ (2k2) 1/4-watt resistor from the output of 7812 to the battery” – but the output of the 7812 is connected to the battery! Which one is correct (schematic or explanation)?
    3. “The diodes also act as a one-way valve stopping the battery from sending power back to the solar panel at night.” – How is that? I see the diodes going to ground, not to the solar panel. Actually, do they not contribute to discharging the battery (at night), thru the 2K2 resistor? Maybe around 4.5 mA?
    4. “Because each 1N4007 drops about 0.7V so three of them together drop around 2.1V”, then you say we can improve this, by replacing the 1N4007 with 1N5822, because “voltage drop will be lower, making the circuit a little more efficient.”. On one hand, we need the drop to be 2.1V (to charge the battery correctly), on the other, how is the circuit “more efficient”? You might be – still – under the impression that the diodes are in series with the battery?!
    5. “we must fix a metal heat sink on its back” – agree! What ‘metal’ and how big?
    6. diode placement. “The banded side (cathode) of the first diode goes to the ground of 7812 and the last diode’s unbanded side (anode) goes to the main ground (battery negative and solar panel negative).” – Again, in your schematic they are in the opposite direction. Which is correct? Because, you know, “Wrong direction = no output voltage.”. By the way, in the datasheet (TI, pg. 12), they say: “When the ground pin alone becomes disconnected, the output approaches the unregulated input” – this is the case when (at least) one of the diodes is mounted in reverse. In other words: Wrong direction = Full input voltage! And I guess that would be bad for the battery… Again, which is right?
    Looking forward for some clarification from your side, I thank you in advance!
    John

    Reply
    • Admin says

      March 22, 2026 at 11:34 am

      Hello John,
      Sorry, for all the confusions….it seems the article was explained by an AI…and it made a complete mess of it…and my bad I did not check it properly…
      Here are the answers:
      1) Try a 20 watt or 25 watt solar panel with 18V output…
      2) sorry, I meant to say connect the 2.2k between the 7812 output, and the junction of the 7812 ground pin and the diode anode. Please follow the schematic.
      3) Sorry, again, this diode refers to the diode which must be connected between the 7812 output after the 2.2k connection and the battery positive.
      4) you are perfectly right on that aspect, ignore that sentence.
      5) The heatsink must be fixed on the 7812 back, the metal can be aluminum, must be optimally large…
      6) Again you ae correct.

      Please give me a moment I will replace the whole article with a new one with legitimate explanations..

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Categories

  • 3 Phase
  • 8051 Microcontroller
  • Amplifier Circuits
  • Arduino
  • Audio and Amplifier
  • Automation
  • Battery Chargers
  • Bicycle Projects
  • Car and Motorcycle Projects
  • Datasheets
  • DIY Projects
  • Electrical
  • Free Energy
  • Games Projects
  • High Voltage
  • Hobby Projects
  • Household Circuits
  • IC 555 Circuits
  • Ignition Circuits
  • Indicators
  • Infrared
  • Inverter Circuits
  • Lights and Lamps
  • Logic Gate Circuits
  • Medical
  • Meter and Tester Circuits
  • Motor Driver
  • New Circuits
  • Oscillator Circuits
  • Oscillators
  • Pets and Pests
  • Power Electronics
  • Power supply
  • Protection Circuits
  • PWM
  • Remote Control
  • Security and Alarm Circuit
  • Sensors and Detectors
  • Signal Processor
  • Solar Controller Circuits
  • SSR
  • Temperature Controller
  • Timer
  • Transformerless
  • Transformers
  • Transistors
  • Transmitters
  • Tutorials
  • UPS
  • Voltage Regulators
  • Water Sensor and Controller
  • Home
  • Privacy Policy
  • Contact
  • Disclaimer
  • Copyright

© 2026 · Making Easy Circuits