Electronic – How to calculate hysteresis when the OPAMP supply voltage is changing

comparatorhysteresisoperational-amplifier

I have designed a GSM/GPS based tracker which is installed at my bike. But it is draining battery too quickly.

So, I want to add a cutoff circuit when the bike is not running(battery not charging) for a long time and in addition, the cutoff circuit should reconnect power to load (my tracker) whenever the battery voltage rises to a preset leve (For say 12.6v).

I decided to use an op amp comparator based cutoff circuit. But the problem is I am unable to calculate hysteresis when the supply voltage of the op amp is changing (Because I will power the op amp from the battery itself).

Can I use a comparator hysteresis circuit if I have a variable voltage rail? If not what kind of changes to the circuit would I need to make this functional?
enter image description here

Best Answer

If you want LOW POWER, at limited Temperature Excursion, try this:

schematic

simulate this circuit – Schematic created using CircuitLab

By the way, this schem is edited (added output Zener/diode clamp) to provide more stable Vhysteresis.