Built to order

Arduino-Based Water Flow Meter with YF-S201 Sensor and LCD Display

This project builds an Arduino-based water flow meter that measures flow rate and totalised volume using a YF-S201 Hall-effect sensor and shows both readings on a 16x2 LCD. Water spinning the rotor produces pulses that the Arduino Uno counts with a hardware interrupt, converts to litres per minute, and accumulates into a running total in litres. It is a standalone, offline meter — the sensing, counting and display all happen on the board, with no cloud, app or leak detection. Suitable for B.E./B.Tech final-year projects in Electronics, E&TC, Electrical and Instrumentation.

Chat on WhatsApp — get a quotation

Electronics / E&TC Arduino UnoArduino IDE16×2 LCD with I2C backpackBreadboard prototypingLiquidCrystal_I2C libraryMeasuring-jug calibration methodHardware
Arduino-Based Water Flow Meter with YF-S201 Sensor and LCD Display — project thumbnail preview
More project photos (2)

The problem

An Arduino-Based Water Flow Meter with YF-S201 Sensor and LCD Display is a standalone instrument that measures water flow rate and total volume, showing both numbers on a 16x2 LCD. It uses an Arduino Uno and a YF-S201 Hall-effect flow sensor fitted inline in a half-inch water line, with no Wi-Fi, cloud service or phone app. Water flow spins a small magnetic rotor inside the sensor, and each turn makes a Hall-effect switch emit one electrical pulse, so the pulse train is a direct, countable picture of the water passing through. The Arduino counts those pulses with a hardware interrupt, divides the count per second by the sensor's datasheet constant of 7.5 to get flow rate in litres per minute, and keeps a running total of litres by adding up every pulse. Households, labs and farms still estimate water use by eye or by timing a tap; this meter replaces that guesswork with a live number and a readable total.

SYSTEM FLOW

4 components 3 connections

Live flow
Drag to explore
100%
userTap or Pump

Water from the tap or pump enters the sensor through the half-inch pipe.

Follow the working sequence

How it works

Water enters the YF-S201 sensor through one half-inch threaded end and leaves through the other, spinning a small magnetic rotor inside the sensor body as it passes. A Hall-effect switch next to the rotor emits one square-wave pulse each time a magnet on the rotor sweeps past it, so faster water means a faster-spinning rotor and a higher pulse frequency. The Arduino Uno watches the sensor's yellow signal wire on digital pin D2 with a hardware interrupt, counting every rising edge as it arrives. Once per second the sketch takes the pulse count, divides it by the datasheet constant of 7.5 to get the flow rate in litres per minute, and adds the same pulses to a running total divided by the calibrated pulses-per-litre constant to get litres. Both numbers are written to the 16x2 LCD — flow rate on the first line, total volume on the second — and the cycle repeats every second while water flows.

  1. Water flows through the YF-S201 sensor fitted inline in a half-inch pipe, spinning its magnetic rotor.
  2. The Hall-effect switch inside the sensor emits one square-wave pulse per rotor pass, at a frequency proportional to flow.
  3. The sensor's yellow signal wire feeds digital pin D2 on the Arduino Uno, which counts every rising edge using a hardware interrupt.
  4. Once per second, the sketch divides the pulses counted in that second by 7.5 (datasheet constant) to get the flow rate in litres per minute.
  5. The same pulses are added to a running total and divided by the calibrated pulses-per-litre constant to give total volume in litres.
  6. The 16x2 LCD is updated with the flow rate on line one and the total volume on line two.
  7. Pressing the reset push button clears the accumulated total to zero for the next measurement session.

Tech stack:

  • Arduino Uno (ATmega328P)
  • YF-S201 Hall-effect flow sensor
  • 16x2 LCD with I2C backpack
  • Arduino IDE
  • Embedded C++ · interrupt-based pulse counting
  • LiquidCrystal_I2C library
  • Breadboard prototyping
  • Measuring-jug calibration method
Parameter Value
Controller Arduino Uno (ATmega328P, 16 MHz clock — datasheet value)
Flow sensor YF-S201 Hall-effect turbine sensor, G1/2 (1/2 inch) male thread
Pulse relation F (Hz) = 7.5 × Q (L/min) — datasheet value
Pulses per litre Approximately 450 pulses/L — datasheet value (each pulse ≈ 2.2 mL)
Flow range 1–30 L/min — datasheet value
Sensor supply 5–18 V DC — datasheet value; run at 5 V in this build
Sensor current Up to 15 mA at 5 V — datasheet value
Output signal 5 V square wave, approximately 50% duty — datasheet value
Display 16x2 character LCD with I2C backpack
Displayed values Flow rate (L/min) and total volume (L)
Counting method Hardware interrupt on digital pin D2
Accuracy Approximately ±10% uncalibrated — datasheet value; improves after buyer calibration (no figure claimed)
Max water pressure 1.75 MPa — datasheet value
Calibration Buyer-calibrated pulses-per-litre using a measuring jug
Power 5 V USB or 7–12 V DC barrel jack (Arduino Uno input range)
Connectivity None — fully offline, no Wi-Fi or cloud

Project features

The Arduino-Based Water Flow Meter with YF-S201 Sensor and LCD Display is built around four capabilities that work together as one instrument. First, it shows the live flow rate in litres per minute on a 16x2 LCD, updated every second from the pulse count, so anyone can see at a glance how fast water is moving. Second, it keeps a running total of the volume that has passed through the sensor, in litres, so consumption over a filling session can be read directly without mental arithmetic. Third, it counts pulses with the Arduino's hardware interrupt on digital pin D2, which means no pulse is missed even when the flow — and therefore the pulse rate — rises. Fourth, it is calibrated by the buyer with a measuring jug, a hands-on procedure that turns the datasheet's nominal 450 pulses per litre into a constant matched to the actual sensor and pipe.

  • [Live flow-rate display — Implemented] The 16x2 LCD shows the current flow rate in litres per minute, refreshed every second from the pulse count, so the reading tracks the tap or pump in real time.
  • [Totalised volume counter — Implemented] The Arduino accumulates every counted pulse into a running total in litres, displayed on the second LCD line, so the volume delivered in a session is visible at any moment.
  • [Interrupt-based pulse counting — Implemented] The sensor's yellow signal wire goes to digital pin D2, one of the Uno's hardware interrupt pins, so every rising edge is counted immediately and no pulse is lost at higher flow rates.
  • [Buyer calibration with a measuring jug — Implemented] The pulses-per-litre constant is set by a documented procedure: run a known volume (for example 1 litre measured in a jug) through the sensor, note the pulse count, and store that constant in the sketch.
  • [Push-button total reset — Implemented] A tactile push button clears the accumulated total to zero, so each new filling or measurement session starts from a clean reading.
  • [Fully offline standalone operation — Implemented] The meter needs no Wi-Fi, cloud account or phone app; sensing, counting and display all happen on the Arduino Uno itself.
  • [Optional data logging — Optional customisation] An SD-card module or serial output to a computer can be added on request to record flow readings over time; it is not part of the base build.
  • [Future scope: solenoid shut-off — Future scope] A solenoid valve driven by a relay could stop flow automatically at a preset volume; this is listed as future work and is not implemented in the base project.

What is included

  • Working prototype (Arduino Uno, YF-S201 sensor, 16x2 LCD, breadboard wiring, tubing)
  • Complete Arduino firmware (pulse counting, flow-rate and total calculation, LCD output)
  • Circuit and wiring documentation with pin connections
  • Component list with part names and ratings
  • Setup instructions and measuring-jug calibration procedure
  • Project abstract PDF
  • Demonstration guidance for the viva
  • Project report and presentation slides

Limitations & prerequisites

  • Accuracy is approximately ±10% before calibration (datasheet value); the buyer must run the measuring-jug procedure for better results.
  • Below approximately 1 L/min the rotor may not spin reliably, so very slow drips are not measured.
  • The base build has no cloud, app, leak detection or data logging — it is a standalone meter by design.
  • The total volume resets when power is removed in the base build; storing it in EEPROM is an optional add-on.
  • Clean water only — the sensor is not rated for dirty water, slurries or chemicals; maximum water pressure is 1.75 MPa (datasheet value).
  • The 16x2 LCD shows only two values at a time; adding more readouts needs a larger display.
  • This is an academic prototype, not a billing-grade or certified water meter.

Frequently Asked Questions

Is this project suitable for a final-year project?

Yes — it fits Electronics, E&TC, Electrical and Instrumentation programs because it demonstrates sensor interfacing, interrupt-based counting, unit conversion and LCD display in one compact build, and every part of it can be explained and demonstrated live in a viva. The hardware is simple enough to assemble in a college lab, while the calibration procedure and the pulse-to-flow mathematics give the report genuine technical depth.

How accurate is the flow measurement?

The datasheet value is approximately ±10% before calibration, and the actual accuracy of any single build depends on the sensor unit, the pipe and the flow rate, so the project claims no measured accuracy figure of its own. Instead, the buyer calibrates the pulses-per-litre constant with a measuring jug, which tightens the reading to the actual sensor and installation.

How do I calibrate the meter?

Run a known volume of water through the sensor and count the pulses: fill a measuring jug with exactly 1 litre, let it flow through the sensor, and note the total pulse count, which becomes the pulses-per-litre constant in the firmware. Repeating the run two or three times and averaging the counts gives a steadier constant.

Does it need internet or a phone app?

No — the meter is fully offline: the sensor, the Arduino Uno and the LCD do all the work, and the readings appear on the display with no Wi-Fi, cloud account or phone involved. It runs from a 5 V USB supply or a 7–12 V DC adapter, so it can be demonstrated anywhere a tap and a power source are available.

Can it detect leaks or send alerts?

No — the base build measures flow rate and total volume only, and it has no leak-detection logic, buzzer, or alert output. Leak detection would need extra logic that watches for unexpected flow, plus an output device such as a buzzer or GSM module, and it can be developed as a customisation. The neighbouring ESP32 IoT water-flow project on this site covers cloud dashboards and leak alerts instead.

What power supply does it need?

A 5 V USB supply or a 7–12 V DC adapter, which is the Arduino Uno's normal input range, and no separate high-current supply is needed — a USB power bank is enough for a portable demonstration. The YF-S201 sensor itself runs from 5–18 V DC (datasheet value) and is powered at 5 V in this build, drawing up to 15 mA at 5 V.

Components & software requirements
  • Arduino Uno (ATmega328P)
  • YF-S201 Hall-effect flow sensor
  • 16x2 LCD with I2C backpack
  • Arduino IDE
  • Embedded C++ · interrupt-based pulse counting
  • LiquidCrystal_I2C library
  • Breadboard prototyping
  • Measuring-jug calibration method
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation