**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!