Whoops. Made a few mistakes in that last one. This one should be better
If i'm correct, the switch should stay off while the absolute value of Vin is above Vref. Once Vin drops below Vref, the comparator should switch on, thus turning on the switch and lighting the LED. The comparator should stay latched on after that.
Will a reset of the system be achieved by cutting power to it all?
Does that look and sound correct now?
I figured I dont really need to stop Vin from being too negative, since I will use an LM4558 dual op amp which has +/- 15v on the inputs.
My only question is whether the circuit will allow a negative value on the 1st inverting op-amp since it has no negative supply rail. Should I perhaps connect PIN 4 of the dual opamp to a -ve supply?