← Latest papers
⚡ electrical engineering

Design, Implementation, and Mathematical Modeling of an Autonomous Closed-Loop Water Level Controller with Dry-Run Protection

This paper presents the design, mathematical modeling, and implementation of a low-cost, Arduino-based closed-loop water level controller that utilizes hysteresis logic to automate pump operations, effectively eliminating overflow and preventing dry-run failures.

Original authors: Khan Uddin

Published 2026-07-29
📖 5 min read🧠 Deep dive

Original authors: Khan Uddin

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Great Water Balancing Act

Imagine a world where every time you turned on a faucet, a tiny, invisible guardian had to guess exactly when to stop the flow. In the realm of engineering, this is the daily struggle of fluid dynamics—the study of how liquids move and behave. At its heart lies a simple but tricky concept: mass conservation. Think of it like a bank account for water; the amount of water in a tank can only change if more flows in or if some flows out. If you don't watch the balance carefully, you might end up with an overflowing account (a flooded room) or a bankrupt one (a dry pump that burns out).

This is where closed-loop control comes in. It's like having a smart thermostat for your water tank. Instead of a human constantly watching a gauge and flipping a switch, a "closed loop" is a system where the machine checks the current state, makes a decision, and acts, all in a continuous circle of feedback. The goal is to keep things running smoothly without wasting energy or breaking the machinery. Why does this matter? Because in homes and businesses, water pumps that run dry can die, and tanks that overflow waste precious resources. We need a system that is as alert as a hawk but as simple as a light switch.


The Paper: A Smart Brain for Your Water Tank

In this short report, Khan Burhan Uddin and his team from City University in Bangladesh present a clever solution to the problem of managing water tanks: an autonomous closed-loop water level controller. They didn't just build a gadget; they built a mathematical brain to go with it.

The core problem they tackle is the messiness of manual water management. When humans try to manage water tanks, they often react too slowly. By the time they realize the tank is full and turn off the pump, water has already spilled over the top. Conversely, if they forget to turn the pump back on, the pump might run "dry"—sucking air instead of water—which can destroy the motor. The authors argue that relying on manual intervention is inefficient and risky. Instead, they propose a system that watches the water level and flips the switch automatically.

The "Brain" and the "Rules"
The team used a tiny computer chip called an Arduino UNO (specifically an ATmega328P microcontroller) to act as the brain. But a brain needs rules to follow. The paper introduces a concept called hysteresis to keep the system from getting confused. Imagine a room with a thermostat set to 70°F. If the thermostat turned the heater off the exact second the temperature hit 70°F, and then turned it back on the exact second it dropped to 69.9°F, the heater would be constantly clicking on and off, like a nervous tic. That's bad for the machine.

To fix this, the authors designed a system with two "sensors" or checkpoints: a low level and a high level.

  • When the water drops to the low level, the system says, "Okay, the tank is getting empty, turn the pump ON."
  • The pump runs until the water hits the high level, at which point the system says, "Tank is full, turn the pump OFF."
  • Crucially, the pump stays on even if the water dips slightly below the high level, and stays off even if it rises slightly above the low level. This "buffer zone" prevents the system from jittering or "chattering" due to waves in the tank.

The Math Behind the Magic
The authors didn't just guess how this would work; they wrote down the math to prove it. They treated the water tank like a cylinder and used the continuity equation (a fancy way of saying "what goes in minus what goes out equals the change in storage") to model how the water height changes over time. They even calculated the energy efficiency, showing how the pump's power relates to the height of the water and the friction in the pipes. They demonstrated that by automating the process, the "response latency" (the time it takes to react) is incredibly fast—about 150 milliseconds. That's faster than a human blink, meaning the system stops the water almost the instant the tank is full, saving nearly zero liters of water to overflow.

The Test Drive
To see if their math held up in the real world, the team built a physical prototype. They set up a small experiment with a tank, a submersible pump, and sensors placed at 3 cm (low) and 15 cm (high). They ran the system through 50 cycles of filling and emptying. The results were impressive: the system worked 100% reliably. There were no false triggers, no overflowing tanks, and no dry-running incidents. The total cost to build this entire setup was just 1,760 BDT (Bangladeshi Taka), proving that you don't need expensive industrial gear to solve this problem.

What They Found
The paper concludes that this low-cost, sensor-driven system is a robust solution for keeping water tanks full without wasting water or electricity. It successfully replaces the need for a human to watch the tank, using a "Finite State Machine" logic (a step-by-step decision process) to ensure the pump only runs when necessary. While the authors note that the system is highly reliable in their specific test conditions, they present it as a proven, energy-efficient method for residential and industrial fluid management, ready to be implemented to stop the wasteful cycle of overflowing tanks and broken pumps.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →