This YF-S201 1/2 inch Water flow sensor consists of a black plastic valve body, a water rotor and a hall effect sensor. 1-30 Litre/min Water can flow through this sensor. This YF-S201 is placed in line with water and its pinwheel sensor detects how much liquid has flowed through it. With every pinwheel revolution magnetic hall effect sensor generate an electrical pulse which is fed to the controller and thus controller is able to detect how much liquid is flowing through the sensor at any point of time. The hall effect sensor is sealed from the liquid pipe and thus remains protected from the water. The Electrical pulse generated by the sensor is approximately equal to 2.25 milliliters. So by counting the number of pulse we can easily calculate the amount of water flowing through the sensor.
|Type||Flowmeter Control Switch (YF-S201)|
|Voltage (max)||5V-18V DC|
|Maximum operating Current||15 mA @ 5VDC|
|Flow Rate Range||1-30 L/min|
|Load capacity||≤ 10 mA (DC 5V)|
|Maximum Water Pressure||2 MPa|
|Intake/Outlet Diameter||11 mm|
|Outer Diameter||20 mm|
|Output Rise/Fall Time||0.4 µsec|
|Output Duty Cycle||50% +-10%|
The YF-S201 comes with three wires: Red/VCC (5V-18V) DC Input, Black/GND and Yellow which is for the Pulse Output. Connect the Red wire with the VCC of your controller, Black with Ground and Yellow wire with any digital pin which can also handle the interrupts. As soon as the liquid start flowing through the sensor, it generates digital pulse proportionally. With the help of counters and interrupts you can measure the liquid flow rate.