Automatic Water Level Controller Using
Arduino
1. Objective
To develop a system that automatically controls a water pump based on the water level in a
tank using Arduino and an ultrasonic sensor. This helps to save water and power by turning
the pump on and off automatically.
2. Components Used
- Arduino UNO
- Ultrasonic Sensor (HC-SR04)
- Relay Module (5V)
- Water Pump (DC or AC)
- Jumper Wires
- Power Supply (Battery/Adapter)
- Breadboard (optional)
3. Design and Layout Description
The prototype consists of an Arduino UNO connected to an ultrasonic sensor mounted
above a transparent water tank. The sensor measures the distance to the water surface. If
the distance is above a set threshold (indicating low water), Arduino activates the relay
which turns on the water pump. Once the water level reaches a full point, the pump is
turned off automatically.
The components are arranged on a display board. The water tank is positioned vertically
with the ultrasonic sensor on top. Arduino is placed centrally, with wires connecting to the
sensor, relay module, and pump. A 12V to 5V converter supplies power to the Arduino.
Relay and pump are positioned neatly to the side, similar to the clean and educational
prototype layout in the solar tracker project.
4. Working Principle
The ultrasonic sensor continuously measures the water level. The Arduino reads the sensor
data and compares it with predefined values. If the water level is low, it triggers the relay to
turn on the pump. When the water level is high, the relay turns off the pump. This provides
an efficient automatic control system without human intervention.
5. Learning Outcomes
• Learned how to use Arduino with sensors and relays.
• Understood real-time automation and water management.
• Gained experience in practical circuit connections and testing.
• Applied energy-efficient solutions in daily life applications.