When the arduino detects the pulse it immediately triggers the pulsecounter function.
Water flow sensor arduino instructables.
Uploading the flow meter code to the arduino and measuring water flow rate.
Low cost water flow sensor and ambient display.
Arduino water flow sensoryoutube videosdocuments.
In this project we will interface yfs201 hall effect water flow sensor with arduino for measuring flow rate and volume of water or any other liquid.
The water flow sensor consists of a plastic valve body a water rotor and a hall effect sensor.
The code uses an external interrupt on the arduino s digital pin 2.
Upload the flow meter code to your arduino.
Millions of people do not have access to clean drinking water and as many as 4000 children die from water contaminated illnesses every day.
It draws a maximum.
The main loop runs around waiting for one second to have passed then compares the flow counter to the desired threshold value.
Water is a precious resource.
If you d like to monitor your water usage as part of a diy smart home automation and monitoring project then this instructable might help you to achieve that goal.
The solution described here is non invasive uses your existing municipal water met.
The microcontroller was programmed using a standard arduino uno in isp mode the program is quite simplistic the flow sensor input triggers an interupt routine which increments a counter.
Note that the water flow sensor is not a power hungry type.
The overarching goal of th.
Monitoring residential water usage by reading municipal water meter with hall effect sensor arduino.
When the water flows through the rotor rotor rolls and the speed of it changes with a different rate of flow.
Connect the vcc red and gnd black wires of the water flow sensor to the 5v and gnd of arduino and link pulse output yellow wire of the water flow sensor to arduino s digital pin 2.
Arduino water flow sensor.
This is used to read the pulses coming from the flow meter.
This type of sensor can be found on different diameters water pressure mpa.
Connecting the water flow sensor to arduino requires minimal interconnection.
It then sets the leds and relay output appropriately.
Yet we continue to be wasteful with our resources.