On the internet I found a sensor with a +5v / ground/ flow dependent V output (at least I assume the yellow cable gives 0-5V dependent on the l/min flow that passes true the sensor.
I have domoticz set up with a switch id 50, and all I need now is something that will do something like:
If (V sensor changed & V >0.1 => send Domoticz Ip:8080 idz50&n value=1)
Elsif ( V sensor changed & V =<0.1 => send domoticz device is Off)
Sure this is not how it should be, but just a short summary of the idea (I'll figure it out in whatever language is should be (curl, bash, whatever...)
My main question is what can I best use to run a script like this on: monitor Voltage output sensor, upon threshold send out a json request over the Lan (WiFi or Wired are both fine)
I might use an old pi I have for it, but don't know where to start and seems a bit an overkill. A simple arduine board or else that can send out an on/ off Json somehow, or is there something even simpler available to program a job like this into!
Any suggestion 's / link to a simple how to is welcome!
Newbie hardware question
Moderator: leecollings
- FireWizard
- Posts: 1905
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: Newbie hardware question
Hi, @Djeffoo 81,
Have a look at: https://microcontrollerslab.com/water-f ... flow-rate/
I suggest you should read this and you will see that the yellow wire does not produce a voltage, but a pulse. It is a matter of pulse counting.
Regards
Have a look at: https://microcontrollerslab.com/water-f ... flow-rate/
I suggest you should read this and you will see that the yellow wire does not produce a voltage, but a pulse. It is a matter of pulse counting.
Regards
Re: Newbie hardware question
Excellent!!
Thank you very much, that iindeed just the start entrance I need to go and understand how to set it up.
Thank you very much, that iindeed just the start entrance I need to go and understand how to set it up.
Who is online
Users browsing this forum: No registered users and 1 guest