2 Best 6v 4ah Automatic Battery Charger Circuits Using Relay and Mosfet

The following two versions of 6 volt 4 AH battery charger circuits has been designed by me and posted here in response to the request from Mr. Raja, let's learn the whole conversation.

Technical Specifications

"Dear sir, please post a circuit to charge 6 volt 3.5 ah lead acid battery from 12 volt battery. The charger should automatically stop charging as the battery is fully charged.

Please use transistor instead of relay to stop charging, and also tell me how to use 12 volt relay for the same circuit.

Explain Which is safe and durable either relay or transistor to cut off charging. (At present i am charging my above said battery by simply using LM317 with 220 ohm and 1 kilo ohm resistors and a couple of capacitor) i'm awaiting your article, thank you".

The Design

The following circuit shows a simple automatic 6 volt 4 to 10 AH battery charger circuit using a 12 volt relay, designed to automatically cut off the supply to the battery as soon as the ful charge level for the battery is reached.

How it Works

Assuming no battery is connected with the circuit, when power is switched ON, the relay contact will be at the N/C and no power will be able to reach the IC 741 circuit.

Now when battery is connected, the supply from the battery will actuate the circuit, and assuming the battery to be in a discharged state, pin#2 will be lower than pin#3 causing a high at pin#6 of the IC. This will switch ON the transistor relay driver, which in turn will shift the relay contact from N/C to N/O connecting the charging supply with the battery.

The battery will now begin charging slowly and as soon a its terminals reaches at 7V, pin#2 will tend to become higher than pin#3, causing pin#6 of the IC to become low, switching OFF the relay and cutting off supply to the battery.

The existing low at pin#6 will also cause pin#3 to become permanently low through the linked 1N4148 diode, and thus the system will be latched, until power is switched OFF and ON again.

If you don't wish to have this latching arrangement, you can very well eliminate the 1N4148 feedback diode.

Note: The LED indicator section for all 3 following diagrams were recently modified after a practical testing and confirmation

The following circuit shows a simple automatic 6 volt 4 AH battery charger circuit without using a relay, rather directly through a transistor, you can replace the BJT with a mosfet also to enable high Ah level charging also.


The above transistorized 6V charger circuit has a mistake. At the full-charge level as soon as the battery negative is cut-off by the TIP122, this negative from the battery is also cut-off for the IC 741 circuit.

This implies that now the IC 741 is unable to monitor the discharging process of the battery, and will be unable to restore the battery charging when the battery reaches the lower discharge threshold?

To correct this we need to make sure that at the full-charge level, the battery negative is only cut-off from the supply line, and not from the IC 741 circuit line.

The following circuit corrects this flaw and makes sure that the IC741 is able to monitor and keep track of the battery health continuously under all circumstances.

How to Set Up the Circuit

Initially, keep the pin6 feedback resistor disconnected and without connecting any battery adjust R2 to get exactly 7.2V across the output of the LM317, for the IC741 circuit.

Now simply play with the 10k preset and identify a position where the LEDs just flip/flop or change or swap their illumination.

This position within the preset adjustment may be considered as the cut-off or the threshold point.

Carefully adjust it to a point at which the RED LED in the first circuit just lights up......but for the second circuit it should be the green LED that is supposed to get illuminated.

The cut-off point is now set for the circuit, seal the preset in this position and reconnect the pin6 resistor across the shown points.

Your circuit is now set for charging any 6V 4 AH battery or other similar batteries with an automatic cut-off feature as soon as or each time the battery becomes fully charged at the above set 7.2V.

Both the above circuits will perform equally well, however the upper circuit can be altered to handle high currents even up to 100 and 200 AH just by modifying the IC and the relay. The lower circuit may be made to do this only up to a certain limit, may be up to 30 A or so.

The second circuit from above was successfully built and tested by Dipto who is an avid reader of this blog, the submitted images of the 6V solar charger prototype can be witnessed below:

Adding a Current Control:

An automatic current control regulator function can be added with the above shown designs by simply introducing a BC547 circuit as shown in the following diagram:

The current sensing resistor can be calculated through the simple Ohm's law formula:

Rx = 0.6 / Max charging current

Here 0.6V refers to the triggering voltage of the left side BC547 transistor while max charging current signifies the maximum safe charging for the battery, which may be 400mA for a 4AH lead acid battery.

Therefore solving the above formula gives us:

Rx = 0.6 / 0.4 = 0.24 Ohms.

By adding this resistor will ensure that the charging rate is fully controlled and it is never exceeded the specified safe charging current limit.

Test Report Video Clip:

The following video clip shows the testing of the above automatic charger circuit in real time. Since I did not have a 6V battery, I tested the design on a 12V battery, which does not make any difference, and its all about setting the preset accordingly for the 6V or a 12V battery as per user preference. The above shown circuit configuration was not changed in any manner.

The circuit was set to cut off at 13.46V, which was selected as the full charge cut off level. This was done to save time because the actual recommended value of 14.3V could have taken lot of time, therefore to make it quickly I selected 13.46V as the high cut off threshold.

However one point to be noted is that the feedback resistor was not employed here, and the lower threshold activation was automatically implemented at 12.77V by the circuit, as per the IC 741's natural hysteresis property.

6V Charger Design#2

Here's another simple yet accurate automatic, regulated 6V lead acid battery charger circuit which switches off the current to the battery as soon as the battery reaches full charge. An illuminated LED at the output indicates the fully charged condition of the battery.

How it Works

The CIRCUIT DIAGRAM can be understood with the the following points:

Fundamentally the voltage control  and regulation is done by the versatile, work horse IC LM 338.

An input DC supply volt in the range of 30 is applied to the input of the IC. The voltage may be derived from a transformer, bridge and capacitor network.

The value of R2 is set to get the required output voltage, depending upon the battery voltage to be charged.

If a 6 volt battery needs to charged, R2 is selected to produce a voltage of around 7 volts at the output, for a 12 volt battery it becomes 14 volts and for a 24 volt battery, the setting is done at around 28 volts.

The above settings take care of the voltage that needs to be applied to the battery under charge, however the tripping voltage or the voltage at which the circuit should cut off is set by adjusting the 10 K pot or preset.

The 10K preset is associated with the circuit involving the IC 741 which is basically configured as a comparator.

The inverting input of the IC 741 is clamped at a fixed reference voltage of 6 via a 10K resistor.

With reference to this voltage the tripping point is set via the 10 K preset connected across the non inverting input of the IC.

The output supply from the IC LM 338 goes to the battery positive for charging it. This voltage also acts as the sensing as well as the operating voltage for the IC 741.

As per the setting of the 10 K preset when the battery voltage during the charging process reaches or crosses the threshold, the output of the IC 741 goes high.

The voltage passes through the LED and reaches the base of the transistor which in turn conducts and switches off the IC LM 338.

The supply to the battery is immediately cut off.

The illuminated LED indicates the charged condition of the connected battery.

Circuit Diagram

This automatic battery charger circuit can be used for charging all lead acid or SMF batteries having voltages in between 3 and 24 volts.

The above circuit was found not so satisfactory by some of the readers, so I have modified the above circuit for a better and guaranteed functioning. Kindly see the modified design in the below given figure.

PCB Design for the above finalized 6V, 12V, 24V automatic battery charger circuit

Need Help? Please send your queries through Comments for quick replies! And please Bookmark my site :)


Tanvir Ahmed said…
Dear Sir,
As per your instruction I have repeat the
previews adjustment, first adjust 2K2 POT
for required output charging voltage & swap
the 10k variable resistor with successfully
Green LED on and shut off red but not fully
off with slide lighting . but could not
charging when connect negative voltage from
TIP 122 (Collector). after input negative
voltage connect to battery terminal & it
charging to battery with heat to LM 317.
please help me to find-out the problems.
for your information I have attached picture
file of circuit.
1. How to off & on TIP 122 transistor with
which voltage need to done this job?
2. please explain the function of base
Zaner diode of TIP 122 transistor?

Below the voltage status of circuit
Input voltage 11.94 with 5A
output regulated voltage 7.77 after adjusting the 2.2k variable.
IC PIN 2 voltage =7.77
IC pin 3 voltage =7.08
IC pin 6 voltage =2.17 after swap the 10k
variable & before swap 10kV voltage was V6.74
TIP122 Base voltage after swap 10k variable
140 mV and 0.657V before swap the 10k

Thanks & Regards
Tanvir Ahmed
Tanvir Ahmed said…
I'm awaiting your helpful feedback.
Swagatam said…
Dear Tanvir,

You have done just the opposite of what was required to be done.

Without connecting any battery, set the 2k2 pot for the required output, next adjust the 10k preset to just switch ON the RED LED.

After this switch off the circuit, connect the battery, and switch ON power. Now you will find red LED switched OFF and the green LED coming ON...once the battery gets fully charged, the RED will again switch ON indicating that the battery is charged and disconnected.

While setting 10K preset remember to disconnect the 100k feed back resistor....connect it back after the setting is done.
Swagatam said…
....the input current must be rated at 1/10th of the battery AH, otherwise the above procedures will not work.
apudiu1 said…
I am sure this circuit is very good. But I need your help here. This circuit is for 6v 4ah battery but I have 6v 4.5ah (1) battery. and I also have 4v 3ah (1) and 3v 2ah (1) total 3 batteries that I bought few days ago.

Please help me build charger for the battery 6v 4.5ah battery. and also please tell me can I use Nokia charger (5v 350 ma) for two of my other batteries directly to charge?

I will be very happy if you help me.

Swagatam said…

You can use the above circuit for charging all the three batteries that you have bought by suitably adjusting the given presets in the circuit.

You can use the 5v charger supply with the above explained circuit for charging the 3V batteries.
apudiu1 said…
Thank you very much for you very useful information. But can you please tell me which circuit should I built for my case ? the first one or the second one ?

And Kindly please tell me which presets I should change to charge 3v & 4v batteries ?

I understand that I can use the Nokia charger to power the circuit to charge the 3v & 4v batteries, but in this case I need any parts change on the circuit ?

Waiting for your information.

B. Regards,
Swagatam said…
You can try the second circuit.

No change in parts would be required.
Swagatam said…
Ideally it should 7V @500mA
Swagatam said…
1) It's due to parasitic leakage from the IC output, it can be corrected in the following manner.
Swap the positions of the transistor base resistor and the zener, next shift the LED joint in between the resistor and the zener, this will clean up the issue.

2)The relay contacts can be seen connected with the battery positive, so as soon as it activates the battery gets disconnected from the supply at the full charge conditions.
Swagatam said…
try using a boost charger circuit as shown in article:


the coil will need to be modified appropriately.

Swagatam said…
It means your opamp is faulty or there's some other kind of mistake, because altering the 10K preset should certainly make the relay flip.

I think it would be better if you refer and learn how an opamp functions, it will help you to troubleshoot the issue immediately from the core. there are many online sources dealing with this subject

By the way did you remove the feed back 10k resistor while doing the testing, it is important otherwise the relay will not respond properly.

The relay N/C contact connects with the diodes, diode should be a rectifier diode rated at least at 1amp, any type will do.

Swagatam said…
Don't modify the cell phone charger, use a power supply with an output of at least 7V and current 1 Amp.
Swagatam said…
you can use a 12v/750mA trafo...
Swagatam said…
...use a bridge rectifier and a 2200uF/25V for the filtering the DC.
pinklemon10 said…
hey dear nice circuit but im not understand 10k pot use? or not
Swagatam said…
it's for adjusting the over charge cut-of threshold level of the battery
rizwan said…
sir i wnt 2 make a solar chrge controler of 6v nd 5amp which circuirt should i use it plz let m guide it???
hello sir,
what modification should be made in the circuit if 3v zener is replaced with 3.3v zener.
Swagatam said…
hello Seelamsetti,

no modifications would be required, you can use any zener between 3 and 9V.
Swagatam said…
see the black dot....it means it connects the LEDs links and also pin6 together
P Ramamurthi said…
I am interested to make a battery charger for 12 volt battery.But when I went shops to get parts they could not understand relay for 12 volt battery charging.What specifications like any series number should i tell so that I can get it
Thanking you
P Ramamurthi
Swagatam said…
Hello Ramamurthi,

please tell them to give you a 12V, 10amp relay, preferably a PCB mount type and made by O/E/N.
Amlan said…
hello, i tested the ckt some month ago. after that i was an accident and do not finished. now i again test. but something is wrong. when i switch on the power of ur ckt my relay is energized and green led is lit. i bought new 6V 4.5A battery and connect to the ckt. but my battery do not charge. plz give some advice to me. i use 3.3v 1w zener diode.
Swagatam said…
Without any battery connected the input voltage should be 7V, at this voltage first adjust the 10k preset such that the relay just cut-off or deactivates.

Once this is done, then connect the battery and switch ON power, now the relay will not activate until the battery is charged.

While adjusting the 10k preset remember to keep the pin6 10k resistor disconnected.....connect it back after the adjustment is finished.
Skl Dj said…
please clear the confusion, 2nd design tip122 transistor emiter and collector are joined to 470R resistor with ground,i think collector should go to positive. what is the purpose to use 3v zener at the base of tip122?
if i want to use 2nd circuit to charge cellphone battery (3.7v,800mah) with USB power source, what modification should be done?
Swagatam said…
the TIP122 connection is correct, rest assured.

It will be difficult to explain all the modifications for a USB 3.7 charger, because there are many changes to be done.
I'll post the compete design in my blog and provide you with the link soon.
Swagatam said…
Can you please show me the exact link of the emergency light, I will try to figure out the whole design
Ravindra Sharma said…
I want 9v input instead of 12 v what changes i need pls help
Swagatam said…
you can use the same circuit for 9V input, no changes would be required.
If we use LM324 in place of IC741 and 4.7V Zener then do we have to change any components in the 2nd Circuit.
Swagatam said…
Tanmoy, no changes would be required if a LM324 is used, you can use the same configuration.
Yeshwanth Kumar said…
Hello Swagatham thanks for your help, I believe i can use the same for charging 12V battery. with suitable corrections of resistors?? Thanks for your great help
Yeshwanth kumar J
Swagatam said…
Yes surely you can do that Yashwanth....you are welcome.
Is that r 470 and two diodes connect with + battery? And if relay cut off they still connect?
Hello sir, is the 2 IN4007 and r470 connect to + batt? And if relay cut off they still connect?
Swagatam said…
Hello Sumantri,
yes, it's to keep the battery trickle charged even after cut-off.

you can eliminate the 470 ohms if you don't want this to happen.
mashal mohamed said…
Dear sir
I have 6v 4a battery which I use for a toy car
problem is the adapter broken and I got a adapter 6v1
Will it work?
Swagatam said…
Dear Mashal, it should be at least 6.5 to 7V for charging a 6V battery, 6.1 will not be good.
Kolley said…
Thanks so much, you are indeed angel sent from heaven to solve human electronic hobbyist problem, more grease to your elbow.
Sir , am having problem getting TIP122 pls can I replace it with BC or mosfet? If yes which BC or mosfet can I use? Thanks in advance
Swagatam said…
thanks kolley,

what's BC?

you can try a mosfet, the specs will depend on the battery AH rating...
Kolley said…
Thank you so much for this great circuit, I always like to build your circuit.
Pls am having problem here getting TIP 122 pls can I use BC transistor or Mosfet instead of TIP122, if yes which BC or mosfet can I use?
Thanks so much
Swagatam said…
thanks kolley,

BC series will not work....

you can try a mosfet, the specs will depend on the battery AH rating...
Joevil said…
Sir swatagam,
what are the modification to be done i the circuit to charge a 12vdc 100ah deep cycle battery?
Swagatam said…
Joevil, you can make use of the first circuit, upgrade the relay to handle 10amps and also replace LM317 with LM396...that's all.
Sir,I need to charge a 11.1 volt 2200 mah lion battery, i have read your above reviews and understand that i will have to use a 14-15 vdc source. I am not too sure about the Current rating of the dc source, should be be around 250 ma(1/10 of the mah) or how much more? as there would be current draw from the circuit itself. thanks and warm regards
Swagatam said…
you can try a readymade 12V smps 1amp adapter, and regulate the output using an LM317 circuit...that would be much clean and easy.

use a good heatsink for the LM317
Dipto said…
Hello sir, i have two questions,
1) Can I use a 10w 6v solar panel to charge this battery? If so what would be the current rating?
2) Can this battery charger be combined with this circuit mentioned in the link below?


Swagatam said…
Hi Richard, I might have missed your comment, so I am replying it now, for Li-ion you can use a current source that may be equal to the batt AH rating, therefore in your case you can charge it at the the rate 2.2 amps.
Swagatam said…
Hello Dipto, for charging a 6V batt you will need at least an input of 9V in the above circuit, so probably a 9V or a12V panel may be required.

yes it can be used in conjunction with the referred changeover circuit....
Dipto said…
thanks you sir for your quick reply. I will be doing my final year project & your blog is helping me a lot.

another question I have sir,
what should be the current rating of the solar panel? and how long will it take to charge the battery 6V 4.5AH with a 10W 12V solar panel?
Swagatam said…
Hello Dipto, please go through the previous.....
Swagatam said…
withe the given solar/batt specs it could take around 6 to 8 hours for the battery to get fully charged

current rating of the panel may be calculated as follows:

10/12 = 0.833 amps
Dipto said…
Sir I have successfully implemented the second circuit. Additionally I have made a bridge rectifier with the charger circuit to connect it with the source. Here is the picture,


However I have one problem when I vary the 10k pot the red light doesn't completely turn off but glows very dimly. How can I solve this problem?
Swagatam said…
thanks for the image Dipto,

remove the 3V zener from the transistor base and change its position by connecting its cathode directly with pin6 of the IC and the anode with the junction of the two LEDs and the transistor base resistor.
Dipto said…
Sir, I have followed the procedure you have mentioned the red LED is turned off indeed however the green LED always stays on even after varying the 10k pot.

One thing I did in the original circuit was connecting a 10k resistor is series with red LED (between red LED and 1K resistor) and the red LED seemed to be almost turned off. So it is okay if attach a 10k resistor with red LED?
Swagatam said…
Dipto, the procedure is given as under:

disconnect the feedback persist which comes from pin6 of the IC temporarily.

without any battery connected, set the output to 7V

now adjust the pin2 10k preset until the green LED just lights up.

seal the setting with glue.

reconnect the 10k resistor between pin6 and pin2.

the setting is done!

if you have done the zener modification as suggested by me, then a single resistor with each LED will be enough....do not manipulate in any other way.

Swagatam said…
....the word "persist" is a typo it was meant to be resistor
Dipto said…
Sir, after shifting the position of the zener diode as per your suggestion the problem seems to be gone now. The LEDs are swapping without any issues now. I have also implemented the first circuit using relay and attached a solar panel it is also working as well. Here are some pictures,



Swagatam said…
Thanks, That's great Dipto,

I'll make sure the images get updated in the above article soon...
Dipto said…
Hello Sir, I have built the 2nd circuit again but I am facing one problem. When ever I vary the 10k preset the light shifts position but the other LED glows dimly. For example if red LED is glowing brightly then green is glowing dimly vice versa.

I interchanged the position of the resistor (100 ohm) and zener at pin 6 and placed LED junction in between them as you have instructed earlier, but it is not working. Is there any other modification I can do?
Swagatam said…
which smps circuit did you use? Is the circuit present in this site, if so please provide me with the link.
manjunath said…
thank you sir
Swagatam said…
you can use any capacitor there, even if you don't use it won't matter...
VIJAY AJ said…
Thank you very much sir for the above circuit it works perfectly for me.I need one more feature on the above circuit because the above circuit didn't cutoff the load when the battery voltage is to low this will affect the life of a battery.please say any idea that battery should be automatically isolated from the load when battery voltage is to low.I am waiting for your reply sir.
Swagatam said…
Hi Vijay,

the above two circuits will never allow the connected battery to go below a predetermined level (as set by the value of the feedback resistor from pin6 to pin#3)...as soon as a low battery is detected the circuit will revert and begin the charging process for the battery
VIJAY AJ said…
OK sir.my supply voltage is from solar panel.during night if the voltage from a panel is to low the charging process get stopped on such period of time my battery voltage reaches to low it will affect the life time of battery .can u get my point sir????.pls suggest an idea for me.thanks for your reply sir
Swagatam said…
Vijay, remove the LM338 output diode and connect in the manner shown in the following article:


this will solve the issue of the battery getting discharged through the 10k presets.
Louis Nieuwoudt said…
Hi Swagatam,

I am looking to build the second of the two circuits you listed above. Going through the list of explanations you provided in the comments I think I have a fair understanding of how it works, except for the tip122 on the output of the op-amp. Could you please explain what the purpose is of this component ?

Kind regards
Louis Nieuwoudt said…
Hi Swagatam,

Could you please explain the purpose of the transistor on the op-amp output ?

Kind regards
Swagatam said…
Hi Louis,

TIP122 acts like a switch, it remains switched ON and connects the negative of the battery with the negative supply line as long as the battery is charging and is below the full charge mark...it switches OFF the negative line to the battery the moment it reaches the full charge,
Muhammad Faizan said…
Hi swagatam, thanks very much for posting these circuits. I want to ask 2 questions about your second circuit.
1) Can i charge a 6V 6.8Ah battery from this circuit? Any modifications?
2) What is the function of the 10K potentiometer used at the right side of the battery with op amp. How much should i adjust both the potentiometers to charge 6V 6.8Ah battery

Thanks in advance
Swagatam said…
you can try using a small boost converter and step up the 5V to 7V,

try the following concept:

Swagatam said…
Hi Muhammed, yes you can charge the mentioned battery, just adjust the LM338 pot and ensure a 7V across the battery terminals without connecting any battery.

the 10k preset is for adjusting and setting the cut off threshold at the battery full charge level, set this such that the green lights up and red led shuts off at 7V across the battery terminals
Goran Radkov said…
Hello Swagatam,

Can i ask you for help for this circuit, please... i made the first one and i want to use it for 12V battery; the problem is, that when i'm adjusting the output voltage, and when it exceed 1.5V the relay is triggering, so the charging LED is lighting, and when i try to adjust the other pot - on the IC741, it is always flicking

I used resistor R1 - 220 ohm, instead of 240 ohm;
and also i saw in the first coment, that initially, the pot under LM317 has been 2.2K
Swagatam said…
Hello Goran,

initially keep the preset slider arm towards ground, completely...so that the pin#3 of the opamp is at a zero potential.

Now adjust a 14.4V from the LM317 and slowly adjust the preset slider arm upwards until the red LED just lights up (green LED shuts off)

220 ohm is OK....

2.2k pot is not proper...it must be around 5k to 10k
Goran Radkov said…
Yes, initially the preset is giving 0.0V at pin#3, but adjusting the preset is just slightly increasing the light of the RED LED, and the relay is getting triggerd when i'm adjusting the output voltage, just when it exceed 1.5V;
Also the RED LED is always very slightly flickering, even when the preset is giving 0V at pn#3,
maybe some resistor must be bigger...?
Swagatam said…
No, everything's perfect in the circuit and the resistors don't matter much, even if you were to use 100k resistors at the input of the opamp, it would provide the same sequence of results.

make sure that you remove the feedback resistor across pin6 and pin3 while setting-up the pin3 preset.

did you include the zener at the output pin6 of the opamp?

there should be no battery connected while the setting up procedures are being carried out.
Goran Radkov said…
I wasn't removed the reedback resistor while setting up... so i did it with a swich, but there was no difference, because the voltage at pin#6 is always about 2.8 - 3V for 14.4V output;

what do you mean about the zener? i have it on the place, like on the circuit diagram;

yes, there's no battery while setting up;

But i have used C1 - 0.1uF ceramic? Maybe it must be electrolitic...?
Swagatam said…
that means your IC is faulty or you have done something wrong with the connections, the output pin6 must instantly turn equal to the supply voltage as soon as pin3 potential is pushed just above pin2 potential....this will happen while you adjust the preset....but if that's not happening indicates that something's not right in the assembly.
Swagatam said…
C1 is not relevant here....so it doesn't make any difference what you have used.
Goran Radkov said…
I remade the circuit entirely from the beginning, but it's happening the following:
1 - when the voltage exceed ~2.3V the relay is triggering
2 - the voltage at pin#3 is 0V but at pin#6 it is not the same, but about 2.6 (which i think is because of the 3V zener...)
3 - at the situation of "2" the both LEDs are lighting equally, and when the input voltage (at pin#3) exceed ~2.3V the voltage is jumping to about 9V at the both input and output, and afterwards it's increasing while adjusting... but in that very moment the RED-Batt Full LED starts shining stronger, and the GREEN LED shines slower
4 - all the time the relay is triggered and the LEDs are lighting, no matter of the brightness

I didn't understand what happened, but in one moment the IC exploded along with the input C1, as the last one set on fire, so i wanted to ask you, do you have that circuit made and all working properly...?
Swagatam said…
All these indicate that your IC is duplicate or of poor quality....with pin3 grounded the voltage at pin6 should be not more than 1V or max 1.5V (leakage volts)

the 3V zener is introduced to block the pin6 leakage voltage from reaching the BC547 base, it won't create the volts as you are assuming.

did you remove the 10k feedback resistor across pin6/pin3, while adjusting the 10k preset??? it needs to be removed and later on reconnected

and under no circumstances the IC can explode unless the pin7 voltage is increased above 22V

please go through all the comments above to get a better idea regarding the procedures.
Angelous Chavez said…
Sir what is the full voltage or fully charge voltage of a 6v 4.5ah battery?
Swagatam said…
it will be around 7.2V
Unknown said…
Asalamo alaikum sir I need automatic 6 volt battery charging circuit with relay and 555 time ic plz send me circuit...
Angelous Chavez said…
sir what should be the resistance value of 10k potentiometer that is connected to pin2 of ic1 if im going to charge a 6v lead acid battery...

i have maked the circuit above but the two leds are glow.
Angelous Chavez said…
i have already make this circuit and i connected correctly all of the components based on the circuits above without using a relay when i connect the 6v bat and a 9v supply the green and red leds are glown.. it supposed to be the green led will glow first then when the bat is full the red led will glow...
Swagatam said…
Measure the voltage at pin6 with reference to ground, it must show zero volts or supply voltage depending on the 10k preset setting.

the red LED is glowing due to leakage voltage at pin6, but the 3V zener is supposed to stop this, make sure you have connected the zener at pin6 correctly.

I think I have explained the entire setting up procedure somewhere within the comments please search it and set the 10K preset accordingly.
Angelous Chavez said…
Angelous Chavez said…
Angelous Chavez said…
Angelous Chavez said…
Swagatam said…
Angelous, did you you use the 3V zener diode at pin6, it's supposed to block this leakage 2V...or may be your IC is duplicate quality and faulty, change it with a good one and check again
Swagatam said…
use a big heatsink for the TIP122, to keep it cool...make sure that the transformer current rating is not over 1amp for the connected 4AH battery
Angelous Chavez said…
sir i try to use a new ic but the same result what i have got.
Angelous Chavez said…
sir, it should be set the pot preset at pin 6 to 0v first then you can charge your battery now? then when the battery being charge reach the reference voltage lets say the ref voltage is 7.2v then the red led will on and the green led should be in off state when the battery gets full charge?
Swagatam said…
Angelous, the 3V zener at pin6 is supposed to block the leakage voltage across pin6 and ground....if you wish you can use a preset also across pin6 and ground for the same but that can be risky and damage your IC if accidentally the preset is grounded while adjusting.
Angelous Chavez said…
sir i think there is something wrong with your circuit because i have already made it base on your circuit diagram with the right components as your circuit indicates. please check it again and make some improvement.

Angelous Chavez said…
sir if i am going to use less than 1 amp trafo well i think it is nough enough to charge a 4ah battery.
Angelous Chavez said…
yes sir, i used 3v zener diode but still not 0v and i also try to replace that zener diode with a new one just to make sure but still there is a 2v output voltage at pin6.
Swagatam said…
Angelous, I have myself tested and used this circuit many number of times for different applications, and it worked perfectly....may be you are not able follow my instructions, and so not able to troubleshoot your circuit.

and if you keep trying without understanding you are never going to succeed with any circuit...so attempting after understanding the details is the most important thing.

Angelous Chavez said…
well, thank you sir i will make it again and i really want to success with your circuit. sir could you please send me a link about on how 741ic works as comparator?
Angelous Chavez said…
sir, in this circuit i used a 9v rectified as supply in this charger circuit so it is okay to use 9v or to supply a 9v? cause as far as i know a 9v supply is good enough to charge a 6v and 4.5ah lead acid battery.
Angelous Chavez said…
sir can you explain on how this circuit operates please. what is the fuction of the tip122 it shoulbe in off state or on state?
Swagatam said…
You can read the following article for knowing the details:

Swagatam said…
Angelous, 9v is OK, and will work correctly with the above explained design
Swagatam said…
Angelous, I think I have explained it somewhere in the above comment, if you search it you'll be able to find it. you can also read the following article, which uses the same principle but in the opposite way by using a PNP transistor, but the basic function of the opamp is exactly identical:

Angelous Chavez said…
sir thank you for responding! i have read the article about the opamp. and i learned more about it.

sir the 10k resistor and a 3v zener diode juction in which the pin 3 is connected across it is a "REFERENCE VOLTAGE" if so, what voltage value or how much voltage is your ref voltage?

and if i am not mistaken the 10kpot preset is the sensing voltage. Meaning when the voltage across it falls or increase above the reference voltage the output at pin 6 will change to high state then it will be "on" the transistor TIP122.
Sir if i wrong please correct and guide me so that i can learn much about this circuit.
Angelous Chavez said…
sir one more question, why did you used a 3v zener diode in series with the 10k resistor and that is connected at pin3?

and what is the function of a 470ohms resistor that is connected to negative terminal of the battery. sir please explained it to me so that i can understand more.
Angelous Chavez said…
sir waht is the function of a 100kohms resistor across pin2 and pin6?
Swagatam said…
Angelous, you understood it correctly, an opamp output will always go high if its (+) input pin attains a higher potential than its (-) input pin, regardless of which pin may be connected as the reference.

The reference voltage can be any voltage below the actual supply voltage for the IC.

when the output is high tip122 will conduct and vice versa
Swagatam said…
as explained above, it's for the setting up a reference point for the other pin.

the 470 will keep the battery charging continuously at a very low rate even after the actual charging is cut off...in order to prevent the batt from self discharging.

the 100k is for latching the IC in the cut off position so that it does not oscillate while the battery voltage drops slightly after the cut off
Angelous Chavez said…
sir i try again to make this circuit with a new ic, as you have said a few days ago, the voltage at pin6 should be in 0v but in my reading the lowest voltage whenever i adjust the preset is proximately 2v but i connect the zener diode correctly. sir what do you thinks is the problem?
Angelous Chavez said…
sir how to check the voltage at pin 6, it should be check at the anode of the zener diode or on its pin6 of the ic?
Singh Manjinder said…
hello sir i have confusion about +supply pin of ic741 in the circuit +supply go to pin 7 and 4 is ground but in other circuit +supply gose to pin 4 and 7 is ground
Swagatam said…
Check the voltage across pin6 and ground....and then across zener anode and ground, if both these voltages are same then probably your zener diode is faulty or is wrongly connected.
Swagatam said…
hello manjiinder, please provide the link of the other circuit
Uzair Khan said…
Hi bro. I want automatic circuit for my 6v 4ah battery which is connected with my wifi router and the source is the dc input of 9v which is the adapter of wifi. I want that 9v 2amp adapter is to charge mai battery when battery get charge then it can automatically stop further charging. Any idea pls
Swagatam said…
Bro you can try the first circuit from the following article:


use a 7.5V zener instead of the shown 14V for your battery.
Anil Kumar. K said…
Hi Swagatham, thanks
I assembled 2nd circuit for charging 3.7v/800mah Li-Ion battery. Not yet tried hysterisis control and TIP122 section section.Circuit working perfect as you described.

I have a doubt to clear.
Input supply is 9v/500mah and charging supply is 4.2v/500mah. Battery rated 3.7v/800mah. So, I think I have to add a current limiting resistor (42v-3.7v/160mah=3.125ohms) 3ohm/1W series with battery to reduce charging current to 160mah (800mah/5=160mah).
Swagatam said…
Hi Anil, that's great.

Li-ion batts can be charged at their full 1C rate so current control won't be so crucial however in order to manage heat you can use a lower amount of current for charging it.

you can do it by adding a BC547 transistor stage with the LM317 as done for this circuit:

Waqas said…
Thank you so much Swagatam for your valuable share. As I am not an engineer but hobbyist and have enough Know-How about Arduino's and it's circuitry and using ESP8266 WiFi module a lot in my hobby projects. I have bunch of 4v 1 amp/hr lead acid batteries, lot of LM393, 5v dc wall supplies, TIP122 darlington transistors, bunch of IN4148, and off course capacitors and resistances. I want to build an automatic chargers to charge these batteries used in my hobby projects. May you suggest some design? I have few in my mind, including your this project, but want to seek help of a professional one like you. I don't want to buy automatic battery chargers available in market as they are more than what needed. May you help me?
Swagatam said…
Thank you Waqas, the above designs are the best and universally suited to all batteries for achieving automatic cut offs at the intended thresholds....so I would recommend you to go for one these circuits and try it for your application..
Hok Somoll said…
Brother Swagatam!
can it charge for battery 5v?
Swagatam said…
yes brother it can be used for charging all batteries between 3V and 24V
K CS said…
Hello sir, Chaw is here again !! I want to clarify some of the facts with you in second diagram(using transistor).

(1) Since I wanted to have an input DC supply of 3-30V, I will use LM338 IC, 480ohm resistor(two 240 ohms in series) and 10k preset to have an output of 27V, calculated based on the calculator u have provided. Am I on the right track ?
(2) For the input current, let's say 1A is given, the battery terminals will receive the full charging current right ?
(3) May i know what is the use of 470 ohms resistor connected to the cathode of battery ? Any other value can I use (0.1k,1k,10k etc) ?
(4) Plus, Is there anything do I need to modify to the auto cut off part of the circuit according to my specs ?
(5) Instead of TIP122, can I use BC547 instead ?

Swagatam said…
Hello Chaw, here are the answers:

1)If you have calculated the figures then it would be fine to go ahead with the mentioned values of the resistors and the port.

2) yes full 1amp would reach the battery.

3) It's for providing the battery with a floating or trickle charge current after it has reached the full charge level and the transistor has switched OFF

4) No need of modifying anything, but with a IC741 you cannot exceed the voltage above 19V across its pin#7 and pin#4

BC547 will be able to supply only upto 50mA...for 1amp you will have use a TIP 122 or a TIP142
K CS said…
Noted sir !! But LM741CN i bought from the market has a supply voltage from 10-36V. So I could apply up to 30V right ? By the way, I am going to charge 3.7V 4000 mAh lithium ion battery. I need to confirm with you that
(1) Before charging, 100k resistor is removed and I know that we need to give an input supply. Is this input voltage is three or five volt higher than the battery like the last time in 6V,12V battery charger circuit ? (for my case would be 6.7V )
(2) For the input current, is it possible to set at full rate 4000 mA ?
(3) There is no effect to TIP122 right ? My one has a DC collector current of 5A/
(3) An input current of five or ten time lesser than the battery is only for lead acid batteries right ?

Swagatam said…
1) yes the input should be adjusted to achieve around 20% higher than the battery rating...meaning for example in case of a 12V batt it's 12 + 20% = 14.4V...this should be confirmed across the points where the battery needs to be connected.

2) input current can be 4 amps but that will generate some heat on the batt which will need to be monitored and controlled with a cooling fan.

3) TIP122 will get significantly hot at 4amps so TIP142 is recommended, which will also require a heatsink.
3) that's right 10 times less current is recommended for lead acid batts not for Li-ions.
K CS said…
So, if I used TIP122, either I give lesser input current (1-2A) or 4A together with a cooling fan would do right ?
If I were to use TIP142, how to make a heatsink ? I am sorry sir since I am still a student and never learnt this term before. Can you suggest me the way to do it ? Thank you for always making my doubts clear :D
Swagatam said…
for a TIP122, exceeding 2 amp is not recommended, for a TIP142 you can use 4amp but the heatsink will need to be of high quality, as shown below:


but a hand made using aluminum sheet will also work, as shown below


Sir why have u used a 470 ohm resistor in between the battery negative rail and the ground rail in the last circuit ( charger without using relay ) ?
Will it cause the continuation of charging even after the over charge cut off is detected since the current is enable to enter into the ground rail from the battery -ve through the 470 ohm resistor always ?
Swagatam said…
RT, it is optional, I have included it to enable trickle charging for the battery after the transistor has cut off at the full charge threshold. This is to make sure that the battery is always in the topped-up condition and to eliminate self-discharge
Sy Do said…
Hi Swagatam,

I made one circuit without using a relay for battery charger. I using power source with 14v 1A. Because I do not have R1=240 Ohm should I replace it with one resistor 220 Ohm.
I have set up the circuit in the following way:
1. Without connecting any battery, disconnect one pin of the 100k resistor to pin6 (IC741). Another pin of 100k resistor keep connected to pin2 (IC741)
2. Adjust R2 to get 7.2v. At this step, I have put 2 ends of VOM at 2 points on the circuit to get 7.2v:
- point 1: Behind 1N5408 diode
- point 2: Behind 10k POT (GND)
is that right?
3. Adjust 10k preset and identify a position where RED led just lights up and GREEN led supposed to get illuminated.
4. Reconnect 100k resistor to pin 6 of the IC 741.
5. Connect 6V 4AH battery to charging (the voltage of the battery when not connected is 4.8v).
At the moment, I use VOM to measure amperage passing through battery is 20mA, too small compared to 4/10=0.4A=400mA.
Could you please help me know where I was wrong?
Swagatam said…
Hi SY, all the mentioned procedures are correct....now the moment you switch ON power with the batt connected, the 7.2V instantly should drop to the battery level at 4.8V, please check whether this is happening or not?

If this is happening next you can check the current by connecting ammeter in series with the battery positive line.

If it's 20mA as you say then either the battery is faulty or the LM338 is faulty...confirm the output current from the LM338 by connecting ammeter across its output and ground line...it must show the maximum available current as per the supply source rating....if not then do the same across the supply source terminals to confirm the current.
Sy Do said…
Hi Swagatam,
I was replaced LM317 by another one (not LM338 as you mentioned) but I still get the current is 20mA. Maybe the problem is due my battery.
Have you any battery charging circuit similar with above circuit (without relay) which can adjust the voltage and current by VR? If yes, could you please give me the link?

Swagatam said…
SY, the above circuit design is perfect for your application
Dear Sir, I have the 6v, 4.5ah battery and it's charging nicely with the second circuit you provided, and now I want to add one more feature how to know how much charge is present in battery and supply this information to arduino microcontroller and also power the same arduino with that battery. What changes I have to add to make this new feature work.
Thank you,

Yours sincerely
Siddharth Talesra
Swagatam said…
Thanks Siddharth, your Arduino must be coded such that it is able to read the charging rate and the reduction in current consumption while it's charging and then compare these parameters to figure out the approximate time left.

A crude method is to attach a 9V incandescent bulb in series with the positive of the battery and monitor its intensity electronically to learn the same.
HIREN said…
Hi Swagatam. Plz give me your whatsapp number. My number is 9725335577
Swagatam said…
Hi Hiren, you can contact me on my email ID

hitman2008 @ live.in
Kesav.N said…
Hai sir
What the uses of zener 3v in pin no 6...

What happen if zener not use
Swag said…
It blocks the leakage offset voltage from the output pin, if the zener is removed the transistor will remain permanently switched ON and not respond to the opamp ON/OFF correctly
Kesav.N said…
We can use any zener value...
Pin 2 zener value and o/p zener value must be same or we can change any value in output.
Swag said…
you can choose any value, but it should be preferably lower than your battery's low discharge threshold specification.
Kesav said…
12-0-12 2ampere...i make fullwave rectifier and connected to the battery .12v 7.5ah
I check ampere level..it shows only 718ma....
I use 5408 diodes...
Is it Transformer problem sir...

If i use 3ampere transformer ...battery charging ampere shows 980ma...
Remaining 2 ampere ?...

Pls guide me sir
Swag said…
Kesav, check the current using a DC 10 amp range meter directly across the bridge output without any battery, this will tell you the actual ampere rating of the trafo. take the reading quickly within 1 or 2 seconds
Kesav said…
Okay sir today i will do....

Instead of transformer we can use SMPS sir....
Which one is good for charging battery.
Which one will be life span high without trouble
Swag said…
You can use any DC source, the only criteria being the voltage and current values which must be rated as per the standard specs.
Kesav said…
Sir today i check it ampere ratings of transformer…

12v 2ampere transformer output showing 6 ampere in DC AMPERE in multimeter out of 10.

12V 3 Ampere transformer output showing 9.47 Ampere sir..

I think that multimeter may be faulty..so I check with another one multimeter also showing the same results….

While charging battery when i check ampere it shows only 700 to 800ma in 2A Trans…900 to 998ma in 3A trans…
New transformer also showing same results.
Even i not make any complex circuits…simple rectifier only…to battery charge…

What should i do sir….
Help me sir
Swag said…
Kesav, check it again with your meter on the AC 10 amp range directly across the transformer wires, a 2 ampere trafo cannot produce 6 am or 9amp.

while charging your battery connect a 12V motorcycle headlamp bulb in series with the positive wire...if this lamp glows brightly initially while charging then your battery might be OK and charging normally, if not then your battery could be faulty...
Kesav.N said…
Hai sir...

I try lm317 charging circuit for 6v 4.5ah battery....
I try only charging section not auto cutt off section..
Input i use 12v 1.5ampere adapter....
I adjust the output voltgae 8v...
Now battery is charging...
But ic heat sink more heat..can't even touch it....
After few hours the ac adapter power led auto off and on.when adaptor output voltage got short it only the led off..but here i check the connection all proper
.i check the 317 output voltage...its decrease and increase.like
2.5v,3.4v ,4v,5.23v,6v continues ...
When i remove battery the lm317 output voltage good...i think that battery may be damage ,so i check with another battery same think happening
So i change Ic ...half hour charging well afterwards this problem continues...
And also i change adaptor....
But this problem continues when i connect to battery..
Without battery its working good...
Guide me sir...
Swag said…
Hi Kesav, it may be happening due to the IC getting overheated, which is never good for any IC, you must use a large adequate amount of heatsink to control and dissipate heat appropriately. and also make sure that the battery is getting charged with a correct ampere rate, for a Lead acid battery it should be 1/10th of its AH, exceeding this will be bad for the battery and also for the controller circuit if its not rated to handle this.
Kesav.N said…
Thank u sir....
I will rectify and tell u sir
sriramkp said…
Hi, how to control the charging current to the battery with the third circuit? Because the LM317 in the above circuit acting as voltage regulator. I need to charge a 12v, 1A battery with the above circuit which require 100mA for charging?
Swag said…
Hi, you can add a BC547 transistor stage as per the following article diagram:

sriramkp said…
ok. Can I use the third circuit for 12v battery? Do I need to change any components for that? Will the 3v zener fine for 12v charger?
In 3rd circuit, Pin 2 and Pin 3 is interchanged when compared to your other battery charger circuit? Is that correct?
Swag said…
you can make the third circuit, no components needs to be changed, the pin#3 zener can be any zener between 3 and 9V.
here pin#2 and pin#3 are swapped because a relay is not used, transistor is used directly for the cut-off... so the triggering needs to be opposite, and is correct.
Indrajit said…
Hello Swagatam, I am facing great issue every time to take out the battery from my nokia x2 to charge and your charger circuits are very promising and I even built a skeleton circuit with the design with two bc547, will check out..but, we all need fastest charger, and nearly everything I used so far, universal charger etc. plus your schemes, provide very little current and rate, 150ma or so. So I have to wait six to seven hours for fully charging! The reason is stated that liion batteries keep good health if charged very slowly, but again, liion has advantage of charging almost equal rated current as its Ah. Even, companies, in my case, microsoft, provides charger with rated current 600 ma. So I need a design with simplest scheme with charging current around 1-1.5 A, using 555ic or tl431and any regulator ic 317, 7805etc, I am not much into zener diodes ) and your charger design with two bc547 lacks charging led indicators, so these in new design will also be welcomed. I can buy 4056 module, that comes with a 1A promise, but, I want to make something myself also the components at my disposal needs to be used. Thanks for your time.
Swag said…
Hello Indrajit, I never said that Li-ion battery must be charged slowly. This is true only for lead acid battery not for Li-ion.

None of my circuits are designed to restrict current to a fixed level or to 150mA, it depends what input supply you apply. All The auto battery cut-off circuits which I have explained only act like a switch and will never drop current by itself.

It completely depends on the input supply current that you use and ofcourse your battery health condition, if your battery is bad then it will never consume current at the correct fast rate, regardless of which charger you use.

For more info you can red the following post:

By the way which charger circuit are you referring to??
Ranjit said…
I want to fabricate a 12v, 3.5 Ah Nimh bty charger. I'll be grateful if you send me the cct diagram with description.
Swag said…
you can make use of the 3rd circuit and use it for your purpose...just make sure to supply the correct specified amount of current from the input side, and set the preset accordingly for the cut off
Yogesh Panchal said…
Hi sir I'm Yogesh .6v/4.5ah ka Jo circuit h usme 12v off karneke bad green led battery supply pe on hi raheta h to usko disconnect kaise karneka .plz help me .
Swag said…
Hi Yogesh, the green or red LED will be ON if the battery remains connected, because the LEDs will indicate the immediate status of the battery, green will indicate that the battery is not fully charged and red will indicate it is fully charged....so that's part of the circuit and it is correct.
Saad Jamil said…
i have 12V dc battery and 7A/h current ratting please give me the correct circuit as soon as possible.
Swag said…
You can try the first circuit from this article:


Make sure to adjust R2 to get exactly 13.9V, and select Rc as 0.6 ohms 1 watt
Nélio Abreu said…
Hi Swag,
In the 3rd circuit, the one corrected, what changes do I have to do in order to charge 3 6V/4.5AH batteries connected in parallel?.

Best Regards,
Nélio Abreu
Swag said…
Hi Neilio, you won't require any changes, just make sure that the input supply current is not over 2 amps.
Nélio Abreu said…
Ok. Thanks

Best Regards.
Nélio Abreu
Swag said…
Hi Neilio, forgot to tell you, please make sure to add separate diodes for each battery, as shown in the following article.

Nélio Abreu said…
Hi Swag,
Ok. Thanks for the notice.
Best Regards,
Nélio Abreu
Anonymous said…
For the last circuit, does it come on automatically at lower threshold to continue to charge
Anonymous said…
Please which one of the circuits is the best and why, sir. Thanks
Swagatam said…
The last circuit does not have a low detection, it is designed to cut off at the full charge level and then oscillate ON/OFF at that threshold. The upper designs could be customized to detect and restore at the lower voltage by appropriately adjusting the feed back resistor in series with the diode.
Swagatam said…
if you a circuit which can be easily and accurately set up, then you can try the first design from the following article:


Contact me for Customized Circuits


Email *

Message *

 Follow on G+  Follow on Facebook   Follow on Tweeter  Follow on G+  Follow on G+

Follow Homemade Circuits