So I have an RODI system for my reef tanks. It takes hours to fill up a 5 gallon bucket. I would like to automate turning the water on and off.
My water level sensors are the optical style. No water = HIGH output from sensor
I will need 2 of these sensors one for bucket empty and bucket full.
I have a motorized ball valve which will be turned on with either an H-bridge or DPTP relay driven by the Arduino. This ball valve has 3 additional wires for LED's or monitoring the position of the valve.
Green Wire is for OPEN when HIGH
Red Wire is for CLOSED when HIGH
The ball valve takes approx 8 seconds to open or close, so I would like the relay to be on for 10 seconds then in its resting state...
I also have a water meter sensor to monitor the amount of water used by the system. I will have at least two of these in the system to monitor total usage and waste water.
I can monitor the valve positions no problem. I have issues getting the relay to close for 10 seconds then open. Anybody have any suggestions on how to do that without delay?