Measure Water Flow Rate and Volume Using Arduino
Measure Water Flow Rate and Volume Using Arduino
by electronicsworkshop111
In this tutorial, we will measure the water ow rate and volume using an Arduino and a Flow Sensor. In this circuit, the
water ow sensor is linked to an Arduino and an LCD, which is programmed to display the volume of water that has
passed through the valve. The water ow sensor used in this circuit is an S201, which uses a hall e ect to sense the ow
rate of the liquid.
If You want similar Projects CLICK HERE
Supplies:
The working of the YFS201 water ow sensor is simple to understand. The water ow sensor works on the principle of
hall e ect. Hall e ect is the production of the potential di erence across an electric conductor when a magnetic eld is
applied in the direction perpendicular to that of the ow of current. The water ow sensor is integrated with a magnetic
hall e ect sensor, which generates an electric pulse with every revolution. Its design is in such a way that the hall e ect
sensor is sealed o from the water, and allows the sensor to stay safe and dry.
The picture of the YFS201 sensor module alone is shown below.
To connect with the pipe and water ow sensor, I used two connectors with a female thread as shown below.
According to YFS201 Speci cations, the maximum current it draws at 5V is 15mA, and the working ow rate is 1 to 30
liters/minute. When the liquid ows through the sensor, it makes contact with the ns of the turbine wheel, which is
placed in the path of the owing liquid. The shaft of the turbine wheel is connected to a hall e ect sensor. Due to this,
whenever water ows through the valve it generates pulses. Now, all we have to do is to measure the time for the pluses
or to count the number of pulses in 1 second and then calculate the ow rates in liter per hour (L/Hr) and then use simple
conversion formula to nd the volume of the water which had passed through it. To measure the pulses, we are going to
use Arduino UNO. The pic below shows you the pinout of the water ow sensor.
Step 2: Connections
The connection of the water ow sensor and LCD(16×2) with the Arduino is given below in table format. Note that the
pot is connected in between 5V and GND and pot’s pin 2 is connected with the V0 pin of the LCD.
Measure Water Flow Rate and Volume Using Arduino: Page 3
Connection diagram
Step 3: Circuit Diagram of How We Can Measure Water Flow Rate and Volume Using
Arduino