Here's a circuit to indicate battery level. Haven't made it but so simple that it can be designed well just on paper.
I thought of using a quad op-amp that comes in 1 x 14 pin chip (get a socket too and solder that) to give a four LED level indication; one could use green, amber and red LEDs.
An op-amp is a comparator circuit. It will compare actual voltage to a known value(s). To get a fixed reference we use a zener diode. This needs to be less than the lowest the battery will go (about 3v - to 3.5v) so let's say a 2.7v zener.
Now, if a 3.7v lithium is freshly charged it will be abut 4.2v. So the first LED could indicate a value of say 4v or greater. How to do that if our reference is only 2.7v? By dividing the voltage with 2 series resistors (or more than two to get a sequence of fractions; we do the same with the reference voltage). Put an LED on each op-amp output and connect the power lines to the op-amp chip.
A simpler single op-amp circuit could be made instead that will detect when the voltage is nearing needing a recharge.
To have the LED come on when power drops below rather than the reverse, swap the + and - on the op-amp.
Very simple! The trick is to realise tha one can work on fractions of the supply voltage.
BTW, resistors these days are all 1% as standard.
I thought of using a quad op-amp that comes in 1 x 14 pin chip (get a socket too and solder that) to give a four LED level indication; one could use green, amber and red LEDs.
An op-amp is a comparator circuit. It will compare actual voltage to a known value(s). To get a fixed reference we use a zener diode. This needs to be less than the lowest the battery will go (about 3v - to 3.5v) so let's say a 2.7v zener.
Now, if a 3.7v lithium is freshly charged it will be abut 4.2v. So the first LED could indicate a value of say 4v or greater. How to do that if our reference is only 2.7v? By dividing the voltage with 2 series resistors (or more than two to get a sequence of fractions; we do the same with the reference voltage). Put an LED on each op-amp output and connect the power lines to the op-amp chip.
A simpler single op-amp circuit could be made instead that will detect when the voltage is nearing needing a recharge.
To have the LED come on when power drops below rather than the reverse, swap the + and - on the op-amp.

Very simple! The trick is to realise tha one can work on fractions of the supply voltage.
BTW, resistors these days are all 1% as standard.
Last edited: