SlideShare a Scribd company logo
1 of 13
โ€ข Introduction
โ€ข Principle
โ€ข Components required
โ€ข Circuit Diagram
โ€ข How to Operate
โ€ข Algorithm & Code
โ€ข Applications
โ€ข Conclusion
โ€ข References
Water Level Indicator using 8051 Microcontroller project will
help in automatically indicating the water level by sensing the
water level in a tank.
Here, different water level of the tank(like low,half,full) 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 3
wires, which are placed at different levels in tank. DC supply
probe is placed at the base of the tank.
โ€ข This system mainly works on a principle that โ€œwater conducts
electricityโ€.
โ€ข Four wires which are dipped into the tank where three will
indicate the different water levels and one for Vcc. Based on
the outputs of these wires, microcontroller displays water
level on LCD.
โ€ข Initially when the tank is empty, LCD will display the message
EMPTY. When some water added in tank then LCD display
LOW and when water level reaches to half level, now LCD
displays HALF.
โ€ข When the tank is full, LCD displays FULL.
โ€ข AT89S52 Microcontroller (or any 8051 based Microcontroller)
โ€ข 8051 Programmer (Programming Board)
โ€ข 11.0592 MHz Quartz Crystal
โ€ข 2 x 33pF Capacitor
โ€ข 2 x 10Kฮฉ Resistor (1/4 Watt)
โ€ข 10ยตF Capacitor
โ€ข Push Button
โ€ข 1Kฮฉ x 8 Resistor Pack (for Pull โ€“ up)
โ€ข 16 x 2 LCD Display
โ€ข 3 x 2N2222 (NPN) Transistors
โ€ข 10Kฮฉ Potentiometer
โ€ข Programming cable
โ€ข Connecting wires
โ€ข Power Supply
โ€ข MikroC PRO for 8051 IDE
โ€ข Progisp Software (for burning code)
โ€ข Initially, write the program for Water Level Controller in MicroC Pro IDE
and generate the .hex file.
โ€ข Burn the program (.hex file) using progisp to the microcontroller using
external programmer.
โ€ข Now give the connections as per the circuit diagram.
โ€ข Place the 4 water level indicating wires into the small tank (3 probes for
three different levels and fourth one for common supply)
โ€ข Switch on the supply.It will turn on even if the water level is EMPTY.
โ€ข Now pour the water, when it reaches LOW level, then LCD displays LOW.
โ€ข For middle level, it will display as HALF on the LCD.
โ€ข Still if you pour the water, then the water level reaches full and the LCD
displays FULL.
โ€ข Switch off board supply.
โ€ข First configure the controller pins P0.0, P0.1 and P0.2 as inputs and
P2 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 pin HIGH.
โ€ข If the level is low i.e. if P0.0 is HIGH, display the water level as LOW.
โ€ข A HIGH pulse on the pin P0.1 indicates that water has reached half
level. So, display the same thing on LCD.
โ€ข If P0.2 is HIGH, then the water level in the tank is FULL.
// Lcd module connections
sbit LCD_RS at P2_0_bit; // RS pin connected to port P2^0
sbit LCD_EN at P2_1_bit;
// for output
sbit LCD_D4 at P2_2_bit;
sbit LCD_D5 at P2_3_bit;
sbit LCD_D6 at P2_4_bit;
sbit LCD_D7 at P2_5_bit;
//for inputs
sbit lower at P0_0_bit;
sbit middle at P0_1_bit;
sbit high at P0_2_bit;
char i;
void Move_Delay() { // Function used for text moving
Delay_ms(500); // You can change the moving speed here
}
void main(){
Lcd_Init(); // Initialize Lcd
lower = middle = high = 0;
while(1) {
while(lower == 0 && middle == 0 && high == 0){
Lcd_Cmd(_LCD_CLEAR); // Clear display
Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off
Lcd_Out(2,1,"TANK IS EMPTY"); // Write text in second row
Delay_ms(5000);
}
while(lower == 1 && middle == 0 && high == 0){
Lcd_Cmd(_LCD_CLEAR); // Clear display
Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off
Lcd_Out(2,1,"TANK is LOW"); // Write text in second row
Delay_ms(5000);
}
while(lower == 1 && middle == 1 && high == 0){
Lcd_Cmd(_LCD_CLEAR); // Clear display
Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off
Lcd_Out(2,1,"TANK is HALF"); // Write text in second row
Delay_ms(5000);
}
while(lower == 1 && middle == 1 && high == 1){
Lcd_Cmd(_LCD_CLEAR); // Clear display
Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off
Lcd_Out(2,1,"TANK IS FULL"); // Write text in second row
Delay_ms(5000);
}
Lcd_Cmd(_LCD_CLEAR); // Clear display
Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off
Lcd_Out(2,4,"Oops - ERROR "); // Write text in second row
Delay_ms(4000);
Lcd_Cmd(_LCD_CLEAR); // Clear display
Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off
}
}
โ€ข Used in big buildings where the manual
monitoring is difficult.
โ€ข Used in industries to control the liquid level
automatically.
โ€ข This projects helps us to understand the basic
working principle of LCD & 8051
microcontroller. Through this implementation
we can detect & save the water by
overflowing.Further this can be extended to
attach the motor to turn OFF/ON
automatically.
โ€ข https://www.electronicshub.org/water-level-
controller-using-8051-microcontroller/
โ€ข mikroC PRO for 8051.

More Related Content

What's hot

Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"surabhii007
ย 
Programming with PIC microcontroller
Programming with PIC microcontroller Programming with PIC microcontroller
Programming with PIC microcontroller Raghav Shetty
ย 
8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay KumarVijay Kumar
ย 
IoT Programming on the Raspberry Pi
IoT Programming on the Raspberry PiIoT Programming on the Raspberry Pi
IoT Programming on the Raspberry PiDamien Magoni
ย 
Digital clock
Digital clockDigital clock
Digital clockAbi Malik
ย 
The 80386 80486
The 80386 80486The 80386 80486
The 80386 80486Ancy Varghese
ย 
flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086asrithak
ย 
Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051Hasnain Yaseen
ย 
8259 Interrupt Controller
8259 Interrupt Controller8259 Interrupt Controller
8259 Interrupt ControllerShivamSood22
ย 
Operation of 8255A
Operation of 8255AOperation of 8255A
Operation of 8255AAnuj Yadav
ย 
Circuitos integrados
Circuitos integradosCircuitos integrados
Circuitos integradospaoloyustiz
ย 
8259 updated
8259 updated 8259 updated
8259 updated jemimajerome
ย 
Chapter 6 hardware structure of 8086
Chapter 6  hardware structure of 8086Chapter 6  hardware structure of 8086
Chapter 6 hardware structure of 8086SHREEHARI WADAWADAGI
ย 

What's hot (20)

PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
ย 
Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"
ย 
Programming with PIC microcontroller
Programming with PIC microcontroller Programming with PIC microcontroller
Programming with PIC microcontroller
ย 
8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar
ย 
IoT Programming on the Raspberry Pi
IoT Programming on the Raspberry PiIoT Programming on the Raspberry Pi
IoT Programming on the Raspberry Pi
ย 
Digital clock
Digital clockDigital clock
Digital clock
ย 
Ch3
Ch3Ch3
Ch3
ย 
The 80386 80486
The 80386 80486The 80386 80486
The 80386 80486
ย 
flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086
ย 
Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051
ย 
8259 Interrupt Controller
8259 Interrupt Controller8259 Interrupt Controller
8259 Interrupt Controller
ย 
Registros del Pic 16F84
Registros del Pic 16F84Registros del Pic 16F84
Registros del Pic 16F84
ย 
Operation of 8255A
Operation of 8255AOperation of 8255A
Operation of 8255A
ย 
Circuitos integrados
Circuitos integradosCircuitos integrados
Circuitos integrados
ย 
Smart shopping trolley.
Smart shopping trolley.Smart shopping trolley.
Smart shopping trolley.
ย 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
ย 
Register Organization of 80386
Register Organization of 80386Register Organization of 80386
Register Organization of 80386
ย 
8 bit microcontroller
8 bit microcontroller8 bit microcontroller
8 bit microcontroller
ย 
8259 updated
8259 updated 8259 updated
8259 updated
ย 
Chapter 6 hardware structure of 8086
Chapter 6  hardware structure of 8086Chapter 6  hardware structure of 8086
Chapter 6 hardware structure of 8086
ย 

Similar to Water Level Indicator using 8051 Microcontroller.pptx

Water level controller using 8051 microcontroller
Water level controller using 8051 microcontrollerWater level controller using 8051 microcontroller
Water level controller using 8051 microcontrollerShafeek Muhammed
ย 
water level controller using 8051 microcontroller
water level controller using 8051 microcontrollerwater level controller using 8051 microcontroller
water level controller using 8051 microcontrollerPrachi Pandey
ย 
Moving message display
Moving message displayMoving message display
Moving message displayviraj1989
ย 
Design, simulation and implementation of an Arduino microcontroller based aut...
Design, simulation and implementation of an Arduino microcontroller based aut...Design, simulation and implementation of an Arduino microcontroller based aut...
Design, simulation and implementation of an Arduino microcontroller based aut...IJAAS Team
ย 
Calculator design with lcd using fpga
Calculator design with lcd using fpgaCalculator design with lcd using fpga
Calculator design with lcd using fpgaHossam Hassan
ย 
2022-BEKM 3453 - LCD and keypad.pdf
2022-BEKM 3453 - LCD and keypad.pdf2022-BEKM 3453 - LCD and keypad.pdf
2022-BEKM 3453 - LCD and keypad.pdfVNEX
ย 
08_lcd.pdf
08_lcd.pdf08_lcd.pdf
08_lcd.pdfssusera55490
ย 
Lcd n PIC16F
Lcd n PIC16FLcd n PIC16F
Lcd n PIC16Fhairilfaiz86
ย 
Embedded System Practical manual (1)
Embedded System Practical manual (1)Embedded System Practical manual (1)
Embedded System Practical manual (1)Niraj Bharambe
ย 
Switch Control and Time Delay - Keypad
Switch Control and Time Delay - KeypadSwitch Control and Time Delay - Keypad
Switch Control and Time Delay - KeypadAriel Tonatiuh Espindola
ย 
water level indicator report
water level indicator reportwater level indicator report
water level indicator reportRaza Jahangir
ย 
131080111003 mci
131080111003 mci131080111003 mci
131080111003 mcijokersclown57
ย 
Advanced insrumentation lab manual
Advanced insrumentation lab manualAdvanced insrumentation lab manual
Advanced insrumentation lab manualGautam sai teza
ย 

Similar to Water Level Indicator using 8051 Microcontroller.pptx (20)

Water level controller using 8051 microcontroller
Water level controller using 8051 microcontrollerWater level controller using 8051 microcontroller
Water level controller using 8051 microcontroller
ย 
water level controller using 8051 microcontroller
water level controller using 8051 microcontrollerwater level controller using 8051 microcontroller
water level controller using 8051 microcontroller
ย 
LCD_Example.pptx
LCD_Example.pptxLCD_Example.pptx
LCD_Example.pptx
ย 
Moving message display
Moving message displayMoving message display
Moving message display
ย 
Design, simulation and implementation of an Arduino microcontroller based aut...
Design, simulation and implementation of an Arduino microcontroller based aut...Design, simulation and implementation of an Arduino microcontroller based aut...
Design, simulation and implementation of an Arduino microcontroller based aut...
ย 
Lcd & keypad
Lcd & keypadLcd & keypad
Lcd & keypad
ย 
Calculator design with lcd using fpga
Calculator design with lcd using fpgaCalculator design with lcd using fpga
Calculator design with lcd using fpga
ย 
2022-BEKM 3453 - LCD and keypad.pdf
2022-BEKM 3453 - LCD and keypad.pdf2022-BEKM 3453 - LCD and keypad.pdf
2022-BEKM 3453 - LCD and keypad.pdf
ย 
08_lcd.pdf
08_lcd.pdf08_lcd.pdf
08_lcd.pdf
ย 
Lcd n PIC16F
Lcd n PIC16FLcd n PIC16F
Lcd n PIC16F
ย 
Alp lcd
Alp lcdAlp lcd
Alp lcd
ย 
Interfacing with LCD
Interfacing with LCDInterfacing with LCD
Interfacing with LCD
ย 
Embedded System Practical manual (1)
Embedded System Practical manual (1)Embedded System Practical manual (1)
Embedded System Practical manual (1)
ย 
Switch Control and Time Delay - Keypad
Switch Control and Time Delay - KeypadSwitch Control and Time Delay - Keypad
Switch Control and Time Delay - Keypad
ย 
water level indicator report
water level indicator reportwater level indicator report
water level indicator report
ย 
131080111003 mci
131080111003 mci131080111003 mci
131080111003 mci
ย 
Est 8 1 st
Est 8 1 stEst 8 1 st
Est 8 1 st
ย 
Advanced insrumentation lab manual
Advanced insrumentation lab manualAdvanced insrumentation lab manual
Advanced insrumentation lab manual
ย 
Arduino: Arduino lcd
Arduino: Arduino lcdArduino: Arduino lcd
Arduino: Arduino lcd
ย 
arduinoedit.pptx
arduinoedit.pptxarduinoedit.pptx
arduinoedit.pptx
ย 

More from shayanzafar2

Lecture 6.pdf
Lecture 6.pdfLecture 6.pdf
Lecture 6.pdfshayanzafar2
ย 
EngManagement - Lecture 4.pptx
EngManagement - Lecture 4.pptxEngManagement - Lecture 4.pptx
EngManagement - Lecture 4.pptxshayanzafar2
ย 
EngManagement - Lecture 3.pptx
EngManagement - Lecture 3.pptxEngManagement - Lecture 3.pptx
EngManagement - Lecture 3.pptxshayanzafar2
ย 
EngManagement - Lecture 6.pptx
EngManagement - Lecture 6.pptxEngManagement - Lecture 6.pptx
EngManagement - Lecture 6.pptxshayanzafar2
ย 
EngManagement - Lecture 7.pptx
EngManagement - Lecture 7.pptxEngManagement - Lecture 7.pptx
EngManagement - Lecture 7.pptxshayanzafar2
ย 
EngManagement-Lecture 9.pptx
EngManagement-Lecture 9.pptxEngManagement-Lecture 9.pptx
EngManagement-Lecture 9.pptxshayanzafar2
ย 
EngManagement - Lecture 5.pptx
EngManagement - Lecture 5.pptxEngManagement - Lecture 5.pptx
EngManagement - Lecture 5.pptxshayanzafar2
ย 
EngManagement - Lecture 8.pptx
EngManagement - Lecture 8.pptxEngManagement - Lecture 8.pptx
EngManagement - Lecture 8.pptxshayanzafar2
ย 
EngManagement - Lecture 2.pptx
EngManagement - Lecture 2.pptxEngManagement - Lecture 2.pptx
EngManagement - Lecture 2.pptxshayanzafar2
ย 
EngManagement - Lecture 1.pptx
EngManagement - Lecture 1.pptxEngManagement - Lecture 1.pptx
EngManagement - Lecture 1.pptxshayanzafar2
ย 

More from shayanzafar2 (10)

Lecture 6.pdf
Lecture 6.pdfLecture 6.pdf
Lecture 6.pdf
ย 
EngManagement - Lecture 4.pptx
EngManagement - Lecture 4.pptxEngManagement - Lecture 4.pptx
EngManagement - Lecture 4.pptx
ย 
EngManagement - Lecture 3.pptx
EngManagement - Lecture 3.pptxEngManagement - Lecture 3.pptx
EngManagement - Lecture 3.pptx
ย 
EngManagement - Lecture 6.pptx
EngManagement - Lecture 6.pptxEngManagement - Lecture 6.pptx
EngManagement - Lecture 6.pptx
ย 
EngManagement - Lecture 7.pptx
EngManagement - Lecture 7.pptxEngManagement - Lecture 7.pptx
EngManagement - Lecture 7.pptx
ย 
EngManagement-Lecture 9.pptx
EngManagement-Lecture 9.pptxEngManagement-Lecture 9.pptx
EngManagement-Lecture 9.pptx
ย 
EngManagement - Lecture 5.pptx
EngManagement - Lecture 5.pptxEngManagement - Lecture 5.pptx
EngManagement - Lecture 5.pptx
ย 
EngManagement - Lecture 8.pptx
EngManagement - Lecture 8.pptxEngManagement - Lecture 8.pptx
EngManagement - Lecture 8.pptx
ย 
EngManagement - Lecture 2.pptx
EngManagement - Lecture 2.pptxEngManagement - Lecture 2.pptx
EngManagement - Lecture 2.pptx
ย 
EngManagement - Lecture 1.pptx
EngManagement - Lecture 1.pptxEngManagement - Lecture 1.pptx
EngManagement - Lecture 1.pptx
ย 

Recently uploaded

PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
ย 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7Call Girls in Nagpur High Profile Call Girls
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
ย 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
ย 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
ย 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
ย 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
ย 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
ย 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
ย 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
ย 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
ย 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
ย 

Recently uploaded (20)

PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
ย 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
ย 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
ย 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
ย 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
ย 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
ย 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
ย 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
ย 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
ย 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
ย 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
ย 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
ย 

Water Level Indicator using 8051 Microcontroller.pptx

  • 1.
  • 2. โ€ข Introduction โ€ข Principle โ€ข Components required โ€ข Circuit Diagram โ€ข How to Operate โ€ข Algorithm & Code โ€ข Applications โ€ข Conclusion โ€ข References
  • 3. Water Level Indicator using 8051 Microcontroller project will help in automatically indicating the water level by sensing the water level in a tank. Here, different water level of the tank(like low,half,full) 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 3 wires, which are placed at different levels in tank. DC supply probe is placed at the base of the tank.
  • 4. โ€ข This system mainly works on a principle that โ€œwater conducts electricityโ€. โ€ข Four wires which are dipped into the tank where three will indicate the different water levels and one for Vcc. Based on the outputs of these wires, microcontroller displays water level on LCD. โ€ข Initially when the tank is empty, LCD will display the message EMPTY. When some water added in tank then LCD display LOW and when water level reaches to half level, now LCD displays HALF. โ€ข When the tank is full, LCD displays FULL.
  • 5.
  • 6. โ€ข AT89S52 Microcontroller (or any 8051 based Microcontroller) โ€ข 8051 Programmer (Programming Board) โ€ข 11.0592 MHz Quartz Crystal โ€ข 2 x 33pF Capacitor โ€ข 2 x 10Kฮฉ Resistor (1/4 Watt) โ€ข 10ยตF Capacitor โ€ข Push Button โ€ข 1Kฮฉ x 8 Resistor Pack (for Pull โ€“ up) โ€ข 16 x 2 LCD Display โ€ข 3 x 2N2222 (NPN) Transistors โ€ข 10Kฮฉ Potentiometer โ€ข Programming cable โ€ข Connecting wires โ€ข Power Supply โ€ข MikroC PRO for 8051 IDE โ€ข Progisp Software (for burning code)
  • 7. โ€ข Initially, write the program for Water Level Controller in MicroC Pro IDE and generate the .hex file. โ€ข Burn the program (.hex file) using progisp to the microcontroller using external programmer. โ€ข Now give the connections as per the circuit diagram. โ€ข Place the 4 water level indicating wires into the small tank (3 probes for three different levels and fourth one for common supply) โ€ข Switch on the supply.It will turn on even if the water level is EMPTY. โ€ข Now pour the water, when it reaches LOW level, then LCD displays LOW. โ€ข For middle level, it will display as HALF on the LCD. โ€ข Still if you pour the water, then the water level reaches full and the LCD displays FULL. โ€ข Switch off board supply.
  • 8. โ€ข First configure the controller pins P0.0, P0.1 and P0.2 as inputs and P2 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 pin HIGH. โ€ข If the level is low i.e. if P0.0 is HIGH, display the water level as LOW. โ€ข A HIGH pulse on the pin P0.1 indicates that water has reached half level. So, display the same thing on LCD. โ€ข If P0.2 is HIGH, then the water level in the tank is FULL.
  • 9. // Lcd module connections sbit LCD_RS at P2_0_bit; // RS pin connected to port P2^0 sbit LCD_EN at P2_1_bit; // for output sbit LCD_D4 at P2_2_bit; sbit LCD_D5 at P2_3_bit; sbit LCD_D6 at P2_4_bit; sbit LCD_D7 at P2_5_bit; //for inputs sbit lower at P0_0_bit; sbit middle at P0_1_bit; sbit high at P0_2_bit; char i; void Move_Delay() { // Function used for text moving Delay_ms(500); // You can change the moving speed here }
  • 10. void main(){ Lcd_Init(); // Initialize Lcd lower = middle = high = 0; while(1) { while(lower == 0 && middle == 0 && high == 0){ Lcd_Cmd(_LCD_CLEAR); // Clear display Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off Lcd_Out(2,1,"TANK IS EMPTY"); // Write text in second row Delay_ms(5000); } while(lower == 1 && middle == 0 && high == 0){ Lcd_Cmd(_LCD_CLEAR); // Clear display Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off Lcd_Out(2,1,"TANK is LOW"); // Write text in second row Delay_ms(5000); } while(lower == 1 && middle == 1 && high == 0){ Lcd_Cmd(_LCD_CLEAR); // Clear display Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off Lcd_Out(2,1,"TANK is HALF"); // Write text in second row Delay_ms(5000); } while(lower == 1 && middle == 1 && high == 1){ Lcd_Cmd(_LCD_CLEAR); // Clear display Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off Lcd_Out(2,1,"TANK IS FULL"); // Write text in second row Delay_ms(5000); } Lcd_Cmd(_LCD_CLEAR); // Clear display Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off Lcd_Out(2,4,"Oops - ERROR "); // Write text in second row Delay_ms(4000); Lcd_Cmd(_LCD_CLEAR); // Clear display Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off } }
  • 11. โ€ข Used in big buildings where the manual monitoring is difficult. โ€ข Used in industries to control the liquid level automatically.
  • 12. โ€ข This projects helps us to understand the basic working principle of LCD & 8051 microcontroller. Through this implementation we can detect & save the water by overflowing.Further this can be extended to attach the motor to turn OFF/ON automatically.