Make your own LED Battery Level Indicator

**The Sake aka Signal Pin: A Crude Battery Level Indicator**

The sake aka signal pin connected to the non-inverting inputs of the upper comparator is connected to the RHI pin, while the following ones are all connected to the previous non-inverting inputs through 1 kilo-ohm resistor. The last resistor is connected to the RL.

**Understanding the Signal Pin and Its Purpose**

The signal pin usually connects to the changing analog voltage, so the battery voltage. While the RHI and our elope are connected to the voltage potential window we want to cover. For example, if we have a look at the discharge curve of the utilized INR 18 650 - 25 our lithium-ion batteries, then we can see that our voltage range starts at four point one volts and goes down to around two point nine volts. Multiplying that by 4 since I got a 4s 4p battery pack, and we got a voltage window of sixteen point four to 11 point 6 volts.

**Connecting the RHI and Elooe Pins**

We connect a 16-point formal potential to our HIE and an 11-point 6 volt potential to our ELO. Due to the resistor ladder which acts like a voltage divider, we now got 10 different voltage potentials at the comparator inputs.

**How the Comparator Works**

Since we know that if the inverting input has a higher voltage than a non-inverting input, the output will be pulled down to ground, meaning the LED on the output will light up. It all starts to make sense as the battery voltage decreases, it reaches the 10 different resistor ladder voltage potentials, turns the output higher, and thus turns the LED off.

**Demonstration with a Constant Voltage Source**

For demonstration purposes, I built up the described circuits with a constant voltage source and upon a geometer as a signal input. As you can see, when the battery voltage drops, the LEDs turn off one after the other.

**The Problem with the Crude Battery Level Indicator**

You might think I will use that for my new battery pack well if you want a crude battery level indicator then go for it but for me there's still a problem since we got 10 LEDs. You would think that each one represents 10% of energy in the battery pack, but that is not true.

**The Discharge Curve and Its Non-Linear Nature**

Due to the resistor ladder with only 1 kilo-ohm resistors, we get a linear voltage decrease, but if we would mark those points in the discharge curve of the battery then we can see here that it does not follow the actual line very well.

**Solution: Decreasing the Voltage Window**

One solution for that is to decrease the voltage window so that we look at the mostly linear section of the discharge curve and while we edit we should also set the last LED to 12% energy which the capacity of 2.2 amp hours represents.

**The Designer's Own Solution: A Six-LED Battery Level Indicator**

But for me even those changes are not enough, so I came up with my own LED battery level indicator schematic. It basically works the same way as the LM 391 for whippits comparators but I only use six LEDs, no constant current methods source current instead of sinking it and can set the trigger voltage potential of each comparator stage manually through a trimmer.

**The Designer's Proof-of-Concept Test**

After I did a small proof-of-concept test on the breadboard, I went ahead and sold out all the required components to piece perf wards and connected them to one another according to the schematic to create the constant 20 volts for the power and the trigger voltages.

**Fine-Tuning the Trigger Voltages**

I also utilized a small boost converter module which I directly sold outs to the per port and after fine-tuning that it was time to adjust the trigger voltages. For that, I set my lowest capacity limits to 2.2 amp hours and the highest one to obviously zero and hours then I calculated for linear capacity steps between those two values and marked them in the discharge curve according to the point of intersection.

**The Designer's Final Result**

I simply took the reading for the different voltage levels and multiplied them by 4 to get the right trigger voltage for the six different binary states afterwards. I simply tuned the trimmers to outputs the required voltage to the comparators' inverting inputs, and just like that this project was complete.

**The Designer's Test with a Lab Bench Power Supply**

As you can see by doing a test with my lab bench power supply it seems like everything works like a charm. Of course if we use a different battery type you should also have a look at the discharge curve to set the correct voltage values in order to get a pretty accurate battery level indicator.

**Conclusion and Call-to-Action**

And with that being said I hope you enjoyed this video and learned something new along the way. If so don't forget like share and subscribe stay tuned for more educational content, and happy learning!

WEBVTTKind: captionsLanguage: enas you can see here I'm currently creating a new lithium-ion battery pack for upcoming projects and by attaching a suitable BMS circuits to the pack we cannot only prevent over current events but also charged topic easily the only feature that is missing for me here is battery level indicator for which we could use this lipo battery voltage tester that I got a for cheap from eBay and while it certainly measures the voltage of each cell correctly I'm not thrilled about this play since you cannot easily tell how much energy in percentage is left in the batteries a possible and awesome solution for that would be an LED but display so in this video let's talk about the classic LM 391 5c whose job is coincidentally to drive led bothers place and furthermore let's also create our own more precise led battery level indicator circuits let's get started this video is sponsored by jl CPC be one factor bottom jlc PCB focuses on rapid prototypes of one to six layer PCBs and all of them are shipped directly from the factories after being produced a blow Dro Gerber files to test the fast speed of prototype production and delivery according to the datasheet of the LM three nine one four it is an ICU that senses analog voltage levels and drives 10 LEDs accordingly which is basically just what we needs since the voltage of a battery can tell us how much energy it got left so I positioned a DI C on a breadboard and had a closer look at its typical application circuits given by the data sheets the 10 LEDs need to get connected with the cathodes to the pins 1 10 11 12 up to 18 and no they do not require a current limiting resistor since the ICEA features constant current outputs this current can be set by connecting a resistor between the ref out pin and grounds I went with a 2 kilo ohm resistor which gives us a current of around six point two five milliamps per LED next we have to connect v- to ground v+ to the supply voltage ruffridge us to ground and mode to the supply voltage to activate the bar graph modes and if you want to learn why exactly I connected those pins to either ground or the supply voltage then I would highly recommend checking out the datasheet since it is very well written anyway what is left to connect are the RL o seek and our H I pins which determine to which voltage and voltage range the LEDs will react to learn more about it let's look at the block diagram of the IC in a nutshell we cut n comparators to whose inverting inputs is the sake aka signal pin connected the non-inverting inputs of the upper comparator is connected to the RHI pin while the following one's are all connected to the previous non-inverting inputs through 1 kilo ohm resistor and the last resistor is connected to the RL open now the signal pin usually connects to the changing analog voltage so the battery voltage while the RHI and our elope are connected to the voltage potential window we want to cover for example if we have a look at the discharge curve of the utilized inr 18 650 - 25 our lithium-ion batteries then we can see that our voltage range starts at four point one volts and goes down to around two point nine volts multiply that by four since I got a 4s 4p battery pack and we got a voltage window of sixteen point four to 11 point 6 volts so we connect a 16 point formal potential to our hie and an 11 point 6 volt potential to our ello due to the resistor ladder which acts like a voltage divider we now got 10 different voltage potentials at the comparator inputs and since we know that if the inverting input has a higher voltage than a non-inverting inputs the outputs will be pulled down to grounds meaning the LED on the output will light up it all starts to make sense as the battery voltage decreases it reaches the 10 different resistor ladder voltage potentials turns the output higher and thus turns the LED off for demonstration purposes I built up the described circuits with a constant voltage source and upon a geometer as a signal inputs and as you can see when the battery voltage drops the LEDs turn off one after the other awesome you might think I will use that for my new battery pack well if you want a crude battery level indicator then go for it but for me there's still a problem since we got 10 LEDs you would think that each one represents 10% of energy in the battery pack but that is not true due to the resistor ladder of the ICEA with only 1 kilo ohm resistors we get a linear voltage decrease but if we would mark those points in the discharge curve of the battery then we can see here that it does not follow the actual line very well one solution for that is to decrease the voltage window so that we look at the mostly linear section of the discharge curve and while we edit we should also set the last LED to 12% energy which the capacity of 2.2 amp hours represents but for me even those changes are not enough so I came up with my own LED battery level indicator schematic it basically works the same way as the LM 391 for whippits comparators but I only use six LEDs no constant current methods source current instead of sinking it and can set the trigger voltage potential of each comparator stage manually through a trimmer and after I did a small proof-of-concept test on the breadboard I went ahead and sold out all the required components to piece of perf wards and connected them to one another according to the schematic to create the constant 20 volts for the power and the trigger voltages I also utilized a small boost converter module which I directly sold outs to the per port and after fine-tuning that it was time to adjust the trigger voltages for that I set my lowest capacity limits to 2.2 amp hours and the highest one to obviously zero and hours then I calculated for linear capacity steps between those two values and marked them in the discharge curve according to the point of intersection I took the reading for the different voltage levels and simply multiplied them by 4 to get the right trigger voltage for the six different binary states afterwards I simply tuned the trimmers to outputs the required voltage to the comparators inverting inputs and just like that this project was complete and as you can see by doing a test with my lab bench power supply it seems like everything works like anticipators of course if we use a different battery type you should also have a look at the discharge curve to set the correct voltage values in order to get a pretty accurate battery level indicator and with that being said I hope you enjoyed this video and learned something new along the way if so don't forget like share and subscribe stay creative and I will see you next timeas you can see here I'm currently creating a new lithium-ion battery pack for upcoming projects and by attaching a suitable BMS circuits to the pack we cannot only prevent over current events but also charged topic easily the only feature that is missing for me here is battery level indicator for which we could use this lipo battery voltage tester that I got a for cheap from eBay and while it certainly measures the voltage of each cell correctly I'm not thrilled about this play since you cannot easily tell how much energy in percentage is left in the batteries a possible and awesome solution for that would be an LED but display so in this video let's talk about the classic LM 391 5c whose job is coincidentally to drive led bothers place and furthermore let's also create our own more precise led battery level indicator circuits let's get started this video is sponsored by jl CPC be one factor bottom jlc PCB focuses on rapid prototypes of one to six layer PCBs and all of them are shipped directly from the factories after being produced a blow Dro Gerber files to test the fast speed of prototype production and delivery according to the datasheet of the LM three nine one four it is an ICU that senses analog voltage levels and drives 10 LEDs accordingly which is basically just what we needs since the voltage of a battery can tell us how much energy it got left so I positioned a DI C on a breadboard and had a closer look at its typical application circuits given by the data sheets the 10 LEDs need to get connected with the cathodes to the pins 1 10 11 12 up to 18 and no they do not require a current limiting resistor since the ICEA features constant current outputs this current can be set by connecting a resistor between the ref out pin and grounds I went with a 2 kilo ohm resistor which gives us a current of around six point two five milliamps per LED next we have to connect v- to ground v+ to the supply voltage ruffridge us to ground and mode to the supply voltage to activate the bar graph modes and if you want to learn why exactly I connected those pins to either ground or the supply voltage then I would highly recommend checking out the datasheet since it is very well written anyway what is left to connect are the RL o seek and our H I pins which determine to which voltage and voltage range the LEDs will react to learn more about it let's look at the block diagram of the IC in a nutshell we cut n comparators to whose inverting inputs is the sake aka signal pin connected the non-inverting inputs of the upper comparator is connected to the RHI pin while the following one's are all connected to the previous non-inverting inputs through 1 kilo ohm resistor and the last resistor is connected to the RL open now the signal pin usually connects to the changing analog voltage so the battery voltage while the RHI and our elope are connected to the voltage potential window we want to cover for example if we have a look at the discharge curve of the utilized inr 18 650 - 25 our lithium-ion batteries then we can see that our voltage range starts at four point one volts and goes down to around two point nine volts multiply that by four since I got a 4s 4p battery pack and we got a voltage window of sixteen point four to 11 point 6 volts so we connect a 16 point formal potential to our hie and an 11 point 6 volt potential to our ello due to the resistor ladder which acts like a voltage divider we now got 10 different voltage potentials at the comparator inputs and since we know that if the inverting input has a higher voltage than a non-inverting inputs the outputs will be pulled down to grounds meaning the LED on the output will light up it all starts to make sense as the battery voltage decreases it reaches the 10 different resistor ladder voltage potentials turns the output higher and thus turns the LED off for demonstration purposes I built up the described circuits with a constant voltage source and upon a geometer as a signal inputs and as you can see when the battery voltage drops the LEDs turn off one after the other awesome you might think I will use that for my new battery pack well if you want a crude battery level indicator then go for it but for me there's still a problem since we got 10 LEDs you would think that each one represents 10% of energy in the battery pack but that is not true due to the resistor ladder of the ICEA with only 1 kilo ohm resistors we get a linear voltage decrease but if we would mark those points in the discharge curve of the battery then we can see here that it does not follow the actual line very well one solution for that is to decrease the voltage window so that we look at the mostly linear section of the discharge curve and while we edit we should also set the last LED to 12% energy which the capacity of 2.2 amp hours represents but for me even those changes are not enough so I came up with my own LED battery level indicator schematic it basically works the same way as the LM 391 for whippits comparators but I only use six LEDs no constant current methods source current instead of sinking it and can set the trigger voltage potential of each comparator stage manually through a trimmer and after I did a small proof-of-concept test on the breadboard I went ahead and sold out all the required components to piece of perf wards and connected them to one another according to the schematic to create the constant 20 volts for the power and the trigger voltages I also utilized a small boost converter module which I directly sold outs to the per port and after fine-tuning that it was time to adjust the trigger voltages for that I set my lowest capacity limits to 2.2 amp hours and the highest one to obviously zero and hours then I calculated for linear capacity steps between those two values and marked them in the discharge curve according to the point of intersection I took the reading for the different voltage levels and simply multiplied them by 4 to get the right trigger voltage for the six different binary states afterwards I simply tuned the trimmers to outputs the required voltage to the comparators inverting inputs and just like that this project was complete and as you can see by doing a test with my lab bench power supply it seems like everything works like anticipators of course if we use a different battery type you should also have a look at the discharge curve to set the correct voltage values in order to get a pretty accurate battery level indicator and with that being said I hope you enjoyed this video and learned something new along the way if so don't forget like share and subscribe stay creative and I will see you next time