loading

Lithium based batteries are a versatile way of storing energy; they have one of the highest energy density and specific energy(360 to 900 kJ/kg) among rechargeable batteries.

The downside is that, unlike capacitors or other kinds of batteries, they can not be charged by a regular power supply. They need to be charged up to a specific voltage and with limited current, otherwise they turn into potential incendiary bombs.

And that's no joke, storing such a high amount of energy in a small and normally tight packaged device can be really dangerous.

But they're really useful in electronics due to their relatively high cell voltage; high energy density; their shape, size and capacity variety, and their charge/discharge efficiency. And that's why they're in almost every consumer electronics product.

As they are the best choice for small and medium sized portable devices, they're very popular among the DIY community. But charging is still a common problem to face when using them if you don't want to buy a specific charger.

Through this instructable you'll learn how to make a proper li-ion battery charger with widely available components and parts. And what's more important, you'll learn how does it work.

If you want to skip the theory, and actually build the charger, jump to step 6.

Step 1: A Bit of Theory

There are a lot of different types of lithium based batteries, but they're only different in the materials used and architecture. Scientists prefer to name batteries by their chemical name and the material used, and unless you are a chemist, these terms might get confusing. The table above offers clarity by listing these batteries by their full name, chemical definition, abbreviations and short form.

Different types of batteries have different characters and limitations, for more detail, i recomend you to visit this page.

The good thing is that most batteries are charged in the same way, at least the common ones you would usually find and/or use for a battery-powered project.

First of all, you need to know what's the "C-rate", because it's the basis of battery usage.

Most batteries are labaled with a nominal capacity, measured in amp-hour (Ah) or in milliamp-hour (mAh). That is basically the discharge current they can supply for an hour before being completely drained.

For example, you have a big battery labeled as 2400mAh or 2.4Ah, that means that it can push 2.4A trough your circuit, and discharge in an hour-long period of time. That would be a 1C discharge rate, discharging your battery at the rated capacity current.

If your battery supplies 1200mA to a circuit, it would be a 0.5C discharge rate, and it should last for two hours.

Some batteries allow higher discharge rates than 1C, and if you could discharge your battery at 4.8A (2C), it would last for 30 minutes. Some batteries used in RC systems allow very high discharge rates, as 10 or 20C, but this batteries are usually designed to fail rather than leave your plane unpowered in mid-flight, so they're not the safest ones.

When charging, it's basically the same, charging a 2400mAh battery at a maximum current of 1200mA would be a 0.5C charge rate. For safety reasons, most batteries should be charged at between 0.5C and 0.7C.

Most lithium-ion batteries are charged to 4.2v per cell, higher voltages could increase capacity, but reduce service life. And lower ones can increase battery charge cycles at the cost of less run time. (See the third graph)

A Charge cycle involves two main stages; constant current or CC and voltage source or CV, but some chargers skip or add more stages. (See graphs 1&2)

  • Most batteries are considered overdischarged or dead when their cell voltage is under 2.8-3v, but even in this situation, cells can be charged again and be reused. To save them, an "aconditioning" stage is done before charging, in this stage, the battery is charged with a 0.1C current limit until it reaches 3v

  • CC stage. This is the stage all the chargers use, and the only for most fast chargers. During the constant current stage, the battery is basically connected to a current-limited power supply, usually limited to 0.5-0.7 times the nominal battery capacity (that's from 0.5 to 0.7C) it lasts until the cell voltage reaches 4.2v. At the end of this stage, the battery charge is around 70-80%.

  • CV stage or saturation charge. When the battery reaches 4.2v per cell, the charger acts as a voltage limited power supply, The battery voltage remains at 4.2v while the charge current drops gradually. When the charge current is between 3 and 10% of the labeled capacity, the battery is considered fully charged.

  • Topping charge. Depending on the charger and the self-discharge of the battery, a topping charge may be implemented once every 500 hours or 20 days. Typically, the charge kicks in when the open terminal voltage drops to 4.05V/cell and turns off when it reaches 4.20V/cell again.

Usually, only stages 2 and 3 are used, and a full charge can take from 2 to 4 hours depending on the charge rate.

Li-ion does not need to be fully charged, as is the case with lead acid, nor is it desirable to do so. In fact, it is better not to fully charge, because high voltages stresses the battery. Choosing a lower voltage threshold, or eliminating the saturation charge altogether, prolongs battery life but this reduces the runtime. Since the consumer market promotes maximum runtime, these chargers go for maximum capacity rather than extended service life.

For more information you can visit this page.

Step 2: Designing the Charger Circuit

Around a year ago i began to work with operational amplifiers, and i decided to design a proper li-ion battery charger to learn to use them. I've learnt a lot about op-amps along the way designing this circuit and i wanted to share it, so people can make their own chargers instead of buying them.

The circuit uses the popular LM324 op-amp to create a current and voltage limited power supply. In this case, the current is adjustable with a potentiometer from about 160 to 1600mA, making it able to charge batteries with a wide range of capacities. The voltaje limit is 4.2v, so you don't damage your batteries.

It has a charge indicator LED that will lit up while the battery is charging and shut off when done.

I designed this circuit so it uses widely available and cheap through-hole components so anyone can build it.

Almost any general purpose op-amp can be used, no rail to rail operation needed, no high frequency or precision.

The tip122 transistors can be replaced with any pin-compatible transistor with a minimum DC current gain (Hfe) over 100 and a maximum collector current (Ic) over 2A.

The circuit is designed so anyone with basic soldering skills can easily build it.

Step 3: The Power Supply

The whole battery charger is powered by a 12v 2A charger, but since the LM324 is not a rail to rail op-amp, i need a second voltage rail to allow the op-amp sense voltages near GND (little voltages for little currents) and output low enough voltages to not turn on the darlington transistors when they shouldn't be.

If you look at the general schematic in the previous step, you can see that the transistor that controls the current flow and voltage across the battery is connected to a voltage rail and not to ground. That's because the LM324 output voltage cannot reach It's negative supply voltage, it can only go around 1.5-2v over it. At that voltage, the darlington transistor wouldn't be able to switch off and wouldn't limit voltage and current properly.

That's why i used one of the four op-amps (IC1a) and a transistor to create a virtual 2.5v rail over GND that sinks the current that flows through the charger part of the circuit.

R2 and R3 are a voltage divider with an output voltage of around 2.5v depending in the resistor tolerances, the op-amp drives the transistor in such a way that independently of the current flow, 2.5v will always drop across it.

The four op-amps and the LED indicators are powered directly from the 12v power supply, but the rest of the circuit is powered with 9.5v; between the 12v and the 2.5v rails.

If you use this design, but you want to make it more efficient, you can use rail to rail op-amps and a lower voltage power supply so you don't need to create an extra rail wasting power in an extra transistor.

The power LED indicates when the charger is on, and C2 smooths out the voltage from the charger.

Step 4: The Actual Charger

This is the important part of the charger, this is what takes care of limiting the current and voltage across the battery. In this case, the charge current can be selected with the 10k potentiometer, but the limit voltage will be a fixed 4.2v reference, regardless of the power supply voltage variations.

(You can see that in the general schematic, the potentiometer and R8 and R9 values are an order of magnitude higher, that's because the only pot i had was a 100K one, but the recommended value is 10K and for R8&9 the ones in the schematic above)

The op-amp in the left (IC1c) takes care of limiting the current to a maximum set with the potentiometer.Since the sense resistor is 1 ohm, the voltage across it will be the same as the current flowing through it.

The potentiometer ison top of a 1k resistor, across the resistor there's a 160mV drop, so the minimum output voltage of the potentiometer is 0.16v, in that case, the circuit would limit a maximum current of 160mA, ideal for charging a 300mAh battery.

The voltage drop across the potentiometer is around 1.6v So the maximum current limit will be slightly above 1.6A. Adjusting the potentiometer you can get any voltage output between 0.16 to 1.6v, meaning a maximum current limit anywhere between 160 and 1600mA.

The op-amp will drive the transistor in such a way that the voltage across the sense resistor is the same as the potentiometer output. And thanks to the 2.5v rail , the op-amp will be able to output a voltage low enough to almost switch off the transistor and set a low current limit.

At the end of the constant current stage, the battery voltage gets near a 4.2v limit, beyond which the battery would be damaged, at that moment, the voltage limitter part of the circuit kicks in and the constant voltage stage begins.

The 4.7v zener diode along with R10&11 voltage divider creates a 4.2v reference below VCC (~12v). When the voltage across the battery reaches 4.2v, the second op-amp (IC1d) starts to pump voltage into the inverting input of the first op-amp, this makes it to lower the output voltage to the transistor so current flowing trough the battery starts to drop to keep 4.2v across it.

As the battery gets charged and it's internal resistance increases, less current is needed to keep 4.2v across it, so current will drop slowly. When the current flowing through the battery gets below 3-10% of the nominal capacity, the battery is considered 100% charged.

Step 5: The Charge Indicator

Fully charging a battery can take from 2 to 4 hours depending of the charge rate (which i recommend to keep between 0.5 and 0.7C). When the current flowing into the battery is less than 3-10% of the nominal capacity, the battery is 100% charged, and the circuit above is what will tell us when this happens.

The fourth op-amp (IC1b) is used as a comparator; at the non-inverting input, it takes the voltage across the sense resistor (over the 2.5v rail) which will drop during the constant voltage or saturation charge stage and compares it to a fraction of the voltage set by the potentiometer.

R15&16 voltage divider outputs a 9% of the set voltage and feeds the reference into the inverting imput of the op-amp.

when the voltage across the sense resistor (which is the same as the current flowing through the battery) drops below the reference set by the divider, the voltage at in- is greater than the one at in+, so the op-amp output drops to GND and switches off the LED.

With this configuration, the LED is on while charging, and off when the battery is fully charged. If you want it to turn on when charge is finished, just swap the op-amp input pins.

Step 6: Build the Charger

Now we're done with theory, let's actually build the charger!

First of all, you need the PCB, you can order it online or DIY. When you have your PCB ready with all the holes and the tinned pads, it's time to start populating the board.

With the design i made, all the components are through-hole, so anyone can make it, but if you prefer a smaller version of the board, you can download the .brd file and edit all the components to SMD.

Most of the resistors i used are 1% tolerance, that's because i had them on hand, you can use the common 5% ones.

Solder the resistors and the wire jumpers, then the capacitors and the diodes, be careful with the polarity!

If you haven't got a potentiometer with the same package as mine, you could solder a external one with some wires, or just edit the footprint.

The sense resistor i used is a 4W 1ohm resistor, you can use a different one, but not under 3W.

The transistors are two TIP122 darlington pairs, it's not necessary to use darlington ones, any BJT with a gain over 100 and with 2A current capability should work, but check the base resistors to match your transistors!

Also, you can use almost any other quad op-amp, be sure to choose a pin-compatible one.

I made the board with two outputs, one with a screw terminal and other with a DSI battery connector, they're connected in parallel, but you should charge just one battery at a time. Remember that this charger is designed to charge a single cell battery, not two in parallel nor two in series.

When you've finished soldering, screw a heat sink to your transistors, they're going to dissipate a fair amount of power! The one i'm using is rather small, maybe a bigger one should be used, but i think that it doesnt get over 70ºC so that's fine for now.

Now add a little stanoffs to your board and it's ready to work.

Step 7: Test #1

As a first test, i'm goung to charge a 600mAh battery, i'm goung to charge it at 0.5C to be safe.

First of all, connect your multimeter to the output and set the dial to current in the 10A range. Plug the charger and turn the potentiometer until the output current is half the nominal capacity of the battery, in my case, 0.3A.

Then, connect the battery to the charger, and be careful with the polarity, in my circuit design, the positive pin is on the right of the connectors.

I tested the 4.2v reference below VCC, and as you can se in the pictures, it's a perfect 4.2v reference.

When i began to charge the battery, it had an open circuit voltage of 3.1v, so pretty empty. About an hour and a half later, the battery had a voltage of 4.09v, it was about to enter in the constant voltage stage.

An hour and a half later, i saw the LED was dimming out, so i checked the current via the voltage drop across the sense resistor, the current was about 24mA, which is less than 9% of the initial 300mA. At that point the battery was completely charged.

This charger works great, i've tested it with that 600mAh battery, a 840mAh DSI battery, a little 200mAh watch battery and a 4000mAh tablet battery. They all took around 3 hours to fully charge, the 4Ah one took a bit longer, but just because the charger is limited to 1.6A, and that's a 0.4C charge rate.

I hope this instructable is useful for all the makers out there beginning to use li-ion batteries, good luch with all your projects!

If you didn't understand something or you need more detailed information, feel free to ask me, i will answer everything i can.

If you find this instructable useful, please vote it for the Epilog Challenge, Green Design and Battery-Powered contests.

<p>I would also like to see a parts list for this circuit. Also, I have tried to locate, without success, the schematic symbols labeled X1 and B-1,B-2 and J1,J2 and J3. This is an excellent tutorial, if a little above my current abilities. I am building a solar charging circuit to charge a 3.7V 10000mAh Lithium Ion battery. Any comments would be appreciated.</p><p>Thanks so much</p>
<p>Is there a specs for minimum charging current for a rechargeable Li-ion battery?</p><p>i.e: if i use a 3.6Ah Li-ion rechargeable battery and wish to charge it with only 5mA, will the battery charge( neglecting the time duration for charging the battery).</p><p>If Yes, how much lesser can the charging current be?</p><p>If No, how can one know how much is the minimum charging current for any Li-ion battery. </p>
<p>I am building a lightsaber based on the teensy 3.6 board and I am researching the feasibility of putting the charging circuitry inside the lightsaber hilt so I can use a power supply instead of an external li-ion charger. The issue I have is that I am using a 2s2p 18650 or 4 cell pack. 8.4v max 12A(6sx2) max current 3400Mah batteries. I currently have a PCB protection circuit on it That is rated as 7.4v 11A <a href="https://www.amazon.com/gp/product/B00N48RCS8/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1" rel="nofollow">https://www.amazon.com/gp/product/B00N48RCS8/ref=o...</a><br>I am a noob and learning as I go. With all that said I have a couple questions. <br>What kind of modifications would I need to make to change your design to work with 2s2pconfiguration?<br>Would the charger be too hot to have in next to the batteries?<br>Is it possible to combine the PCB protection and balance circuit together with the charging circuit? Would that be a good idea?<br>Can I use a commercial power supply brick like a 9v or a 12v or do I need to use a special designed one like the one you have?<br>Thoughts?, comments? questions? Any help is appreciated above and beyond your instructable here that is more educational than any other article I have seen so far on the topic.<br>Thanks<br></p>
<p>Hi,</p><p>Can you help me design a charge circuit for Li- ion batteries using the cigarette lighter USB port supplying 5V?? Really need it. Please HELP!!!!!!</p>
<p>This is an amazing instructable! </p><p>Could I use a 5W 1 ohm resistor? Also, could I use two npn BJTs instead of the TIP122? </p>
<p>Awesome! Can I ask a unrelated Question?</p><p>The Op-amp circuit you used in your charger, does it waste the unused current as heat like most other cheap limiters?<br>the reason I'm asking this is because I need a current limited Constant voltage circuit (Charging a phone from a super capacitor) what can I do?</p>
<p>I'm very surprised this instructable did not get featured or win the competitions :( Anyway, I want to charge a 6v motorcycle li battery from a 9v solar panel so I'm guessing I change some of the resistors and maybe the zenor diode? I should be able to work it out but some quick guidance would be very helpful - Thanks!</p>
Thanks for your quick response. The 12-14 volts is coming from a vehicle so I do not need a cheap power supply. Let me clarify the application:<br>I have an alarm circuit in my utility trailer that draws about 10-30 mAh. connected to a 3.7 volt (6.6 Ah) lithium battery. That alarm protects the trailer for about 3 weeks and then dies. When I connect the trailer to my 12-14 volt vehicle, I want a charging circuit to automatically charge or top off the 3.7 volt battery whenever the trailer is connected to my truck. So that when I disconnect the trailer, the alarm is protecting the stand-alone trailer until the next time I need it. Sometimes I use the trailer once a week, sometimes everyday. The alarm circuit should run 24/7. There is no room for a larger 3.7 v battery because the plastic enclosure is limited in size. Even if I am able to find room to double up on the battery to 12 Ah, I would still want to automatically charge the battery whenever I hook up to the truck, without thinking about it. Please help...JR
Yeah, that's what i was talking about, you have a 12-14v power supply (the vehicle) and the battery in the trailer. You just need a charger circuit for the 6.6Ah in the trailer that connects to the 12vfrom the vehicle every time you use the trailer.<br>That can be done with the output of the charger/regulated power supply permanentlyconnected to the 6.6Ah li-ion battery and the input of the charger/regulated power supply connected temporarily to your vehicle to automatically charge your trailer system each time you use them together.<br><br>A power supply limited to a maximum of 4.2v and 4A should do. I've bougt on ebay before switching power supplies with current limit and voltage limit adjustmen, You could use something like that, permanently attached to your trailer's battery and with a connector at the input for your vehicle.<br><br>If you're interested in that idea, i could recomend you the item that better suit your needs, they are pretty cheap and do the job just fine.
Your recommendation would be most welcomed. It must be real small because I have a very small space inside the plastic housing where the alarm circuit, the battery and the charging circuit would have to be.<br>Another concern is the battery life. I want to be sure it is safe from fires and works a long time. If the battery is full and I plug in the trailer to the truck, the charger only starts charging if need be. Since these new lithiums are very touchy, that is my concern. I don't want to be pulling a fire hazard around town. You say the 4A should do for charging rate, I don't mind if it is slower to keep the physical size and costs down. What happens if later on I decide to install a second or larger size battery like a 12 Ah. Would there have to be re-adjustments on the circuit or it would be great if no re-adjustments would be needed. Totally automatic is best... A smart safe charging circuit. In the future I even want to ad a small 4x4 inch mini solar panel as an option and plug it right in so the system can charge those times when no trailer is connected to any truck. Just mentioning this like letting the cat out of the bag so to speak...great to be communicating with someone that cares....JR
<p>Im thinking of installing a small solar cell on the roof of my car as a &quot;topping charger&quot;. Maybe thats something for your trailer?</p>
<p><a href="http://www.ebay.com/itm/DC-Buck-Converter-Constant-Current-Voltage-Regulators-Module-7-35V-to-1-25-30V-/351240383790?hash=item51c78eed2e:g:qpgAAOxyGqZSW3H9">This item</a> would be a good choice since is mostly waterproof and has all the functionality you need.</p><p>You would just need to solder a 12v connector at the input (for your vehicle or a solar panel), set the output open circuit voltage to 4.2v and the short-circuit current to 3A, and connect the output to your 6.6Ah li-ion battery (in parallel to its load; the security system)</p><p>This setup would charge the battery everytime there's power at the input (from the vehicle or the solar panel) and would not overcharge nor drain it, so it isn't a fire hazard unless the item is faulty.</p>
I received your reply but there is no url on the charger you are recommending. There fore I cannot look at the charger you recommend.<br>Also What I ment by fire hazard is the battery catching fire due to a mismatch with the charging circuit. Whould I still use batteries that have the protected pcb's included in them? which provide high and low protection or is that already included in the charging circuit?<br><br>Thanks, JR
I received your reply but there is no url on the charger you are recommending. There fore I cannot look at the charger you recommend.<br>Also What I ment by fire hazard is the battery catching fire due to a mismatch with the charging circuit. Whould I still use batteries that have the protected pcb's included in them? which provide high and low protection or is that already included in the charging circuit?<br><br>Thanks, JR
<p>the link is (<a>http://www.ebay.com/itm/DC-Buck-Converter-Constant...</a></p><p>It worked forme in the originalcomment.</p><p>With the setup i recommend you, the li-ion battery should keep its own protection circuitry, they always should.</p>
Great, Thanks for the info. I ordered a couple 3A versions to work with. Can't wait to test them. I ordered from Amazon so I get them in 2 days. China would take around 14 days. I plan on reducing output amps to 2 max. If I decide to test a small solar panel, It would be in series with the truck power right? with a diode so that nothing damages the solar panel, correct? the input of the charger accepts input from 4.0 volts up to 40 volts. Can I connect any panel from 6 to 12 volts?<br>Happy holidays, everyone is waiting for me...bye JR
<p>Im fiddling with solar power and My advice is attaching a cheap regulator circuit designed for solar panels. Thats why I want to learn about Li-ion charging.. Cause I want to do it with solar power. I havent yet managed to make any workaround to get rid of the led acid battery yet but until then its not that cool.</p>
<p>The panel should be in parallel with the truck, with a diode so current flows out from the panel and not into it. Yes, you can connect to the charger anything arround those voltages.</p>
Hello again,<br>I drew up something for you to look at. I noticed the Alarm circuit has a small 0.5 charging circuit built in for the small 150Mah on board battery.<br>Looks like the chip they use is the MP46885. I looked into that chip and saw that it is a step dn regulator 0,5A. Not sure now how to add the new charging circuit you recommended. I am including a drawing with some questions for you to look at. JR
<p>My email is pinomelean@gmail.com, send me a message there and i'll send you the setup i recomend you.</p>
I wanted to change the output voltage of the battery going to a motor and a toy that I have. Can I use the potentiometer to limit the voltage out? And just put it in the circuit? It's a 11 volt battery and I would like to turn it down to about 6 volt or so. And the range in between. What potentiometer should I use? I buy from mouser.. thanks..
<p>I would say what you are doing is another question, to the verge of off topic for this fantasticinstructable about charging Li-ion batteries. </p>
<p>Hey dls13dls,</p><p>no, you can not just use a potentiometer.</p><p>You need a step down converter for that.</p><p>Look at amazon or eBay for a step down module, with an LM2596 ic on it. Then connect the input voltage and measure the output voltage of this module. Finally adjust the poti on this module to get the right output voltage. Then connect it to your toy.</p><p>Cheers, Phil</p>
<p>July 8, 2016</p><p>Hello,</p><p>I'm sorry for all the questions but I'm new here and I really wish I could recharge Smartphone and Tablet batteries.</p><p>Can we use your charger for Smartphone and tablets?</p><p>Can we buy your charger already detached and fully assembled parts?</p><p>How to read .sch files?</p><p>How to read files. brd?</p><p>Where to buy all the parts of your charger?</p><p>How to transfer your paper path on a circuit of copper or other material?</p><p>Thank you so much for sharing your knowledge with users.</p><p>He one of Lithium ion battery I would like to charge.</p><p>Also if you can tell me what 6 wires color mean I would appreciate (2 black. 1 yellow, 1 white, 2 red).</p>
Hi thanks for sharing. I have a small quadcopter and cannot charge it's battery now. A guy told me that the battery had gone very low so charger cannot charge it.<br>Any clue how I can charge this battery?<br>Thanks
The battery is probably not going torecover, but there's a chance. Try to charge it starting with a current tentimes lower than usual, that is 0.05C, when it gets to 3v, if it even does, turn up the current up to 0.3C and let it finish charging. Maybe it works, maybe it doesn't, but you can try if you have the tools.
<p>Hi Pino thanks for response the thing is that I don't have that type of charger to lower charging current. Is it possible to add resistors or capacitor to a usb charger? If yes can you tell me the right capacitor please?</p><p>Thanks</p>
<p>You probably can't modify the usb charger circuit easily, i suggest using a power supply with both voltage and current control, set the voltage to 4.1v and the current to a tenth of the capacity of the battery. That if you have access to such a supply, if you don't, and your battery was worth less than 20$,i recommend forgetting about it and getting a new one.</p>
<p>i made 12.44 LI ion battery can any one help me how i can find its current using DMM</p><p>or AmpH ???</p>
<p>Hi</p><p>I have made a Li-Ion Battery Pack of 12V / 2 Amps by using 18650 Li Ion Cells from old laptop battery. Each cell gives perfectly 4.00V output with desired amount of current. So i would like to ask, can i charge this powerpack by using this charger...???<br><br>Thanks</p>
Do you have a complete parts list for this project? Just want to make sure i have all the right stuff before getting started, thanks!
<p>you have a grate experience in charging a lithium cells. But have a problem with charging multiple cell in series. I tried some times. But unfortunately my cells got unbalanced and deformed. I applied to order an standard charger from some well known co (Brusa). But <a href="http://www.lianinno.com/li-polymer-battery-pack/" rel="nofollow">one of them</a> advised me that the problem is my cells not charger. Please let me your comments.</p>
<p>That was a very nice and ambitious design project. Here are some design observations from a guy with a &quot;few&quot; years of experience:</p><p>[1] You state: &quot;The op-amp drives the transistor in such a way<br>that <u>independently of current flow</u>, 2.5v will always drop across it<u>.</u>&quot; That&rsquo;s<br>not <em>exactly</em> true - an NPN/PNP complementary pair output<br>driver would be required it the current into/out of the 2.5V virtual ground could go in either direction (e.g. source and sink). As designed, this circuit works OK for charging a non-open battery as the bulk of the current flow into virtual ground comes from the 1 Ohm current sense resistor from the positive supply (e.g. the charge current), otherwise the Darlington&rsquo;s collectors become reverse biased or off. With no battery (load) attached, circuit oscillation is also possible.</p><p>[2] Power &quot;consumption&quot; is misstated in the comments. Just because the power source is 12V @ 2A does <strong><em>not </em></strong>mean that the Q2 power transistor dissipates <strong><em>ALL </em></strong>24W - it only has to dissipate the power &quot;dropped&quot; across its collector times its collector current (i.e. the charge current). Q2's Vce needs some analysis to remove the other various Voltage drops: a) the battery is dropping 3 to 4.2V (battery power consumption is <strong>Vbattery * Icharge</strong>) b) the current sense resistor drops<strong> Icharge * 1 Ohm</strong> (so resistor power is I<strong>charge^2 * 1 Ohm</strong> W), and finally, c) the 2.5V &quot;virtual ground&quot; drop (so <strong>Q1</strong>'s power dissipation is <strong>2.5V * Icharge</strong>). One <strong>should </strong>use the worst case to calculate maximum power dissipation. This would be Vce-max at Icharge-max (1.6A by design). The former is 12V - 2.5V (virtual ground) - 3V (minimum battery Voltage) - the current sense resistor drop of 1.6A * 1 Ohm = 1.6V (at max charge current) or 12V - 7.1V = 4.9V. So that Q2's max power dissipation is <strong>4.9V * 1.6A = 6.5W</strong> (and Q1's max power is <strong>2.5V * 1.6A = 4W</strong>). This makes the 24W dissipated by Q2 stated in the comments <strong><em>VERY </em></strong>conservative. Even &quot;experienced&quot; engineers get <em>this </em>wrong. Even more don't calculate heat sinking requirements correctly, especially for extreme ambient conditions. But then I've been a software guy for most of my career, so what do I know?</p>
<p>You're right in all you said.I designed thiscircuit quite a time ago andi've learnt a lot since then. I know how to calculate power dissipation and thermal resistance to ambient, and now i could do a much better job designing a similar circuit.</p><p>Thanks for your comment.</p>
<p>Hello, I was just looking through this, and I was just wondering if you could post an altogether parts list just to make viewing easier</p>
<p>Hello!, Thanks for the great tutorial, ive been looking for something like this for ages. Q - <br>witch components would i have to change to charge a 12v 8ah liion? for like 5amps? is it really just the heatsinks?</p><p>as i understand from the comments above the best way to charge a couple of 12v8ah batteries in the same time would be to build 2 chargers?<br><br>how would the circuit react if the power supply could not deliver enough amps?just charge in a slower rate?<br>Thanks again!!</p><p>r.</p>
<p>To charge a 12v 8Ah battery, you'll need to change the circuit quite a bit:</p><p>-Use a power supply that delivers 5A safely and has a voltage arround 3v greater the max charge voltage of your battery.</p><p>-You need to delete the bottom left part of the circuit schematic (the 2.5v rail generator) and tie all the 2.5v referenced points to ground .</p><p>-You can keep the other tip122 transistor, or use another darlington with greater current handling capabilities.</p><p>-Add a BIG heatsink to the transistor, and probably use a fan. (with the heatsink i have, i need a fan when the output is over 1A)</p><p>-Change the vcc-4.2v voltage reference for one that outputs vcc-(the max charge voltage of your battery) accurately.</p><p>-Change the 1ohm resistor for a 0.25ohm one, with same or greater power rating. (and then adjust the pot to give a 4-6A max current).</p>
<p>Hello, great reading, great work. Where can I find someone to hire who can design me a charging circuit similar but a little different. Or where can I purchase ready built pcb charging circuit with 12-16 volt input and 4.2 v output. It connects to a running vehicle (12-16v) and charges a 6.6 Ah lithium. The circuit that it runs is not a cell phone, but that circuit draws about 10-60 mAh, Please help. This is an excellent article. JR</p>
<p>I f you need a battery charger for a 6.6Ah li-ion battery powered from a 12-16v supply, You could probably get a cheap power supply with current and voltage limit,and set it to a max voltageof 4.2v and a max current of your battery capacity times the charging C-rate. In ebay there are switching power supplies with this characteristics for a reasonable price.</p><p>If you can't find anything that suits your needs, I could make some modifications to this circuit to work for higher currents.</p>
Hi, <br>I have a used laptop battery and i will make a led flashlight (i have a led chip 5watt/12v). Battery is li ion CGR18650CE 6cell 11,1v ( 2 cells paralel x 3 ).if i use this circuit and retaining the battery circuit as before( 11,1v), what are the components that should i change?<br><br>Thanks
You probably shouldn't use this circuit to charge a multicell battery; you need a specialized charger that balances the voltage of each cell.<br>Or use this circuit but charge cells one by one.
<p>Hi, what modifications can I use for charging by USB? Also, can I charge multiple bateries with just one circuit? Thanks for help</p>
You can use the circuit to charge several batteries inparallel.<br>You can use this circuit wit an input voltage of at least 9v, lower voltages would require a different circuit topology.
<p>How do I build a circuit which charges at the same time lets the battery connected to a load. This is similar to the scenario in a phone. I can use the phone and at the same time charge the battery.</p><p>If I connect the battery terminals at the same time as charging, both the voltages of battery output and the charging input ought to be the same? But battery output is supposed tobe 3.7V and charging voltage is 4.2/5.0 V . </p><p>Confused !! :-(</p>
<p>You can do thast with this circuit, just connect the batery and the circuit you want to power in parallel at the output of the charger, and adjust the limit current to half the capacity of the battery (0.5C) plus the current the circuit needs.</p>
<p>Thank you for your inputs. I am going to use this for my self docking robot.</p>
please tell me the role of capacitor C1 in the above circuit .
<p>It's there to prevent oscillation.</p>
okay. Thanks.
can I charge two or more lithium ion batteries in series using this circuit? if yes how?

About This Instructable

252,006views

343favorites

License:

Bio: I love electronics and all about DIY.
More by pinomelean:IN-12 nixie clock Li-ion battery charging Mini line tracer 
Add instructable to: