• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Battery Charger Circuits / Arduino Battery Level Indicator Circuit

Arduino Battery Level Indicator Circuit

Last Updated on April 14, 2020 by Swagatam 96 Comments

In this post, I will show how to construct an Arduino based  battery level indicator, where a series of 6 LEDs show the level of the battery. If you are interested in monitoring and maintenance of your 12V battery, this circuit might become handy.

Why Battery Level Monitoring is Crucial

All batteries have certain voltage limit to discharge, if it goes beyond the prescribed limit, the life span of the battery will reduce drastically.

Being electronics enthusiasts, we all might have a battery for testing our prototype circuits. Since we concentrate on the prototype during experiment, we care less on the battery.

The proposed battery charger circuit will show you how much energy left in the battery, this circuit may be connected to battery, while you prototyping your circuits. When this circuit indicates low battery, you may put the battery to charge. The circuit has 6 LEDs, one LED glow at a time to indicate the voltage level of the battery.

If your battery is full, the left most LED glows and you battery is dead or about to die, the right most LED glows.

How it Works

LED battery level indicator using Arduino code

The circuit consists of Arduino which is the brain of the system, a potential divider which helps the Arduino to sample the input voltage. A pre-set resistor is used to calibrate the above setup. The series of 6 LEDs will indicate the battery level.

Calibrating LED Indicators

The relation between LED and battery level is given below:

LED1 – 100% to 80%

LED2 – 80% to 60%

LED3 – 60% to 40%

LED4 – 40% to 20%

LED5 – 20% to 5%

LED6 - <5% (charge your battery)

The Arduino measures a narrow range of voltage from 12.70V to 11.90V. A fully charged battery should have voltage above 12.70V after disconnecting from charger. A low battery voltage must not go below 11.90V for a 12V sealed lead-acid battery.

Author’s prototype:

Arduino Battery level indicator prototype

Program Code:

//--------Program developed by R.Girish---------//
int analogInput = 0;
int f=2;
int e=3;
int d=4;
int c=5;
int b=6;
int a=7;
int s=13;
float vout = 0.0;
float vin = 0.0;
float R1 = 100000;
float R2 = 10000;
int value = 0;
void setup()
{
Serial.begin(9600);
pinMode(analogInput,INPUT);
pinMode(s,OUTPUT);
pinMode(a,OUTPUT);
pinMode(b,OUTPUT);
pinMode(c,OUTPUT);
pinMode(d,OUTPUT);
pinMode(e,OUTPUT);
pinMode(f,OUTPUT);
digitalWrite(s,LOW);
digitalWrite(a,HIGH);
delay(500);
digitalWrite(b,HIGH);
delay(500);
digitalWrite(c,HIGH);
delay(500);
digitalWrite(d,HIGH);
delay(500);
digitalWrite(e,HIGH);
delay(500);
digitalWrite(f,HIGH);
delay(500);
digitalWrite(a,LOW);
digitalWrite(b,LOW);
digitalWrite(c,LOW);
digitalWrite(d,LOW);
digitalWrite(e,LOW);
digitalWrite(f,LOW);
}
void loop()
{
value = analogRead(analogInput);
vout = (value * 5.0) / 1024;
vin = vout / (R2/(R1+R2));
Serial.println("Input Voltage = ");
Serial.println(vin);
if(vin>12.46) {digitalWrite(a,HIGH);}
else { digitalWrite(a,LOW);}
if(vin<=12.46 && vin>12.28) {digitalWrite(b,HIGH);}
else { digitalWrite(b,LOW);}
if(vin<=12.28 && vin>12.12) {digitalWrite(c,HIGH);}
else { digitalWrite(c,LOW);}
if(vin<=12.12 && vin>11.98) {digitalWrite(d,HIGH);}
else { digitalWrite(d,LOW);}
if(vin<=11.98 && vin>11.90){digitalWrite(e,HIGH);}
else {digitalWrite(e,LOW);}
if(vin<=11.90) {digitalWrite(f,HIGH);}
else {digitalWrite(f,LOW);}
delay(2000);
}
//--------Program developed by R.Girish---------//

How to Setup the circuit:

The calibration for this Arduino 6 LED battery level indicator circuit must be done carefully, if you did not calibrate correctly, the circuit will show incorrect voltage level of the battery.

When you turn on the circuit, it starts with LED test, where the LEDs glow up sequentially with some delay. This might help you to debug errors while arranging the LEDs.

1)    Set the voltage of your variable power supply to precisely to 12.50V.

2)    Open the serial monitor.

3)    Rotate the preset resistor clock wise or counter clock wise and bring the readings to 12.50V.

4)    Now, reduce the variable power supply to 12.00V, the readings on the serial monitor should show the same or very close to 12.00V

5)    Now, increase the voltage to 13.00V, the readings on serial monitor should also show the same or very close.

6)    At the same time when you increase or decrease the voltage, the each LED should turn on/off with different voltage levels.

Once the above steps are done successfully, your battery level indicator circuit will be ready to serve the intended purpose.

Adding an Auto Cut Off

The above explained Arduino battery level indicator circuit can be further enhanced by including an automatic battery full charge cut-off facility.

The following figure shows how this may be implemented in the existing design:

Arduino battery charger with auto cut

You'll also like:

  • 1.  Simple SCR Battery Charger Circuit
  • 2.  3 Smart Li-Ion Battery Chargers using TP4056, IC LP2951, IC LM3622
  • 3.  High Current Solar Battery Charger Circuit – 25 Amps
  • 4.  5 Best 6V 4Ah Automatic Battery Charger Circuits Using Relay and MOSFET
  • 5.  What is T856-C Power Bank Module? How to Connect
  • 6.  5 Simple Power Bank Circuits for Mobile Phones

About Swagatam

I am an electronics engineer with over 15 years of hands-on experience. I am passionate about inventing, designing electronic circuits and PCBs, and helping hobbyists bring their projects to life. That is why I founded homemade-circuits.com, a website where I share innovative circuit ideas and tutorials. Have a circuit related question? Leave a comment.... I guarantee a reply!

Previous Post: « 1.5V Power Supply Circuit Diagram for Wall Clock
Next Post: Material Storage Level Controller Circuit »

Reader Interactions

Comments

  1. Nitesh Agrawal says

    March 14, 2025 at 2:40 pm

    Dear Sir
    i have 90000 mah ,5v capacity PB & Google Pixel 7a model mobile.
    i want to make switcher kit . when Battery goes below 80% level then switcher start and power bank voltage goes to mobile phone battery & when Mobile battery goes 100% it cutoff.
    i want to use mcu but facing hardware problem for proper design what to do ,can u please guide how can mcu & which mosfet work proper.? i have also idea about adc level. So i first detect 80% level with help of resister divider network as a ref level of 80 to 100% & that voltage fed to mcu adc pin . but from mcu to mosfet switching for control i have less idea of good choice ckt

    Reply
    • Swagatam says

      March 14, 2025 at 6:18 pm

      Hi Nitesh,
      Sorry, Unfortunately my knowledge of Arduino is also not good, so programming the code may not be possible for me too!!

      Reply
      • Nitesh Agrawal says

        March 15, 2025 at 10:40 am

        Dear Sir
        ok Thanks

        Reply
    • Nitesh Agrawal says

      March 16, 2025 at 2:23 pm

      Dear
      can we check mobile battery level ( volt )on TYPE C pin without connect charger? i want to use that volt as a ref so in application.

      Reply
      • Swagatam says

        March 16, 2025 at 2:49 pm

        Nitesh, Frankly i have no idea about it, however my guess is, that may not be possible.

        Reply
        • Nitesh Agrawal says

          March 16, 2025 at 6:33 pm

          Dear Sir.
          Yes it not possible . Mobile mfg did not give us direct bat ref voltage on C pin . we must be design mobile bluethooth app & control .Via this methode may be

          Reply
          • Swagatam says

            March 17, 2025 at 8:07 am

            Yes Nitesh, you are right, unfortunately that is not possible.

            Reply
  2. Jaiprakash says

    October 14, 2023 at 11:11 pm

    Sir agar mujhe led 48 volt or 60 volt se operate Krna ho toh uska programe or stecmatric kya hoga
    M cahata hu bettry jb ki bettry 48 volt ki h
    Current 42 pr red bettry
    48 volt tak full green ho jaye
    Konsa micro controller use kre

    Reply
    • Swagatam says

      October 15, 2023 at 10:46 am

      Jaiprakash,
      Since I am not good with Arduino I am not sure whether the above circuit can be used with a 48V battery or not.
      Why don’t to try an analogue circuit using an IC such as LM324, it would be much easier to assemble and the results would be fail proof.

      Reply
  3. Arjay Luna says

    March 23, 2022 at 11:38 am

    Hi… please can u post a video of this circuit functioning.. i find it difficult to install to my project

    Reply
  4. Prasant Kumar says

    June 16, 2021 at 8:10 pm

    Please tell me, will it work for 96V Battery system. If yes please suggest the changes need to be done.. It is very helpful for me..

    Reply
    • Swagatam says

      June 17, 2021 at 12:29 pm

      I won’t recommend this circuit for monitoring a 96V battery

      Reply
      • Alamgir says

        August 6, 2021 at 3:08 am

        Hi Swagatam
        Do you suggest monitoring a 48 V battery?

        Reply
        • Swagatam says

          August 6, 2021 at 9:02 am

          Hi Alamgir, I do not recommend 48V charging for the above concept.

          Reply
          • satya says

            December 20, 2021 at 10:16 am

            hello sir, satya here can you send me the solar powered mobile power bank system connected to loads….circuit diagram using arduino i’m waiting for your best reply

            Reply
            • Swagatam says

              December 20, 2021 at 1:16 pm

              Hello Satya, I am not an Arduino expert so I can’t help you with Arduino related projects.

              Reply
  5. Nurlina Azmi says

    April 10, 2021 at 3:32 pm

    Hello sir. My name is Nurlina.
    I have a question.
    What is the purpose of the 10k preset resistor? (sorry i just started learning this).
    and i wish to use this circuit for a 3.7v li-ion battery with a capacity of 20000mAh, which part of the coding should i alter in order for my circuit to function well?

    Reply
    • Swagatam says

      April 11, 2021 at 8:52 am

      Hello Nurlina, The perset is for calibrating the LEDs so that they the exact reading for the different voltage levels.
      Sorry, regarding the coding I do not have much ideas!

      Reply
      • Nurlina Azmi says

        April 13, 2021 at 9:47 pm

        thank you for answering my first question, but i actually have a few more to ask.
        1) what is the function of 100K resistor?
        2) can i use 320ohm resistor instead for the led if i dont have any 330ohm?
        3) why did u set different voltage value during calibration for the led from the one you write in you program?

        Reply
        • Swagatam says

          April 14, 2021 at 8:17 am

          The 100k is for forming a potential divider with the 10k preset for feeding a voltage reference level to the specific Arduino pin
          320 ohm will also work
          The article was written by another author, so I cannot suggest much on the corrections. You must build it and test it practically to learn the precise working of the circuit

          Reply
  6. Tyler Morgan says

    December 10, 2020 at 10:13 pm

    Hi Swagatam, thank you for your battery level indicator. I want to use this with a tweak. I don’t know how to write the program but I need if for a 9 volt battery and I need it to work with 5 LED’s. I also need the LED’s to be able to dim with a potentiometer from 100% bright to 0% (completely dark). One last thing, I wonder if this can work with Arduino Nano. That would be even better. Do you think you can help me with that? I will be eternally grateful. Keep up the good work.

    Reply
    • Swagatam says

      December 11, 2020 at 11:01 am

      Thank you Tyler, however, my Arduino knowledge is also not good enough, so I won’t be able to guide you with the required code modifications, and related info!!

      Reply
    • Dyana says

      November 1, 2022 at 6:10 pm

      Hello I’ve question, can it use to charge mobile phone by adding USB adapter? Or just only the battery?

      Reply
  7. Chavan Swaraj Balasaheb says

    April 13, 2020 at 8:04 pm

    Hello sir,
    I’m Swaraj Chavan.
    I have a question???
    What is the role of 330ohm resistance in the circuit??

    Reply
    • Swagatam says

      April 14, 2020 at 8:29 am

      Swaraj, it is to protect the LEDs from over current.

      Reply
      • Chavan Swaraj Balasaheb says

        April 14, 2020 at 9:13 am

        Thank you!
        Can you suggest me battery Level indicator circuit for 3.7v 2.6Ah lithium ion battery cell??
        Project detail :- We have made a charging station project for electric bikes.
        In this project we develop a battery charging circuit.
        This is a prototype project. we used Li-Ion( 3.7v , 2.6Ah ) batteries. Can we use Arduino Uno to protect the battery from overcharging ? Or
        Can we use Arduino Uno to show how much battery is charged?
        When the battery is fully charged, the battery will automatically disconnect from supply with the help of Arduino Uno. Whether this is possible or not by using Arduino Uno.
        Please suggest us right way..

        Reply
        • Swagatam says

          April 14, 2020 at 1:57 pm

          You can try the same circuit which is explained in the above article, just replace the battery with your 3.7V li-ion, and replace the supply input with 6V 1 amp charging supply. Make sure to provide the Arduino with a separate 5 V supply.

          For auto cut you can use the last updated design

          Reply
          • Chavan Swaraj Balasaheb says

            April 14, 2020 at 2:22 pm

            Thank you

            Reply
  8. Abhi says

    February 2, 2020 at 11:46 am

    hi sir,
    Instead of led can we use an LCD to display the percentage of battery charge and also can we make automatically control the Charging of battery like if it’s become 100% automatically stop of charging and when it becomes 10% it as to start charging .

    Reply
    • Swagatam says

      February 2, 2020 at 1:16 pm

      Hi Abhi, I am not good with Arduino coding, so I do not have much idea about LCD integration. For automatic battery cut off the respective LED stages can be configured with a relay driver stage for the required operations

      Reply
  9. SaiRam says

    September 20, 2019 at 11:37 am

    Sir this circuit possible to measure battery life of 12V lithium or li-ion batteries

    Reply
    • Swagatam says

      September 20, 2019 at 12:07 pm

      Yes it can be used for measuring the battery LEVEL of any 12 V battery

      Reply
  10. Anwar says

    June 25, 2019 at 9:54 am

    Sir, is it possible if you want to read the voltage of 2 separate batteries simultaneously with Arduino?

    Reply
    • Swagatam says

      June 25, 2019 at 11:17 am

      Anwar, sorry I am not very sure about it!

      Reply
      • Anwar says

        June 25, 2019 at 12:43 pm

        okay sir, thank you for your answer

        Reply
  11. honesty says

    May 17, 2019 at 7:14 pm

    sir i intend to construct a battery percentage monitor for a led lamp. how possible is this and how can i go about it?

    Reply
    • Swagatam says

      May 18, 2019 at 8:45 am

      You can use the same circuit which is explained above for your application

      Reply
      • Vysakh says

        February 22, 2020 at 8:12 pm

        Sir can I use the nrf module codes and this codes in the same arduino

        Reply
        • Swagatam says

          February 23, 2020 at 9:21 am

          Sorry Vysakh, I have no idea about it.

          Reply
  12. sheraz says

    May 9, 2019 at 5:51 pm

    Hi sir! dear sir i want to add hysteresis feature to this battery monitor so that battery upper threshold level (cut off point) = 14.4v, lower threshold level(charging start point) = 12v by adding a relay to a battery charger with the same led display using arduino. my problem is what to do with the code to add hysteresis feature so that when the battery full it my not start charging until it reach back to 12v?

    Reply
    • Swagatam says

      May 9, 2019 at 8:54 pm

      Hi Sheraz, actually code modification may not be required, it could be easily done through an external opamp circuit, if possible I’ll try to update it soon….

      Reply
  13. Melchior says

    March 19, 2019 at 10:09 am

    Hy mr.Swagatam
    i have home work to do project about controller baterry/automatic charging using Arduino Uno,MOSFET/Transistor and Voltage sensor…
    i’m still confuged in arduino program code during charger and dischsarge….
    may you help me…

    Reply
    • Swagatam says

      March 19, 2019 at 10:50 am

      Hi Melchior, the above circuit can be easily converted into an auto cut-off system by integrating a mosfet stage with the appropriately selected outputs from the Arduino.

      Let me know if you want me to do this modification in the above circuit??

      Reply
      • Melchior says

        April 3, 2019 at 8:07 am

        Thank you so much for your help…
        I tried the program first …
        if there is still a problem I will consult again with you …

        once again
        thank you very much for your kindness, have helped me

        Reply
        • Swagatam says

          April 3, 2019 at 8:59 am

          OK, no problem!

          Reply
  14. sheraz ahmad says

    January 1, 2019 at 10:09 pm

    Hi sir! dear sir how can we detect the presence of a 12v battery & the charger say 12v-10amp smps charging that 12v battery using arduino at the same time? my problem is if arduino adc channel measure the voltage using led display between battery terminals while connected to battery then the circuit is correct but if we disconnect battery from the charger how the arduino will detect the absence of charger terminal at battery terminal? i mean how arduino will detect presence or absence of charger at battery terminals?

    Reply
    • Swagatam says

      January 2, 2019 at 6:40 am

      Hi Sheraz, When you connect an external voltage to a battery, the external voltage will sink and merge with the battery voltage to become a common voltage.

      Suppose your battery is at 11V, and if you connect a 12V to it, then this 12V will instantly drop to 11V across the battery terminals, and then the battery will begin absorbing this voltage and charge until its terminal voltage reaches 12V. Once this happens, the charging will stop and both the sources will continue to be at this level as long as they are connected together.

      Similarly, if you connect 14V, the final voltage will settle at 14V while the charger is connected.

      So the only way to distinguish whether a charger is connected or not is through a current sensor stage, because the battery will begin drawing current from the charger while it’s being charged and this could be used for monitoring the presence or absence of the charger input.

      Reply
      • sheraz ahmad says

        January 2, 2019 at 9:37 pm

        sir i ‘m going to implement 10amp-12v smps design with an additional auto cutoff circuit using atmega8 and by placing 4 leds for 25%, 50%, 75% & finally 100% i will display this percent using atmega8 adc channel, like the circuit you presented in this article, i think if we power the atmega8 circuit by getting 5v from charger terminal by using some regulator then we will have to still use current sense circuit to know that whether battery is charging or not. without current sense circuit the display with also show that battery is 100% charge because the controller may sense the 12v-volt at the charger terminal if battery is disconnected. you are right sir by using current sense circuit this problem can be corrected.

        Reply
        • Swagatam says

          January 3, 2019 at 8:31 am

          That’s right Sheraz, I think the following concept could be modified for achieving current based cut off.

          https://www.homemade-circuits.com/2015/04/battery-current-indicator-circuit.html

          Reply
  15. ALLAN Q. GUILLERMO says

    October 8, 2018 at 2:59 pm

    Hello Sir, may I ask a favor again to help me design a circuit for me to control my three-phase motor using remote control thank you and God bless,..

    Reply
    • Swagatam says

      October 8, 2018 at 5:37 pm

      Hello Allan, I already have one related post in my website, which you can refer and try it out:

      https://www.homemade-circuits.com/3-phase-induction-motor-speed/

      remote control can be integrated once you successfully built the basic model as explained above.

      Reply
  16. ALLAN says

    October 8, 2018 at 2:53 pm

    hello Sir, kindly suggest a circuit of your own design which useful to control 3 phase motor by not just merely using start-stop that can easily be worn out due to sparks and may I ask further if can I make it wireless thanks…

    Reply
  17. anu says

    March 14, 2018 at 6:15 pm

    we are getting 54.59 as a input voltage which was displayed in the monitor

    Reply
    • Swagatam says

      March 14, 2018 at 6:21 pm

      sorry, could not understand your problem correctly, please explain it elaborately

      Reply
  18. Anupriya says

    March 10, 2018 at 11:54 am

    if it is possible can you please tell me

    Reply
    • Swagatam says

      March 10, 2018 at 1:20 pm

      I will have to contact the programmer for the customization, and therefore will be a paid service.

      Reply
  19. Anupriya says

    March 9, 2018 at 5:52 pm

    HI, In this the voltage level is indicated in the form of a LED. If it is possible to get the voltage level in the digital format

    Reply
    • Swagatam says

      March 10, 2018 at 10:00 am

      Hi, it will require modifying the entire code and may not be possible at the moment…

      Reply
  20. PolloB says

    December 21, 2017 at 7:09 pm

    sir,please give PIC Microcontroller based 12V battery capacity led level meter with charge controll.thanks

    Reply
    • Swagatam says

      December 22, 2017 at 8:26 am

      Hi Pollo, presently I do not have this design, If I find one I’ll let you know…

      Reply
  21. joel wanjala says

    November 10, 2017 at 12:16 pm

    what if i want to indicate the battery level in percentage form on an lcd display instead of using LEDS, what can i do?? please advice

    Reply
    • Swagatam says

      November 10, 2017 at 2:32 pm

      Mr.GR will answer your question soon…

      Reply
      • GR says

        November 10, 2017 at 3:38 pm

        Hi joel,

        Let me do some research on this, if it is possible to read between 0 to 100% voltage range. I will post a design soon.

        Regards

        Reply
  22. Dinusha says

    August 13, 2017 at 10:39 pm

    Thank you sir.
    Actually I want to design a controller circuit for stand alone pv system to energize the 12V DC bus. This controller must have the MPPT (with P & O algorithm). normally systems disconnected at the overcharging and over discharging the 12V battery.
    I want to design a controller to disconnect MPPT at the battery charging is greater than the 95% ,then it track the voltage without MPPT until 100% charging. if the charging level less than the 95% then it connect to the MPPT again. can it do this by using arduino. ?
    {i want to prevent the problem of cut off the MPPT at the No-load and fix this disconnection & re-connection in smoothly}

    Reply
    • Swagatam says

      August 14, 2017 at 3:28 am

      Dinuasha, if your requirement is to keep the charging thresholds within the margin of 100% and 95%, then I think it could be done with a simple opamp circuit, using Arduino will be an overkill for such a a simple operation.

      Reply
  23. Dinusha says

    August 11, 2017 at 6:56 pm

    Dear sir,
    Is it only use the battery terminal voltage as input? can i used this for stand alone PV system (12V battery monitoring)?.Because I want to disconnect the battery from the load or pv array at the required charging levels.

    Reply
    • Swagatam says

      August 12, 2017 at 5:13 am

      Dear Dinusha,

      Yes you can use it separately for monitoring battery only, the Arduino can be powered from the battery under monitor.

      Reply
  24. Gizem Yılmaz says

    July 13, 2017 at 8:11 am

    Hi,
    I need to do battery level circuit for my intern project. The will be 5v at the input and there will be five leds. For example if there is 1v just one of the leds will light then for 2v first two of themcan you help me about this?

    Reply
    • Swagatam says

      July 13, 2017 at 2:25 pm

      Hi, Mr, GR will be able to advise you better, I'll forward the question him soon….

      Reply
    • GR says

      July 13, 2017 at 2:49 pm

      Hi, Gizem

      Are you sure about your design, because a 5V (4.5v etc) battery should not be allowed to fall to 1 Volt and most of the circuit will only work above 3V in general.

      I will design a circuit for you, if you want me to proceed with your requirements.

      Regards

      Reply
  25. GR says

    May 9, 2017 at 12:25 pm

    Hi faizan,

    You cannot calibrate the circuit for li-ion battery as the program is written for 12V battries only.

    That's why you are getting unusual voltage readings on serial monitor when you connect the charger.

    If you are looking for li-ion based projects this is not the right one.

    Regards

    Reply
  26. Faizan Hamayun says

    May 9, 2017 at 7:07 am

    OK if i calibrate for Li battery but once charging circuit connects what will be the changes to be done to detect original voltage of battery under charge? instead it add up the battery voltage with the charging circuit voltage.

    Reply
  27. Faizan Hamayun says

    May 8, 2017 at 10:05 am

    Waiting for the reply anxiously.

    Reply
    • Swagatam says

      May 8, 2017 at 2:52 pm

      Please refer to your previous comment above, for the reply….

      Reply
  28. Unknown says

    April 27, 2017 at 6:38 pm

    hy sir i make circuit same as above but the serial monitor shows 20+ reading without battery.
    and only secondary battery are use.

    Reply
    • GR says

      May 8, 2017 at 1:16 pm

      Hi Unknown….LOL 🙂

      Please elaborate your issues and please comment you problem in a way that others can understand.

      Regards

      Reply
  29. Faizan Hamayun says

    April 25, 2017 at 8:22 am

    Its adding battery voltage as well

    Reply
  30. Faizan Hamayun says

    April 25, 2017 at 6:27 am

    hello i have calibrated the circuit FOR LITHIUM ION battery charger i have connected the charger it shows 4.2v when no battery and when a 3.7v battery attached to it the serial monitor shows voltage more then 4.7v what to do?.Why it is not showing correct charging voltage or do i need to change the formula?

    Reply
    • Swagatam says

      April 25, 2017 at 8:27 am

      Hello, Mr. GR will hopefully see your question here and respond appropriately….please be patient.

      Reply
    • GR says

      May 8, 2017 at 1:12 pm

      Hi, Faizan,

      The circuit is NOT designed for Li-ion batteries, it is proposed for 12V SLA batteries.

      The code is written for 12V batteries and will not monitor 3.7V Li-ion batteries.

      Do not charge your batteries along with this circuit. It is designed to monitor the battery only on discharge.

      Please read the article properly, this will keep most of the misunderstanding about the project at bay .

      Regards

      Reply
  31. Faizan Hamayun says

    April 4, 2017 at 1:51 pm

    If a dead battery attached to this circuit but the battery is also attached to the charging circuit how can we get low battery indication?.As charger output is above 13v so the green LED ON instead of red LED.What to do?

    Reply
    • Swagatam says

      April 5, 2017 at 2:43 am

      when a good battery is connected the supply voltage will instantly go down and settle down to the battery discharge level…but for a dead battery this might not happen and will indicate something's wrong with the battery.

      Reply
    • GR says

      May 8, 2017 at 1:20 pm

      Hi, Faizan

      Do not charge your battery along with this circuit, it won't indicate the correct battery level.

      Regards.

      Reply
    • Atuh Gabriel says

      May 3, 2019 at 7:46 pm

      Please, can u help me with circuit diagram of a 12 volt battery charger with an automatic cut off

      Reply
      • Swagatam says

        May 3, 2019 at 7:59 pm

        Atuh, you can try the following designs:

        https://www.homemade-circuits.com/opamp-low-high-battery-charger/

        Reply
  32. isaac umoh says

    April 1, 2017 at 11:11 pm

    Good evening….please sir how can i make the led to be constantly ON but Turn OFF when the battery is LOW

    Reply
  33. Akhil Singh says

    March 31, 2017 at 9:48 am

    can you provide a circuit for solar panel powered battery charging circuit that charges 12V 7Ah battery

    Reply
    • Swagatam says

      March 31, 2017 at 12:25 pm

      you can make the following circuit:

      https://www.homemade-circuits.com/2012/04/how-to-make-solar-battery-charger.html

      adjust the 10K to get exactly 14V for the battery, and use an input of 15V at 1 amp

      Reply
  34. Faizan Hamayun says

    March 28, 2017 at 5:35 am

    I only need one LED to indicate so small opamp like lm393 can be use?.Please suggest a circuit.

    Reply
    • Swagatam says

      March 28, 2017 at 2:12 pm

      you can try the following concept, keep only one opamp instead of the shown 4

      https://www.homemade-circuits.com/2015/04/battery-current-indicator-circuit.html

      Reply
    • Swagatam says

      March 28, 2017 at 2:16 pm

      ….connect the LED cathode to the input supply ground line.

      LED will ON for good battery and OFF for bad battery…for an opposite response connect the LED across opamp output and positive line.

      Reply
  35. Faizan Hamayun says

    March 28, 2017 at 5:16 am

    Can this be done using arduino with less parts i want to achieve the result.

    Reply
  36. Faizan Hamayun says

    March 27, 2017 at 1:05 pm

    Hello;
    I have been searching for a circuit that can detect if lithium ion 4.2v rechargeable battery is at fault i mean consuming very less current like 10-100mA but not getting the proper charging current.With LED indication.

    Reply
    • Swagatam says

      March 28, 2017 at 4:37 am

      Hello, the only way to detect this could be through a current sensing resistor and a voltage amplifier circuit which will indicate whether the cell is consuming around 1C current or not……LM3915 IC looks a candidate for making this system.

      Reply
  37. Fatin Nabihah Sairy says

    January 31, 2017 at 10:53 pm

    Hi Mr swagatam well I need to do my final year project. I need to do battery indicator using Bluetooth and wifi. My question is do I need to do a vdr to avoid a more volt supply to my arduino+LCD+bluetooth module. I hope you can help me

    Reply
    • Swagatam says

      February 1, 2017 at 4:30 am

      Hi Fatin, you can use a 7805 IC voltage regulator for ensuring a safe 5V for the Arduino.

      Reply

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

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

Primary Sidebar

Subscribe to New Circuit Ideas

Categories

  • Arduino Projects (87)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (82)
  • Datasheets and Components (102)
  • Electronics Theory (143)
  • Free Energy (37)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (14)
  • Inverter Circuits (87)
  • Lamps and Lights (142)
  • Meters and Testers (69)
  • Mini Projects (46)
  • Motor Controller (64)
  • Oscillator Circuits (27)
  • Pets and Pests (15)
  • Power Supply Circuits (108)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (100)
  • Solar Controller Circuits (59)
  • Temperature Controllers (42)
  • Timer and Delay Relay (49)
  • Transmitter Circuits (29)
  • Voltage Control and Protection (37)
  • Water Controller (36)

Calculators

  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Filter Capacitor Calculator
  • Buck Converter Calculator
  • Boost Converter Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Wire Current Calculator
  • SMPS Transformer Calculator
  • IC SG3525, SG3524 Calculator
  • Inverter LC Filter Calculator

People Also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Recent Comments

  • Swagatam on Simple Delay Timer Circuits Explained
  • Swagatam on The Role of Inductor Coil in SMPS
  • Swagatam on 7 Modified Sine Wave Inverter Circuits Explored – 100W to 3kVA
  • Swagatam on 7 Modified Sine Wave Inverter Circuits Explored – 100W to 3kVA
  • Victor on 7 Modified Sine Wave Inverter Circuits Explored – 100W to 3kVA

Company

  • Privacy Policy
  • Cookie Policy
  • About Me
  • Contact
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin
  • © 2025 · Swagatam Innovations