
Embedded Systems
Automatic Water Tank Controller
Abstract:
The Automatic Water Tank Controller is designed to monitor water levels and automatically control a water pump using an Arduino microcontroller, level sensors, and a relay module. The system detects low and high water levels and operates the pump according to predefined conditions. When the water level falls below the configured minimum level, Arduino activates the pump to refill the tank. When the tank reaches the maximum level, the controller switches off the pump to prevent overflow. An optional LCD can display the current water level and pump status. The project aims to reduce water wastage, minimize manual operation, and provide an efficient water-management solution for homes, apartments, farms, and other facilities.
Project Description:
This project develops an automatic water tank monitoring and pump-control system using an Arduino Uno or Nano, water-level sensors, relay module, and water pump.
Level sensors are installed at different positions inside the water tank to detect the minimum, intermediate, and maximum water levels. Float switches or compatible electronic water-level sensors can be used depending on the tank design.
Arduino continuously reads the sensor signals and determines the current water level. When the bottom sensor indicates a low-water condition, the controller activates the relay to switch on the water pump. The pump continues filling the tank until the top sensor detects that the tank is full.
When the maximum level is reached, Arduino deactivates the relay and switches off the pump. An optional middle sensor can provide intermediate-level information, while an LCD can display water-level status and pump operation.
Working Principle:
1. Water-Level Detection: Sensors installed at different tank positions detect the water level.
2. Data Acquisition: Arduino receives signals from the top, middle, and bottom sensors.
3. Level Processing: The controller determines whether the tank is empty, partially filled, or full.
4. Low-Level Detection: When the water reaches the configured minimum level, the controller identifies the need for refilling.
5. Pump Activation: Arduino activates the relay module to switch on the water pump.
6. Water Filling: The pump transfers water into the tank while the controller monitors the sensor signals.
7. Full-Level Detection: When the top sensor detects the full condition, Arduino switches off the pump through the relay.
8. Status Display: An optional LCD displays the water-level condition and pump ON/OFF status.
9. Continuous Monitoring: The controller continues monitoring the tank and repeats the process whenever the water level becomes low.
Notes:
- Float switches are a practical option for detecting minimum and maximum water levels.
- Select sensors compatible with the tank material, water conditions, and installation arrangement.
- Use suitable waterproof sensors and protect electrical connections from moisture.
- The relay module must be rated for the pump's operating voltage, current, and starting current.
- Use a separate power supply suitable for the water pump. Do not power the pump directly from an Arduino GPIO.
- For AC pumps, use a properly rated relay or contactor with suitable electrical isolation, enclosure, earthing, and overcurrent protection.
- Never handle exposed mains wiring or install AC pump-control circuits without a qualified electrician.
- Add a manual override switch for maintenance and emergency operation.
- Consider a dry-run protection mechanism to prevent pump operation when the source water supply is unavailable.
- Include a maximum pump-running timeout and sensor-failure detection for improved reliability.
- Use appropriate hysteresis or separate ON/OFF thresholds to prevent frequent pump switching.
- The middle sensor is optional and can be used for intermediate-level indication.
- An LCD, buzzer, Wi-Fi dashboard, or mobile notification system can be added as optional enhancements.
- This prototype demonstrates automatic water-level control; it should be tested thoroughly before being used in an actual household water system.
Expected Outcome:
The expected outcome is a functional Arduino-based automatic water tank controller that detects water levels and controls a pump without requiring continuous manual operation. It can automatically start the pump when the water level becomes low and stop it when the tank reaches its configured full level. An optional LCD can display the water-level condition and pump status. The project demonstrates sensor interfacing, relay-based pump control, embedded automation, and practical water-management techniques that help reduce overflow and unnecessary water wastage.
All Projects




