Skip to content

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

  • 12 slides
  • 15 viva questions
  • 4 modules
  • No code needed

@water-tank-level-controller-dry-run-protectionUpdated Oct 2026

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

Diploma (Polytechnic), Electronics & Communication · Sem 6 · Beginner · 14 weeks · Team of 3

More info
Level
Beginner · 14 weeks · Team of 3
Relevant for
Tamil Nadu
Common at
DOTE Tamil Nadu, SBTET AP, MSBTE
Syllabus
DOTE Tamil Nadu M-scheme (N-scheme rolling in) · 34067 (ECE) Project Work · Semester 6
Tech stack
  • 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
For educational purposes only

Unlock this project

Full PPT + speaker notes, the step-by-step method, READMEFIRST, instructions and all 15 viva answers.

One-time. No subscription, no auto-renew, no drama.

Project packs

Credits never expire and work on any project. Use one here, save the rest for your friend who “will pay you back”.

  1. Pinned

    1 min

    Overview

    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.

    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).

    1 min read · 15 viva questions

  2. 2 min

    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.
  3. 1 min

    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.

  4. 1 min

    Objectives & scope

    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.
  5. 1 min

    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.
  6. 2 min

    Architecture & tech stack

    • 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.

  7. 4 modules

    Modules

    • 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.

    • 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.

    • 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.

    • 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.

  8. Locked

    Presentation

    12 slides with speaker notes. The outline below is free; the bullets, notes and the generated .pptx unlock with the project.

    1. Automatic Water-Tank Level Controller with Dry-Run Protection
    2. Problem
    3. Objectives
    4. Existing vs proposed system
    5. Block diagram
    6. Circuit design
    7. Simulation results
    8. Firmware flowchart
    9. Hardware prototype
    10. Testing
    11. Cost estimate
    12. Conclusion and future scope

    Bullets, speaker notes and the .pptx download unlock with the project.

    Presentation is locked: 12 slides, Speaker notes, .pptx download.

  9. 1 min

    Future scope

    • 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.
  10. 7 sources

    References

    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

Slides, diagrams & files

12 slides. Titles are free; bullets, speaker notes and the .pptx unlock with the project.

  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

Architecture diagrams · 2

1
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
2
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

Files

Viva questions & answers

3 of 15 questions free. Explain each answer in your own words before you move on.

  1. Concept

    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. Concept

    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. Concept

    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

They and the answers unlock with the project. Try answering the ones above yourself first. Your examiner will.

For educational purposes only. Use this bundle to understand how the project works, then build and write your own. Submitting it verbatim is between you, your conscience and your external examiner.