Final-year projects / Home and building

Overhead tank level controller with dry-run protection

Overflowing tanks on terraces waste lakhs of litres in every city, and pumps burn out when they run dry. A controller that fills only when needed and stops when the sump is empty fixes both.

Arduino UnoMini projectEEE, ECE, EIE, Diploma
UNOON142 cmFeatured
Parts
₹3,750
Build
8 weeks
Board
Arduino Uno
Objectives
5
A real pump runs on mains: drive it through a rated contactor in a closed box and have it checked. Demo with a 12 V pump.

Block diagram

Inputs
  • Ultrasonic level sensorMeasures water level in the tank
  • Sump float switchStops the pump when the sump is empty
Controller
  • UNO
    Arduino UnoRuns the fill logic
Outputs
  • ON
    RelaySwitches the pump (a contactor for a real motor)
  • 23.4°CLCD
    LCDShows tank level in percent
  • 4G
    4G modemSends SMS alerts and calls over the mobile network+

Objectives

  1. To measure tank level within ±2 cm, with the sensor mounted at least 30 cm above the full level (blind zone).
  2. To start and stop the pump at set levels with hysteresis.
  3. To stop the pump within 2 seconds when the sump runs dry.
  4. To estimate water saved per month for one building.
  5. To send SMS alerts through a 4G modem where no Wi-Fi is available.

Parts and specifications

Total about ₹3,750 at typical online prices. Tap a part for its pinout and datasheet notes.

Design calculations

Distance from echo

d = (t × 343 m/s) / 2. An echo of 5.8 ms gives 0.0058 × 343 / 2 = 0.99 m.

Level and percent

Tank depth H = 1.2 m, sensor 0.3 m above the full level. Level = H + 0.3 − d. With d = 0.99 m, level = 0.51 m = 43%.

Volume

A 1000 L cylindrical tank 1.2 m tall holds 833 L per metre, so 0.51 m is about 425 L.

Temperature correction

Speed of sound c = 331.3 + 0.606 × T. At 35 °C c = 352 m/s, 2.6% more than at 20 °C, so measure or assume the roof temperature.

Pin map

SignalPin or connection
JSN-SR04T TRIG / ECHOD9 / D10
Sump float switchD2 (pull-up, closed = water present)
Relay IND7
LCD SDA / SCLA4 / A5
PumpRelay NO in the 12 V line (contactor for a real motor)

Firmware outline

  1. Measure distance 5 times every 2 s and take the median to reject ripples and echoes.
  2. Convert to level and percent.
  3. If level < 25% and the sump float shows water, start the pump.
  4. Stop at 95%, or at once if the sump runs dry or the level does not rise 2 cm in 3 minutes (dry run or broken pipe).
  5. Show level, pump state and last fault on the LCD.

Test plan

TestExpected result
Measured against a tape at five levelsWithin ±2 cm
Level below 25%Pump starts
Level reaches 95%Pump stops
Sump float lifted out (dry)Pump stops within 2 s
Outlet blocked so level does not riseDry-run fault after 3 minutes

These rows start your results table when you plan the project.

Viva practice

Say your answer out loud first, then check. The first 2 answers are free; Maker opens all 6.

1. Why use the waterproof JSN-SR04T?
2. Why a median and not an average?
3. What is dry-run protection?
4. Why hysteresis between 25% and 95%?
5. How would you switch a 1 HP pump?
6. How could the tank talk to the sump wirelessly?

Make it yours

One or two upgrades for a mini project, two to four for a major one.

Build these first

Datasheets and sources to cite

  • JSN-SR04T datasheet
  • Microchip ATmega328P datasheet
  • CPHEEO manual on water supply (per-capita demand)

About this project

How much does the overhead tank level controller with dry-run protection project cost?

About ₹2,160 for the parts in the base list: Arduino Uno R3 (CH340 clone), JSN-SR04T waterproof ultrasonic sensor, Vertical float switch, 5 V relay module (1 channel), 16×2 LCD with I²C backpack, 12 V pump for the demo model, 12 V 2 A DC adapter, Two buckets, tube, wires and box.

How long does it take?

About 6 weeks for the base project, built on an Arduino Uno. Each upgrade adds time.

Which branches is it suitable for?

Electrical and Electronics, Electronics and Communication, Instrumentation, Diploma (any electronics branch), as a mini project.

Which pins and design calculations does it use?

JSN-SR04T TRIG / ECHO on D9 / D10; Sump float switch on D2 (pull-up, closed = water present); Relay IN on D7. Worked calculations on this page: distance from echo, level and percent, volume, temperature correction.

How do I test it?

Measured against a tape at five levels: Within ±2 cm. Level below 25%: Pump starts. Level reaches 95%: Pump stops. Sump float lifted out (dry): Pump stops within 2 s. Outlet blocked so level does not rise: Dry-run fault after 3 minutes.

What are the objectives?

To measure tank level within ±2 cm, with the sensor mounted at least 30 cm above the full level (blind zone). To start and stop the pump at set levels with hysteresis. To stop the pump within 2 seconds when the sump runs dry. To estimate water saved per month for one building.