How to make Water Level Controller using 8051 Microcontroller

Hii guys, I am back to be here with you, As always I am here to share my knowledge over microcontroller Tutorials and Engineering Projects.

Today we have a quite interesting project That is How to make Water level controller using 8051 microcontroller

As we all know about the Water level controller, but still we don’t have its basic ideas that how water level controller is controlled by 8051 microcontroller and its circuit diagram uses application and so on .


Theory of Water Level Controller

Water level controller is widely used in the industries to maintain the level of fuel and liquid level, where a man can not takes his eyes there this controller play a vital role to maintain the level of water. Now a days after the industries it has also takes place in Houses apartment and villas. Water level controller provides a full of relaxation to the Busy Scheduled person cause in these days every one is busy with their work and nobody have time to on or off the motor and sometimes its very boring work, cause every time we need to see how much water is presence in the tank when to on or off . Sometimes we need to on the motor but The electricity has gone, so overall this is a very big problem to maintain the level of water in the tank.

This Water level controller automatically control the water level of the tank . The device is programmed in such a manner that it can logically takes decision by itself that when to ON the motor or When to OFF the motor. the device is connected with the motor and on the another way to maintain the water level of tank Some sensors are connected with the microcontroller. So as Sensor is installed in 4 parts Lower level Medium level Centre level and High level .

In this water level controller we can also see that how much water is present in our tank.

  • when Pin 0 of port 1 will come to the contact of the water in the display it will show 20%
  • when Pin 0 and 1 of port 1 is in contact of water it will display 40%
  • When Pin 0,1 and 2 of port 1 is in contact of water it will show 60%
  • When Pin 0,1,2 and 3 of port is in contact of water it will display 80%
  • And after 80% it will display tank full


Circuit Diagram of Water Level Controller



Make the circuit as according to above image its very easy to connect with micro controller, As In my previous tutorial I gave a brief description about the 8051 microcontroller and basics of microcontroller programming.  if you have learned all thes tutorial then definitely you wont have any problem to make this project.


8051 Programming of Water Level controller on keil Software




  • Do compile the Program and convert it to the Hexadecimal.
  • Upload the program on 8051 Microcontroller by using boot loader.

Now your microcontroller is ready to perform as  a water level controller, connect the wire as according to circuit diagram and connect it with the batter.

Always remember 8051 microcontroller needs only +5v dc supply.

so if you have 12 v dc first convert it on 5 v dc using LM7805 Ic.


So, Friends I hope you understand this project very well . In upcoming Tutorial  I will be back with some new interesting Projects and we will discuss about some useful development topics. Here if you want to recommend that what I should write in upcoming Tutorial then please leave your comments. and if u need any help or query please don’t Hesitate to discuss with me. Thank You 🙂



(Visited 1,949 times, 1 visits today)

9 thoughts on “How to make Water Level Controller using 8051 Microcontroller

    1. This controller is perfect for use .
      We can also make water level controller by using NE555 IC and Voltage comparator IC .
      but 8051 microcontroller is convenience for it .. cause it has long life .
      as if we talk about the cost then microcontroller is is on rs 50 that is not too much .

  1. Hi Enamul
    I am Rafiq from Gujarat
    I am electronics engineer and right now work on some project idea
    Work on automatic atta chakki program
    See my required

    1)Auto Start
    Grinding starts automatically by sensing the presence of grain

    2)Auto Child safety stop
    Machine stops grinding on opening the front door during grinding & till door is not closed grinding doesn’t start

    3)Auto Glow
    Glowing LED lighting for your convenience when you open the door

    4)Auto overload cut off
    Grinding stops automatically if the machine gets overloaded (for protection of electric motor)

    5)Auto Clean
    Auto clean system makes grinding chamber clean at the end of grinding process. Buzzer system will make indication of Auto Cleaning process

    6)Auto Stop
    At the end of grinding process after Auto cleaning, the flourmill stops automatically

    7)Advanced Auto Feed System
    Advanced motor controls grain feeding automatically, without any noise or any manual setting for your ease

    I want this all things in one microprocessor programming

    I have a circuit for atta chakki but not a programming
    So I feel useless
    If you have a any idea about this please help me

    Contact detail : Rafiq Sherasia
    Mail :
    Call : 9979113317

    I hope you are understand
    Please share your idea

  2. thank you for sharing your knoweldge for us and also u have to know that this is big thing for us.God bless you!!!!!

Leave a Reply

Your email address will not be published. Required fields are marked *