How to design a Battery charge indicator circuit

electronics-battery-level-indicator

Battery charge indicator circuits are very useful modules for efficient use of the Li batteries. These kind of indicators generally measures the voltage in the battery and indicate the charge by turning up any appropriate LED’s. But its not necessary you have to buy one of these modules to use your Li battery in a effective way. In fact you can build one with minimal components and little sweat.

Li BATTERIES:

Li batteries proves to be very useful source of power but for long lasting performance you need to look on to key parameters carefully. Li batteries should be used in such a way that always 20% of the battery’s charge is left before recharging it. Failure to that may cause the battery dead, so now you would’ve known that knowing the charge in the battery is very necessary to keep the battery alive. Let’s design a simple circuit to know the percentage of charge in a battery.

I am going to take a 12V Li battery and keeping it as an example , the design the battery charge indicator circuit is explained below. Now for a typical 12V battery the voltage at various charge levels will be

Voltage measured Charge Level
13.5V 100%
12.5V 75%
11.5V 50%
10.5V 25%

You can find these details in the datasheet of the manufacturer, almost all 12V batteries carries the same properties but datasheet is always worth looking for.

BATTERY CHARGE INDICATOR DESIGN:

battery-charge-indicator-circuit-diagram-opamp

 

WORKING AND CALCULATION:

The Voltage measured to the corresponding charge levels forms very important reference to the above circuit. For easier understanding let’s analyze the circuit in a step by step manner. Initially connect the battery for charge testing to the circuit. Once it is connected a 1N4733A a 5.1V, 1W Zener diode is used to regulate the voltage along with a series resistor R1 which controls the current flow through zener. Thus we obtained a output voltage of about regulated 5.1V from the battery.

A quad Opamp IC LM324 was used as an comparator or activator for the charge indication LED’s. We have used U1:A with Blue LED for 100% indication, U1:B with Green for 75%, U1:C with Yellow for 50% and U1:D with Red for 25% of charge level. Using the status of the LED’s the charge level of the battery is determined.

The next step is to fix the reference voltage for each charge levels 100%,75%,50% and 25%. In order to fix the reference voltage for these charge levels a simple voltage divider is constructed using the resistors R2,R3,R4,R5 and R6. The voltage obtained from these dividers in turn feeds the reference voltage to the individual Opamp U1:A,U1:B…U1:D. The calculation for fixing the reference voltage for U1:A as follows

Vout = (R3+R4+R5+R6) * Vin / (R2+R3+R4+R5+R6)   – Voltage divider formula

       = 15K * 5.1V / 17K

       = 4.5V

So the voltage reference for 100% of battery charge is fixed as 4.5V. For fixing 75% of battery charge the voltage divider equation takes the form

Vout = (R4+R5+R6) * Vin / (R2+R3+R4+R5+R6)

        = 14K * 5.1 / 17K 

        = 4.2 V

4.2V is the reference voltage to the Opamp U1:B which is for 75% of battery charge indication. Repeating the above procedure gives 3.9V  for 50% to U1:C and 3.6V for 25% to U1:D. We have now fixed the reference voltage for the Opamp’s U1:A to U1:D for 100% to 25% charge indication.

Next we have set up a voltage divider made up of R7 and R9 to measure the battery voltage and feed it to the “-” input of all the Opamps. Now lets consider the four levels of voltage we obtained from the datasheet. Now when the battery voltage is 13.5 then the input voltage of the opamp will be

Vout = 13.5 * R9/ (R9 + R7)

       = 4.517V

Now this voltage is greater than the fixed reference voltage 4.5 for 100% of the battery charge. Therefore the output of U1:A goes low and Blue coloured LED lights up indicating that 100% of charge is available in the battery. Say now the battery voltage is 12.5 (75% of charge) then the voltage to the U1:B will be 4.22 this exceeds the reference voltage 4.2V therefore the green LED lights up indicating 75% of charge available.

By this way Yellow and Red LED lights up when the voltage drops to 11.5 and 10.5 respectively. When the RED led lights up its time to recharge the battery, kind of a warning. In this circuit LED’s corresponding to the charge level and below that lights up therefore serving as kind of a meter to indicate the level of charge.

BLUE – 100%

GREEN   –  75%

YELLOW   –  50% 

RED  –  25%

PCB DESIGN:

battery-charge-indicator-pcb-design

PCB design : Hitontechnologies

You can download the design file from the below file banner.

Battery Charge Indicator
Battery Charge Indicator
Battery-charge-indicator_2.zip
400.3 KB
1651 Downloads
Details

NOTE:

  • The diode D2 is meant to prevent the reverse flow of current from battery which could damage the IC chip.
  • The Capacitor C1 is used to remove ripples from the power supply.
  • Now you know how to implement the design for battery charge indicator, now grab the datasheet for your battery put down the calculations and build your circuit.

20 Comments

  1. Masud Husen Mamun

    Thanks for sharing <3

    Reply
    1. Frank DonaldFrank Donald (Post author)

      Welcome

      Reply
  2. vinod H R

    what is the general formula to calculate the value of resistor for different voltage levels?? please replay.Thank you happy learning.

    Reply
    1. Frank DonaldFrank Donald (Post author)

      Hi Vinod,

      We have to use the Voltage divider formula Vout = R2 x Vin / ( R1 + R2 ) . Here in this article we are using multiple resistors therefore you will see more than two resistors in the above formula
      Vout = (R3+R4+R5+R6) * Vin / (R2+R3+R4+R5+R6)

      The calculation is explained in detail in the article. Kindly go through it.

      Reply
  3. Amine

    Hello, thanks for the article.
    I can practice this circuit in battery 18V with the change of the resistors value?

    Reply
    1. Frank DonaldFrank Donald (Post author)

      Hi Amine,
      Yes you can use it for 18V battery but you have to define your battery voltage at different conditions and use the voltage divider equation to fix the resistors.

      Reply
  4. Connor

    What resistors used in Li-ion battery 4.2-3.0V

    Reply
    1. Ruddogster

      I would like to see this for 4.2-3.0v as well.

      Reply
      1. Frank DonaldFrank Donald (Post author)

        Sorry totally missed this comment Connor.
        Hey Ruddogster,
        Can you specify the four voltage points that you need the indicators for in 3-4.2v ?

        Reply
  5. Jose

    I want to build this circuit for 9V batteries what values do I need to change? Also is there a way to modify this circuit to work for various batteries of different voltage ratings? Thanks!

    Reply
  6. Connor

    Hi, thanks for the article. Not sure if you’ll reply to this because it seems to be over 6 month you wrote this. However, if I want to change the value as below,
    100%-12.5V
    75%-11.5V
    50%-10.5V
    25%-9.5V
    What values needs to be changed in the circuit?

    Reply
    1. Frank DonaldFrank Donald (Post author)

      Connor,
      You need to alter the resistor values as follows
      R2 – 1.1K
      R3 – 400 ohms
      R4 – 390 ohms
      R5 – 510 Ohms
      R6 – 3.6k

      You can substitute to the nearest value resistor if you don’t find the exact one given above. You might not the exact voltage ref fixed by voltage divider R7 and R9 but due to resistance levels but overall the circuit will work just fine

      Reply
      1. vinod H R

        hello sir, i tried with above values in simulator but it is not working, can you please check where i could i have gone wrong

        Reply
      2. vinod H R

        can you please tell me,
        how did you calculate the value of resistor?? what is the general formula to obtain the value of resistor.

        Reply
      3. huzefa

        sir how did you calculate the value of these resistances

        Reply
        1. Frank DonaldFrank Donald (Post author)

          Hi Huzefa,
          The calculation was explained in the article. Hope it helps

          Reply
  7. brewtechnik

    Thank you for the article! This is a neat circuit.
    Just want to check your calculations for lighting yellow and red…
    At 50% batt (11.5V), the R7 & R9 voltage divider would produce 3.8V, which is LESS that your provided reference voltage of 3.9V at pin9. (no light)
    And for the 25% red LED (10.5V), the R7 & R9 divider provides 3.5V at pin13 with a 3.6V provided reference voltage at pin12. (no light).
    Did I miss something? Cheers!

    Reply
    1. Frank DonaldFrank Donald (Post author)

      Hi Brewtehcnik,

      Yes you are right. I have done a slight miscalculation in this circuit. But it won’t make much difference in the functionality of the circuit. All the charge voltages i have mentioned in the article is based on approximation. The circuit works this way if the battery is at 75% all the green,yellow and Red will lit up which indicates the battery still holds 75% of charge. Likewise when comes to 50% battery level, the circuit still gives effective output indicating 51% or 53% of charge may be which is still good.

      Reply
      1. Robert

        Could R7 and R9 be replaced with single resister, and another zener diode (say a 9.1 or 10v version) to keep the voltage constant, and then recalculate the R2-R6 divider accordingly? Kinda new to this but would also like to make this circuit.

        Reply
        1. Frank DonaldFrank Donald (Post author)

          Hi Robert,

          Yes that approach can work as well 🙂

          Reply

Leave a Comment

Your email address will not be published. Required fields are marked *