Page 1 of 1

Newbie hardware question

Posted: Saturday 26 November 2022 15:00
by Djeffoo81
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.
DF777615-7703-41C2-88AB-BD7D7CD88FE6.jpeg
DF777615-7703-41C2-88AB-BD7D7CD88FE6.jpeg (298.71 KiB) Viewed 288 times
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!

Re: Newbie hardware question

Posted: Saturday 26 November 2022 15:38
by FireWizard
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

Re: Newbie hardware question

Posted: Saturday 26 November 2022 16:03
by Djeffoo81
Excellent!!

Thank you very much, that iindeed just the start entrance I need to go and understand how to set it up.