Raspberry Pi - Hall Effect Sensor

Hi Everyone,

Tried searching on this topic but didn't turn up anything that really guided me to solution mode.

Looking for some advice on how I might interface this sensor: https://core-electronics.com.au/g1-4-water-flow-sensor-seeed-studio.html with Node-Red on the Raspberry Pi.

I've not used hall effect sensors before so am I correct in saying that they are essentially a digital signal that uses the frequency to assimilate the value? If that is the case, is there a way that I can get the GPIO Node_Red to trigger interrupts so I can measure this?

Apologies if I am completely off track here.

Broadly speaking, and for real world operation, I would utilise either a esp8266 or arduino microcontroller at the sensor location. Then get that to transmit data back to the RPi which would be running NR and other stuff.

The RPi (and NR) end is relatively easy. The micro at the sensor end needs to have some way to transmit data back (esp has built in wifi, arduino would need a wireless transceiver like the NRF24L01).

Another approach would be to use a PiZeroW at the sensor end. But personally, I think the RPi is not the right device for attaching one or two sensors (except perhaps for education purposes).

If you are undertaking an educational exercise/project then what does the sensor spec sheet say about how you would interface it to a microcontroller?

Cheers

Thanks for taking the time to respond to my post.

Doing a little more online reading the consensus aligns with your suggestion.
I have a Wuzzah32 sitting in the packet on my bench so I might just use this device.

Slightly annoying I need to add another device to achieve what I need but understand the advantages.

Yes, there is so much you can do with a "central" RPi. Run NR, Grafana, InfluxDB, Mosquitto (mqtt), Apache ... the list is endless. But on that device you don't really want to attach much in the way of hardware.

1 Like

This is the basis of the arduino code you would need

There is some python code to do similar direct on pi
https://www.raspberrypi.org/forums/viewtopic.php?t=118230
But this would either need wrapping into a node (nice Xmas project for someone) or called via the daemon node.

But in general I agree the arduino way would be a more reliable solution

And if you were to use ESPEasy on the arduino (maybe a WeMos D1), it looks like they have that sensor built-in https://www.letscontrolit.com/wiki/index.php?title=Pulse_logic_input

2 Likes