Hi!
I'm working on something involving a water pump running off solar.
The pump is small, 300mA or so, and has some fancy internal circuitry so that the pump doesn't work properly if the voltage drops below 11v, when it reaches this threshold it suddenly barely moves at all. I've had a look inside one of these pumps, and it is "MOSFET-driven", so I'm guessing the producer did something deliberate to protect them from overheating.
Anyhow.
Some of the users aren't as vigilant as myself about not running the lead acid batteries too low, so 11v can happen.
So I want a low voltage detection and cutoff, I want it cheap and I want it now.

Here's where I'm at:

R2 and R3 sets a Vref of roughly 0,2v @ Vin=11v.
So when Vin=Vzener+0,2v the outout goes HIGH.
But since this is solar things happen slowly giving noise ample time to create havoc. So this needs a Schmitt input.
Hence T1 in the drawing, it adds hysterisis to the rising part of the signal.
To get hysterisis both directions I tried a mirrored PNP approach on the high side of the voltage divider, but as feared it just oscillated violently until something broke.
Turning Vin up on bench supply rather quickly gives this rising edge without hysterisis (T1, R5)

With:

The remaining problem, the falling edge:

Any thoughts on adding hysterisis to the falling edge as well?