Choosing a Microcontroller As it provides on chip microprocessor, RAM, ROM,
Parallel I/O port, Serial I/O port etc. hence its cost is less, size is less, power consumption is less and speed is more. Software development tools like assembler, C compilers etc are easily available and are easy to upgrade.
Pin Diagram of the 8051 P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST (RXD)P3.0 (TXD)P3.1 (INT0)P3.2 (INT1)P3.3 (T0)P3.4 (T1)P3.5 (WR)P3.6 (RD)P3.7 XTAL2 XTAL1 GND
1 2 3 4 5 6 7 8 9 1 1 0 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 2 9 0
8051
4 3 0 3 9 3 8 3 7 3 6 3 5 3 4 3 31 2 3 2 0 2 9 2 8 2 7 2 6 2 5 2 4 2 3 2 1
Vcc P0.0(AD P0.1(AD1) 0) P0.2(AD P0.3(AD3 2) )P0.4(AD4 P ) 0.5(AD5) P0.6(AD6) P0.7(AD7 )EA/VPP ALE/PROG PSEN P2.7(A15) P2.6(A1 P2.5(A1 4) P2.4(A1 3) P2.3(A1 2) P2.2(A10 1) )P2.1(A9) P2.0(A8)
WATER LEVEL INDIACTOR
Working of switches
Observation As the water level in the sump increases, the LED’s
corresponding to levels E1, L1, H1 and F1 will glow and siren will beep for levels E1 and L1. Now when the SUMP is filled completely the Pump will get ON and water will get pumped to overhead TANK. When the water level in the TANK increases, the LED’s corresponding to levels E2, L2, H2 and F2 will glow and siren will beep for levels E2 and L2.
Acknowledgement Thanks to Mrs. Snehal Giakwad for her knowledge
& guidance throughout the project. Thanks to Lab Assistant for helping us in the lab.
9
References Muhammad ali mazidi and robin D Mckinlay,"The 8051
microcontroller and embedded system using assembly and c", Pearson Education. Myke Predko, "Programming and Customizing The 8051 Microcontroller", Tata McGraw Hill. www.electronicsproject.com www.google.com
Name plate Bhaveshkumar K Makani RWE 5069 Bhavin Visariya RWE 5130 Dhaval Solanki RWE 5114