I'm trying to create an automatic water pump for my dear old pussy cat (I'm using her as an excuse, really I wanted a project of some sort)
I have the following Circuit:
R1 is the water itself S1 is the water being conductive and completing the circuit through the water
When power is applied to the circuit all the opAmps are LOW, the MOSFET is allowing current to flow from Source to Drain and the motor/pump spins.
When a connection is made i.e the water from the pump fills the bowl to a certain level (R1/S1), 7mv goes to the non-inverting A input of the opAmp. This saturates the output (5v) due to open-loop gain, charges the Cap at C1 and also saturates the B output of the opAmp, shutting off the MOSFET.
When the connection is lost i.e the cat has a drink and the water level drops. The A opAmp goes low and C1 is allowed to drain through the 15k Resistor (R5). After the cap is drained (~seconds) the motor spins, the bowl fills up.
Eventually I am going to have an RFID tag on her collar which will turn on a relay to provide power to all this, but thats phase 2.
I know I would be better of using proper comparators, but this opAmp suffices. Like I said, this circuit is working as I expect, but are there any recommendations from anyone at all?