WATER LEVEL controller using 8051

Slides:



Advertisements
Similar presentations
MICROPROCESSORS AND MICROCONTROLLERS
Advertisements

Indian Institute of Technology Hyderabad AUTOMATIC WATER LEVEL CONTROLLER by Yashashvi Chand.P Sai Kumar.G.
Autumn 2012C.-S. Shieh, EC, KUAS, Taiwan1 The 8051 Family Microcontroller Chin-Shiuh Shieh Department of Electronic Engineering.
Week10 Boolean Instructions on the Boolean Instructions  Boolean (or Bit) addressable capability is unique to the 8051  Enables efficient handling.
» When you have completed this module you will know, what components do, what they physically look like and how they are represented in a circuit diagram.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
MICROCONTROLLER BASED FIRE FIGHTING ROBOT. ABSTRACT The object of this project is  IN OUR PROJECT WE DESIGNED A PROTOTYPE TO DETECT FIRE AND EXTINGUISH.
1 EKT 225 MICROCONTROLLER I CHAPTER 3 I/O PORT PROGRAMMING.
AUTOMATIC ROOM LIGHT CONTROLLER WITH BIDIRECTIONAL VISITOR COUNTER
Objectives How Microcontroller works
A Simple Tour of the MSP430. Light LEDs in C LEDs can be connected in two standard ways. Active high circuit, the LED illuminates if the pin is driven.
MOBILE OPERATING ROBOT ON EMBEDDED SYSTEM
8279 KEYBOARD AND DISPLAY INTERFACING
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
8279 KEYBOARD AND DISPLAY INTERFACING
EMBEDDED SYSTEM & ROBOTICS. Introduction to robotics Robots are machines capable of carrying out a complex series of actions automatically. Robotics is.
 RAJ JOSHI  CHINMAY JOSHI RMS POLYTECHNIC E.C 6 TH SEM PROJECT PPT HEAD OF DEPARTMENT : HIMANSHU GUPTA INTERNAL GIDE : VIRAL.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
Simple Water Level Controller Circuit with Microcontroller and Alarm.
By: Asad Ahmed Khan Muhammad Ali. Introduction: This circuit is designed to determine the water level especially in a water tank.  As the water level.
DEPARTMENT OF ELECTRONICS ENGINEERING V-SEMESTER MICROPROCESSOR & MICROCONTROLLER 1 CHAPTER NO microcontroller & programming.
BATCH MEMBERS R.ABHISHEK-08N41A0401 K.DHEERAJ REDDY-08N41A0412 S.RAJENDRA REDDY-08N41A0458 JYOTHISHMATHI COLLEGE OF ENGINEERING AND TECHNOLOGY,TURKAPALLY.
IR OBSTACLE DETECTION TO
WATER LEVEL INDICATOR AND AUTOMATIC MOTOR SWITCHING SYSTEM
P. What is the presentation is about ? IN this project we show that how we convert the analogue fuel meter into digital fuel meter. IN every car there.
Revision questions CENG2400 v.14b 1 CENG2400 Revision, Question 1 A system has an ARM processor with a 32-bit General Purpose Input Output (GPIO) module.
ENERGY METER TO INDICATE BILLING IN RUPEES FOR LOAD WISE OR DAY WISE
SENSING SOIL MOISTURE CONTENT AUTOMATIC IRRIGATION SYSTEM
Application Case Study Christmas Lights Controller
Parking Availability Indication System
ULTRA FAST ACTING ELECTRONIC CIRCUIT BREAKER
Application Case Study Security Camera Controller
LED LAMP DIMMER CIRCUIT
SUBMITTED BY EDGEFX TEAM
8051 Pin - out PORT 0 PORT 1 PORT 2 PORT 3.
PROPELLER DISPLAY OF MESSAGE BY VIRTUAL LEDS
ABSTRACT The controller continuously polls the temperature with certain regular time intervals and displays over the 7_segment display The temperature.
SUBMITTED BY EDGEFX TEAM
AUTO POWER SUPPLY CONTROL FROM 4 DIFFERENT SOURCES: SOLAR, MAINS, GENERATOR & INVERTOR TO ENSURE NO BREAK POWER.
LAPTOP THEFT IDENTIFIER.
Project Title EVM IN 8051 Under the Guidance of Submitted by.
PRE-STAMPEDE MONITERING AND ALARM SYSTEM
For further information
SOLID STATE RELAY WITH ZVS PROPERTIES ANALYZED ON CRO
SCADA for Remote Industrial Plant
PC Mouse operated Electrical Load Control Using VB Application
Project of Linear Circuit Analysis
ABSTRACT The microcontroller receives the Infrared Signal from the TV remote, the code of which is identified by the IR receiver depending on which it.
SUBMITTED BY EDGEFX TEAM
UNIT – Microcontroller.
Microcontroller Based Digital Code Lock
Introduction to Handshaking Communication with SSC-32U
SUBMITTED BY EDGEFX TEAM
IR OBSTACLE DETECTION TO
SMART CARD ENABLED EMPLOYEE IDENTIFICATION FOR SECURITY PURPOSE
Source: Motor Source:
Remote Controlled Smart Socket
Project of Linear Circuit Analysis
SUBMITTED BY EDGEFX TEAM
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Introduction to Microprocessors and Microcontrollers
CENG2400 Revision Q1a A system has an ARM processor with a 32-bit General Purpose Input Output (GPIO) module. Two on/off switches are connected to bit-3.
Memory organization On- chip memory Off-chip memory
Serial EEPROM (Atmel 24C-512)
The 8051 Microcontroller (8 bit )
Introducing the PIC Mid-Range Family and the 16F84A
8051 Micro Controller.
The 8051 Microcontroller (8 bit )
ACOE347 – Data Acquisition and Automation Systems
Presentation transcript:

WATER LEVEL controller using 8051 MADE BY MEHUL GIRNARI(100200117079) MITAL VALA(100200117095)

Introduction From the last three days every time when I went to roof in the evening for fresh-air, I felt sorry to saw the overflowing water from the water-tanks of my neighbors. All of them switched off their Motor-Pumps but after the overflowing of water from the tank. I realized this is the total wastage of water and there must be an alternate to avoid this situation.  There must be a machine or device which tells us the status of water so that we can switch off the motor-pump before the overflowing took place. So, today I am here with the solution of this problem. The device I have made to tackle this problem is “Water Level Indicator”. This device can be installed in tall buildings water tanks where manual monitoring is very difficult. The indication unit can be placed at any desired location in the building or house.

Schematic Of The Project Motor Relay

Basic Concept Of The Project:- The device works on the principle that the water is capable of passing current through it. One wire which is connected to VCC is left in the bottom most part of the tank and the rest wires are set at different levels in the tank. Except the bottom most wire which provide VCC to the whole water, we have five wires set at different levels. Another terminal of these five wires are connected to the base of transistors and hence in turn to the microcontroller which is the heart of the device. When water starts rising, different levels touches the water and get some positive voltage. This positive voltage is given to the base of transistors to activate them and hence passing signal to the controller as shown in the figures below. The indicating component is LED. This component show the current status of the water in the tank.

Components Used AT89C51 Microcontroller Transistors LEDs Resistors Capacitors Relay Diode

Working 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 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.

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,#01110000B,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,#00110000B,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,#00010000B,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,#00000000B,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

Components Details & Datasheet

AT89C51 Microcontroller AT89C51 is an 8-bit microcontroller and belongs to Atmel's 8051 family. ATMEL 89C51 has 4KB of Flash programmable and erasable read only memory (PEROM) and 128 bytes of RAM. It can be erased and program to a maximum of 1000 times.   In 40 pin AT89C51, there are four ports designated as P1, P2, P3 and P0. All these ports are 8-bit bi-directional ports, i.e., they can be used as both input and output ports. Except P0 which needs external pull-ups, rest of the ports have internal pull-ups. When 1s are written to these port pins, they are pulled high by the internal pull-ups and can be used as inputs. These ports are also bit addressable and so their bits can also be accessed individually.  Port P0 and P2 are also used to provide low byte and high byte addresses, respectively, when connected to an external memory. Port 3 has multiplexed pins for special functions like serial communication, hardware interrupts, timer inputs and read/write operation from external memory. AT89C51 has an inbuilt UART for serial communication. It can be programmed to operate at different baud rates. Including two timers & hardware interrupts, it has a total of six interrupts.

Pin Diagram