SlideShare una empresa de Scribd logo
1 de 3
Water level controller using 8051.
A water level controller based using 8051 is shown in this article. A lot of water level controller
projects have been published in this website but the is the first one based on a microcontroller.
This water level controller monitors the level of the over head tank and automatically switches
on the water pump when ever the level goes below a preset limit. The level of the over head tank
is indicated using 5 leds and the pump is switched of when the over head tank is filled. The pump
is not allowed to start if the water level in the sump tank is low and also the pump is switched off
when the level inside the sump tank goes low during a pumping cycle. The circuit diagram of the
water level controller is shown below.
The level sensor probes for the overhead tank are interfaced to the port 2 of the microcontroller
through transistors. Have a look at the sensor probe arrangement for the overhead tank in Fig1. A
positive voltage supply probe goes to the down bottom of the tank. The probes for sensing 1/4,
1/2, 3/4 and FULL levels are placed with equal spacing one by one above the bottom positive
probe. Consider the topmost (full level) probe, its other end is connected to the base of transistor
Q4 through resistor R16. Whenever water rises to the full level current flows into the base of
transistor Q4 which makes it ON and so its collector voltage goes low. The collector of Q4 is
connected to P2.4 and a low voltage at P2.4 means the over head tank is not FULL. When water
level goes below the full level probe, the base of Q2 becomes open making it OFF. Now its
collector voltage goes high and high at P2.4 means the tank is not full. The same applies to other
sensor probes (3/4, 1/2, 1/4) and the microprocessor understands the current level by scanning
the port pins P2.4 ,P2.5, P2.6 and P2.7. All these port pin are high (all sensor probes are open)
means the tank is empty.
Port pin P0.5 is used to control the pump. When ever it is required start pumping, the controller
makes P0.5 low which makes transistor Q6 ON which in turn activates the relay K1 that switches
the pump. Also the LED d6 glows indicating the motor is ON. LED D7 is the low sump
indicator. When the water level in the sump tank goes low, the controller makes P0.7 low which
makes LED D7 to glow. The circuit diagram of the water level controller is shown in the figure
below.
Circuit diagram.
Water level controller using 8051
Program.
MOV P2,#11111111B // initiates P2 as sensor input
MOV P0,#11111111B // initiates P2 as the output port
MOV A,#00000000B
MAIN:ACALL SMPCK // checks the level of the sump tank
MOV A,P2 // moves the current status of P2 tp A
CJNE A,#11110000B,LABEL1 // checks whether tank is full
SETB P0.1
SETB P0.2
SETB P0.3
SETB P0.4
CLR P0.0 // glows full level LED
SETB P0.5
LABEL1:MOV A,P2
CJNE A,#11111000B,LABEL2 // checks whether tank is 3/4
SETB P0.0
SETB P0.2
SETB P0.3
SETB P0.4
CLR P0.1 // glows 3/4 level LED
LABEL2:MOV A,P2
CJNE A,#11111100B,LABEL3 // checks whether tank is 1/2
SETB P0.0
SETB P0.1
SETB P0.3
SETB P0.4
CLR P0.2 // glows 1/2 level LED
LABEL3:MOV A,P2
CJNE A,#11111110B,LABEL4 // checks whether tank is 1/4
SETB P0.0
SETB P0.1
SETB P0.2
SETB P0.4
CLR P0.3 // glows 1/4 level LED
JB P0.6,LABEL4
CLR P0.5 // switches motor ON
LABEL4:MOV A,P2
CJNE A,#11111111B,MAIN // checks whether tank is empty
SETB P0.0
SETB P0.1
SETB P0.2
SETB P0.3
CLR P0.4 // glows EMPTY LED
JB P0.6,MAIN // checks whether sump is low
CLR P0.5 // switches motor ON
SJMP MAIN
SMPCK:JB P0.6,LABEL5 // checks whether sump is low
SETB P0.7 // extinguishes the sump low indicator LED
SJMP LABEL6
LABEL5:SETB P0.5 // switches the pump OFF
CLR P0.7 // glows sump low indicator LED
LABEL6:RET
END

Más contenido relacionado

La actualidad más candente

Automatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counterAutomatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counter
Mohit Awasthi
 
Automatic water irrigation system
Automatic water irrigation systemAutomatic water irrigation system
Automatic water irrigation system
ArpanJain63
 
Ppt on water level indicator
Ppt on water level indicatorPpt on water level indicator
Ppt on water level indicator
palwinder virk
 
Water valve on off controller
Water valve on off controllerWater valve on off controller
Water valve on off controller
Chaitralikhatvkar
 
Water Level indicator using Ultrasonic sensors
Water Level indicator using Ultrasonic sensorsWater Level indicator using Ultrasonic sensors
Water Level indicator using Ultrasonic sensors
Tough_taiga
 
water level indicator alarm
water level indicator alarmwater level indicator alarm
water level indicator alarm
Anish Anand
 

La actualidad más candente (20)

Automatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counterAutomatic room-light-controller-visitor-counter
Automatic room-light-controller-visitor-counter
 
Automatic water irrigation system
Automatic water irrigation systemAutomatic water irrigation system
Automatic water irrigation system
 
WATER LEVEL INDICATOR
WATER LEVEL INDICATORWATER LEVEL INDICATOR
WATER LEVEL INDICATOR
 
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
 
Waterlevelindicator
WaterlevelindicatorWaterlevelindicator
Waterlevelindicator
 
Password based door lock system using 8051 microcontroller final report
Password based door lock system using 8051 microcontroller final reportPassword based door lock system using 8051 microcontroller final report
Password based door lock system using 8051 microcontroller final report
 
automatic irrigation system by sensing soil moisture content
automatic irrigation system by sensing soil moisture contentautomatic irrigation system by sensing soil moisture content
automatic irrigation system by sensing soil moisture content
 
8051 Inturrpt
8051 Inturrpt8051 Inturrpt
8051 Inturrpt
 
Water Level Indicator Powerpoint
Water Level Indicator PowerpointWater Level Indicator Powerpoint
Water Level Indicator Powerpoint
 
Water pump automation system
Water pump automation systemWater pump automation system
Water pump automation system
 
Ppt on water level indicator
Ppt on water level indicatorPpt on water level indicator
Ppt on water level indicator
 
Water valve on off controller
Water valve on off controllerWater valve on off controller
Water valve on off controller
 
Water Level indicator using Ultrasonic sensors
Water Level indicator using Ultrasonic sensorsWater Level indicator using Ultrasonic sensors
Water Level indicator using Ultrasonic sensors
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
 
water level indicator report
water level indicator reportwater level indicator report
water level indicator report
 
water level indicator alarm
water level indicator alarmwater level indicator alarm
water level indicator alarm
 
Smart Irrigation System
Smart Irrigation SystemSmart Irrigation System
Smart Irrigation System
 
AUTOMATIC PLANT WATERING SYSTEM USING ARDUINO BASED PPT
AUTOMATIC PLANT WATERING SYSTEM USING ARDUINO BASED PPTAUTOMATIC PLANT WATERING SYSTEM USING ARDUINO BASED PPT
AUTOMATIC PLANT WATERING SYSTEM USING ARDUINO BASED PPT
 
Water level indicator(mini project ppt)
Water  level  indicator(mini project ppt)Water  level  indicator(mini project ppt)
Water level indicator(mini project ppt)
 
80486 and pentium
80486 and pentium80486 and pentium
80486 and pentium
 

Destacado

Water level controller
Water level controllerWater level controller
Water level controller
Amadi Uchenna
 
TRAFFIC LIGHT CONTROL USING RF TECH
TRAFFIC LIGHT CONTROL USING RF TECHTRAFFIC LIGHT CONTROL USING RF TECH
TRAFFIC LIGHT CONTROL USING RF TECH
Pranay Raj
 
Water Level Indicator and Alarm System
Water Level Indicator and Alarm SystemWater Level Indicator and Alarm System
Water Level Indicator and Alarm System
ali4wcct
 

Destacado (13)

Water level controller
Water level controllerWater level controller
Water level controller
 
automation of waterpump using 8051 microcontroller
automation of waterpump using 8051 microcontrollerautomation of waterpump using 8051 microcontroller
automation of waterpump using 8051 microcontroller
 
Water level controller
Water level controllerWater level controller
Water level controller
 
Hardware Description Language
Hardware Description Language Hardware Description Language
Hardware Description Language
 
Ultrasonic based non contact type water level indicator using 8051
Ultrasonic based non contact type water level indicator using 8051Ultrasonic based non contact type water level indicator using 8051
Ultrasonic based non contact type water level indicator using 8051
 
TRAFFIC LIGHT CONTROL USING RF TECH
TRAFFIC LIGHT CONTROL USING RF TECHTRAFFIC LIGHT CONTROL USING RF TECH
TRAFFIC LIGHT CONTROL USING RF TECH
 
Water Level Indicator and Alarm System
Water Level Indicator and Alarm SystemWater Level Indicator and Alarm System
Water Level Indicator and Alarm System
 
Embedded system for traffic light control
Embedded system for traffic light controlEmbedded system for traffic light control
Embedded system for traffic light control
 
AUTOMATIC BOTTLE FILLING
AUTOMATIC BOTTLE FILLING AUTOMATIC BOTTLE FILLING
AUTOMATIC BOTTLE FILLING
 
Water level indicator
Water level indicatorWater level indicator
Water level indicator
 
Password Based Circuit Breaker
Password Based Circuit BreakerPassword Based Circuit Breaker
Password Based Circuit Breaker
 
Water level indicator -MINI PROJECT
Water level indicator -MINI PROJECTWater level indicator -MINI PROJECT
Water level indicator -MINI PROJECT
 
Traffic light controller
Traffic light controllerTraffic light controller
Traffic light controller
 

Similar a Water level controller using 8051

RO DRINKING WATER FILTRATION SYSTEM IN UAE ( www.aquaprouae.com )
RO DRINKING WATER FILTRATION SYSTEM IN UAE ( www.aquaprouae.com )RO DRINKING WATER FILTRATION SYSTEM IN UAE ( www.aquaprouae.com )
RO DRINKING WATER FILTRATION SYSTEM IN UAE ( www.aquaprouae.com )
AQUAPRO RO WATER PURIFIED SALES AND SERVICES
 
pneumaticcircuits-140111054249-phpapp01 (2).pdf
pneumaticcircuits-140111054249-phpapp01 (2).pdfpneumaticcircuits-140111054249-phpapp01 (2).pdf
pneumaticcircuits-140111054249-phpapp01 (2).pdf
JanreyTonga1
 
Water Level Indicator using 8051 Microcontroller.pptx
Water Level Indicator using 8051 Microcontroller.pptxWater Level Indicator using 8051 Microcontroller.pptx
Water Level Indicator using 8051 Microcontroller.pptx
shayanzafar2
 

Similar a Water level controller using 8051 (20)

PLC4.docx
PLC4.docxPLC4.docx
PLC4.docx
 
PLC4.docx
PLC4.docxPLC4.docx
PLC4.docx
 
PLC4.pdf
PLC4.pdfPLC4.pdf
PLC4.pdf
 
Water Level Controller
Water Level ControllerWater Level Controller
Water Level Controller
 
Water level indicator
Water level indicatorWater level indicator
Water level indicator
 
Simple water level indicator1
Simple water level indicator1Simple water level indicator1
Simple water level indicator1
 
ADITEC04
ADITEC04ADITEC04
ADITEC04
 
RO DRINKING WATER FILTRATION SYSTEM IN UAE ( www.aquaprouae.com )
RO DRINKING WATER FILTRATION SYSTEM IN UAE ( www.aquaprouae.com )RO DRINKING WATER FILTRATION SYSTEM IN UAE ( www.aquaprouae.com )
RO DRINKING WATER FILTRATION SYSTEM IN UAE ( www.aquaprouae.com )
 
Boiler Drum level measurement in Thermal Power Stations
Boiler Drum level measurement in Thermal Power StationsBoiler Drum level measurement in Thermal Power Stations
Boiler Drum level measurement in Thermal Power Stations
 
Fluid mechanics Lab Report
Fluid mechanics Lab ReportFluid mechanics Lab Report
Fluid mechanics Lab Report
 
ความรู้พื้นฐานระบบนิวเมติก
ความรู้พื้นฐานระบบนิวเมติกความรู้พื้นฐานระบบนิวเมติก
ความรู้พื้นฐานระบบนิวเมติก
 
Project presentation
Project presentationProject presentation
Project presentation
 
Pneumatic circuits.pptx
Pneumatic circuits.pptxPneumatic circuits.pptx
Pneumatic circuits.pptx
 
Basic pneumatic circuit
Basic pneumatic circuitBasic pneumatic circuit
Basic pneumatic circuit
 
HP LP Bypass system of 110 MW Steam Turbine
HP LP Bypass system of 110 MW Steam TurbineHP LP Bypass system of 110 MW Steam Turbine
HP LP Bypass system of 110 MW Steam Turbine
 
pneumaticcircuits-140111054249-phpapp01 (2).pdf
pneumaticcircuits-140111054249-phpapp01 (2).pdfpneumaticcircuits-140111054249-phpapp01 (2).pdf
pneumaticcircuits-140111054249-phpapp01 (2).pdf
 
Water Level Indicator using 8051 Microcontroller.pptx
Water Level Indicator using 8051 Microcontroller.pptxWater Level Indicator using 8051 Microcontroller.pptx
Water Level Indicator using 8051 Microcontroller.pptx
 
Simple Automatic Water Level Controller by using ic 555 timer.
Simple Automatic Water Level Controller by using ic 555 timer.Simple Automatic Water Level Controller by using ic 555 timer.
Simple Automatic Water Level Controller by using ic 555 timer.
 
LEVEL Measurement
 LEVEL Measurement  LEVEL Measurement
LEVEL Measurement
 
Irrigation system
Irrigation systemIrrigation system
Irrigation system
 

Más de Valentino Selayan

tutorial-fuzzy-inferensi-system-dengan-matlab.docx
tutorial-fuzzy-inferensi-system-dengan-matlab.docxtutorial-fuzzy-inferensi-system-dengan-matlab.docx
tutorial-fuzzy-inferensi-system-dengan-matlab.docx
Valentino Selayan
 
Modul2-Tipe-data-identifier-dan-operator-02.pdf
Modul2-Tipe-data-identifier-dan-operator-02.pdfModul2-Tipe-data-identifier-dan-operator-02.pdf
Modul2-Tipe-data-identifier-dan-operator-02.pdf
Valentino Selayan
 
Modul_Praktikum_Algoritma_and_Pemrograma.pdf
Modul_Praktikum_Algoritma_and_Pemrograma.pdfModul_Praktikum_Algoritma_and_Pemrograma.pdf
Modul_Praktikum_Algoritma_and_Pemrograma.pdf
Valentino Selayan
 
1 installasi-xampp-dan-mysql (1)
1 installasi-xampp-dan-mysql (1)1 installasi-xampp-dan-mysql (1)
1 installasi-xampp-dan-mysql (1)
Valentino Selayan
 
Lecture 28 360 chapter 9_ power electronics inverters
Lecture 28 360 chapter 9_  power electronics invertersLecture 28 360 chapter 9_  power electronics inverters
Lecture 28 360 chapter 9_ power electronics inverters
Valentino Selayan
 

Más de Valentino Selayan (20)

pert3_4-fuzzy.pptx
pert3_4-fuzzy.pptxpert3_4-fuzzy.pptx
pert3_4-fuzzy.pptx
 
pert7_8-fis-e28093-metode-sugeno.pptx
pert7_8-fis-e28093-metode-sugeno.pptxpert7_8-fis-e28093-metode-sugeno.pptx
pert7_8-fis-e28093-metode-sugeno.pptx
 
tutorial-fuzzy-inferensi-system-dengan-matlab.docx
tutorial-fuzzy-inferensi-system-dengan-matlab.docxtutorial-fuzzy-inferensi-system-dengan-matlab.docx
tutorial-fuzzy-inferensi-system-dengan-matlab.docx
 
Materi 8 Introduction to Fuzzy Logic.pdf
Materi 8 Introduction to Fuzzy Logic.pdfMateri 8 Introduction to Fuzzy Logic.pdf
Materi 8 Introduction to Fuzzy Logic.pdf
 
LOGIKA FUZZY MATERI KULIAH-1.pdf
LOGIKA FUZZY MATERI KULIAH-1.pdfLOGIKA FUZZY MATERI KULIAH-1.pdf
LOGIKA FUZZY MATERI KULIAH-1.pdf
 
LOGIKA FUZZY MATERI KULIAH.pdf
LOGIKA FUZZY MATERI KULIAH.pdfLOGIKA FUZZY MATERI KULIAH.pdf
LOGIKA FUZZY MATERI KULIAH.pdf
 
pert_fuzzy-database.pptx
pert_fuzzy-database.pptxpert_fuzzy-database.pptx
pert_fuzzy-database.pptx
 
pert5_fis.pptx
pert5_fis.pptxpert5_fis.pptx
pert5_fis.pptx
 
pert1_2fuzzy.pptx
pert1_2fuzzy.pptxpert1_2fuzzy.pptx
pert1_2fuzzy.pptx
 
pert6_-fis_mamdani.pptx
pert6_-fis_mamdani.pptxpert6_-fis_mamdani.pptx
pert6_-fis_mamdani.pptx
 
Modul2-Tipe-data-identifier-dan-operator-02.pdf
Modul2-Tipe-data-identifier-dan-operator-02.pdfModul2-Tipe-data-identifier-dan-operator-02.pdf
Modul2-Tipe-data-identifier-dan-operator-02.pdf
 
Modul_Praktikum_Algoritma_and_Pemrograma.pdf
Modul_Praktikum_Algoritma_and_Pemrograma.pdfModul_Praktikum_Algoritma_and_Pemrograma.pdf
Modul_Praktikum_Algoritma_and_Pemrograma.pdf
 
1 3
1 31 3
1 3
 
1 1
1 11 1
1 1
 
1 sist. komputer_00
1 sist. komputer_001 sist. komputer_00
1 sist. komputer_00
 
1 sist. komputer_00
1 sist. komputer_001 sist. komputer_00
1 sist. komputer_00
 
1 sist. komputer_
1 sist. komputer_1 sist. komputer_
1 sist. komputer_
 
1 installasi-xampp-dan-mysql (1)
1 installasi-xampp-dan-mysql (1)1 installasi-xampp-dan-mysql (1)
1 installasi-xampp-dan-mysql (1)
 
Chapter 7 transformers
Chapter 7 transformersChapter 7 transformers
Chapter 7 transformers
 
Lecture 28 360 chapter 9_ power electronics inverters
Lecture 28 360 chapter 9_  power electronics invertersLecture 28 360 chapter 9_  power electronics inverters
Lecture 28 360 chapter 9_ power electronics inverters
 

Water level controller using 8051

  • 1. Water level controller using 8051. A water level controller based using 8051 is shown in this article. A lot of water level controller projects have been published in this website but the is the first one based on a microcontroller. This water level controller monitors the level of the over head tank and automatically switches on the water pump when ever the level goes below a preset limit. The level of the over head tank is indicated using 5 leds and the pump is switched of when the over head tank is filled. The pump is not allowed to start if the water level in the sump tank is low and also the pump is switched off when the level inside the sump tank goes low during a pumping cycle. The circuit diagram of the water level controller is shown below. The level sensor probes for the overhead tank are interfaced to the port 2 of the microcontroller through transistors. Have a look at the sensor probe arrangement for the overhead tank in Fig1. A positive voltage supply probe goes to the down bottom of the tank. The probes for sensing 1/4, 1/2, 3/4 and FULL levels are placed with equal spacing one by one above the bottom positive probe. Consider the topmost (full level) probe, its other end is connected to the base of transistor Q4 through resistor R16. Whenever water rises to the full level current flows into the base of transistor Q4 which makes it ON and so its collector voltage goes low. The collector of Q4 is connected to P2.4 and a low voltage at P2.4 means the over head tank is not FULL. When water level goes below the full level probe, the base of Q2 becomes open making it OFF. Now its collector voltage goes high and high at P2.4 means the tank is not full. The same applies to other sensor probes (3/4, 1/2, 1/4) and the microprocessor understands the current level by scanning the port pins P2.4 ,P2.5, P2.6 and P2.7. All these port pin are high (all sensor probes are open) means the tank is empty. Port pin P0.5 is used to control the pump. When ever it is required start pumping, the controller makes P0.5 low which makes transistor Q6 ON which in turn activates the relay K1 that switches the pump. Also the LED d6 glows indicating the motor is ON. LED D7 is the low sump indicator. When the water level in the sump tank goes low, the controller makes P0.7 low which makes LED D7 to glow. The circuit diagram of the water level controller is shown in the figure below. Circuit diagram.
  • 2. Water level controller using 8051 Program. MOV P2,#11111111B // initiates P2 as sensor input MOV P0,#11111111B // initiates P2 as the output port MOV A,#00000000B MAIN:ACALL SMPCK // checks the level of the sump tank MOV A,P2 // moves the current status of P2 tp A CJNE A,#11110000B,LABEL1 // checks whether tank is full SETB P0.1 SETB P0.2
  • 3. SETB P0.3 SETB P0.4 CLR P0.0 // glows full level LED SETB P0.5 LABEL1:MOV A,P2 CJNE A,#11111000B,LABEL2 // checks whether tank is 3/4 SETB P0.0 SETB P0.2 SETB P0.3 SETB P0.4 CLR P0.1 // glows 3/4 level LED LABEL2:MOV A,P2 CJNE A,#11111100B,LABEL3 // checks whether tank is 1/2 SETB P0.0 SETB P0.1 SETB P0.3 SETB P0.4 CLR P0.2 // glows 1/2 level LED LABEL3:MOV A,P2 CJNE A,#11111110B,LABEL4 // checks whether tank is 1/4 SETB P0.0 SETB P0.1 SETB P0.2 SETB P0.4 CLR P0.3 // glows 1/4 level LED JB P0.6,LABEL4 CLR P0.5 // switches motor ON LABEL4:MOV A,P2 CJNE A,#11111111B,MAIN // checks whether tank is empty SETB P0.0 SETB P0.1 SETB P0.2 SETB P0.3 CLR P0.4 // glows EMPTY LED JB P0.6,MAIN // checks whether sump is low CLR P0.5 // switches motor ON SJMP MAIN SMPCK:JB P0.6,LABEL5 // checks whether sump is low SETB P0.7 // extinguishes the sump low indicator LED SJMP LABEL6 LABEL5:SETB P0.5 // switches the pump OFF CLR P0.7 // glows sump low indicator LED LABEL6:RET END