Site icon Homemade Circuit Projects

12V Battery Charger Circuits [using LM317, LM338, L200, Transistors]

In this article I will be discussing a list of simple 12V battery charger circuits which are very easy and cheap by its design yet extremely accurate with its output voltage and current specs.

All the designs presented here are current controlled meaning their outputs will never go beyond a predetermined fixed current level.


UPDATE: Looking for a high current battery charger? These powerful Lead Acid battery charger designs might help you to fulfill your requirement.


UPDATE: Looking for a car or an automobile battery charger circuit? Make sure to read this article on Regulated Car Battery Charger Circuit for Garage Mechanics


Simplest 12 V Battery Charger

As I have reiterated in many articles, the main criteria to charge a battery safely is to keep the maximum input voltage slightly below the full charge spec of the battery, and keep the current at a level that does not cause warming of the battery.

If these two conditions are maintained you can charge any battery using a minimal circuit as simple as the following one:

In the above simplest layout the 12 V is the RMS output of the transformer. That means, the peak voltage after rectification will be 12 x 1.41 = 16.92 V.

Although this looks higher than the 14 V full-charge level of the 12 V battery, the battery is not actually harmed due to the low current specification of the transformer.

That said, it is advisable to remove the battery as soon as the ammeter reads near zero volts.

Auto Shut-OFF: If you want to make the above design to auto shut off when the full charge level is reached, you can easily accomplish this by adding a BJT stage with the output as shown below:

In this design, we have used a common emitter BJT stage which has its base clamped at 15 V, which means that the emitter voltage can never go beyond 14 V.

And when the battery terminals tend to reach above the 14 V level, the BJT gets reversed biased and simply goes into an auto shut down mode. You can tweak the 15V zener value until you have around 14.3 V at the output for the battery.

This transforms the first design into a fully automatic 12 V charger system, which is simple to build yet entirely safe.

Also, since there's no filter capacitor the 16 V is not applied as a continuous DC, rather as 100 Hz ON/OFF switching. This causes less stress on the battery, and also prevents sulfation of the battery plates.

For High Current Battery Charging, the above Schematic can be Modified as Shown Below:

Why Current Control is Important (Constant Current Setup)

Charging any form of chargeable battery can be critical and involves some attention to be paid. When the input current at which the battery is being charged is significantly high, adding a current control becomes an important factor.

We all know how smart the IC LM317 is and it’s no surprise why this device finds so many applications requiring precise power control.

The Current Controlled 12V Battery Charger Circuit Using IC LM317 presented here shows how the IC LM317 can be configured using just a couple resistors and an ordinary transformer bridge power supply for charging a 12 volt battery with utmost accuracy.

How it Works

The IC is basically wired in its usual mode where R1 and R2 are included for the required voltage adjustment purpose.

The input power to the IC is fed from an ordinary transformer/diode bridge network; the voltage is around 14 volts after the filtration via C1.

The filtered 14 V DC is applied to the input pin of the IC.

The ADJ pin of the IC is fixed to the junction of the resistor R1 and the variable resistor R2. R2 can be fine set for aligning the final output voltage with the battery.

Without the inclusion of Rc, the circuit would behave like a simple LM 317 power supply where the current wouldn't be sensed and controlled.

However with Rc along with BC547 transistor placed in the circuit at the shown position makes it capable of sensing the current that’s being delivered to the battery.

As long as this current is within the desired safe range, the voltage remains at the specified level, however if the current tends to rise, the voltage is withdrawn by the IC and dropped, restricting the current rise any further and ensuring appropriate safety for the battery.

The formula for calculating Rc is:

R = 0.6/I, where I is the maximum desired output current limit.

The IC will require a heatsink for operating optimally.

The connected ammeter is used for monitoring the charge condition of the battery. Once the ammeter shows zero voltage, the battery may be detached from the charger for the intended use.

Circuit Diagram #1

Parts List

The following parts will be required for making the above explained circuit

How to Connect pot with LM317 or LM338 Circuit

The following image shows how the 3 pins of a pot needs to be correctly configured or wired with any LM317 voltage regulator circuit or a LM338 voltage regulator circuit:

As can be seen the center pin and any one of the outer pins is selected for connecting the potentiometer or the pot with the circuit, the third unconnected pin is kept unused.


Circuit Diagram #2

Practical Results

The above LM317 battery charger circuit was suitably modified using fixed resistors, by one of the dedicated members of this blog Mr. V. The modified circuit was then utilized to charge a battery optimally and safely.

The following circuit diagrams exhibit how this was implemented, and the next prototype image shows the test results.

Red LED glowing shows Battery is Charging
Red LED dimmed, shows Battery is reaching full charge level.
Red LED turned off, indicating that the battery is fully charged

Adjustable High Current LM317 Battery Charger Circuit #3

For upgrading the above circuit into a variable high current LM317 battery charger circuit, the following modifications can be implemented:

Adjustable Current Charger Circuit #4

5) Compact 12 volt Battery Charger Circuit Using IC LM 338

The IC LM338 is an outstanding device which can be used for unlimited number of potential electronic circuit applications. Here we use it to make an automatic 12V battery charger circuit.

 Why LM338 IC

Basically the main function of this IC is voltage control and can also be wired for controlling currents through some simple modifications.

Battery charger circuit applications are ideally suited with this IC and we are going to study one example circuits for making a 12 volt automatic battery charger circuit using the IC LM338.

Referring to the circuit diagram we see that the entire circuit is wired around the IC LM301, which forms the control circuit for executing the trip off actions.

The IC LM338 is configured as the current controller and as the circuit breaker module.

Using LM338 as a Regulator and Opamp as the Comparator

The whole operation can be analyzed trough the following points:The IC LM 301 is wired as a comparator with its non inverting input clamped to a fixed reference point derived from a potential divider network made from R2 and R3.

The potential acquired from the junction of R3 and R4 is used for setting the output voltage of the IC LM338 to a level that’s a shade higher than the required charging voltage, to about 14 volts.

This voltage is fed to the battery under charger via the resistor R6 which is included here in the form of a current sensor.

The 500 Ohm resistor connected across the input and the output pins of the IC LM338 makes sure that even after the circuit is automatically switched OFF, the battery is trickle charged as long as it remains connected to the circuit output.

The start button is used to initiate the charging process after a partially discharged battery is connected to the output of the circuit.

R6 may be selected appropriately for acquiring different charging rates depending upon the battery AH.

Circuit Functioning Details (As Explained By +ElectronLover)

" As soon as the connected battery is charged fully, the potential at the inverting input of the opamp becomes higher than the set voltage at non-inverting input of the IC. This instantly switches the output of the opamp to logic low."

According to my assumption:

When The battery charges fully Icharging reduces. V- become greater than V+, output of the Opamp goes low, Turning on the PNP and LED.

Also, R4 gets a ground connection through the diode. R4 becomes parallel to R1 reducing the effective resistance seen from the pin ADJ of LM338 to GND.

Vout(LM338) = 1.2+1.2 x Reff/(R2+R3), Reff is the Resistance of pin ADJ to GND.

When the Reff reduces the output of LM338 reduces and inhibit charging.

Circuit Diagram

6) 12V Charger Using IC L200

Are you looking for a constant current charger circuit to facilitate a safe charging battery? The 5th simple circuit presented here using the IC L200 will simply show you how to build a constant current battery charger unit.

Importance of Constant Current

A constant current charger is highly recommended as far as maintaining safety and long battery life is concerned. Using the IC L200, a simple yet a very useful and powerful automobile battery charger providing constant current output can be built.

I have already discussed many useful battery charger circuits through my previous articles, some being too accurate and some much simpler in design.

Although the main criteria involved with charging batteries largely depends on the type of the battery, but basically it’s the voltage and the current which particularly needs appropriate dimensioning to ensure an effective and safe charging of any battery.

In this article I have explained a battery charger circuit suitable for charging automobile batteries equipped with visual reverse polarity and full-charge indicators.

The circuit incorporates the versatile but not so popular voltage regulator IC L200 along with a few external complementing passive components to form a full fledged battery charger circuit.

Let’s learn more about this constant current charger circuit.

Circuit diagram using L200 IC

Circuit Operation

The IC L200 produces a good voltage regulation and therefore ensures a safe and a constant current charging, a must for any kind of chargeable battery.

Referring to the figure, the input supply is acquired from a standard transformer/bridge configuration, C1 forms the main filter capacitor and C2 being responsible for grounding any left residual AC.

The charging voltage is set by adjusting the variable resistor VR1, with no load connected at the output.

The circuit includes a reverse polarity indicator using LED LD1.

Once the connected battery becomes fully charged i.e. when its voltage becomes to the set voltage, the IC restricts the charging current and stops the battery from over charging.

The above situation also reduces the positive biasing of T1 and creates a potential difference of above -0.6 volts, so that it starts conducting and switches LD2 ON, indicating that the battery has reached its full charge and may be removed from the charger.

The resistors Rx and Ry are the current limiting resistors required to fix or determine the maximum charging current or the rate at which the battery needs to be charged. It is calculated using the formula:

I = 0.45 (Rx + Ry) / Rx.Ry.

The IC L200 may be mounted on a suitable heatsink to facilitate consistent charging of the battery; however the built-in protection circuitry of the IC virtually never allows the IC to get damaged. It typically includes built-in thermal run away, output short circuit and over load protections.

Diode D5 ensures that the IC doesn’t get damaged in case the battery accidentally gets wrongly connected with reverse polarities at the output.

Diode D7 is included to restrict the connected battery from getting discharged through the IC in case the system is switched OFF without disconnecting the battery.

You may quite easily modify this constant current charger circuit to make it compatible with the charging of a 6 Volt battery by doing the simple changes in the value of a few resistors. Please refer the parts list to get the required info.

Parts list

How to Set up the CC Charger Circuit

The circuit is set up in the following manner:

Connect a variable power supply to the circuit.

Set the voltage close to the upper threshold volt level.

Adjust the preset so that the relay remains activated at this voltage.

Now raise the voltage slightly more to upper threshold volt level and again adjust the preset such that the relay just trips off.

The circuit is set, and can be used normally using a fixed 48 volts input for charging the desired battery.

A request from one of my followers:

Hi Swagatam,

I got your email from a website www.brighthub.com where you shared your expertise with regards to construction of a battery charger.

Please i have a little problem that i hope you could help me out:

I am just a layman with no much knowledge of electronics.

I have been using a 3000w inverter and recently i discovered it doesnt charge the battery (but inverts). We have no much experts around here and for fear of further damaging it, i decided to get a separate charger to charge the battery.

My question is: the charger i got has an output of 12volts 6Amps will that charge my dry-cell battery with 200ahs capacity?

If yes, how long will it take to full and if no, what charger capacity do i get to serve that purpose? I have had experience in the past where a charger damaged my battery and i don't want to risk that this time.

Many thanks.

Habu Maks

My Answer to Mr. Habu

Hi Habu,

The charging current of a charger should be ideally rated at 1/10 of the battery AH. That means for your 200 Ah battery the charger must be rated at around 20 Amps.

At this rate the battery will take around 10 to 12 hours for getting fully charged.
With a 6 amp charger it may take ages for your battery to get charged, or simply the charging process might fail to initiate.

Thanks and Regards.

7) Simple 12V Battery Charger Circuit with 4 LED Indicator

A current controlled automatic 12V battery charger circuit with 4 LED indicators can be learned in the following post. The design also includes a 4 level charging status indicator using LEDs. The circuit was requested by Mr. Dendy.

Battery Charger with 4 LED Status Indicator

I would like to ask and look forward to you to be made Automatic cellphone charger circuit 5 Volt and Battery Charger Circuit 12 V (in the schematic circuit and the first transformer CT) automatic / cut off by using a battery indicator and

LED lights red as an indicator were charging (Charging On Indicator) using IC LM 324, and

LM 317 and a full battery using a green LED and breaking electrical current when the battery is full.

For cellphone charger circuit 5 Volt I want to have levels of the following indicators:

0-25% battery is in the charger using a red LED.25-50% using a blue LED (red LED goes out)55-75% using a yellow LED (LED red, blue outages)75-100% using a green LED (LED red, blue, yellow outages) next to Battery Charger Circuit 12 V I want to use the 5 LED lights as follows:0-25% using a red LED25-50% using orange LED (red LED goes out)50-75% using a yellow LED (LED red, orange outages)75-100% using a blue LED (Led red, orange, yellow outages)more than 100% using the green LED (LED red, orange, yellow, blue outages).

I hope you, the components are common and accessible and made a circuit schematic above as soon as possible because I really need schematics details.

I hope you will help me to find a better solution.

The Design

The requested design make use of  4 level status indicator and can be witnessed below.

The TIP122 controls over-discharge of the battery while the TIP127 ensures an instant supply cut-of for the battery, whenever an overcharge limit is reached for the battery.

The SPDT switch can be used to select the battery charging either from a mains adapter or from a renewable energy source such as a solar panel.

Circuit Diagram

UPDATE:

The following tested 12V charger circuit schematic was sent to be by "Ali Solar" with a request to share it in this post:

Smart 12V Battery Charger Circuits

The following automatic 12V smart battery charger circuit was exclusively designed by me in response to requests from two keen readers of this blog, Mr. Vinod and Mr.Sandy.

Let's hear what Mr.Vinod discussed with me through emails regarding the making of a smart battery charger circuit:

8) Discussing a Personal 12V Battery Charger The Design

"Hi Swagatam, My name is vinod chandran. Professionally i am a dubbing artist in malayalam film industry but i am an electronic enthusiast too. I am a regular visitor of your blog. Now i need your help.

I just built an automatic SLA battery charger but there is some problems with that. I am attaching the circuit with this mail.

The red LED in circuit is supposed to glow when battery is full but it glows all the time .(my battery shows only 12.6v).

Another problem is with 10k pot. there is no difference when i turn the pot left and right. . So i request you to either correct these problems or help me to find an automatic charger circuit which gives me a visual or audio alert when battery is full and low .

As a hobbyist i used to make things from old electronic appliances. For the battery charger i have some components. 1. Transformer from an old vcd player. out put of 22v, 12v,3.3v.

And i don't know how to measure ampere. My DMM has only the ability to check 200mA. It has a 10A port but i can't measure any ampere with that.(meter shows "1") So i assumed that the transformer is above 1A and below 2A with the size and requirements of the vcd player. 2. Another transformer -12-0-12 5A 3.

Another transformer - 12v 1A 4. Transformer from my old ups(Numeric 600exv). Is this transformer's input is regulated AC ? 5. couple of LM 317's 6. SLA battery from old ups- 12v 7Ah. (Now it has a 12.8v charge) 7.

SLA battery from old 40w inverter - 12v 7Ah. ( the charge is 3.1v) One thing i forgot to tell you.

After the first charger circuit, i made another one (i'll attach this too). This is not an automatic one but it is working. And i need to measure the ampere of this charger.

For that purpose i googled for an animated circuit simulation software but didn't get one yet.

But i can't draw my circuit in that tool. there is no parts like LM317 and LM431(variable shunt regulator). not even a potentiometer or led.

So i request you to help me to find a visual circuit simulation tool. I hope you will help me. regards

Hi Vinod,  The red LED should not glow all the time and turning the pot should change > the output voltage, without the battery connected.

You can do the following things: > > Remove the 1K resistor in series with the 10K pot and connect the pot's  relevant terminal directly to ground.

Connect a 1K pot across the base of the transistor and ground (use center and any one of the other terminals of the pot).

Remove everything that's presented at the right side of the battery in the diagram, I mean the relay and all.....

Hopefully with the above changes, you should be able to adjust the voltage and also adjust the base transistor pot for making the LED glow only after the battery is fully charged, at around 14V.

I don't trust and use simulators, I believe in practical tests, which is the best method of verifying. For 12v 7.5 ah battery, use a 0-24V 2amp transformer, adjust the output voltage of the above circuit to 14.2 vollts.

Adjust the base transistor pot such that the LED just starts to glow at 14V. Do these adjustents without the battery connected at the output.

The second circuit is also good but is not automatic....is current controlled, though. Let me know your thoughts.  Thanks, Swagatam

Hi Swagatam,
First of all let me say thank you for your fast replying. I will try your suggestions. before that i need to confirm the changes you mentioned. I will attach an image consisting your suggestions. So please confirm the changes in the circuit.

Hi Vinod,

That's perfect.

Adjust the transistor base preset until the LED just starts glowing dimly at around 14 volts, with no battery connected.

Regards.

Hi Swagatam Your Idea is great. The charger is working and now one LED is glowing to indicate the charging is in progress. but how can i configure the charge full indicator LED. When i turn the pot to ground side (means lower resistance) LED starts glowing.

when resistance goes high LED will be off. After 4 hours of charging my battery shows 13.00v. But that charge full LED is off now. Plz help me.

I am sorry disturb you again. The last email was a mistake. i didn't see your suggestion correctly. So please ignore that mail.

Now i adust the 10k pot to 14.3v(it's quite difficult to adjust the pot, because a slight variation will result a bigger voltage output. ). And i adjust the 1k pot to glow a little. Is this charger supposed to indicate a 14v battery?. After all let me know the danger level full charge of the battery.

As you suggested, everything was alright when i test the circuit from breadboard. But after solder into PCB thing are happening strangely.

The red LED is not working. charging voltage is ok. Anyway i am attaching the image that shows the present condition of the circuit. plz help me. After all let me ask you one thing. Could you please give me an automatic charger circuit with a battery full indicator. ?.

Hi swagatam, Actually i am in the middle of your automatic charger with hysteresis feature. I just added a few modifications . i will attach the circuit with this mail. plz check this out. If this circuit is not ok then i can wait for you to tomorrow .

Simple Circuit Diagram #8

I forgot to ask one thing. My transformer is about 1 - 2 A. I don't know what is the correct. how can i test with my multimeter?.
Besides if it is a 1A or 2A transformer, how can i reduce the current
to 700mA.
regards

Hi Vinod, The circuit is OK, but won't be accurate, will give you a lot of trouble > while adjusting.

A 1 amp transformer would provide 1amp when short circuited (check by connecting the meter prods to the supply wires at 10amp range and set to either DC or AC depending upon the output).

Meaning the maximum power of is 1 amp at zero volts. You may use it freely with a 7.5 Ah battery, it won't do any harm, as the voltage would drop to the battery voltage level at 700 ma current and the battery would get safely charged. But remember to disconnect the battery when the voltage reaches 14 volts.

Anyway, a current control facility would be added in the circuit that I would be providing you, so there's nothing to worry

Regards.

I'll provide you with a perfect and easy automatic circuit, please wait  until tomorrow.

Hi swagatam,
I hope you will help me to find a better solution. Thank you.
regards
vinod chandran

In the meantime, another keen follower of this blog Mr.Sandy also requested a similar 12V smart battery charger circuit through comments.

So finally I designed the circuit which will hopefully satisfy the needs of Mr.Vinod and Mr.Sandy for the intended purpose.

The following 9th figure shows an automatic 3 to 18 volts, voltage controlled, current controlled, double stage battery charger circuit with standby charging feature.

Circuit Diagram #9

How to Set up the Circuit

The circuit can be set up using the following points:

1) Initially, keep the power switched OFF, and keep the 10k feedback resistor between pin#6 and pin#2 disconnected.

2) Do not connect any battery yet.

3) Adjust the 10k preset wiper fully towards the ground supply side.

4) Adjust the LM338 output voltage to the full-charge battery level.

5) Short circuit the LM338 output with the N/O of the relay, so that the LM338 output voltage gets connected directly with the opamp circuit.

6) Switch ON the power supply to the LM338 input.

7) The red LED should light up, and the relay should click ON.

8) Now slowly adjust the 10k preset until the relay just clicks OFF.

9) This will also turn OFF the green LED and turn ON the red LED.

10) That's all, the circuit is fully set now, remove the shorting between the LM338 output and the N/O contact, and reconnect the 10k feedback resistor.

11) You can test the actual auto cut-off function of the circuit by connecting a discharged battery across the indicated battery points.

PCB Designs and Gerber Files

The following PCB design and the Gerber file details were kindly contributed by Mr. Sudipta Ghose who is an avid reader of this blog. I am grateful to him for his kind contributions to this website.

Download Gerber Files

Exit mobile version