Skip to content
OnlyProjects
Diploma (Polytechnic) · Electronics & CommunicationFor educational purposes only

8051-Based Automatic Water-Tank Level Controller with Sump Dry-Run Protection for Motor Pumps

Fills the overhead tank on its own and refuses to run the pump dry when the sump is empty

Mapped to your syllabusDOTE Tamil Nadu M-scheme (N-scheme rolling in) · 34067 (ECE) Project Work · Semester 6

Overview

1 min read

Automatic Water-Tank Level Controller with Dry-Run Protection is a diploma ECE hardware project that solves an everyday problem in Tamil Nadu homes and small apartment blocks. Most buildings pump water from an underground sump to an overhead tank using a single-phase motor that someone switches on and off by hand. The tank overflows when people forget to switch off, runs empty at night when they forget to switch on, and the pump is often left running when the sump itself is empty, which overheats and damages the motor within minutes.

Our controller uses an 8051-family microcontroller (AT89S52) to read stainless-steel electrode probes in the overhead tank (low, half and full levels) and a float switch or electrode pair in the sump. It switches the pump motor through a transistor-driven relay and contactor, starts the motor when the overhead tank falls below the low mark, stops it at the full mark, and cuts off immediately if the sump runs dry. A second protection, a fill-timeout, stops the motor if the overhead level does not rise within a set time. A 16x2 LCD shows tank level, sump status and motor state, and a buzzer warns of overflow risk and dry-run faults.

Every circuit block is first simulated in Multisim or TINA before being assembled on veroboard and tested on a small demonstration tank. The bundle includes the block diagram, control flowchart, Embedded C logic, bill of materials in rupees and a testing table for the team to fill with their own readings.

Relevant for
Tamil Nadu
Level
Beginner · 14 weeks · team of 3
Common at
DOTE Tamil Nadu, SBTET AP, MSBTE
Updated
Nov 2026

Syllabus alignment

DOTE Tamil Nadu · M-scheme (N-scheme rolling in)

34067 (ECE) · Project Work · Semester 6 · internal 25 (Review I 10 + Review II 10 + attendance 5) + board 75 (viva 30, report & demo 35, written test 10)

Subjects this project applies
  • 34052 Microcontroller (8051 architecture, ports, timers, interfacing)
  • 34066 Embedded Systems practical (LCD, relay and sensor interfacing)
  • PSPICE / Multisim / OrCAD / TINA circuit simulation
  • C programming (Embedded C for 8051)
How it is evaluated

See your department's project guidelines.

Also fits: SBTET AP C-23, MSBTE K-scheme (I-scheme legacy).

What's in the box

11 parts · 6 free · 2 previewed · 3 unlock for ₹2,000

Problem & synopsis

5 min read

Problem statement

Homes and small apartment blocks in Tamil Nadu store water in an underground sump and lift it to an overhead tank with a single-phase pump that is switched manually. When the person responsible forgets, the overhead tank overflows and wastes water, or it runs empty and residents have no water at peak hours. Worse, the pump is often switched on or left running when the sump is already empty. Running dry, the pump loses its water cooling and lubrication, its seal and winding overheat, and motor rewinding becomes a recurring expense.

Existing low-cost float controllers watch only the overhead tank and do not know whether the sump has water, so they cannot prevent dry running. The problem is to design a low-cost, reliable controller that automatically maintains the overhead tank level, prevents dry running using sump sensing and a fill-timeout, clearly displays status and faults, and can be built and tested by a diploma team with standard lab components.

Synopsis

Abstract

Manual switching of water pumps wastes water through overflow and damages motors through dry running when the sump is empty. This project designs and builds an automatic water-tank level controller based on the 8051 microcontroller. Electrode probes sense three levels in the overhead tank, and a float switch senses water in the sump. The microcontroller switches the pump through a relay and contactor, displays status on a 16x2 LCD and sounds a buzzer on faults. Two independent protections, sump-empty cut-off and fill-timeout, prevent dry running. The circuits are simulated in Multisim/TINA, assembled on veroboard and tested on a demonstration tank using a small 12 V pump, with the 230 V contactor stage tested separately under supervision.

Introduction

In Chennai, Coimbatore and Madurai, most independent houses and small apartments receive corporation or tanker water into a sump and lift it to an overhead tank. Motor switching is manual, usually done by a family member or the watchman. The result is daily overflow, water shortage at peak hours and frequent motor rewinding bills.

Existing system

  • Manual switching: depends on someone remembering; overflow and dry running are common.
  • Simple float-switch controllers: start and stop the motor on overhead level only, with no sump check, so the motor can still run dry.
  • Commercial controllers: available, but many basic units lack a display, fault indication or a timeout.

Proposed system

  • Three-level sensing in the overhead tank with hysteresis (start at low, stop at full) to avoid rapid relay chatter.
  • Sump dry-run cut-off that blocks starting and stops a running motor when the sump is empty.
  • Fill-timeout protection if the overhead level does not rise, which also catches an airlock or a broken pipe.
  • LCD status, buzzer alarm, manual override switch and a fault latch that needs a reset press.

Feasibility

  • Technical: uses the 8051, relays and LCD interfacing taught in 34052 and 34066.
  • Economic: indicative component cost is about ₹2,400–2,700 including the contactor and enclosure.
  • Operational: a family member only needs to read the LCD and press reset after a fault.
  • Schedule: fits the 14-week project semester with simulation in the first half and hardware in the second.

Objectives

  1. 01Design an electrode-based level sensing circuit for three overhead-tank levels and a sump level using transistor buffers.
  2. 02Interface the sensors, a 16x2 LCD, a buzzer and a relay driver with an AT89S52 microcontroller.
  3. 03Write Embedded C firmware with hysteresis control, sump dry-run cut-off and a timer-based fill-timeout.
  4. 04Simulate the power supply, sensing and relay driver circuits in Multisim or TINA before hardware assembly.
  5. 05Assemble the prototype on veroboard (or single-sided PCB) and test it on a demonstration tank.
  6. 06Prepare a bill of materials in rupees and a test report with measured voltages and response observations.
  7. 07Follow electrical safety practice for the 230 V contactor stage under lab supervision.

Scope

In scope

  • One overhead tank (three levels: low, half, full) and one sump (empty or available).
  • Control of one single-phase pump through a relay-driven contactor (demonstrated with a 12 V DC pump and, separately, a lamp load on the contactor under supervision).
  • LCD status display, buzzer alarm, manual override and fault reset.
  • Simulation, veroboard prototype, testing table and cost estimate.

Out of scope

  • Three-phase motors, star-delta starters and motor overload relays (mentioned under future scope).
  • Mobile app or GSM alerts.
  • Continuous (analogue) level measurement; this project uses discrete levels.
  • Permanent installation on a real building, which must be done by a licensed electrician.

Methodology

We follow a design, simulate, build, test method organised as a V-model: every design block has a matching test planned before it is built.

PhaseWeeksActivitiesOwner(s)Output
Problem study1–2Survey 8–10 households or an apartment association about pump use and motor repairs; list requirementsAllRequirement list, survey sheet
Block design3Block diagram, component selection, level logic truth tableAllDesign document
Simulation4–6Power supply and electrode buffer in Multisim/TINA; relay driver with flyback diode; 8051 logic simulated in the Multisim MCU module or a Proteus-class simulatorMember A, Member CSimulation screenshots and readings
Firmware5–8Embedded C in Keil µVision: sensor read, debounce, state machine, LCD, timer-based timeoutMember BHex file, flowchart
Hardware8–10Veroboard assembly of power supply, MCU board, sensing and relay stages; electrode probe fixingMember A, Member CPrototype
Testing11–12Stage-wise voltage tests, logic tests on demo tank, fault tests, 230 V contactor test with lamp load under supervisionAllFilled testing table
Documentation13–14Report, BOM, PPT, rehearsal for board viva and written testAllFinal submission

Control logic (truth table summary)

  • Sump empty → motor OFF, buzzer ON, LCD "SUMP DRY".
  • Sump available and overhead below LOW → motor ON.
  • Motor ON and overhead reaches FULL → motor OFF.
  • Motor ON and no level change within the timeout (for example 10 minutes) → motor OFF, fault latched, buzzer ON.

Architecture & tech stack

2 diagrams · 8 technologies · 2 min read

  • 8051 microcontroller (AT89S52)
  • Embedded C
  • Keil µVision C51 compiler (industry-standard extra)
  • NI Multisim
  • TINA / PSPICE
  • 16x2 LCD (HD44780)
  • Relay and contactor driver
  • Veroboard / single-sided PCB

The controller is organised in five blocks around the AT89S52.

  1. Power supply: 230 V to 12-0 V step-down transformer, bridge rectifier, filter capacitor, 7812 for the relay and 7805 for the microcontroller and LCD.
  2. Level sensing: stainless-steel electrodes at LOW, HALF and FULL marks plus a common electrode at the tank bottom. When water bridges an electrode to common, a small base current turns on a BC547 transistor, pulling the corresponding 8051 input low. The sump uses a float switch (or an electrode pair) on another input.
  3. Microcontroller: AT89S52 with 11.0592 MHz crystal, reset circuit, inputs on Port 1, LCD on Port 2 in 4-bit mode, relay and buzzer on Port 3.
  4. Output drivers: BC547 transistor driving a 12 V relay with a 1N4007 flyback diode; the relay contact energises the contactor coil, and the contactor switches the motor.
  5. User interface: 16x2 LCD, buzzer, manual override switch and fault reset push-button.
flowchart TD
  PS["Power supply (12 V and 5 V)"] --> MCU["AT89S52 microcontroller"]
  OT["Overhead tank electrodes (LOW, HALF, FULL)"] --> BUF["BC547 buffer stage"]
  SU["Sump float switch"] --> BUF
  BUF --> MCU
  MCU --> LCD["16x2 LCD display"]
  MCU --> BZ["Buzzer"]
  MCU --> RD["Relay driver with flyback diode"]
  RD --> CT["Contactor"]
  CT --> PM["Single-phase pump motor"]
  SW["Override and reset switches"] --> MCU
flowchart TD
  S["Start: read sensors"] --> D{"Sump has water?"}
  D -->|"No"| X["Motor OFF, show SUMP DRY, buzzer ON"]
  D -->|"Yes"| L{"Overhead below LOW?"}
  L -->|"Yes"| ON["Motor ON, start timeout timer"]
  L -->|"No"| F{"Overhead at FULL?"}
  F -->|"Yes"| OFF["Motor OFF"]
  F -->|"No"| T{"Timeout expired without level rise?"}
  T -->|"Yes"| FLT["Motor OFF, latch fault, buzzer ON"]
  T -->|"No"| S
  ON --> S
  OFF --> S
  X --> S

Core firmware logic (Embedded C, Keil C51)

sbit SUMP = P1^0;  sbit LOW = P1^1;  sbit FULL = P1^3;  sbit RELAY = P3^6;
/* inputs are active-low: 0 means water present at that electrode */
void control(void) {
  if (SUMP == 1) { RELAY = 0; fault = DRY; return; }        /* sump empty */
  if (fault) { RELAY = 0; return; }                          /* latched until reset */
  if (LOW == 1 && RELAY == 0) { RELAY = 1; start_timer(); }  /* below LOW: start */
  if (FULL == 0 && RELAY == 1) { RELAY = 0; stop_timer(); }  /* FULL reached: stop */
  if (RELAY == 1 && timeout_expired()) { RELAY = 0; fault = TIMEOUT; }
}

Inputs are read three times, 20 ms apart, and accepted only if all readings agree, which filters ripples on the water surface. The timeout uses Timer 0 interrupts counting 50 ms ticks.

Materials & cost

18 items · ≈ ₹1,730 – ₹2,090 · free to read · .xlsx unlocks

What you will actually buy, roughly what it costs in India, and where to look. Free to read, links included.

Boards, sensors & electronics

Mechanical, raw material & fabrication

Software, stationery, services & borrowed tools

  • Two 5-litre plastic containers (demo tanks)

    Other

    Qty 2 pc

    Approx ₹100₹50 / pc

    Amazon.inIndiaMART

  • 8051 ISP programmer (USBasp class)

    shared per batch in the lab; ≈ ₹300–400 to buy one

    Tools to borrow

    Qty 1 pc

    Approx borrowed

    Your lab or department

  • Digital multimeter

    borrow from the department lab

    Tools to borrow

    Qty 1 pc

    Approx borrowed

    Your lab or department

What you will spend

≈ ₹1,730 – ₹2,090

  • With the optional rows: ≈ ₹2,580 – ₹3,110.
  • 2 rows are borrowed tools or lab slots and are not priced.
  • Prices approximate, Nov 2026 — Indian retail, the upper edge allows a 20% spread. Compare locally before you order.
Editable .xlsx sheet with the same rows and totals unlocks with the project · ₹2,000

We don’t sell parts and get nothing from these stores: the links are plain searches or the author’s own product pages, not referrals. For educational purposes only.

Modules

4 modules

  1. Module 01

    Power Supply and Level Sensing (Member A)

    Designs and simulates the transformer, bridge rectifier, 7812 and 7805 regulators and the BC547 electrode buffer stage. Selects base resistor values so sensing current stays small, fixes stainless-steel probes at the LOW, HALF and FULL marks and records input voltages with and without water.

  2. Module 02

    Microcontroller Firmware and LCD (Member B)

    Writes the Embedded C firmware in Keil µVision: input debounce, the control state machine with hysteresis, Timer 0 fill-timeout, fault latch and reset, and 4-bit LCD routines that show tank level, sump status and motor state. Burns the hex file with a USB ISP programmer.

  3. Module 03

    Motor Switching and Protection (Member C)

    Designs the transistor relay driver with flyback diode and the relay-to-contactor interface, simulates the driver in Multisim, and tests the contactor stage with a lamp load under supervision. Owns the dry-run test cases, including sump-empty cut-off and fill-timeout.

  4. Module 04

    Prototype Assembly, BOM and Testing (Shared, led by Member C)

    Veroboard layout, soldering and enclosure fitting are shared among all three members. Member C maintains the bill of materials in rupees and the testing table, while each member fills test rows for their own block so individual work is visible at Review I and Review II.

Slides

12 slides · titles free · bullets, notes and the .pptx unlock

  1. Slide 1

    Automatic Water-Tank Level Controller with Dry-Run Protection

  2. Slide 2

    Problem

  3. Slide 3

    Objectives

  4. Slide 4

    Existing vs proposed system

  5. Slide 5

    Block diagram

  6. Slide 6

    Circuit design

  7. Slide 7

    Simulation results

  8. Slide 8

    Firmware flowchart

  9. Slide 9

    Hardware prototype

  10. Slide 10

    Testing

  11. Slide 11

    Cost estimate

  12. Slide 12

    Conclusion and future scope

Bullets, speaker notes and the .pptx · ₹2,000

The titles above are the real outline. The rest is what you present from.

Unlock for ₹2,000

Viva questions & answers

3 of 15 answered free · 12 unlock

Read each answer, close it, and say it in your own words. Your viva will ask. Now you'll know.

  1. 01Concept

    What is dry running and why does it damage a pump?

    Dry running means the pump runs without water inside. A monoblock pump relies on the water it moves for cooling and for lubricating the mechanical seal, so without water the seal and impeller overheat, the seal fails and the motor winding can burn within minutes.

  2. 02Concept

    Why did you choose the 8051 microcontroller for this project?

    The 8051 has enough I/O pins for four level inputs, an LCD, a relay, a buzzer and switches, it has built-in timers for the fill-timeout, and it is part of our 34052 Microcontroller syllabus. The AT89S52 is cheap, widely available and can be programmed in-system.

  3. 03Concept

    What is hysteresis in this controller and why is it needed?

    The motor starts when water falls below the LOW probe but stops only when it reaches the FULL probe. This gap is hysteresis. Without it, the motor would switch on and off rapidly around one level as water ripples, wearing out the relay and contactor.

+12 more questions, with answers

Try the free ones out loud first. Your examiner will not accept “it's in the PPT”.

How to carry it out

7 steps · unlocks with the project

Unlocks with the project · ₹2,000

7 steps

Every step to carry the project out with the tools in the tech stack, in order.

Unlock for ₹2,000

Read me first

277 words · unlocks with the project

What to change before it goes anywhere near a submission. Skipping it is how the demo fails live.

Unlocks with the project · ₹2,000

277 words · ~1 min read

The checklist of things to rename, re-seed and re-think so the project reads as yours.

Unlock for ₹2,000

Submission checklist

277 words · unlocks with the project

How to study it, adapt it and walk your examiner through it, step by step.

Unlocks with the project · ₹2,000

277 words · ~1 min read

Report structure, formatting rules and the submission checklist your department will grade.

Unlock for ₹2,000

References

7 sources

  1. Muhammad Ali Mazidi, Janice Gillispie Mazidi and Rolin D. McKinlay, The 8051 Microcontroller and Embedded Systems Using Assembly and C, 2nd ed., Pearson
  2. Kenneth J. Ayala, The 8051 Microcontroller, 3rd ed., Cengage Learning
  3. Microchip (formerly Atmel) AT89S52 8-bit Microcontroller datasheet
  4. Hitachi HD44780U Dot Matrix Liquid Crystal Display Controller/Driver datasheet
  5. Robert L. Boylestad and Louis Nashelsky, Electronic Devices and Circuit Theory, Pearson
  6. Bureau of Indian Standards (standards for electrical wiring installations and motor starters)
  7. Directorate of Technical Education, Tamil Nadu

Cite this bundle

OnlyProjects. (2026). 8051-Based Automatic Water-Tank Level Controller with Sump Dry-Run Protection for Motor Pumps: Diploma (Polytechnic) Electronics & Communication project bundle [Educational resource]. https://onlyprojects.online/projects/diploma-ece-water-tank-level-controller-dry-run-protection

Future scope

1 min read

  • GSM or Wi-Fi module (for example an ESP-series board) to send an SMS or app alert on dry-run faults.
  • Ultrasonic or pressure sensor for continuous level display in percentage instead of three steps.
  • Motor current sensing to detect dry running directly from reduced load current, plus overload protection.
  • Low and high voltage cut-off for areas with unstable supply.
  • Scheduling so the pump runs only during corporation supply hours or off-peak tariff periods.

Keep browsing

Same degree, same syllabus slot, different idea. Pick the one your guide will actually approve.