Newbie hardware question

Moderator: leecollings

Post Reply
Djeffoo81
Posts: 2
Joined: Saturday 26 November 2022 14:23
Target OS: -
Domoticz version:
Contact:

Newbie hardware question

Post 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 287 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!
User avatar
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

Post 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
Djeffoo81
Posts: 2
Joined: Saturday 26 November 2022 14:23
Target OS: -
Domoticz version:
Contact:

Re: Newbie hardware question

Post by Djeffoo81 »

Excellent!!

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

Who is online

Users browsing this forum: No registered users and 1 guest