• Skip to main content
  • Skip to primary sidebar

Making Easy Circuits

Learn and build electronic circuits

You are here: Home / Solar Controller Circuits / Make Solar Voltage Battery Charger Controller using LM338 IC

Make Solar Voltage Battery Charger Controller using LM338 IC

Last Updated on March 6, 2025 by Admin Leave a Comment

Here we have a simple solar battery charger circuit using LM338 which is a voltage regulator IC but we use it for charging. So now, let us understand how this thing works.

Please note that, you can replace the IC LM338 with LM317 IC if your battery is rated lower than 7 Ah

Working Description

First our solar panel gives the input power, which enters LM338 at its "IN" pin. This IC will control the voltage and current so our lead-acid battery can charge safely. Now we see a diode at the output, this stops the battery from discharging back into the circuit when there is no sun.

The LM338 has an "ADJUST" pin which decides the output voltage. We connect a resistor R1 (120 ohm) and a potentiometer P1 (10K) to this pin.

So by adjusting P1 we set the charging voltage for the battery. But wait, we also need to control the current right? That is where R3 and BC547 come into play.

Constant Current Control

Now look at R3. We calculate its value using:

R3 = 0.7 / Charging Current

This means if we want 2A charging then R3 = 0.7 / 2 = 0.35 ohm. Simple.

But what does BC547 do? This transistor is like a switch. When charging current is high then voltage across R3 rises and when it reaches around 0.7V, BC547 turns ON.

This pulls the "ADJUST" pin lower, reducing the LM338’s output voltage which in turn reduces charging current. So this way, we get automatic current control.

Charging Current Display

Finally we put an ammeter in series, so we can see how much current is going into the battery. If sun is bright then current will be high, if weak then, current will drop. And that is all, now we have a solar charger that controls both voltage and current to safely charge our lead-acid battery.

Circuit Diagram

Constant current solar panel voltage regulator circuit diagram

Track side PCB Design (R4, Diode and S1 not included...R4 is actually not important and may be replaced with a jumper wire.

Solar Panel Voltage Regulator PCB layout

How to Build

Remember you need to build this solar charger properly, otherwise it may not work well. S, let us see step by step.

  1. Heatsink for LM338

Now first thing, LM338 will get hot when charging because it is handling high current. So we must fix it on a big aluminum heatsink, otherwise it may shut down or burn. If we see it getting too hot we need a bigger heatsink or maybe a small fan.

  1. Diode Selecting

Now look at the diode after LM338. It must handle the full charging current. If we plan for 5A charging then we need a diode rated for at least 6A or more. A good choice is 1N5408 (3A) for small current or 6A4 (6A) for bigger current. This diode must also be attached properly or charging will not happen.

  1. Wiring and Soldering

Ok, now wiring part. Since we are handling high current so the wires must be thick, especially from the solar panel to LM338 and from LM338 to the battery. Thin wires will drop voltage and charging will be slow. Also soldering must be solid, no loose connections or things will heat up.

  1. Potentiometer (P1) Setting

Now adjusting voltage. Before connecting the battery we turn P1 slowly and set the output to 14.2V (for a 12V lead-acid battery). We can use a multimeter at the output to check. If it is too high then battery will overcharge, if too low then charging will be weak. So this step is important.

  1. Testing and R3 Placement

R3 (current control resistor) must be high-wattage, at least 5W or more because it will get warm when charging. We can use multiple low-ohm resistors in parallel to get the right value. After fixing R3, we check with an ammeter to see if current is correct. If needed then we adjust R3.

  1. Final Connection to Battery and Charging

Once everything is set then we connect the battery last. First we check solar panel voltage then we connect the battery terminals properly (plus to plus, minus to minus). If connections are reversed, then circuit will not work or even worse, it may damage components.

So now we are ready! If built correctly then this circuit will charge the battery safely and we can monitor the current using the ammeter. Simple and effective…

Calculating Charging Current for the Battery

By choosing the resistor R3's value suitably, one may choose the charging current.

The formula may be solved as follows: 0.6/R3 = 1/10 battery AH

Adjusting the preset VR1 allows the regulator to supply the necessary charging voltage.

Solar Regulator with Adjustable Voltage and Current Output

The LM338 ICs are used in the high current voltage regulator circuit depicted in the accompanying image.

Several LM338 Ics are connected in parallel atop the same common heatsink to obtain the high current.

Although they are not included in the design, you might connect a minimum of eight LM338 ICs in parallel when assembling it actually.

Adjustable Solar voltage and current regulator circuit diagram using IC LM338

You'll also like:

  • 1.  How Actual MPPT works
  • 2.  Build an Automatic 40 Watt LED Solar Street Light Circuit
  • 3.  IC 555 Automatic SOLAR Street Light Circuit: How to Build
  • 4.  Best Low Drop Solar Charger Circuits Explained
  • 5.  How to Use an SMPS Circuit as a Solar Charger
  • 6.  Understanding Solar Panels Voltage, Current Specs

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

Leave a Reply Cancel reply

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

Primary Sidebar

Categories

  • 3 Phase (4)
  • 8051 Microcontroller (1)
  • Arduino (11)
  • Audio and Amplifier (102)
  • Automation (8)
  • Battery Chargers (64)
  • Bicycle Projects (4)
  • Car and Motorcycle Projects (39)
  • Datasheets (10)
  • DIY Projects (5)
  • Electrical (15)
  • Free Energy (6)
  • Games Projects (2)
  • High Voltage (14)
  • Hobby Projects (30)
  • Household Circuits (2)
  • IC 555 Circuits (5)
  • Ignition Circuits (2)
  • Indicators (50)
  • Infrared (6)
  • Inverter Circuits (29)
  • Lights and Lamps (97)
  • Medical (8)
  • Meter and Tester Circuits (38)
  • Motor Driver (17)
  • New Circuits (56)
  • Oscillators (30)
  • Pets and Pests (5)
  • Power supply (80)
  • Protection Circuits (25)
  • PWM (9)
  • Remote Control (20)
  • Security and Alarm Circuit (48)
  • Sensors and Detectors (66)
  • Signal Processor (23)
  • Solar Controller Circuits (62)
  • SSR (3)
  • Temperature Controller (20)
  • Timer (25)
  • Transformerless (7)
  • Transmitters (12)
  • Tutorials (45)
  • UPS (2)
  • Voltage Regulators (57)
  • Water Sensor and Controller (29)
  • Home
  • Privacy Policy
  • Contact
  • Disclaimer
  • Copyright

© 2025 · Making Easy Circuits