Hello,
I’m assembling a simple irrigation system, composed only by a pump and a valve. I’m not really good on programming, and I could not find any related topics here.
A water pump should not run dry, as it may damage it. I was thinking about adding a flow meter after the valve, that would guarantee that water is flowing, before the pump is activated.
I actually already have a code for the flow meter, that measures the flow, and I think I can adapt it for this use.
The thing that I would like to know, is how to insert this code into the programming of the OSpi.
It should work something like, open valve>measure flow>activate pump. If water flow is interrupted during the process, than OSpi should stop.
Any thoughts on that?
Thanks!