I have designed and published a variety of battery charger circuits in this website, however the readers often get confused while selecting the right battery charger circuit for their individual applications. And I have to explicitly explain each of the readers regarding how to customize the given battery charger circuit for their specific needs.
The entire compilation can be witnessed here:
This becomes quite time consuming, since it's the same thing that I have to explain to each of the readers from time to time.
This compelled me to publish this post where I have tried to explain a standard battery charger design and how to customize it in several ways to suit individual preferences in terms of voltage, current, auto-cut-off or semi-automatic operations.
- 1 Charging Battery Correctly is Crucial
- 1.1 Importance of Constant Voltage:
- 1.2 Constant Voltage Battery Charger Schematic
- 1.3 Adding a Constant Current
- 1.4 Schematic for CC and CV Controlled Battery Charger
- 1.5 Customizing current for charging a battery
- 1.6 Adding an Auto-Cut 0ff in Battery Charger
- 1.7 Adding Hysteresis
- 1.8 Recommended for You:
Charging Battery Correctly is Crucial
The three fundamental parameters that all batteries require in order to get charged optimally and safely are:
- Constant Voltage.
- Constant Current.
- Auto-cutoff .
So basically, these are the three fundamental things one needs to apply to successfully charge a battery and also make sure that the life of the battery is not affected in the process.
A few enhanced and optional conditions are:
and Step charging.
The above two criteria are especially recommended for Li-ion batteries, while these may not be so crucial for lead acid batteries (although there's' no harm in implementing it for the same)
Let's figure out the above conditions step wise and see how one may be able to customize the requirements as per the following instructions:
Importance of Constant Voltage:
All batteries are recommended to be charged at a voltage that may be approximately 17 to 18% higher than the printed battery voltage, and this level must not be increased or fluctuated by much.
Therefore for a 12V battery, the value comes to around 14.3V which should not be increased by much.
This requirement is referred to as the constant voltage requirement.
With the availability of a number voltage regulator ICs today, making a constant voltage charger is a matter of minutes.
The most popular among these ICs are the LM317 (1.5 amps), LM338 (5amps), LM396 (10 amps). All these are variable voltage regulator ICs, and allow the user to set any desired constant voltage anywhere from 1.25 to 32V (not for LM396).
You can use the IC LM338 which is suitable for most of the batteries for achieving a constant voltage.
Here's an example circuit which can be used for charging any battery between 1.25 and 32V with a constant voltage.
Constant Voltage Battery Charger Schematic
Varying the 5k pot enables setting of any desired constant voltage across the C2 capacitor (Vout) which can be used for charging a connected battery across these points.
Although a constant voltage may be necessary, in places where the voltage from an input AC mains does not vary too much (a 5% up/down is quite acceptable) one may entirely eliminate the above circuit and forget about the constant voltage factor.
This implies that we can simply use a correctly rated transformer for charging a battery without considering a constant voltage condition, provided the mains input is fairly dependable in terms of its fluctuations.
Today with the advent of SMPS devices, the above issue completely becomes immaterial since SMPS are all constant voltage power supplies and are highly reliable with their specs, so if an SMPS is available, the above LM338 circuit can be definitely eliminated.
But commonly an SMPS comes with a fixed voltage, so in that case customizing it for a particular battery might become an issue and you may have to opt for the versatile LM338 circuit as explained above.... or if you still want to avoid this, you may simply modify the SMPS circuit itself for acquiring the desired charging voltage.
The following section will explain the designing of a customized current control circuit for a specific, selected battery charger unit.
Adding a Constant Current
Just like the "constant voltage" parameter, the recommended charging current for a particular battery should not be increased or fluctuated by much.
For lead acid batteries, the charging rate should be approximately 1/10th or 2/10th of the printed AH (Ampere Hour) value of the battery. meaning if the battery is rated at say 100AH, then its charging current (amp) rate is recommended to be at 100/10 = 10 Ampere minimum or (100 x 2)/10 = 200/10 = 20 amp maximum, this figure should not be increased preferably to maintain healthy conditions for the battery.
However for Li-ion or Lipo batteries the criterion is entirely different, for these batteries the charging rate could be as high as their AH rate, meaning if the AH spec of a Li-ion battery is 2.2 AH then it's possible to charge it at the same level that is at 2.2 ampere rate Here you don't have to divide anything or indulge in any kind of calculations.
For implementing a constant current feature, again a LM338 becomes useful and can be configured for achieving the parameter with a high degree of accuracy.
I have discussed the subject comprehensively in one of my previous post named universal current limiter circuit.
The below given circuits show how the IC may be configured for implementing a current controlled battery charger.
Schematic for CC and CV Controlled Battery Charger
As discussed in the previous section, in case your input mains is fairly constant, then you can ignore the right hand side LM338 section, and simply use the left side current limiter circuit with either a transformer or an SMPS, as shown below:
In the above design, the transformer voltage may be rated at the battery voltage level, but after rectification it might yield a little above the specified battery charging voltage.
This issue can be neglected because the attached current control feature will force the voltage to automatically sink the excess voltage to the safe battery charging voltage level.
R1 can be customized as per the needs, by following the instructions furnished HERE
The diodes must be appropriately rated depending on the charging current, and preferably should be much higher than the specified charging current level.
Customizing current for charging a battery
In the above circuits the referred IC LM338 is rated to handle at the most 5 amps, which makes it suitable only for batteries upto 50 AH, however you may have much higher rated batteries in the order of 100 AH, 200 AH or even 500 AH.
These might require charging at the respective higher current rates which a single LM338 might not be able to suffice.
To remedy this one can upgrade or enhance the IC with more ICs in parallel as shown in the following example article:
In the above example, the configuration looks little complicated due to the inclusion of an opamp, however a little tinkering shows that actually the ICs can be directly added in parallel for multiplying the current output, provided that all the ICs are mounted over a common heatsink, see the below diagram:
Any number of ICs may be added in the shown format for achieving any desired current limit, however two things must be ensured in order to get an optimal response from the design:
All the ICs must be mounted over a common heatsink, and all the current limiting resistors (R1) must be fixed with a precisely matching value, both the parameters are required to enable an uniform heat sharing among the ICs and hence equal current distribution across the output for the connected battery.
So far we have learned regarding how to customize constant voltage and constant current for a specific battery charger application.
However without an auto cut-off a battery charger circuit may be just incomplete and quite unsafe.
So far in our battery charging tutorials we learned how to customize constant voltage parameter while building a battery charger, in the following sections we will try to understand how to implement a full charge auto cut off for assuring a safe charging for the connected battery.
Adding an Auto-Cut 0ff in Battery Charger
In this section we'll discover how an auto cut-off may be added to a battery charger which is one of the most crucial aspects in such circuits.
A simple auto cut-off stage can be included and customized in a selected battery charger circuit by incorporating an opamp comparator.
An opamp may be positioned to detect a rising battery voltage while it's being charged and cut off the charging voltage as soon as the voltage reaches the full charge level of the battery.
You might have already seen this implementation in most of the automatic battery charger circuits so far published in this blog.
The concept may be thoroughly understood with the help of the following explanation and the shown circuit GIF simulation:
In the above simulation effect we can see that an opamp is been configured as a battery voltage sensor for detecting the over charge threshold, and cutting off the supply to the battery as soon as this is detected.
The preset at pin (+) of the IC is adjusted such that at full battery voltage (14.3V here), the pin#3 acquires a shade higher potential than the pin (-) of the IC which is fixed with a reference voltage of 4.7V with a zener diode.
The previously explained "constant voltage" and "constant current" supply is connected to the circuit, and the battery via the N/C contact of the relay.
Initially the supply voltage and the battery both are switched off from the circuit.
First, the discharged battery is allowed to be connected to the circuit, as soon as this is done, the opamp detects a potential that's lower (10.5V as assumed here) than the full charge level, and due to this the RED LED comes ON, indicating that the battery is below the full charge level.
Next, the 14.3V input charging supply is switched ON.
As soon as this is done, the input instantly sinks down to the battery voltage, and attains the 10.5V level.
The charging procedure now gets initiated and the battery begins getting charged.
As the battery terminal voltage increases in the course of the charging, the pin (+) voltage also correspondingly increases.
And the moment the battery voltage reaches the full input level that is the 14.3V level, the pin (+) also proportionately attains a 4.8V which is just higher than the pin (-) voltage.
This instantly forces the opamp output to go high.
The RED LED now switches OFF, and the green LED illuminates, indicating the changeover action and also that the battery is fully charged.
However what may happen after this is not shown in the above simulation. We'll learn it through the following explanation:
As soon as the relay trips the battery terminal voltage will quickly tend to drop and restore to some lower level since a 12V battery will never hold a 14V level consistently and will try to attain a 12.8V mark approximately.
Now, due to this condition, the pin (+) voltage will again experience a drop below the reference level set by pin (-), which will yet again prompt the relay to switch OFF, and the charging process will be again initiated.
This ON/OFF toggling of the relay will keep on cycling making an undesirable "clicking" sound from the relay.
To avoid this it becomes imperative to add a hysteresis to the circuit.
This is done by introducing a high value resistor across the output and the (+) pin of the IC as shown below:
The addition of the above indicated hysteresis resistor prevents the relay oscillating ON/OFF at the threshold levels and latches the relay up to a certain period of time (until the battery voltage drops below the sustainable limit of this resistor value).
Higher value resistors provide lower latching periods while lower resistor provide higher hysteresis or higher latching period.
Thus from the above discussion we can understand how a correctly configured automatic battery cut-off circuit may be designed and customized by any hobbyist for his preferred battery charging specs.
Now lets see how the entire battery charger design may look including the constant voltage/current set up along with the above cut-off configuration:
So here's the completed customized battery charger circuit which can be used for charging any desired battery after setting it up as explained in our entire tutorial:
- The opamp can be a IC 741
- The preset = 10k preset
- both zener diodes can be = 4.7V, 1/2 watt
- zener resistor = 10k
- LED and transistor resistors can be also = 10k
- Transistor = BC547
- relay diode = 1N4007
- relay = select match the battery voltage.
Have further doubts? Do not hesitate to express them through your comments.