OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Water pump is shared between pool and sprinklers – manual pool filling? › Reply To: Water pump is shared between pool and sprinklers – manual pool filling?
The pool boy does not have a smartphone.
I want to connect an external on/off switch to a GPIO pin and sense the position of that switch.
When detecting a “Switch transition to on” event, OSPI should stop all the active sprinkler cycles (shut down the water pump and close all valves) and start a “fill pool” cycle (open the pool valve and start the water pump).
When detecting a “Switch transition to off” event, OSPI should end the “fill pool” cycle by turning the water pump off and close all the valves.
When OSPI detects that a sprinkler cycle should start, it should check the current state of the switch and if it’s on, then the sprinkler cycle is not started.
That makes sense to me, but I don’t know how hard it would be to code since I am a C/C++ programmer but I don’t know your framework.