In this project, we will interface the Hall-Effect water flow sensor with Arduino for water flow rate and volume measurement system with LCD display. This is a useful project for industry and home or for water flow measurement applications like a water tap, tunnels, etc. It helps to identify the actual water flowing and also reduces wastage of water which is a huge problem in today’s world.
This project can be used commercially by shops to measure how much liquid flowing through a pipe or container and calculate the exact billing through this system.
Must Read Water Level Indicator
- Arduino Nano
- 16×2 LCD Display
- YF-S201 Water Flow Sensor
- 5V Power Supply
Circuit Connection for Water Flow Rate And Volume Measurement System
To display the value at the LCD display, we need to connect the LCD pins 1, 3, 5, and 16 to GND and 2, and 15 to +5V VCC. Finally connect LCD pins 4, 6, 11, 12, 13, and 14 to the Arduino digital pins D7, D6, D5, D4, D3, D2.
Connect YFS201 hall effect water flow sensor’s VCC pins to +5V VCC and GND to the ground. Since it is an analog sensor, we should connect its analog pin to the A0 of the Arduino.
For removing messy wiring and give a clean look, I designed a PCB prototype for this project. It is also helpful for troubleshooting that runs great without any errors. To design this PCB board, I used EasyEDA as it is too easy to use. For ordering PCB for this, I prefer PCBWay.
Gerber file for Water Flow Rate And Volume Measurement System Gerber.
You can view the Gerber file here Gerber File Viewer.
Order PCB From PCBWay
There are so many forums or communities for electronics online in today’s technical world, and one of the famous ones for PCB manufacturing is the PCBWay. PCBWay is a place that brings manufacturers and customers together. They have more than a decade of experience in this field of fabrication, prototyping and assembling PCBs. PCBWay has proved its focus on its customers’ needs in terms of cost-effectiveness, delivery, and quality.
How PCB Manufacturing Process Done in PCBWay
Standard quality for any product needs to be maintained using some parameters. PCBWay gives that opportunity through quality control in designing and manufacturing. At first, they ensure the accuracy, clarity, and validity of the PCB files that we sent to them.
Then all the boards will go through the most stringent tests other than the basic visual check. They adopt most of the testing and inspecting equipment used in the industry, such as Flying Probe Tester, X-Ray Inspection Machine, and Automated Optical Inspection (AOI) Machine. PCBWay are having 50+ new engineers on the daily basis around the world using PCBs for their work, who trust for their reliable quality. They produce high-quality pink, orange, grey, and even transparent solder mask. Moreover, according to people’s needs, they can also provide Black core PCB. Check it out for a High-Quality PCB solder mask. There are some pictures below of the new colours of solder musks.
Features of PCBWay
PCB Prototyping & Manufacturing: PCBWay produces FR-4 and Aluminum boards and advanced PCBs like Rogers, HDI, Flexible and Rigid-Flex boards, at a very reasonable price. Just check this Instant Quote to order premium PCBs for your hobby projects.
PCB Assembly: It not only offers PCB Prototyping but also offers PCB Assembly service. You can order a full PCB board with attached components by uploading your file. SMT & THT assembly starts from only 30$ including free stencil and worldwide shipping. The components can be sourced and provided by PCBWay, or by clients themselves.
Open Source Community: It not only offers PCB Prototype & Assembly service but also gives opportunities to students for sponsorships. I think this is so great. They feature their projects on the website also.
3D Printing & CNC: It also produces Rapid Prototyping like 3D printing, CNC Machining, Sheet Metal Fabrication, and Injection Molding. The quality of the product is too premium and reliable. And also the best part is that you will receive your order within a minimum of 3 days.
PCBWay Store: More boutique gift modules are waiting for you to discover, giving your creativity wings. You can order all types of electronic equipment, components and many more with exciting offers. Go with the link and buy your needs, PCBWay Store.
Services: PCBWay offers great servicing of their products. It takes only 3 to 15 days according to courier service to deliver your products. Also, it has a live support facility. Whenever you have any problems, you can always reach a live customer service person to respond to your emails or messages. They have the “Return and Refund” principle, for every unusable board caused by PCBWay, they will rebuild and refund the order soon.
Guide for Ordering PCB From PCBWay
Features of YF-S201 Water Flow Sensor
- Sensor Type: Hall Effect Sensor
- Voltage Range: 4.5V to 18V DC Voltage
- Maximum Current: 15mA
- Output Type: 5V TTL
- Flow Rate: 1-30 Liters/Min
- Temperature Range: -25°C to +80°C
- Humidity Range: 30%-80% RH
- Accuracy: ±10%
- Maximum Pressure: 2.0 MPa
- Output Duty Cycle: 50%±10%
- Pulses Per Liter: 450
Working Principle of Water Flow Rate And Volume Measurement System
The Arduino Water Flow Sensor for Flow Rate and Volume Measurement System works on the Hall-Effect principle. According to the hall effect principle, a voltage difference is induced in a conductor transverse to the electric current and the magnetic field perpendicular to it. Here, the Hall effect is utilized in the flow meter using a small fan/propeller-shaped rotor, which is placed in the path of the liquid flowing.
The liquid pushes against the fins of the rotor, causing it to rotate. The shaft of the rotor is connected to a Hall effect sensor. It is an arrangement of a current flowing coil and a magnet connected to the shaft of the rotor, thus a voltage/pulse is induced as this rotor rotates. In this flow meter, for every litre of liquid passing through it per minute, it outputs about 4.5 pulses. This is due to the changing magnetic field caused by the magnet attached to the rotor shaft. We measure the number of pulses using an Arduino and then calculate the flow rate in litres per hour (L/hr) and total volume in Litre using a simple conversion formula
Application of Water Flow Rate And Volume Measurement System
- It is commonly used in HVAC systems, medical devices, chemical factories, and septic systems.
- Water flow sensors are able to detect leakage, blockage, and pipe bursts due to contamination or pollution.
- These are also usually used in domestic and various industrial sectors to measure the volume or mass of a liquid or gas, depending on the application.
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
float Time = 0;
float Freq = 0;
float Water = 0;
float Total = 0;
float LS = 0;
const int sensor = A0;
lcd.print(“Water Flow Meter”);
X = pulseIn(sensor, HIGH);
Y = pulseIn(sensor, LOW);
Time = X + Y;
Freq = 1000000/Time;
LS = Water/60;
if(Freq >= 0)
Total = Total + LS;