Water Level Controller Using 8051 Circuit Principle
Water Level Controller Using 8051 Circuit Principle
Water Level Controller Using 8051 Circuit Principle
Microcontroller
Aim:
Project for Water Level Controller using 8051 Microcontroller.This project will help in
automatically controlling the water motor by sensing the water level in a tank.
Working:
This project explains you how to detect and control the water level in an overhead
tank or any other container. This system monitors the water level of the tank and
automatically switches ON the motor whenever tank is empty. The motor is switched OFF
when the overhead tank or container is FULL. Here, the water level of the tank is indicated
on LCD (Liquid crystal Display). Using this system, we can avoid the overflow of the water.
Initially when the tank is empty, LCD will display the message LOW and motor runs
automatically. When water level reaches to half level, now LCD displays HALF and still
motor runs.
When the tank is full, LCD displays FULL and motor automatically stops. Again, the motor
runs when water level in the tank becomes LOW.
The Collector terminals of the Transistors are connected to VCC and the Emitter terminals
are connected to PORT0 terminals (P0.0, P0.1 and P0.2).
PORT1 of the microcontroller is connected to the data pins of LCD and the control pins RS,
RW and EN of the LCD Display are connected to the P3.6, GND and P3.7 respectively.
For demonstration purpose, we have used a simple DC Motor Pump. It is connected to the
Relay and the input to the relay is fed from P0.7 through a transistor.
First configure the controller pins P0.0, P0.1 and P0.2 as inputs and P0.7 as output.
Now, initialize the LCD.
Continuously check the water level input pins P0.0, P0.1 and P0.2.
If all the pins are low, then display tank as “EMPTY” on the LCD and make P0.7 pin
HIGH to run the motor automatically.
If the level is low i.e. if P0.0 is HIGH, display the water level as “LOW” and continue
to run the motor.
A HIGH pulse on the pin P0.1 indicates that water has reached half level. So, display
the same thing on LCD and run the motor normally.
If P0.2 is HIGH, then the water level in the tank is FULL.
Now, make the P0.7 pin as LOW to turn off the motor automatically.
1. Initially, write the program for Water Level Controller in Keil µVision IDE and
generate the .hex file.
2. Burn the program (.hex file) to the microcontroller using external programmer and
Willar Software.
3. Now give the connections as per the circuit diagram.
4. While giving the connections, make sure that there is no common connection between
AC and DC supplies (if you are using an AC Motor)
5. Place the 4 water level indicating wires into the small tank (3 probes for three
different levels and fourth one for common supply)
6. Switch on the supply. Now, the motor will run automatically as there is no water in
the tank. (It will turn on even if the water level is LOW).
7. Now pour the water, when it reaches LOW level, then LCD displays LOW.
8. For middle level, it will display as HALF on the LCD.
9. Still if you pour the water, then the water level reaches full and the LCD displays
FULL and also the motor is turned OFF automatically.
10. Switch off the motor supply and board supply.
Water Level Controller Circuit Advantages
Human effort is reduced as the system controls the motor automatically based on the
water level.
This system consumes less power.
Simple and more reliable.
Conclusion:
This project explains you how to detect and control the water level in an overhead
tank or any other container. It’s very use full many places for water conservation and it
reduce the water waste.