Automatic Water Level Controller for Smart Water Tank Management

Project worth a 100 hours of hard work!

Project Description

I made it for a client, an industry owner who wanted to automate his water tank valve.

Stainless Liquid Water Level Sensor Horizontal Float Duck-billed Switch

Liquid level sensors mainly consists of magnetic Reed switch and floater . There is a magnetic material in the floater that will trigger the magnetic Reed switch as the level of the liquid tested moves up and down , and thus detecting the position of the liquid level.

2.2KW 1NC 24VAC COIL CONTACTOR

The AC contactor is a heavy-duty electrical switch used to control the high-power 2.2KW water pump. It operates using a 24V AC coil, which is triggered by the microcontroller's relay. When activated, the contactor connects the pump to the main AC power line. Once deactivated, it safely cuts off power, allowing the microcontroller to control the pump without handling high current directly.

The Chad!

XH-M203

The Brain!

The XH-M203 is an automatic water level controller module designed to manage water pumps based on tank water levels. It uses float switches to detect upper and lower water levels, and activates its built-in relay to control a pump accordingly. It runs on 12V DC and provides LED indicators for power and water level states. It's a compact, plug-and-play solution for automating water tank refilling

The Beef!

Modules Used

How does it work?

This project is designed to automatically control the water level of an overhead water tower using two horizontal float sensors and a microcontroller-based switching system.

How it works:

Two horizontal float water level sensors are installed — one near the top and one at the bottom of the water tank. These act as the high and low water level indicators:

  1. Monitoring Stage:

    • When the water level drops below the upper sensor, the float tilts downwards, sending a signal to the microcontroller. However, no action is taken at this stage — this simply serves as a "pre-warning."

  2. Activation Stage:

    • Once the water level drops below the lower sensor, its float also drops, triggering the system.

    • The microcontroller activates its built-in relay, which then energizes a 2.2KW 1NC 24VAC coil contactor.

    • This contactor acts like a heavy-duty switch and connects the main power line to the water pump, starting the pumping process.

  3. Refill and Deactivation:

    • As water begins filling the tank, the float sensors rise with the level.

    • When the water reaches the upper float sensor, it tilts back to the upright position, sending another signal to the microcontroller.

    • This time, the microcontroller deactivates the relay, cutting power to the contactor and turning off the water pump.

This process repeats continuously, maintaining the water level within a safe range without any human intervention. It ensures efficient use of electricity and prevents both overflow and dry run conditions — making it ideal for homes, farms, or industrial settings.

After Installation..

Thank You For Reading!