low battery indicator with opamp

danadak

Joined Mar 10, 2018
4,057

ian field

Joined Oct 27, 2012
6,536
Config OpAmp as comparator with hysterisis -

https://www.analog.com/-/media/imag...-with-hysteresis/comparators-fig-04.gif?la=en

Single supply example -



Note you do not need output transistor for simple indicator LED. You would mod this
circuit to suit your needs. Maybe add some hysterisis as well.

https://daycounter.com/Calculators/Comparator-Hystereses-Calculator.phtml

http://sim.okawa-denshi.jp/en/compkeisan.htm



Regards, Dana.
I'd go for a 2mA high efficiency LED, use an open collector output comparator and ditch the transistor. there is a battery level indicator in the TL431 application notes - but it probably wastes more current while the battery isn't doing much else.
 

crutschow

Joined Mar 14, 2008
38,386
Below is a circuit that keeps an LED ON above the set voltage, using a TLV431 programmable reference, a low-power version of the TL431.
Pot U2 allows adjustment of the set voltage.
The circuit uses very little current when the battery is below the 4.7V set point (basically just the current through U2 and R2).

upload_2019-3-25_16-24-9.png
 
Last edited:

ian field

Joined Oct 27, 2012
6,536
Probably because op-amps don't do all that great as comparators.
Comparators are usually the bare minimum of internal circuit elements - op-amps contain all manner of internal doohickery to reduce the possibility of non linearity. That's what makes them slower.

That delay often causes phase problems - sometimes you end up with loads of neutralising components trying to stop it bursting into song...…….
 

crutschow

Joined Mar 14, 2008
38,386
Here's the simulation of the LTV431 circuit, showing the low value of supply current (red trace) when the LED goes off (about 0.34mA).

upload_2019-3-26_13-9-51.png
 
Last edited:

crutschow

Joined Mar 14, 2008
38,386
op-amps contain all manner of internal doohickery
Now let's not get too technical. ;)
That delay often causes phase problems - sometimes you end up with loads of neutralising components trying to stop it bursting into song...
Comparators can also have a problem with oscillations ("bursting into song"), but that is usually simply taken care of for op amps used as comparators, as well as comparators, with a small amount of positive feedback to generate some hysteresis.
Actually op amps, with their lower frequency response, are generally less likely to oscillate than comparators.
 

crutschow

Joined Mar 14, 2008
38,386
Can you share the TLV431 sym and sub?
The files are attached.
It says it has a much lower working current it might use less power than opamps.
The TLV431 uses essentially no power in this application as it's either fully on or fully off, and it's ON current flows through the LED.
It's rather like using a MOSFET with an accurate gate threshold to switch the LED.
So all the circuit current is from the LED, and U2 and R2.
 

Attachments

Top