Professional Documents
Culture Documents
(MINI PROJECT)
PROJECT REPORT
2009 – 2010
Submitted By
Ramarajan S 91808132038
Ramganesh R 91808132039
Silambarasan R 91808132047
Sethuraman M 91808132511
Guided By
Mr.N VENKATA KRISHNAN (Lecturer Dept. of ECE)
Miss. T PRIYA (Lecturer Dept. of ECE)
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 lcall delay ;2
mov p2,#00h lcall delay
mov p1,#0ffh lcall delay
mov p1,#00h lcall delay ;3
check:mov r0,#00h ;mov p0,#099h ;4
mov a,p1 ljmp check
mov p2,r0 l3:cjne a,#08h,l4
cjne a,#01h,l1 lcall delay
lcall delay lcall delay
lcall delay mov p0,#040h ;0
mov p0,#040h ;0 lcall delay
lcall delay lcall delay
setb p2.0 lcall delay
lcall delay mov p0,#0f9h ;1
lcall delay lcall delay
lcall delay
mov p0,#0f9h ;1 lcall delay
sjmp check mov p0,#0a4h ;2
l1:cjne a,#02h,l2 lcall delay
lcall delay lcall delay
lcall delay lcall delay
mov p0,#040h ;0 lcall delay
lcall delay mov p0,#0b0h ;3
lcall delay lcall delay
lcall delay lcall delay
mov p0,#0f9h ;1 lcall delay
lcall delay lcall delay
lcall delay lcall delay
lcall delay mov p0,#099h ;4
lcall delay /*lcall delay
mov p0,#0a4h ;2 lcall delay
sjmp check lcall delay
l2:cjne a,#04h,l3 lcall delay ;2
lcall delay lcall delay
lcall delay lcall delay
mov p0,#040h ;0 ;mov p0,#092h ;5
lcall delay ljmp check
lcall delay l4:cjne a,#010h,l5
mov p0,#0f9h ;1 lcall delay
lcall delay lcall delay
lcall delay mov p0,#040h ;0
lcall delay lcall delay
mov p0,#0a4h lcall delay
lcall delay lcall delay
lcall delay mov p0,#0f9h ;1
lcall delay ;2 lcall delay
lcall delay lcall delay
mov p0,#0b0h lcall delay
lcall delay mov p0,#0a4h ;2
4
lcall delay lcall delay
lcall delay lcall delay
lcall delay lcall delay
lcall delay mov p0,#0b0h ;3
mov p0,#0b0h ;3 lcall delay
lcall delay lcall delay
lcall delay lcall delay
lcall delay lcall delay
lcall delay lcall delay
lcall delay lcall delay
mov p0,#099h ;4 mov p0,#099h ;4
lcall delay lcall delay
lcall delay lcall delay
lcall delay lcall delay
lcall delay ;2 lcall delay
lcall delay lcall delay
lcall delay lcall delay
lcall delay lcall delay
lcall delay mov p0,#092h ;5
mov p0,#092h lcall delay
;mov p0,#082h ;6 lcall delay
ljmp check lcall delay
l5:cjne a,#020h,lll lcall delay
lcall delay lcall delay
lcall delay lcall delay
mov p0,#040h ;0 mov p0,#082h ;6
lcall delay ;mov p0,#0f8h ;7
lcall delay lll:ljmp check
lcall delay
mov p0,#0f9h ;1 delay:MOV R0,#0ffH
lcall delay D2:MOV R1,#0fFH
lcall delay D3:DJNZ R1,D3
lcall delay DJNZ R0,D2
lcall delay RET
mov p0,#0a4h ;2
lcall delay end
lcall delay
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.
****************