OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Does OSPi system have a way to detect open/close states of DIY sensor?
- This topic has 3 replies, 2 voices, and was last updated 8 years ago by
Mike.
-
AuthorPosts
-
September 19, 2018 at 2:04 pm #52713
kdeulerParticipantHi. I’m interested to know if there is a way for a OSPi hacker to deal, programatically, with the state (open/closed) of a DIY switch. That is:
Where would the relevant pins be.
How couldUSE CASE: I find a way to detect if the pressure in my irrigation system AFTER the valve has fallen below a preset limit- thus indicating a likely broken-off sprinkler head or damaged pipe. I would then program the OSPi to email me a notification of same.
I have in mind a detector that opens or closes a circuit. If, after the sprinkler has been on for 15 seconds or so, the switch is in non-normal state (eg open when it should be closed) the system would send me a notification. I’d then go a test the sprinklers.
Thanks in advance
September 21, 2018 at 11:40 am #52733
MikeParticipantYou ought to be able to use any of the unused pins (see the user manual) for your pressure sensor. You could then have software running on the Pi independent of OpenSprinkler that would monitor the pressure. If the pressure dropped to low, you could interact with OpenSprinkler via the API to stop the program. Your software could also notify you through whatever means you want it to.
Mike
September 22, 2018 at 11:45 am #52757
kdeulerParticipantThanks Mike. Apart from my ideas for a DIY pressure sensor, do you know of any inexpensive (under $10) commercial pressure sensors that will flip a switch when the circuit pressure goes above or below a preset amount?
-Kurt
September 23, 2018 at 9:31 am #52771
MikeParticipantHi Kurt
While not under $10 i did find this which might be what I would use https://www.amazon.com/dp/B00RCPDCQU it’s $18. It’s analog so you’ll need to also have an ADC somewhere between the sensor and your Pi. you could use an Arduino or an esp8266 for that it you’ve got one. I don’t think you need a separate switch – just turn the irrigation valve off through the API. I don’t recall if it supports it but you might even be able to disable the zone through the API to prevent the program from opening the valve back up the next time it is scheduled to run.
Mike
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Does OSPi system have a way to detect open/close states of DIY sensor?