The following article discusses a simple automatic micro UPS circuit which can be used with modems for acquiring uninterrupted power from a DC source, and battery during mains power failures. The circuit also incorporates an automatic over charge cut off, and a low battery indication feature. The circuit was requested by Mr. Kapil Goel.
Technical Specifications
Hi Swagatam, How are you, and was really happy to read your blog as I was scrolling through circuit sites for my requirement.If you can help me out for that, I have a requirement:
This is exactly what my requirement is https://www.mini-box.com/picoUPS-100-12V-DC-micro-UPS-system-battery-backup-systemI have a 12volt operated device, it consumes approx 35 watts right now I power it up using a 12volt adapter, but when main power fails its get rebooted..
I wanted to use 12volt 2200mh Li-ion battery pack so that whenever there’s a power cut it will automatically shift to battery Also, the circuit should have over charge protection, and low battery indicatorAt last I am not asking this circuit for free, as I am ready to pay for it. Many thanks in advance
Regards, Kapil Goel
How it Works
The design was actually presented in one of my earlier posts also, however it does not include an automatic over charge cut off feature.The present design has similar functions, but has an added protection feature in the form of an automatic battery over charge cut off and also an under voltage indicator.
The proposed circuit diagram of an automatic micro UPS may be understood with the following points:
The input supply is acquired from any standard AC/DC adapter rated anywhere within 15 and 19V DC, current at anything above 1.5 amps.
The above supply is regulated via a 7812 IC whose ground pin is elevated to about 2.4V so that the output from the IC gets raised to about 14.4V rather than the normal 12V.
This is required because the attached 12V battery needs to be supplied with a slightly higher potential than its rated value.
How the IC 741 is Configured
The 741 IC stage is configured as a comparator.
Its pin#2 is clamped to a fixed reference voltage of 4.7V using a suitably rated zener diode.
Pin#3 is rigged as the sensing input if the IC via an adjustable preset.
The preset is adjusted such that the potential at pin#3 just exceeds the potential at pin#2 when the battery voltage crosses the 13.5V mark.
As long as the above situation is not sensed, the output of the IC at pin#6 sticks to it initial zero voltage level which in turn keeps the BC547 transistor switched OFF. With BC547 being switched OFF, the TIP122 gets a chance to conduct via the 1K resistor and charges the connected battery.
The battery terminals are directly connected with the modem which is being used for some application.
This allows the modem to remain powered via the external AC/DC adapter while the battery gets charged simultaneously.
The battery is allowed to charge freely until it reaches the over charge threshold when the output at pin#6 of the IC goes high, switching ON the connected BC547 transistor.
The above switching cuts off the base bias to the TIP122 transistor and stops the battery from getting further charged. This does not affect the modem as it continues to acquire power from the external power supply.
During mains failure, the supply from the external adapter gets inhibited, and the modem starts receiving back-up supply from the battery.
Since no relays are used the transition is within micro seconds which keeps the supply to the modem interrupted during power failures or even under heavy power fluctuations.
If the mains stays absent for long, and the battery reaches its over discharge threshold, the situation is immediately indicated with the green LED, which can be also replaced with a buzzer. The modem should be switched OFF then, to stop damage to the battery due to over discharge.
The adjustment of the 100K preset determines the low voltage threshold mark or the lower indication. level.
Once the green LED is lit, it will remain lit until the battery is fully charged, similarly once the red LED illuminates, it will stay illuminated until the green LED lights up or when the battery voltage level falls below the set lower threshold.
Using a PNP BJT for the above Charger Circuit
The above circuit can be also configured in the following manner, here the LED indications get reversed, meaning red LED shows low voltage while the green LED indicates high voltage threshold.
The following circuit also incorporates a current limiting facility which can be used for providing a current controlled charging to the connected battery.
FEEDBACK from Mr. Kapil
Hi Swagat,
Thanks for the circuit.. I really appreciated your swift and kind response..
I have couple of questions on the same.
1) What will be the max current it will support, my device requires atleast 5 amps 12 volts, will this be able to handle that.
2)As per the circuit, I can see, you have directly connected the modem to the battery, but if I am not wrong, this means that modem will keep on taking the power from battery, and battery will not get charged?
Please I clear out this confusion.
Also I am using a li-ion battery, which has a voltage of 12.6 volts on full charge and 11 when discharged.
Also my input volt is also 12volts, I cannot use a higher volt rated adapter.. will it be able to charge my battery at fullest.
Regards,
Kapil Goel
My Reply
Hi Kapil,
Presently the above shown circuit is rated at 3 amps maximum, so I may have to amend the design to suit your requirements, however the input voltage will need to be above 13V otherwise the battery will never get optimally charged.
The direct connection of the battery with the modem will not affect the battery charging as long as the input source power is active....both outputs will be simultaneously taken care of.Regards.
moerdyk says
Good day Mr Swagatam,
thanks for your awesome website you have.
Q. Can the li-ion battery be replace by a lead acid battery in the same curcuit.
kind regards
Moerdyk
Swagatam says
Thank you Moerdyk,
Yes you can replace the Li-Ion with a lead acid battery. Just make sure the input current is not more than 10% or 15% of the battery’s Ah rating
Pasan says
Your comment is awaiting moderation.
I have made the pnp bjt circuit. And when i give power in power pins just green led bright shine and red one also lighting in little shine. And even i provide power in only battery pins also same happening. Should i connect battery and power togeather at once to work this? And also when i turn 10k preset only green led goes to dim mode and never completele shut off. And 100k preset do nothing. But i never tried circuit with battery and power both at once. Only trying to test. Please help me.sir.
And sir please tell me how to wire this 100k preset correctly? Maybe my circuit issue is with this preset.
Swagatam says
Please remove the 100k preset and the 1K series link, it may be difficult for you to set it up, because the process is complex. Anyway, it is optional.
When green LED shuts off the red LED must illuminate. If this is not happening then something is not correct with your PNP transistor.
I would recommend you to try the first circuit with NPN transistor because it is easier to understand and set up. But again remove the 100K preset link it is not required.
Pasan says
I have connected all correctly but nothing changes. When i rotate 10k only green led status changing no complete shut off any led. Always one goig dim when i rotating 10k preset. And 100k preset do nothing. I can not understand whats wrong. Please help me
Swagatam says
Hi, Did you try the first circuit as recommended by me earlier?
If you are newcomer in the field of electronics then you will have to do it step-wise manner.
Please build the first circuit and
Upul says
Dear Mr. Swagatam,
Greetings from Sri Lanka. First my appreciation of your untiring effort to generously answer each and every question or comment, this is rare in Youtube.
My question is about using three (3) 3.7v 18650 Li-ion batteries instead of a single 12v battery. Could you propose a modification to accommodate this request? Frankly I tried a number of mini UPSs as per some Youtube channels using 3.7v batteries with 3S BMS and Booster converters. But did not succeed in holding the backup for more than 5 minutes for my wifi router. I am using some good Samsung batteries taken out of laptop battery packs.
Look forward to your kind response since our country is going through sever economic crisis and has long our powercuts.
Swagatam says
Thank you very much Upul, I appreciate your kind thoughts.
No modifications would be required in the circuit for 3nos 3.7V Li-ion cells in series, except the voltage regulator IC, which can be removed in this case.
If you are not able to get proper back up time, then it is not related to the circuit, rather it is related to the battery or the modem specifications. If the batteries are old or degraded then the backup time will be less, or if the modem is drawing high current also then the battery will discharge quickly and provide lower backup time.
You can connect an ammeter in series with the modem positive line and check how much current the modem is consuming from the battery, this will prove whether the battery is faulty or the modem current is high compared to the battery specifications.
ARNAB BHATTACHARYYA says
Sir i found 1ohm 1w can i use 3 of them in parallel to get .4 ohm 1w??? And i found 5.1v 1w zener or 3.3v 500mw zener.. can i use any of them??
Swagatam says
Arnab, yes you can use the mentioned resistors in parallel, and use the any of those zener diodes.
I think the BC547 feedback with the 0.4 ohm can be eliminated and instead we can provide a current controlled stage at the input stage using LM338 or a simple transistor circuit.
The BC547 stage can be eliminated for simplicity and to avoid confusions during troubleshooting if something goes wrong.
I can provide the alternative diagram if you wish to see it.
ARNAB BHATTACHARYYA says
Obviously, if you can show it.. it will be the best sir..
Swagatam says
Here’s the finalized design, make sure to check all the new modifications included in the circuit, and the things which have been removed:
ARNAB BHATTACHARYYA says
Sir last one thing from ic741 pin 7
connects with pot 10k to ground and from pin 3 one 10k connects with them OR there is a pot 10k between pin 7 and 3 and connects to ground. Just elaborate me that part.
Swagatam says
Arnab, the 10k preset has 3 terminals, the center terminal goes to pin#3 through a 10k resistor. Out of the remaining two outer terminals of the 10K preset one goes to the line which is connected to pin#7, and the other goes the ground line.
ARNAB BHATTACHARYYA says
Sir I tried 5amp modified circuit. But i used lm317t .. the 10k and 100k pot was set as per your information. But when i am giving 12 input instead of battery in the battery input(dc disconnected). I got 13v output in the modem side.. and when i was giving 19v input(12v 3a adapter and xl6009 boosted to 19) i was getting 6v in modem side and 0v in battery port. I can’t understand why this is happening. ( I used 2 6a4 just before the modem output, and 1 6a4 in between the battery and modem side.) Should i replace all tahe 6a4 to 4007???.
Swagatam says
Arnab, there’s no 100k pot in the modified diagram. Please do it exactly as shown in the following diagram:
https://www.homemade-circuits.com/wp-content/uploads/2021/06/micro-UPS-with-current-control-compressed.jpg
You said you adjusted the preset correctly, so did the LEDs respond accordingly?
For adjusting the the 10k preset you must provide the maximum cut off voltage across pin#7 and pin#4 of the IC 741, and then adjust the perset so that the green LED just lights up, and the red LED shuts off.
Once this is done you will have to connect the battery across the indicated position, and then switch ON the input voltage. Remember the circuit gets the voltage from the battery and then detects its voltage level. unless the battery is connected the circuit will not initiate.
Swagatam says
….Since your are using LM317, the current controller stage can be removed.
ARNAB BHATTACHARYYA says
Actually i already bought the components for 5amp modified which is using 10k and 100k so thought that lets try once. No input was in dc terminal, in the battery terminal i gave 14.3v (100k disconnected) i set the 10k value just to light up the green. (Red goes off). Then connected the 100k without losing the power in the battery terminal (still dc input disconnected) then made the voltage input in the battery terminal in 11V. And adjust the 100k to just shut off the green led, and red lights up. Now, i gave 19v in dc input (disconnected the battery side input)to check the output in modem side. Also in the battery side i got 6 v in modem side.. 0v in battery side..
And also tried disconnecting the dc side and giving 12v in battery side got 13v output in modem side.
Swagatam says
Your setting up procedure is OK, but you must have a battery connected at the collector side of the transistor otherwise the circuit will not be able to detect the battery voltage and the circuit will remain switched OFF. You can see in the diagram that IC 741 supply lines get the voltage from the battery, so battery must be connected for the circuit to work.
you can remove the 100K preset link, it is not crucial, according to me.
ARNAB BHATTACHARYYA says
Thank you, Sir, for your quick reply, your project is very helpful. some things I need to know that,
1> MC78T12 also LM338 is not available, can I use LM1085 – ADJ (3A Adjustable Low Dropout) or LM350T or LM317 for my purpose? as I want 1.5 – 2 A output max.
2> For the second circuit can any replacement for .4 ohm resistor?
Swagatam says
You are welcome Arnab, yes you can use the mentioned ICs, they are all good regulator ICs.
for 0.4 ohms you can put 4nos of 0.1 ohms/ 1 watt resistors in series, because 0.1 is easy to get.
ARNAB BHATTACHARYYA says
Thank you sir, two more things to know.
1. For the second circuit 4.7v 400mw zener is unavailable, i found 4.7v 500mw and 4.7v 250mw which one to use?? And what is the 3v zener wattage??
2. For the second circuit all the resistors are 1/4 watt right??
Swagatam says
Hi Arnab,
Both the zeners will work, you can use any one of them. The 3V zener can be eliminated and replaced with a wire link, since we already have an LED at the base of the transistor.
all the resistors can be 1/4 watt, except the 0.4 ohm, which can be calculated as = 0.6 x battery current limit
ARNAB BHATTACHARYYA says
can you send me the components list for 3A supply?
Swagatam says
You can try the first circuit, all the part numbers are given in the diagram, you just have to copy them and show it to the part dealer….all the resistors are 1/4 watt 5% CFR
Abid S says
Hi, I really like the above-designed circuit. But in my case, I would like to make a circuit that uses 5S lipo 18650 battery together in a pack for more maH. Can it be used? Also, I need to have 3 output: 5V,7V,12V.For that what changes needed? I’d be very grateful if you amend the design to meet my requirements. Thanks.
Swagatam says
Glad you liked the design! Yes it can be used for the mentioned requirement simply by upgrading the transistors to TIP142 or TIP147 depending on which circuit yo intend to build….however for getting 5V, 7V you may have to employ a DC to DC smps
Abid S says
Can you please provide me an entire the modified entire circuit diagram for my requirements,please? As well i want to ise 5S 18650battery together.
Swagatam says
There’s nothing complicated in it….You can try the first circuit with the TIP122 replaced with TIP142, that’s all. The circuit for getting 7V and 5V can be attached externally afterwards, by attaching this stage between the router and the UPS output. Here’s one example which can be used
https://www.ti.com/lit/ds/symlink/lm2674.pdf?ts=1610686190808&ref_url=https%253A%252F%252Fwww.google.com%252F
you can try the following also
PWM Solar Battery Charger Circuit
Haris Sophocleous says
Hi Swagatam,
I have an issue with an existing 5V UPS. Here is the photo: https://www.homemade-circuits.com/wp-content/uploads/2021/01/mini-UPS.jpg
I use it for a lattepanda v.1 uninterruptible ups.There is a strange behaviour to it. When my power supply (led switching power supply 5v, 5a) is plugged in AND is ON everything works as expected (I can unplug it and plug it in a million times), however when the power supply is plugged in to lattepanda BUT I forget to turn it on BEFORE I plug it in, for some reason it interrupts power to the lattepanda. Is there a modification to do to make it work? I’ve tried adding a capacitor (1000mf-2000mf) does not work, a diode does not work, thicken the wire that comes from the power supply (there is no voltage drop). I’m also using a 18650 battery that is rated for 10a. I also used two batteries. I can’t think if something else. Please help 🙁
Swagatam says
Hi Haris, You said
“BUT I forget to turn it on BEFORE I plug it in….”
What exactly you forget to turn ON?
Haris Sophocleous says
My house wall power outlet (sorry for the confusion). If my house wall power outlet is turned OFF and THEN plug the 5v, 5a power adapter to the latte panda’s 5v UPS, then it interrupts power. IF my house wall power outlet is ON then there is no problem pluging and unpluging to the UPS (it does not interrupt power). It is very annoying because if I forget that the wall power outlet is off the lattepanda restarts. Why is it behaving this way?
Haris
Swagatam says
Does the problem also happen with loads other than the lattepanda? If no then the issue could be something related to lattepanda, may be an initial high current draw etc. If the problem is happening with all loads then the issue is with the UPS board which can be diagnosed only by testing it practically.
There doesn’t seem to be a quick external solution to this, except connecting an LED at the input side of the UPS which will indicate whether the supply to the UPS is ON initially or not.
Haris Sophocleous says
It is quite strange. Everything works great when the power supply is connected on the lattepanda and the wall outlet is ON. Initial current of 1.8 amps and then it drops down to 1.2 amps. I can plug and unplug the adapter just fine….the problem is that it restarts even when I have the power adapter in my hands! (its not connected to the wall outlet). I just plug the power adapter connector to the lattepanda and it restarts! Will a diode work? I did try many 5v UPS’s from china. Most are up to 1amp max current and they don’t work. However, the eletchsup DD04CVSA was the only one that did support 2a and wasn’t restarting the lattepanda BUT it couldn’t charge my battery while the lattepanda was on (too much current is drawn from the lattepanda).
Swagatam says
That sounds strange, it could be due to some low voltage discharge from the UPS board capacitor. I do not know much about lattepanda, so I am not sure what exact “restarting” means, because whenever it is powered it should naturally reboot just like any other computer….unless it has an internal battery.
A diode won’t help, since it will still allow any residual voltage to pass to the lattepanda and cause rebooting. A transistor switch might just help solve the issue.
You can try connecting a 1k resistor across the output leads of the adapter, so that it discharges any residual voltage from the adapter. By the way how is the adapter connected to the UPS board?
A proper wiring diagram across the respective units would help to understand the situation better.
Haris Sophocleous says
Sorry for the poor connection diagram, I’m not an electrician.
The power supply is a 5v 5 amp LED driver ( I did tried other power supplies and I have the same issue). I tried more powerful batteries same result. I tried the 1k resistor mod that you said, same result.
Swagatam says
Thanks for the detailed diagram.
Now it seems much easier to analyze the fault.
You said right, a diode should solve the issue. A diode in series with the socket positive wire should do the trick.
The problem could be happening due to the high value capacitor across the output leads of the SMPS. This capacitor could be causing a momentary drop in the battery voltage and consequently the erratic behavior from the lattepanda….
jaji mathai says
please send spare parts list
Swagatam says
It is given in the diagram itself.
Aditya says
Hello
Can I use this automatic micro ups circuit for charging a backup battery, 14.8V 2200 MAH LI ION battery
(Charging current 2A
Discharging current upto 4.4A)
So when power cut it will automatically shift to battery
What is the output voltage and current of this (14.8v battery) ups circuit ?
I want to use this ups circuit output to run a dc motor rated at 12volt 5amp
What modifications needed for this requirement?
Swagatam says
Hi, you can use all types of batteries with this circuit, your battery can also be used.
the first one is rated to handle 3 amp and the second one is rated to handle 5 amp
Aditya says
Thank you
Yvan says
Sorry Swagatam, i’ve got an additional question. I want to use the cirquit to charge a backupbattery. Ive got one with a capacity of 2800 mAh and another one of 6800 mAh. Wich of the cirquits do you suggest? Do I have to change/adjust components for these? Thank you!
Swagatam says
Hi Yvan, you can try the first circuit with no changes…
I would also recommend you check out the following simpler circuits:
https://www.homemade-circuits.com/usb-automatic-li-ion-battery-charger/
or the last circuit from this article
https://www.homemade-circuits.com/make-6v-4ah-automatic-battery-charger/
Yvan says
Hi Swatagam. Looks nice and I will try this cirquit. A simple question from a rookie in electronics 😉 : In the cirquit “Using a PNP BJT for the above Charger Circuit” I see 2 diodes connected to the modem and also 1 between the tip127/Battery+ and the modem. What types are they? I can’t find this information. THX! Yvan
Swagatam says
Hi Yvan, those are ordinary rectifier used for dropping and adjusting the output level for the modem and for the UPS cut-off transition threshold…. you can use a 1N5408 diodes for those.
Sumit Shekhawat says
Hello Swag,
I am unable to get MC78T12 and was using 78012 which is only 1.5 regulator, could that be the reason for my issues i mentioned earlier. Also in my scenario the voltage at pin 3 is not exceeding the voltage at pin 2 in any scenario?
Swagatam says
Hello Sumit, 7812 will only give a lower current at the output, it cannot be related to IC malfunction.
If pin#3 voltage is not changing with preset adjustment then either the IC is faulty or the preset is faulty.
check the response at the center lead of the preset by disconnecting it from pin#3, I hope you have connected the preset leads correctly??
Sumit Shekhawat says
Hello Swag,
I have tried with all possible combinations and definitely there is something incorrect. I have more than four op amps and the result is the same, I am now following the third circuit. Also i have gone ahead and created a live simulation on http://www.falstad.com/circuit/circuitjs.html, if you can possibly take sometime and import the simulation from the text file ( https://filetea.me/n3wLxovfIdCTNuQaAArnlDbMQ), you can see where is the disconnect. Please help in checking as i am stuck…
Sumit Shekhawat says
please use the link to download file s000.tinyupload.com/?file_id=71792568399511144314
Swagatam says
what is there in it?? if possible please make it directly visible…
Swagatam says
Sumit, unless you are able to do a mind simulation of the circuit, an artificial simulation will be of no use, how are you gong troubleshot the fault in the simulation? Artificial simulation is normally used by the experts to fine tune a mind simulated circuit….
The circuit above has been already tested by me thoroughly, so how can it be wrong, even if it was not tested still the design makes complete sense.
So the first thing you should do is understand how the opamp is configured to work, and how the transistors are supposed to react to the opamp output.
Once you are able to simulate the stages in your mind then troubleshooting will be a matter of minutes and could be done simply with a meter.
If you think something;s wrong please specify it I will be most happy to correct it.
just changing the opamps will not help, you must pick up a meter and check the response of the circuit at various nodes, and verify whether things are correctly working or not as per the specifications.
Sumit Singh shekhawat says
Hello Swag,
I agree completely with you, the file I have shared has a simulation of your circuit diagram, you can import it to the first falstad link I have shared. The point I am trying to make is when you check the simulation it would clarify few thing :
-Both LEDs will glow simultaneously .
– the circuit can work as expected only when the 10 k pot is at 2.6 and 100k pot at around 26.8k and the input voltage should be around 15 and other combination
might swap LEDs but would not cut off charge …
– I am using it as per the simulation and things seem to work as expected.
– the file I am sharing is an export of the simulation so u just need to import it to see what I am trying to say…
– also I have full respect for you and please don’t think I am doing this for any wrong intentions, only think I am trying to figure out is the correct description..
– you have been kind enough to read through and reply so I have no intentions to challenge your skills. All I am trying to do is update the description for a best suit.
Swagatam says
Sumit,
I usually don’t depend on simulators because I know it’s not worth it, because you will never able to reach the actual practical outcome from a simulator’s results, so I will advise you to keep it aside and use it as a secondary tool only.
and moreover this design is too simple and can be diagnosed through visualization
If you really want to achieve success, you should get the parts and make it practically, and diagnose the circuit with a meter in case of a fault, very quickly you will be able to get it up and running.
both LEDs can be never On, you can track the path of the LED current in response to the high and low status of the opamp output, you wil find that only one LED can be ON the other cannot.
for example in the last circuit when the opamp output is high it will allow the green to light but will block the red LED’s path.
but yes there’s a glitch, since the emitter of the PNP is connected with a higher potential than the battery it might force the red LED to light, to rectify this you can isolate the IC 741 circuit’s positive line from the battery and connect it with the emitter of the PNP….except the 10k presets upper lead which can be linked with the battery positive….try this and let me know.
shreyansh says
Hello sir ,
I need a 11.1v 44oomah li ion battery charger circuit with constant current and constant voltage mode which are modes used in Li ion battery charging.I have a smps of 12v 2amp.I need to give this input.I have to change 12v to 14.5v for battery input HOw could i do this?
please help me on
1) battery charger circuit and this battery has a protection circuit against :sc,over voltage,over current,over discharge,over charge and balance battery charging function
2) How can i create 12v to 14.5v in smps?
Swagatam says
Hello Shreyansh,
You can change the voltage of your SMPS if it includes the facility of a preset adjustments, otherwise you may have open the SMPS and do some complex adjustments.
Normally a high current smps will include a preset near the connector output, you can search for this preset around the connector area of the SMPS.
for manual adjustments, you may have to go through the following article:
https://www.homemade-circuits.com/2015/04/how-to-make-variable-smps-driver-circuit.html
Ahmed says
Dear Swagatam Majumdar
I’m a big fan of home made circuits, you are doing a great job, really thank you.
Kindly I need your help figuring out, if the attached circuit will work and if there is
any changes that need to be made to make it functional.
https://www.dropbox.com/s/mrlz30zhcgbvp8l/Mini_UPS_12V.png?dl=0
Swagatam says
Thank you dear Ahmed, I am glad to have you in my website…
yes it should work, the principle is quite similar to what I have explained in this post
https://www.homemade-circuits.com/2013/03/simple-dc-ups-circuit-for-modemrouter.html
Ahmed says
Thanks a lot for your reply, I have tried to connect just 2 of the micro charging modules with 2 batteries, while the charger is disconnected the combined output is 8.4v, but once I connect the charger the output is 4.2v and one of the boards out put is near zero v, I came to know that Input – is connected to Out –
and B -, also Out + is connected to B + but not to Input +, so when the charger is connected, B + of one cell is grounded to Input – !
is there anything I can do to resolve that issue ?!
the module has the charger IC TP4056, and overcharge & discharge protection ICs.
Swagatam says
The output will not combine, rather will show the one which may be higher than the other. The 8V is an inflated value which is shown by the meter due to its high impedance nature, the actual voltage can be confirmed after connecting a load, so if it’s showing 4.2V after connecting the load then that’s fine. You can confirm the same by adding a 1K resistor at the output, this will prevent the meter from showing the inflated value.
I won’t be able to diagnose the IC board connections because I do not remember the pinout functions.
you can refer to the following article and check if it helps
https://www.homemade-circuits.com/2017/04/li-ion-battery-charger-circuit-using-ic.html
Ahmed says
Thanks a lot for your reply, the 8.4v is real, I can run a DC motor which draws nearly 200mAh, but higher than that the combined circuits can’t provide power, I believe that’s because of the presence of protection ICs DW01A and S8205A, each battery with the connected TP4056 module can provide 4.2v at 1000mAh max, I connected a 12v 21w car lamp that draws 2.2 Amps, it can pull 1Amp from the battery.
Could an optocoupler be used in isolating ground or combining the circuits ?!
or It’s impossible to do ?!
another question please if use one of these charger modules with a battery pack of 6 Li-on 2200mAh cells & a step up DC converter xl6009 to get 12v 2A ?!
Swagatam says
OK I think got it now, I magnified the image and I could see that the input supplies are taken through the PCB tracks and connected in series, but I am not sure whether the batts can be also connected in that way in back up mode?
without a schematic it will be difficult to figure out the working of the whole configuration?
Can you tell what is your actual need then may I can suggest something?
You can step up 6x2200mAH to 12v 2 amp easily but the charger will not be able to charge a 6x2200mAH pack because the IC is rated to produce only 1000mAh
Ahmed says
Thanks for your reply, I want to make an advanced Automatic mini UPS so (that I don’t need to worry about overcharge or discharge) for my router it’s 12V 1.5A and some how balance charge the Li-ion cells forming the 11.1v battery pack. The UPS might be in standby mode for long times so not to cause damage to cells, I needed an advanced charger.
this is the schematic of TP4056 Module I have
http://www.sunrom.com/media/content/1203/DW01A.gif
Swagatam says
OK, but as you can see the negative supply and the -B are different on the PCB, so your series configuration will work only for the input supply not with the batteries and is not recommended also…better to buy a single 12.6V cell and use a single 12.6V charger.
sham says
HI sir,
In my Li ion battery pack is of 11.1v and 8800mah. There is a Battery management chip:
1. Battery Charge Cutoff Voltage: 12.6V 2. Battery Discharge Cutoff Voltage: 8.25V 3. Battery Charge & Discharge Mode Integrated 4. BMS Passive Protection Function: Overcharge Protection, Over discharge Protection, Over Current Protection, Temperature Protection, Balanced Function
5. Battery Inner Resistance: <=33.75mohm 6. Continuous Discharge Current: 3A 7. Maximum Discharge Current: 5A
I have a smps of 12v 2a can i apply this supply directly to this battery for charging?
And for automatic switchover between battery and smps supply I have used relay.Is this possible to give smps supply directly to battery?
Swagatam says
Hi Sham,
A 12V supply will not charge your 12.6V battery, even if you keep it connected forever….you will have to increase the SMPS output upto 12.6V, or at least 12.5V.
Next, you must have an automatic cut-off system between the SMPS and the battery so that the SMPS supply is instantly cut off as soon as the 12.6V level is reached.
If you satisfy the above two conditions then definitely you can connect the mentioned SMPS with the battery.
Having said that, a 2amp rate will take more ta 10 hours to charge your 8 AH battery…better to go for a 5amp smps.
sham says
Thanks sir,
As I said that there is a bms chip with 11.1v 8800mah li ion battery pack, so there is any need to charge this battery with cc and cv mode ?
If needed then how can i make? please ,sir help me.
Swagatam says
CC/CV input will not be required if a special controller IC is used
Abimanyu Bima says
hey, that's what i looking for!! thx for sharing this schematic.
how i modified that since i just need 2amp max out?
Swagatam says
Hi, you can adjust the 0.4 ohm resistor value to limit the output at 2 amp, using the following formula
R = 0.6/2 = 0.3 ohms
wattage = 0.6 x 2 = 1.2 watts
Sumit Shekhawat says
Hello Swag,
Thank you so much for your efforts in helping with such circuit, i have made the first circuit, my loads are two routers (12v 0.5amp and 5v 0.5 amp), I planed to use an additional 7805 at the output to reduce the power to 5v 0.5amp. My battery is 12v 7.2 AH. I have below question if you can please help :-
– I am unable to set the lower threshold, if I reduce the input power to 11.0 v and use the 100k var nothing happens the green led is always on ? i can only set it by the 10k pot but then i loose the overcharge cutover.
– Is Green LED (+) contact is connected to the positive terminal before the 1N5408 ?? because if i connect is towards the battery side the circuit does not behave at all ?
Swagatam says
Hello Sumit, it could be happening due to leakage voltage from the IC output, you can try connecting a 3V zener diode in between the pin#6 of the IC and the rest of the connections, meaning let the connections at pin#6 be after the zener diode and not directly with pin#6, as done in the following article
https://www.homemade-circuits.com/2012/07/make-6v-4ah-automatic-battery-charger.html
the 100K preset can be connected before the zener or after zener, it is not crucial.
please note that you must first adjust the 10K preset fo the upper limit ensuring that the feedback 100K disconnected udring the adjustment, once this is done then you can connect back the 100K link and proceed with the lower threshold adjustments.
preferably you can replace the 100K with a 470K for getting a wider range of adjustment.
green led can be connected with the positive rail of the IC pin
Sumit Shekhawat says
Thank you Swag let me try it, can i use a 3.6v zener instead ? also when i am setting the thresholds the loads and battery should all be disconnected is that rght??
Swagatam says
Hi Sumit, a 3.6V zener will be OK, and yes there shouldn’t be any battery or load connected while setting up the design….
Abimanyu Bima says
ok thx, i have PS 15v 3amp. n i need to limit the charging current about 100/200mA. what should i do to modified the circuit?
Sumit Shekhawat says
Hello Swag,
Unfortunately tired with the suggestions, its the same. adding a zener just did a change that the green led is on simultaneously with the red (upper limit). lower limit is still an issue, i also tried adding a 600k pot for varied range but no luck. I am thinking to use the second circuit with current eliminating resistor as 0.82 ohms, my battery is 12v 7.2ah sla battery , would it be a good idea to use that design? also would you have any recommendation for taking dual outputs 12v and 5 v @.5ooma (my plan is to regulate the 12v to 5v by 7805)? Thanking you for all your valuable inputs and support.
Swagatam says
Hi Sumit, the green LED and the red LED are connected with opposite modes so they can never turn ON simultaneously.
Green LED will be ON when pin6 is 0V, when pin#6 is 0V red will be obviously OFF, similarly when pin#6 is high red will turn ON, and green will be shut OFF because green will now have both its ends at positive.
you must investigate why your circuit is not working using a meter.
basically when pin#3 is higher than pin#2 voltage level, pin#6 will be high, and conversely when pin#3 voltage is lower than pin#2 then pin#6 will become 0V…so please check whether these things are taking place or not, you can trace the fault within minutes.
Sometimes if the IC is not good gives rise to unnatural results….
you can try any of the opamp based designs from this websire all will work… but before that you must make an effort to understated and grasp the functioning of the opamp and troubleshoot the present design.
Swagatam says
you can easily extract 5V from 12v using a 7805 circuit
Sumit Shekhawat says
Hello Swag,
Thank you once again for the explanation i think i have found the issue, can you please confirm if there is a 10k resistor between the 10k pot variable pin and 741 pin 3? If Yes than i think i have missed this particular component in the design.
Swagatam says
Hi Sumit, yes it is there but that cannot be the issue, and its presence is not crucial.
you must check the voltage at pin#3 with reference to pin#2 while adjusting the preset.
as soon as pin#3 voltage goes higher then the pin#2 reference voltage (4.7V), pin#6 voltage should get to the supply level from its previous 0V…makes sure to keep the zener connected at pin#6 as advised earlier, and check the pin#6 volatge after the zener.
preferably connect the LED in the following positions:
https://www.homemade-circuits.com/2012/07/make-6v-4ah-automatic-battery-charger.html
Swagatam says
and keep the feedback link disconnected while confirming the above….
Swagatam says
replace the 0.4ohm resistor with the following
R = 0.6/200(0.2)
= 3 ohm 1/4 watt
Ehsan My says
Hello, I was so exciting about your site and as feedback send you PCB
1. https://s23.postimg.org/6l0hr0j6j/musp.jpg
2. https://s18.postimg.org/wtxtlpltl/microups.png
Swagatam says
Thanks Ehsan, I appreciate your effort, I am sure the readers will like it…
Ahmed ayal says
Hello Swagatam ..
I'm really excited in your projects..
I want you to help me and ask you some questions :
i have 13.8v 3amps smps ,12v 4.5ah battery and modem&router(1.5A load).
The question is when i tried to test changeover circuit that you posted the battery discharges and iam really checked the current flews from the battery but most be charging when the mains pw is on ,
I tried connect the smps to battery directly (dioades exist) ok its charge but when loading at 1.5A both smps& battery supplied the load output. .
So how can i make automatic ups to remains my network on and battery charges correctly when main ON ?
Swagatam says
Hello Ahmed,
sorry, I could not understand your question correctly, because I am not sure how you checked the situation and to which circuit diagram you are referring to??
If it's the first circuit which is causing the problem, you can simply add a diode just at the right side of thee 1K base resistor of the TIP122 this will stop the battery from self discharging when the mains fails….if possible I'll update the diagram soon with the correction
SOLARIS says
Hi
another request in addition to the The modified 5 AMP micro UPS circuit design:
I want to incorporate switching circuit for a 12 volt DC fan/light which gets powered only on when main fails. The fan/light stays off on the mains supply but powered on automatically when mains fails.
Regards
Swagatam says
yes as recommended the following circuit will be much suitable for your requirement:
https://www.homemade-circuits.com/2015/10/smart-emergency-lamp-circuit-with.html
SOLARIS says
Thankyou very much.
Fenrir says
Hi swagatam, im triying to setup the last circuit (5amp) for a 12v battery but i have a lot of problems.
i remove the link of the 100K preset and apply 14.3v in the place of the battery adjust de 10k preset to get 0.01v difference between pin 2 and 3 the green led is on, put again the link of the 100k preset and reduce the voltage to 11v, the green still on, adjust the 100k preset to get the led in the base of the tip127 (red led) on, if i increase the voltage again to 14.3 the green led doesnt turn on, i tried to 16v and nothing happen, the red is on and the grren is off, but when i touch the 100k preset whit a isolated tweezers the green led turns on and the red off, i decrease the voltage again to 11v and changes (red on and green off), increase the voltage and doesnt change until i dont touch the 100k preset with the tweezers, any idea?
its correct the point where im applying the variable voltage (in the battery place, not battery conected)
its necesary to connect the powersupply to the regulator?
thanks!
Swagatam says
Hi Fenrir,
connecting the sample 14.3V input at the battery points will do.
but monitoring the 0.01V difference is not the correct way of adjusting circuit.
Initially keep the preset slider towards the ground side, and the 100k preset link disconnected
apply 14.3V, and slowly move the preset until the green LED just lights up.
without removing power connect the 100k preset link across its original condition, adjust it at the minimum resistance value.
Now adjust the power supply value to 11V, and slowly adjust the 100k preset to shut off the green LED.
The above procedure should fix both the thresholds to their intended cut off positions.
Fenrir says
thanks Swagatam, It seems to work now
only i made one change, i replaced the 100k preset for a 10k one
with the 100k preset never achieved turn off the green led, for the 10k happens in the 11.4v mark, i think its enough, thanks again!
Swagatam says
That's good Fenrir, however the 100k preset also has the capability of reducing to the 10k or lower mark, so it's strange how the 100k preset did not work…
.anyway if it's working now, it's great. thanks for updating
Hamzepoor says
Hi Swagatam
i have a 12 volt 7.5 AH with full automatic battery charger , and my 12 volt 4 AMP device has its own power supply ,
so i need just the automatic changeover part of your circuit , how can i do that ?
i mean i wanna use my own battery charger and and my own power supply for load , but i need your circuit to monitor them ! changeover when main is fail and so back !
thank you for your help
Swagatam says
Hi Hamzepoor,
for an automatic changeover just terminate the positives of the two power supplies through individual diodes and connect the ends of the two diodes together. This becomes the positive for the load, ……the negatives of the power supplies can be joined in common and connected with the load's negative.
Make sure the primary power supply has voltage a shade higher (by 1 V) than the secondary power supply.
Shayan Firoozi says
Hi, i made this curcuit
first of all , i wanna thank you for such a useful site
i have 2 question :
1- 78H12A is a fixed 12 volt regulator as you said on your site , how we are getting 13.x volt for charging our battery ?
2-i used PM600 diode instead of 6A4 , it is possible ? and why my IC741 is getting hot even without any load or battery attached ?
thank you Swagatam
Swagatam says
Thanks Shayan,
1) the inclusion of the series diodes with the GND terminal provides the required extra boost at the output of the IC
2) check the datasheet of the diode, if it's rated above 6amp then you may use it.
3) increase the value of the base resistor of the TIP127 to around 10K and see if that stops the IC from getting warm..
Shayan Firoozi says
https://drive.google.com/file/d/0B2VgP4YQwP4ETzczQ2Y3VExKX00/view?usp=sharing
Swagatam says
this will work!
Shayan Firoozi says
Thank you Swagatam ,
finally i decided to use this circuit built-in charger 😉
i need 12 volt regulated , but i think the voltage will reduce when battery is discharging , is there any circuit to regulate the voltage on 12 volt ?
Swagatam says
Thank you Shayan,
If the battery voltage drops we can do nothing about it, and nothing is recommended for this issue.
Shayan Firoozi says
Thank you very much
As Sina Alimorady said , i have my own charger , how can i attach it to this circuit ? i mean which part should be removed and where charger should attached ,
forgot to mention , the last circuit , i mean 5 AMP
thank you
Swagatam says
Without knowing what's inside your existing charger it would be impossible for me to suggest the modifications??
Sina Alimorady says
Hello Swagtam , thanks for your reply
the built in charger in this circuit is 1 stage or 2 stage charger , i wanna achieve maximum battery lifetime and performance , and if this circuit doesn't care about that how can i replace my own charger with built in charger of this circuit , i mean where it should be attached and what part of this circuit should be removed ?
thaanks for your reply
Swagatam says
Thanks Sina,
Can you please specify which circuit are you referring to.
none of the above is a 2 or 3 step design.
for a 3 step charge you can refer to the following article:
https://www.homemade-circuits.com/2012/10/make-this-3-step-automatic-battery.html
Shayan Firoozi says
Thank you so much,and there is some questions
I would appreciate for you describing
1-What is the current of charging process??
2-What change we should done to this circuit ,the last one,to make it 1/10 amp charging current ?? Of course its different between 12volt 4.5 amp and 12 volt 55 smp battery
3-for charging a 55 amp battery it could take an all day long or more to complete!! Is last circuit support such heavy process ?? And if not what changes we have to apply ???
Thank you very much for knowledge which you are sharing
Swagatam says
1) the charging current will be 1/10th of the battery AH
2) use a charger with 1/10th current output, or use a LM338 current limiter for this.
3) by upgrading the relay contact rating you can make it compatible with any battery AH.
the above were with reference to the last circuit from this article:
https://www.homemade-circuits.com/2011/12/how-to-make-simple-low-battery-voltage.html
Shayan Firoozi says
Thank you so much,but I,m confused,
Is this circuit,I mean the last one cut off power from modem automatically when main power is not present and battery is going low ??? Or just glow led to notify low battery ???
Swagatam says
Sorry no, none of the above circuits will cut off the load from the battery regardless of battery condition.
for this feature you can try the last circuit from the following article:
https://www.homemade-circuits.com/2011/12/how-to-make-simple-low-battery-voltage.html
Shayan Firoozi says
Hi Swagatam Majumdar,
first of all i wanna thank you for such great information your are sharing with us,
in your 5 AMP circuit(the last one) , what changes should apply to prevent battery from deep Dishcharge??
we know Sealed Lead Acid batteries should not discharge more than 50% , so how we could cut off circuit when battery is low to prevent damage to the battery ans increase its lifetime ?
thank you again
Swagatam says
Hi Shayan, the 100k preset needs to be set appropriately for initiating the charging once it falls to that set threshold.
Unknown says
Hi Swagatam,
your web site is very good and useful , i really interested in this circuit , but i have a problem , i wanna know in what voltage these circuit cut off battery charging to prevent overcharging of 12 volt 4.5 AMP SLA battery , and how to protect my battery from deep discharging ? i wanna cut off circuit when battery reaches its 50% of charge , how can i do that ?
thank you so much
Swagatam says
Thanks Unknown,
a 12V battery is supposed to cut off at 14.3V, and initiate charging at 11V.
you can use the first circuit, for your need, adjust the 10k preset for setting over-charge cut off and the 100k preset for the initialization of the process.
Sina Alimorady says
Hi,
would you please tell me who can i use 12 volt Sealed Lead Acid 4.5 AMP battery ?
Thank you
Swagatam says
yes, can be used
hasan mustafa says
Hi,
Thank you for the circuit, really good one,
I wanted to ask, if I placed two batteries in series 3.7v same mah i.e 3000mah, so It will have 7.4v and 3000mah,
what changes shall be done to the circuit….
Thank you in advance
Swagatam says
Hi, thanks
the best thing to do would be to remove the 78H IC and the associated diodes with an LM338 circuit, and then adjust its pot to set the output voltage to 9V, which would be just right for charging a 7.4V batt…rest everything can be kept as is….
the 10k preset may be set appropriately for cutting off the charging voltage as soon the batt gets fully charged and reaches the 8.4V mark
hasan mustafa says
To be noted: its li ion battery…
hasan mustafa says
Also is LM317 would be good enough, its 1.5A only, but if the charging rate were 1A, then it will be okay, right, or it has to be higher…
Swagatam says
you can use the first circuit from the following article:
https://www.homemade-circuits.com/2012/04/ic-lm338-application-circuits-explained.html
Swagatam says
LM317 will also work….
Vangelis says
Hello Swagatam.
Thank you for an interesting design.
I am puzzled by two issues regarding the 5A version (the last one) of your circuit, complete with current-limited charging:
1) I do understand that while TIP 127 is conducting, the output of the regulator is fed to the positive terminal of the battery and it is current-limited by the 0.4 Ohm resistor inserted between the battery's negative terminal and the reference ground for the regulator. However, when the load (in this case the modem) receives its power supply from the battery, the 0.4 Ohm resistor is in line with the load, leading a) to energy wasted as heat and b) a variable voltage drop depending on the current consumed by the load. Could you please comment on that?
2) Regarding the BC 547, its base is directly connected to the negative battery terminal and its emmiter to the reference ground, i.e. its bias is provided by the voltage drop across the 0.4 Ohm resistor. Under which circumstances will the BC547 conduct, and when it does, will it not just negate the effect of the zener diode that biases input #2 of the 741 by "shortcircuiting" the zener? It seems that I fail to understand the operation of this part of the circuit. Would you care to elaborate please?
Best Regards,
Vangelis
Swagatam says
Hello Vangelis,
yes the 0.4 ohm will come in between the supply during both the occasions, however the dissipation won't be too high, unless the output consumes above the specified level as calculated for the resistor.
still If you want to avoid this, you can change the position of the resistor and bring it on the ground rail just on the right side of the 4k7 resistor of the green LED…and join the battery negative with the modem negative line.
a voltage across the 0.4 resistor will develop only when the battery begins consuming above I = V/R
that's I = 0.6/0.4 = 1.5 amps…you can set other values as per the battery specs.
once this happens the BC547 is forced to conduct which in turn shorts the pin#2 of the IC to ground…this action instantly reverts the output of the opamp to a high logic shutting of the TIP127…this immediately inhibits the current consumption by the battery….the cycle now begins playing a tug of war keeping things under the specified limits.
Vangelis says
Thank you Swagatam for your kind reply.
Just to make sure that I understood you correctly. 1) The 0.4 Ohm resistor will be disconnected from the negative battery terminal, 2) The BC547 base will be connected to the circuit ground via the 0.4 Ohm resistor, 3) The negative battery terminal will be directly connected to the circuit ground and to the load (modem) negative supply line. Is this correct? (Please confirm this and I will try to upload the revised schematic).
Many thanks for your time.
Swagatam says
Hi Vangelis,
only the 2) is not correct, rest is OK.
just cut the line which runs right under the battery, and connect the 0.4 ohm resistor there.
the base can be as it's in was in the original situation.
the earlier 0.4 points can be joined with a wire link.
White Dragon says
sir, as of 741 op amp datasheet, pin 4 should be connected to gnd. why i have to connect it to positive rail?
Swagatam says
I meant pin#7, not pin#4….connect pin#7 with the 7805 output rail
White Dragon says
Thanks sir. but i checked the datasheet of 741, it showed to connect pin 4 to ground, not positive. why is that?
White Dragon says
sir, as of you said, i modified the schematic for 4v battery. is this correct? please confirm me. Thanks.
Here's the schematic……
https://drive.google.com/file/d/0B48Yz8eY2WVdT2p3T08zTURKX3c/view?usp=sharing
Swagatam says
Hello white dragon, your circuit looks perfect to me, just make two changes in it:
remove the 2k2 resistor connected across the output and ground pins of 7805, and connect pin#4 of the IC with the OUTPUT (+) of the 7805 supply line instead of the existing position shown in the diagram..
rest everything is fine.
White Dragon says
sir, may i use 4v battery here in this circuit?
1.bp.blogspot.com/-2CEhPpD_SX4/UXSi1OjgA7I/AAAAAAAAD94/FodSCR87q_A/s1600/micro+ups+circuit.png
whats need to be changed?
Swagatam says
yes you can use 4V battery, in that case you will need to use a 7805 IC at the input and remove all the diodes that's connected at the relevant positive rails
also you won't need diodes at the ground pin of the 7805
White Dragon says
ok sir, but what about the 4v7 zener diode? also, there is a 1watt 0.4ohm resistance from battery ground. what will be the modified value for 4v bat?
Swagatam says
in place of the 4.7v zener, you can use 3no 1N4007 diodes with cathodes towards ground and anode towards the IC pinout.
the 0.4 ohm ids the charging curent limit, it may calculated as
R = (10 x 0.6)/batteryAH for lead acid or SMF batts.
R = 0.6/batteryAH for Li-ion or Lipo batts
White Dragon says
ok sir. i actually want to use 4v 4.5Ah sla type battery. do i need to remove all remove all the diodes in that circuit?
Swagatam says
use a 7809 IC instead of the shown 12V IC at the input
arvin946 says
Good day Mr Swagatam!
The second circuit (current limited charging) you did was I'm looking for. But I'm not that sure if the output I need is going to be I expect. I'm a newbie to this So my questions are:
1. What will be the value of the resistor on the negative side of the battery so the charging current will be 3amps?
2. Will the modem (1.5amps) function properly if the output current of the circuit is 5 amps max (I read that it will not overheat)?
3. Can you give me a list of the parts of the second circuit that I will buy on the electronics shop?
Sorry for my bad English. Thanks!
Swagatam says
Goodday Arvind,
for 3amp limit you can use a R = 0.6/3 = 0.2 ohms 3 watt resistor
if the output voltage is regulated to match the modem voltage then the 5 amp current will not be an issue.
click the diagram to enlarge, you'll find all the parts correctly assigned, the resistors are all 1/4 watt except the current limiting resistor.
arvin946 says
okay. The mc78T12 is the vrm right? what about the LM338 that will allow 5amps max? i read it on your comment above. Thanks
Swagatam says
LM338 is an adjustable voltage regulator IC, it's maximum current delivering capacity is 5 amps,
arvin946 says
okay. last question. I did the second circuit on NI multisim but the output voltage is just 3 volts but correct ampere I used the LM338 as replacement for the MC78T12. is the circuit really outputting 13 volts or I did something wrong on the simulation? Thanks!
Swagatam says
how did you adjust the presets in the simulation?
arvin946 says
same as the circuit. but not on the vrm. there isn't a MC78T12 instead I used a LM338. output voltage is 3v+
Swagatam says
I was referring to the opamp pin3 10k preset and the feedback 100k preset adjustments?
Swagatam says
input must be minimum 18V or above
Swagatam says
….correction must be minimum 18V
Swagatam says
input = 15V
…you can use a 7812 IC for your application instead of the shown 78H, or 78T….
Swagatam says
Hi Johany, if your battery is a lead acid or SMF type then the input should be more than 300mA to 500mA, if it's a li-ion or lipo then it can be upto 2amps.
Swagatam says
Hi Johany, no change would be required, you can use the same set up, just make sure that the input current is not higher than 300mA
Swagatam says
Hey Johany, PCB designing could be difficult due to my busy schedule, but I may try to update it some other day for sure.
Swagatam says
Hi Johany,
yes it has an automatic cut of feature
the color of the resistor has no significance, just a mismatch.
all are 1/4 watt rated unless specified
Swagatam says
Hi Johany, the first design is good and easy
Swagatam says
Hi Johany, do you mean the battery specifications?
any battery can be used here below 3 AH, so I think yours will also suit for this circuit application
Swagatam says
Hi Johany, you can try the first circuit that's shown in the above article, it'll suit your requirement perfectly.
Sw Mehdi says
Thanks in advance, my battery is of laptop having rating of 10.8V 2600mAh. The load is a receiver having rating of 12V 200mA. Do I have to boost the voltage or 10.8V is enough to operate the receiver? How to go for it?
Swagatam says
I think 10V can be used for operating a 12v load, it should work without any trouble
Jose Anibal Dorce Marzi says
HI!. sory mi english
two question !
I only get 1.2v to the battery.
if I invest the TIP127 I get 14v , but I do reverse the datasheet ! : S
It also seems that my potentiometers have no effect on the circuit. how could I check this ?.
Thanxs!!
Swagatam says
Hi, did you connect the LEDs? what response do you get from the LEDs?
you'll need a variable power supply initially for setting up the thresholds…
Jose Anibal Dorce Marzi says
Yes, the led is connected.
Today, the Green LED ON and the Red LED is OFF . Then i discharged de battery, now de Green LED is OFF and the Red LED is ON.
Is working properly?
thanxs!
Swagatam says
OK that's great…. thanks!
Muhammad Kashif Ijaz says
hello sir,
i build this ckt 2.bp.blogspot.com/-tGgvB93ARXs/UXYc3mwTn-I/AAAAAAAAD-o/1dovbzxqK8A/s1600/micro+UPS+circuit.png
but im facing some issues, when i switch on the ckt the green led glows and red led remains off, but when i touch the regulator body with any metal the green led becomes off and red led glows, also im not getting any response by adjusting 100k preset but when i adjust 10k preset red glow at some instant. also im not getting enough voltage at output…
Swagatam says
hello muhammad, the 10k preset is for high level cutoff and the 100k preset is for low level switch ON.
while setting the 10k preset the 100k link must be kept disconnected, once the high level cut off is set (green LED ON) the 100k link may be reconnected, then the voltage may be reduced to the lower level and the 100k preset may be adjusted for setting the low level restoration (RED ON, green OFF)
the above should be done without any battery connected and by using a variable power supply at the input for the required high, low supply alterations.
Francisco Márquez says
I did not understand the last part. you mean the red led will turn off and green one turns on while 100k is being adjusted? if so, the problem now is that the green one never turns on. only when I retire the main supply and battery is used.
by the way. the green led resistor is 4.7K or 470ohms?
regards.
Francisco Márquez says
That’s the problem… the led do not responds quickly. I have to return the preset more than 3 or 4 turns to get the shift.
Should I have to use the diode 1N4007 in serie with 7808 output?
Swagatam says
just forgot to mention that while doing the above set-up procedures the 100k preset link should be kept disconnected….and reconnected back after the setting is complete.
once the above procedures are over the 100k preset must be used for setting up the lower restoration point, apply 5V to the circuit and adjust the 100k preset to force the relay to just cut off of switch OFF.
Francisco Márquez says
Thanks Swagatam.
Probably you Can help me. I am facing some issues to set the trimpots correctly. I am using a 7808 voltage regulator and a 6v/1a battery to be charged. How can I calculate the trimpots and zener values to adjust the correct voltages on pin3 and 2 from 741?
Regards.
Thank you for your attention.
Swagatam says
Fransisco, while adjusting the preset do not keep the battery connected, keep the outputs open
Now apply the input voltage and carefully adjust the preset until the red led just lights up….now flick the preset to and fro to confirm the LED responding with quick ON/OFF effect….finally set the preset keeping the LED just ON…
however before you do the above make sure the 7808 output has one diode in series with the circuit in order to provide around 7.4V to the circuit and the above setting determines this level as the full charge level for the battery.
Francisco Márquez says
Hi Swagatam
Is it normal that regulator gets hot during battery charging?
regards.
Swagatam says
Hi Francisco, yes it's very much normal for any voltage regulator to become hot while driving any load
cem mortas says
Hi Swagatam,
I would like to know what is the variable resistances total value? You said (for left one) preset 10 K ohm, what is the total value of this one? I mean, is the total value is 50 K ohm and we set it to 10 K ohm?
Regards,
Swagatam says
Hi Cem, the total value is 10K, it's a 10k preset or trimpot
Roney Renaissance says
Hi Swagatam,
I would like to know if acid-lead battery can be used with this circuit, for example 2 pieces of 6v 4.5 ah batteries. My power requirement is 12v, 1ah for D-link 2750u adsl router+modem. Thanks.
Swagatam says
Hi Roney, yes definitely lead acid batteries can be used with the above circuits.
Elber Araujo Hipolito says
Hey Mr. Swagatam,
If I want to charge a lead acid battery 1,2ah, I need to change the value of 0.4 ohm to 3 ohm resistor for 1/10h battery charge?
Swagatam says
Hi Elber, yes that's right!
ahmed el shazly says
how can i control the charging current in circuit 2???
Swagatam says
the current may be controlled by appropriately selecting the 0.4 ohm resistor value (in the last diagram)
ahmed el shazly says
hi mr.Swagatam how can i use this circuit with 4v battery ???
Swagatam says
Hi Ahmad, use 7806 for the input IC and don't use the diodes with its ground pin, connect the ground pin directly with the ground, rest everything remains as is.
set the preset for a 4.2V cut off
Ahmed Sabra says
hi Swagatam..
1) i replaced the lm317 with lm338 and installed a biger heatsink with fan and it worked,, but the question is.. why do i have only 1.63 amp output?? since the laptop charger is 3.4amp.. why don't i have the complete 3.4amp when i charge a 12v battery?? in the other hand when i used lm317.. it gaves 2.0 amp 😐 !! how did that happen ??
2)can i get an overcharge protection circuit but simpler than the one above… for 12v battery and for 6v battery..
thanks again
Swagatam says
Hi Ahmad,
How did you measure the current, in series with load or with battery, or by directly putting meter prods across the output?
A simpler circuit is shown here, you can try this one as well.
https://www.homemade-circuits.com/2011/12/self-regulating-lead-acid-battery.html
Ahmed Sabra says
i measured in series with empty battery.. it started with 0.5amp and increased to 1.63 and never increased again..
and another questions.. since its a laptop charger.. does it have an overcharge protection feature already ?? or should i build a circuit because i modified the output to 14v ??
thanx
Swagatam says
That's strange, the current consumption should be high when the battery is first connected and should gradually become less as it charges, at full full charge it should almost become zero amps…I think something may be not correct either with your circuit or the meter you are using.
The charger will never have any protection feature, but your laptop will certainly have a built-in over charger cut off included.
Ahmed Sabra says
hi again..
please i want to make a 12v charger from a laptop adatpter with 19v/3.5amp
how to regulate 19v to 14 or 13.5 to make it charge the battery??
and would it cut off if the battery is full ?? i mean how to make a simple overcharge protection circuit??
thank you a lot
Swagatam says
You can use a LM338 variable voltage regulator circuit and use it for getting the required 13.5V from the 19V input.
after adjusting it to 13.5V you will need to operate the above circuit with this voltage for acquiring the automatic high/low cut-offs.
Ahmed Sabra says
Sorry for the inconvenience
but what is the difference between LM338 and LM317?
bucause i tried to get 13.5 volt with LM317 but no success..
and please what resistor should i use with LM338?
and what resistor should i use with LM317??
thank u again
Swagatam says
LM317 will allow a maximum of 1.5amps for the connected load.
LM338 will allow 5amps max, and LM196 10amps max.
the basic configuration will be the same for all the above ICs.
you can make the first circuit shown in the following post, applicable to all of these ICs:
https://www.homemade-circuits.com/2012/04/ic-lm338-application-circuits-explained.html
Use 10k pot instead of 5K for getting a wider range of control.
Ahmed Sabra says
thank u again Swagatam
i used lm317 because i want the max 1.5amp and i got everything ok
i got 13.6 v but the ic get too hot.. is that normal?? of course i installed a heat sink but it still get hot and the volt is decreasing slowly.. should i install a fan ??
or should i use lm338 ??
thaaaaaaaaaaank you a lot
Swagatam says
you are welcome Ahmed,
you may increase the heatsink dimensions, or as you said use LM338 which would run much cooler…
Ahmed Sabra says
hello Swagatam..
i have 2 questions please:
1. can i make this circuit without the charger part?? cuz i have an automated charger.. so i dont like it to be charger twice..
2. can i use an acid lead battery with 70 amp "car battery" instead of the one you recommneded..
thank you a lot
Swagatam says
hello Ahmad, do you mean you want to replace the MC78T12 section with you charger output?? yes it can be done.
any battery can be used here as long as the voltage specification is 12V
Tomas-net@seznam.cz says
Hi,
my English is not so good. I have four questions to the last schema (5 Amps).
1. If I am correct, this circuit keeps battery in safe – it prevents battery from overcharging, when battery is fully charged, it cut off from power. And when battery voltage drops down under given threshold it starts charging. Am I right?
2. I see in your schema Li-Ion battery. Can I use for example Lead Acid battery 12V/1Ah?
3. Battery voltage should not drop under given threshold for avoiding damaging. This circuit does not cut off battery when it happens, right? RED led will lit instead, right? If I put to RED led some kind of relay or one or two MOSFETs to cut off battery, it could work?
4. Can you confirm me that RED led will lit only when battery voltage is low under safe limit and GREEN led will lit only when battery is fully charged?
Thank you!
Swagatam says
Hi
1) yes that's right.
2)All types of rechargeable battery can be used here for the required actions.
3) yes that's correct
4) yes that's correct too!
SOLARIS says
Hi Swagatam
This is a very usefull circuit you shared with us. Very much appreciated, i have some questions in mind , If you may help me out ( i am nill in understanding circuits, but i can build one)
Considering the The modified 5 AMP micro UPS circuit design:
2.bp.blogspot.com/-tGgvB93ARXs/UXYc3mwTn-I/AAAAAAAAD-o/1dovbzxqK8A/s1600/micro+UPS+circuit.png
1. can you include battery protection feature in the circuit so it protects battery from over discharging and automatically cuts off the battery when its in low voltage.
2.I want to have multiple outputs for multiple devices, like Laptop (running on this circuit with car charger) an LED light source and 12 Volt Fan {definitely using theses under power outages} so DO I ATTACH THESE DEVICES TO THE SINGLE OUTPUT ALL IN ONE(parallel), can this effect the working of each other?
3. I want to use the Car battery or 100 Ampere battery, how fast it could charge the battery of high ampere, do it need modification to do so, if yes please modify the circuit.
4. Please specify power input adapter (15volts) amperes?
5. Can you share a working circuit picture, so i have help in identifying the components?
6. Please do share the component details, coz i cant understand the diagram symbols. (kindly)
Very thanks and regards
Swagatam says
Thanks Solaris,
I am sorry, due to lack of time I won't be able to fulfill all the mentioned requests.
for the components you can simply write down exactly as given in the diagram, all the parts are standard, and the retailer will understand what to be given.
I think the following circuit would be more suitable for your need since it satisfies most of the features in it.
https://www.homemade-circuits.com/2015/10/smart-emergency-lamp-circuit-with.html
however please be cautioned, that these designs require a reasonably experts knowledge regarding electronics, especially of opamps, and BJTs…so if you think you are very new then it could be extremely difficult for you to succeed with these designs.
for a 100 amp batt you will a 10 amp 14V DC input…and the output transistors will need to be replaced with TIP142 for NPN, and TIP147 for PNP
I will recommend you to build a basic design first and modify it later on once you succeed with the initial one.
Abu-Hafss says
HI Swagatam
Do you have any circuit to get 12V (1.5 – 2A) from USB supply?
Swagatam says
Hi Abu-Hafss,
you can use a 555 boost circuit for it, I have already published a few of those in this blog, and guess you have read them all
Julian says
bottom right that says 0.4 1w resistor is 400 ohms 1w?, thanks!
Swagatam says
it's 0.4 ohms
R JAGADEESH reddy says
hi can u please tell me about any mini projects in which op amp ic 741 is used???
Julian says
bottom right that says 0.4 1w resistor is 400 ohms 1w?, thanks!
Julian says
asks is: if instead of using red to indicate low battery LED, use a relay to cut the supply battery.
Swagatam says
the transistor will cut off the supply on battery full charge
Julian says
Dear, another query. I can use instead of a red LED indicator low loads a relay to make the outage charge the battery to avoid damage?. I contribute it as an idea and at the same time consultation. thank you!
Swagatam says
Yes a 7ah gel battery can be used here.
I did not understand your second question.
Julian says
hello, can use battery 12 vlt 7 ah ? gel?
nauman naeem says
dear swagatam desighn a circuit that would drive a cell phone camera, i have a vga camera
shawon kazim says
Hello Swagatam Majumder sir , please help me i want to adjust your two circuit https://www.homemade-circuits.com/2013/08/3v-45v-6v-9v-12v-24v-automatic-battery.html and https://www.homemade-circuits.com/2013/04/automatic-micro-ups-circuit.html so please can u send me or post a combined circuit.
Swagatam says
Hello Shawon, how do you want both the circuits to be combined?
shawon kazim says
I want to use this automatic micro ups circuit but the cutoff overcharge,over discharge and battery charge level-indicator like https://www.homemade-circuits.com/2013/08/3v-45v-6v-9v-12v-24v-automatic-battery.html should included
Swagatam says
auto cut off is already included in the above circuits, for indications you can integrate the following circuit with the battery:
https://www.homemade-circuits.com/2013/08/make-this-10-step-battery-voltage.html
nauman naeem says
best circuit i have tryd this its working well thanx dear……, can u tell me the function of 100k vr???? regards
Swagatam says
thanks, it's for setting the under charge cur-of limit for the battery
cem mortas says
Hi,
Very useful circuit, thanks for sharing it, I want to ask that What is the difference between 0.4 ohm resistance and 100 K Var? 0.4 ohm resistance determines battery charge current, But i dont understand what is main function 100 K variable resistance?
Regards,
Swagatam says
Hi thanks, the 100k pot sets the low voltage restoration threshold for the battery…it decides when the charging needs to be restored for the battery
Dharma Raj says
i have only battery and solar unit.how can i get it charged and low battery cutoff…and also how to stop the over charging????
Swagatam says
what are the ratings of battery and solar panel?? Please specify them.
Swagatam says
yes it's automatic. cell phone battery will not be suitable for this application.