SHANMUGANATHAN ENGINEERING COLLEGE ARASAMPATTI – 622 507 MICROCONTROLLER BASED ELEVATOR CONTROL SYSTEM (MINI PROJECT

)
PROJECT REPORT 2009 – 2010 Submitted By

Ramarajan S Ramganesh R Silambarasan R Sethuraman M

91808132038 91808132039 91808132047 91808132511

Guided By Mr.N VENKATA KRISHNAN (Lecturer Dept. of ECE) Miss. T PRIYA (Lecturer Dept. of ECE)

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Shanmuganathan Engineering College, Arasampatti

1

ABSTRACT
This microcontroller based elevator control system is designed by using 8051 microcontroller. This is developed for a six floor building. Inputs are given by switches which are connected with microcontroller. Conveyor of DC motor moves according to the distance among the floors which is controlled by microcontroller. Floor numbers are displayed using a seven segment display.

INTRODUCTION:
This project is used in elevators. Whole circuit is assembled in microcontroller. The microcontroller is called as s system on a single chip. Totally, six switches are used. They can consider as floors. The floor numbers are given to the microcontroller as inputs. The DC motor connected with the microcontroller which rotates the conveyor. It is in active until power supply is given. It lifts the elevator. Floor numbers are displayed using a seven segment display.

PROJECT DESCRIPTION:
The 8051 microcontroller has four ports. They are port 0, port 1, port 2, and port 3. Each one consists of 8 pins. In this project only 3 ports of them are used. The port 1 is connected with a set of switches. The number of switches ranges according to the number of floors. Port 0 is connected with a seven segment display. It displays the floor numbers. Port 2.0 to port 2.5 pins are connected with LED’s which are indicating the rotation of the conveyor. In port 2.6 a DC motor is connected. The given switch value is passed to the motor. Then the motor is controlled by calling delays. For high values the time delay would increase. After each calling of delay subroutine, a control word is passed to the seven segment display. It displays the floor number.

COMPONENTS USED:
 Microcontroller 8051  LED’s  DC Motor  Set of switches  Seven segment display 2

BLOCK DIAGRAM:

3

CODING:
org 0h mov p2,#00h mov p1,#0ffh mov p1,#00h check:mov r0,#00h mov a,p1 mov p2,r0 cjne a,#01h,l1 lcall delay lcall delay mov p0,#040h ;0 lcall delay setb p2.0 lcall delay lcall delay mov p0,#0f9h ;1 sjmp check l1:cjne a,#02h,l2 lcall delay lcall delay mov p0,#040h ;0 lcall delay lcall delay lcall delay mov p0,#0f9h ;1 lcall delay lcall delay lcall delay lcall delay mov p0,#0a4h ;2 sjmp check l2:cjne a,#04h,l3 lcall delay lcall delay mov p0,#040h ;0 lcall delay lcall delay mov p0,#0f9h ;1 lcall delay lcall delay lcall delay mov p0,#0a4h lcall delay lcall delay lcall delay ;2 lcall delay mov p0,#0b0h lcall delay 4 lcall delay ;2 lcall delay lcall delay lcall delay ;3 ;mov p0,#099h ljmp check l3:cjne a,#08h,l4 lcall delay lcall delay mov p0,#040h ;0 lcall delay lcall delay lcall delay mov p0,#0f9h ;1 lcall delay lcall delay lcall delay mov p0,#0a4h ;2 lcall delay lcall delay lcall delay lcall delay mov p0,#0b0h ;3 lcall delay lcall delay lcall delay lcall delay lcall delay mov p0,#099h /*lcall delay lcall delay lcall delay lcall delay ;2 lcall delay lcall delay ;mov p0,#092h ljmp check l4:cjne a,#010h,l5 lcall delay lcall delay mov p0,#040h ;0 lcall delay lcall delay lcall delay mov p0,#0f9h ;1 lcall delay lcall delay lcall delay mov p0,#0a4h ;2

;4

;4

;5

lcall delay lcall delay lcall delay lcall delay mov p0,#0b0h ;3 lcall delay lcall delay lcall delay lcall delay lcall delay mov p0,#099h lcall delay lcall delay lcall delay lcall delay ;2 lcall delay lcall delay lcall delay lcall delay mov p0,#092h ;mov p0,#082h ljmp check l5:cjne a,#020h,lll lcall delay lcall delay mov p0,#040h ;0 lcall delay lcall delay lcall delay mov p0,#0f9h ;1 lcall delay lcall delay lcall delay lcall delay mov p0,#0a4h ;2 lcall delay lcall delay

;4

;6

lcall delay lcall delay lcall delay mov p0,#0b0h ;3 lcall delay lcall delay lcall delay lcall delay lcall delay lcall delay mov p0,#099h lcall delay lcall delay lcall delay lcall delay lcall delay lcall delay lcall delay mov p0,#092h lcall delay lcall delay lcall delay lcall delay lcall delay lcall delay mov p0,#082h ;mov p0,#0f8h lll:ljmp check delay:MOV R0,#0ffH D2:MOV R1,#0fFH D3:DJNZ R1,D3 DJNZ R0,D2 RET end

;4

;5

;6 ;7

5

CONCLUSION:
This project ‘Microcontroller based elevator control system’ is easy to implement. This project can be used in all types of elevators. It consumes only low cost. Further developments can be done on this project. So it is an innovative project using Microcontroller. ****************