Water Level Controller Using
8051 microcontroller
TABLE OF CONTENT
• Introduction
• Circuit components
• Details of components
Transistor
Resistor
LCD
8051 microcontroller
• Circuit Diagram
• Algorithm
• Working
• Advantages
• Applications
INTRODUCTION
 This system explains 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 when ever tank is empty. The motor is
switched OFF when the overhead tank or container is FULL. the water level of
the tank is indicated on LCD (Liquid crystal Display). Using this system, we
can avoid the overflow of the water.
 In this system water sensing can be done by using a set of 4 wires which are
placed at different levels in tank. DC supply probe is placed at the base of the
tank.
Circuit Components
 At89c51 controller
 16*2 LCD
 5V Relay
 Bc547 (NPN) transistors – 5
 Resistors (1K) – 4
 Resistor – 330 ohm
 AC Motor
 Connecting wires
Details of components
 TRANSISTOR - A transistor is a semiconductor device used to amplify or switch
electronic signals and electrical power. It is composed of semiconductor material
usually with at least three terminals for connection to an external circuit.
 RESISTOR -The resistor is an electrical device whose primary function is to
introduce resistance to the flow of electric current. The magnitude of
opposition to the flow of current is called the resistance of the resistor.
 LCD - LCD (Liquid Crystal Display) screen is an electronic display module .A
16x2 LCD means it can display 16 characters per line and there are 2 such
lines. In this LCD each character is displayed in 5x7 pixel
matrix. This LCD has two registers, namely, Command and Data.
8051 Microcontroller
• The 8051 is an 8-bit microcontroller with 8 bit data bus and 16-bit
address bus. The 16 bit address bus can address a 64K( 216) byte
code memory space and a separate 64K byte of data memory
space. The 8051 has 4K on-chip read only code memory and 128
bytes of internal Random Access Memory(RAM) .
• Besides internal RAM, the 8051 has various Special Function
Registers (SFR) such as the Accumulator, the B register, and many
other control registers.
Pin Diagram :
Water Level Controller using 8051 Circuit Diagram:
ALGORITHM FOR WATER LEVEL CONTROLLER
• First configure the controller pins P3.0, P3.1, P3.2 and P3.3 as inputs and P3.4
as output.
• Initialize the LCD.
• If all the pins are low then display tank is empty on LCD and make P3.4 pin
high to run the motor automatically.
• High pulse on the pin P3.0 indicates quarter level, display the same thing on
LCD.
• If P3.1 is high then water level is half.
• High pulse on P3.2 indicates 3/4th
full of the tank.
• If P3.3 is high then tank is full, make P3.4 pin is low to turn off the motor
automatically.
WORKING OF WATER LEVEL CONTROLLER USING 8051
 The main heart of this project is AT89C51 microcontroller. The water level probes are
connected to the P3.0, P3.1, P3.2, and P3.3 through the transistors. Port P2 connected to the
data pins of LCD and control pins RS, RW and EN of LCD are connected to the P1.0, P1.1, and
P1.2 respectively.
 Initially when tank is empty, LCD will display the message EMPTY and motor runs
automatically. When water level reaches to quarter level, now LCD displays QUARTER and
still motor runs. For further levels, LCD displays the messages HALF and ¾ FULL.
 When tank is full, LCD displays FULL and motor automatically stops. Again motor runs when
tank is empty.
ADVANTAGES OF WATER LEVEL CONTROLLER
• 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.
APPLICATIONS OF WATER LEVEL CONTROLLER
• Automatic water level controller can be used in Homes apartments ,
commercial complexes .
• Used in big buildings where the manual monitoring is difficult.
• Used in industries to control the liquid level automatically.
• Fuel level indicator in vehicles.
THANK YOU

5.6 water-level-controller-using-8051-microcontroller.pptx

  • 1.
    Water Level ControllerUsing 8051 microcontroller
  • 2.
    TABLE OF CONTENT •Introduction • Circuit components • Details of components Transistor Resistor LCD 8051 microcontroller • Circuit Diagram • Algorithm • Working • Advantages • Applications
  • 3.
    INTRODUCTION  This systemexplains 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 when ever tank is empty. The motor is switched OFF when the overhead tank or container is FULL. the water level of the tank is indicated on LCD (Liquid crystal Display). Using this system, we can avoid the overflow of the water.  In this system water sensing can be done by using a set of 4 wires which are placed at different levels in tank. DC supply probe is placed at the base of the tank.
  • 4.
    Circuit Components  At89c51controller  16*2 LCD  5V Relay  Bc547 (NPN) transistors – 5  Resistors (1K) – 4  Resistor – 330 ohm  AC Motor  Connecting wires
  • 5.
    Details of components TRANSISTOR - A transistor is a semiconductor device used to amplify or switch electronic signals and electrical power. It is composed of semiconductor material usually with at least three terminals for connection to an external circuit.
  • 6.
     RESISTOR -Theresistor is an electrical device whose primary function is to introduce resistance to the flow of electric current. The magnitude of opposition to the flow of current is called the resistance of the resistor.  LCD - LCD (Liquid Crystal Display) screen is an electronic display module .A 16x2 LCD means it can display 16 characters per line and there are 2 such lines. In this LCD each character is displayed in 5x7 pixel matrix. This LCD has two registers, namely, Command and Data.
  • 7.
    8051 Microcontroller • The8051 is an 8-bit microcontroller with 8 bit data bus and 16-bit address bus. The 16 bit address bus can address a 64K( 216) byte code memory space and a separate 64K byte of data memory space. The 8051 has 4K on-chip read only code memory and 128 bytes of internal Random Access Memory(RAM) . • Besides internal RAM, the 8051 has various Special Function Registers (SFR) such as the Accumulator, the B register, and many other control registers.
  • 8.
  • 9.
    Water Level Controllerusing 8051 Circuit Diagram:
  • 10.
    ALGORITHM FOR WATERLEVEL CONTROLLER • First configure the controller pins P3.0, P3.1, P3.2 and P3.3 as inputs and P3.4 as output. • Initialize the LCD. • If all the pins are low then display tank is empty on LCD and make P3.4 pin high to run the motor automatically. • High pulse on the pin P3.0 indicates quarter level, display the same thing on LCD. • If P3.1 is high then water level is half. • High pulse on P3.2 indicates 3/4th full of the tank. • If P3.3 is high then tank is full, make P3.4 pin is low to turn off the motor automatically.
  • 11.
    WORKING OF WATERLEVEL CONTROLLER USING 8051  The main heart of this project is AT89C51 microcontroller. The water level probes are connected to the P3.0, P3.1, P3.2, and P3.3 through the transistors. Port P2 connected to the data pins of LCD and control pins RS, RW and EN of LCD are connected to the P1.0, P1.1, and P1.2 respectively.  Initially when tank is empty, LCD will display the message EMPTY and motor runs automatically. When water level reaches to quarter level, now LCD displays QUARTER and still motor runs. For further levels, LCD displays the messages HALF and ¾ FULL.  When tank is full, LCD displays FULL and motor automatically stops. Again motor runs when tank is empty.
  • 12.
    ADVANTAGES OF WATERLEVEL CONTROLLER • 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.
  • 13.
    APPLICATIONS OF WATERLEVEL CONTROLLER • Automatic water level controller can be used in Homes apartments , commercial complexes . • Used in big buildings where the manual monitoring is difficult. • Used in industries to control the liquid level automatically. • Fuel level indicator in vehicles.
  • 14.