Water Level Controller

imageIn many homes and other public places, ground water is used, which is pumped up to overhead tanks using water pumps which are controlled by electric motors. Controlling the pumps is often a necessity to avoid wastage of water.

1.     Contact Water Level Controller

Here a simple circuit to control the Water pumps. When the water level in the over head tank exceeds the required level, the pump automatically turns off and stops the pumping process thus preventing the over flow of water. It uses a relay to cut off the power supply to the water pump.

The circuit is build using the following components:

  • CMOS IC CD4001: It is a versatile 14 pin IC which contains 4 NOR gates. Each NOR gate has two inputs and one output. Thus the IC has 8 input pins and 4 output pins, one Vcc pin (connected to positive voltage supply) and one Vss (connected to negative supply). Its basic features include – Maximum supply voltage: 15V, Minimum supply voltage: 3V, Maximum speed of operation: 4MHz. It can be used in tone generators, metal detectors etc.
  • Transistor BC547: It is a NPN bipolar junction transistor and it is used mainly for amplification and switching purpose. Its features include maximum current gain of 800.It is used in CE configuration when used as an amplifier.
  • Battery: A DC supply of 9V is given through a  battery to power up the circuit.


The circuit uses a CMOS IC CD 4001 / 4011 to drive the relay. Its input gate 1 is used to connect the probe to detect the water level. One probe is connected to the gate 1 of the IC and the other probe to the ground. When the probe A connected to the gate 1 of IC is floating, the input of gate 1 remains high and the output pin 4 goes high and the relay driver transistor conducts. The relay will be activated. The power supply of the water pump is connected through the common and the NO contacts of the relay so that when the relay turns on, water pump works. LED indicates the working of the relay. When the water level rises and makes contact with the probes A and B, output of IC turns low and the relay de-energizes to stop the pumping.

Initially when A and B are not connected, i.e. water level is low, the input pin1 of the IC is at logic high and according to NOR gate truth table, the output at pin3 will be at logic low. Since pin3 is shorted to pins 5 and 6, hence the input to other NOR gate will be logic low signals. This gives a logic high signal to the corresponding output pin 4. As current flows through the resistor to the base of transistor, it starts conducting and acts as a closed switch. The relay connected to the collector of the transistor gets energized and the NO contacts get connected to the common contact and the water pump gets power supply from the mains and starts working.

Now when water level rises in the tank rises such that probes A and B are connected through water, current flows through them (As water is a conductor) and the pins 1 and 2 are connected through A and B to the negative supply of the battery.

The output pin3 is thus, at logic high level, causing the input pins of the other NOR gate to be at logic high level and thus the corresponding output pin4 is at logic low level. The transistor gets cutoff due to lack of bias current and the relay gets correspondingly de-energized and the power supply to the water tank gets cut off.

2.     Contactless Water Level Controller

Apart from the technique discussed above, there can be another way to control water level in the tank by sensing it using Ultrasonic technique.  Unlike the previous method, this does not requires any contact with the water tank.

The system consists of the following parts

  1. A Regulated DC power supply to convert the AC supply to regulated DC voltage using bridge rectifiers and filters.
  2. An ultrasonic Module consisting of an ultrasonic transmitter and a receiver to sense the water level condition of the tank.
  3. A microcontroller which acts as a control unit.
  4. A transistor and a MOSFET unit which forms the switching unit
  5. A relay to control application of current to the pump
  6. A Pump which is the load
Water Level Controller Block Diagram
Water Level Controller Block Diagram

The ultrasonic sensor senses the level of water in the tank by transmitting ultrasonic signals towards the tank. The water in the tank reflects back the ultrasonic signals, which are received by the receiver. The ultrasonic or the sound signal received is converted to electric signal pulses which are applied to the Microcontroller. These pulses denote the level of water in the tank. As the water level decreases below certain level, the ultrasonic module gives an indication through the electric signal and the Microcontroller accordingly drives the transistor to off condition, which in turn causes the MOSFET to be switched on and accordingly the relay gets energized and the pump is switched on. In case the water level is above the threshold level, the Microcontroller accordingly switches off the relay through the transistor and MOSFET arrangement, so as to switch off the pump.

3.     A Digital Water Level Indicator

This system is used only to sense the level of water in a tank and display the reading on a 7 segment display.

Here a circuit board consisting of a parallel arrangement of conducting wires is placed in the tank. These wires serve as input to the Priority Encoder which generates a BCD output based on the input readings.  The Priority Encoder drives a set of transistors which in turn provide input to the BCD to 7 segments Decoder which uses the BCD signal to drive the 7 segment LED display.

Intelligent Overhead Tank Water Level Indicator
Intelligent Overhead Tank Water Level Indicator

When the input unit is placed in the water tank, current flows through the wires immersed in water and accordingly the corresponding number of inputs is in high logic state. The Encoder receives this input and based on the priority level of the inputs, gives a digital output code corresponding to the input with highest priority.

Thus if current flows through all the wires, i.e. the tank is full; the output code will correspond to the highest level. Here the input unit or the scale is divided into 10 levels from 0 to 9. Incase all the inputs to the Encoder are in high state, the output is also a high logic signal which drives all the transistors to ON condition, so that all the inputs to the BCD to 7 segment Decoder are in low logic state. The BCD to 7 segment Decoder simply acts as an inverter and thus gives a high logic signal in all its output and thus the highest level of 9 is displayed on the Display.



  1. Akindele Imoleayo says:

    Hi I love this. Am a plumber and am looking for a project to develop in my country to help the needs and increase the economics, like a tank that can supply water by itself when the water is low and off by its self when its full also… Can you help me out

    1. Tarun Agarwal says:

      Hi Akindele Imoleayo
      This is a student level project not for the commercial purpose.
      If you want the complete information please email your requirements to team@delprocus.com and our technical team will help you.

  2. I want some questions on water level indicator for preparation of my project

    1. Tarun Agarwal says:

      Hi Shalini
      Thanks for the response.
      You can ask any questions here or you can mail all your questions to team@elprocus.com and our technical team will help you.

  3. D.S.Engineers says:

    Awesome article and it was useful to me 🙂 Thank You

  4. Ashish Kushwaha says:

    your content is awesome it helped me to make this project thanks for sharing it.

  5. I want project about a home theater please give me idea

    1. Tarun Agarwal says:

      Hi Manju
      I sincerely appreciate your kind response regarding my article
      As per your query please email all your requirements to team@elprocus.com and our technical team will help you.

  6. balagurunathan says:

    i want some house protection products for marketing

  7. kamlesh aashiwal says:

    it’s a good project

  8. ADIMULA HENRY says:

    pls i need enough write up for my project.A Digital Automatic Water pump controller.pls give me the History of invention and inventors,Uses,Economic Importance and Circuit Diagrams,…Thanks

  9. Ali Uraibi says:

    I do not know anything in electronic circuits. And I liked the idea of water level indicator. But, if possible, be sensitive to wireless measurement and control of the water level on the engine. Want the map and the map PCB due. Business venture. Understanding how the subject and with wages and Thanks.

  10. can i get some ug projects- theft prevention in jewellery shop using sensor network………..

  11. sunilkumar up says:

    i want to do new project on embeded system…give me some idea…

  12. am vignesh dng eee am oftn 4got 2 switch off my lap chrgr so am planing 4 timer circuit 2 swich off d supply aftr particular time so suggest me sme circuts

  13. Ravindra Reddy Rajoli says:

    Very Useful for learners.

    1. Team ElProCus says:

      Thanks for the appreciation.

  14. plz give me sme project ideas and their details

  15. i am a student of b.tech 7th sem (ece). i am doing my training in airtel company in jammu but i want to do a mini project at home.

  16. sunilkumar says:

    its good project…i want to do it…

Add Comment