Byte sensorinterrupt 0.
Water flow sensor arduino project.
It is very simple to measure the water or liquid flow by using water flow sensor yf s201 with arduino this article describes about the water flow sensor and how the water flow sensor works then how to interface water flow sensor with arduino to take control on volume we need to measure water is essential to every thing here this article helps you to built water flow meter to measure the.
Sometimes you need to measure both water flow and water temperature like water heaters or dishwashers.
Byte statusled 13.
The hall effect flow sensor outputs approximately 4 5 pulses per second per litre minute of flow.
Alexa controlled pool manager.
By the way both yf s402 and yf s201 are commonly used in arduino and raspberry pi water flow sensor projects.
In this project use the yf s201 1 2 inch water flow sensor to measure the water flow rate l min and display it on an lcd.
Connecting the water flow sensor to arduino requires minimal interconnection.
Build your own high quality water sensor to monitor your pool or spa using the amazon alexa to check on the status of your pool.
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 working.
Connect vcc and gnd of sensor to arduino and the signal line to arduino digital pin 2.
How to use water flow sensor arduino tutorial.
Then you need to choose a water flow sensor with a temperature sensor.
In this tutorial you will learn how to use one water flow sensor with an arduino board the water flow sensor consists of a plastic valve body a water rotor and a hall effect sensor.
Project tutorial by benjamin winiarski.
There will be no interrupt signal seen at the pin 2 of the arduino and the count of the flow frequency will be zero.
Measure the liquid water flow rate using this code.
0 digital pin 2 byte sensorpin 2.
Find these and other hardware projects on arduino project hub.