Hi,
Humbly hoping someone can suggest how I can solve this one ..
I have a simple water flow sensor that uses a hall effect sensor that generates a square wave signal, powered from a 5v power supply.
I have the signal hooked up to a Raspberry Pi so it can alert me if it detects water flowing for longer than x mins (I've had garden hose break in the past resulting in water gushing out for hours!).
Anyways .. problem is .. the signal can come to rest at low or high state since it's a rotary magnet that doesn't always stop in a certain position.
But the Pi is expecting either a constant and predictable High or Low state to determine if water is flowing or not.
If was thinking of using a 555 Timer to detect the square wave .. but not sure how I can convert the presence (or lack of) the square wave (ie water flowing) into a constant +5v or 0v signal for the Pi to make use of.
Or could do this an entirely different way to plug into the Pi (without a 555 timer) .. just looking for some kind suggestions.
Any help or suggestions would be very much appreciated,
thanks folks,
Jeds
Humbly hoping someone can suggest how I can solve this one ..
I have a simple water flow sensor that uses a hall effect sensor that generates a square wave signal, powered from a 5v power supply.
I have the signal hooked up to a Raspberry Pi so it can alert me if it detects water flowing for longer than x mins (I've had garden hose break in the past resulting in water gushing out for hours!).
Anyways .. problem is .. the signal can come to rest at low or high state since it's a rotary magnet that doesn't always stop in a certain position.
But the Pi is expecting either a constant and predictable High or Low state to determine if water is flowing or not.
If was thinking of using a 555 Timer to detect the square wave .. but not sure how I can convert the presence (or lack of) the square wave (ie water flowing) into a constant +5v or 0v signal for the Pi to make use of.
Or could do this an entirely different way to plug into the Pi (without a 555 timer) .. just looking for some kind suggestions.
Any help or suggestions would be very much appreciated,
thanks folks,
Jeds