Three stories Lift or Elevator controller with microcontroller At89c51
In this project, we will learn circuit design for a elevator, how to develop a three stories passenger lift or cargo lift using microcontroller at89c51. This is a modal of simple lift or elevator in which a building is assumed which have three floors :
Floor # 0 : The basement (A basement is one or more floors of a building that are either completely or
partially below the ground floor. )
Floor # 1: The ground floorpartially below the ground floor. )
Floor # 2: The ist floor
There is a cabin of lift or elevator which will be moved up or down among different floors with the help of a motor. In this project of lift or elevator a single motor is used which will move the cabin up or down. Thus we have to learn about the control of this motor which is responsible of lift cabin movement on right time in right direction.
There are three floors in the building, thus lift cabin has to moves between these floor, for floor detection and to generate the arrival of any floor, some sensor are used. The floor detection sensors are limit switches which could be proximity switches. The proximity switches are sensors which changes the stat of a signal when metallic piece comes near them. The Principles of operation of inductive proximity sensors used in PC control, microcontroller or microprocessor projects and automation systems are as a proximity sensor is a sensor able to detect the presence of nearby objects without any physical contact. or in other words we can say that a proximity sensor often emits an electromagnetic or electrostatic field, or a beam of electromagnetic radiation and looks for changes in the field or return signal. The proximity sensors are the best for the detection of floor and could be used in this project. Thus, we will use three proximity sensors for three stories elevator project, one proximity sensor on each floor. These sensors have to be aligned with each other, such a way that, all sensors should be placed on equal distance from floor and these should be mounted to detect the bottom edge of lift cabin. By considering above precaution in the installation of sensors, lift cabin will stop on each floor correctly and doors of cabin and floor will be automatically aligned.
Three signals will be generated from within the lift cabin: these could be push buttons and will be used to request the lift to go on desire floor. The lift cabin will have three push switches for this purpose, one for each floor.7-segment led indication of lift system circuit design
Three signals will be generated outside the lift cabin, one from each floor. Again, these would be push buttons and there purpose will be to call the lift on desired floor, if it is not currently present there.
The status of lift will be indicated with the help of seven segment display. One seven segment display will be install on each floor; which will tell the current location of the lift. following display pattern could be visible on seven segment display of lift project:
0 : It means lift or elevator is on floor # 0 which is basement.
1: It means lift or elevator is on floor # 1 which is ground floor.
2: It means lift or elevator is on floor # 2 which is first floor.
3: This will indicate that lift is just powered up and it is going to its home position which basement. on reaching the basement, display will show 0.
The seven segment circuit is separate from main controller circuit of lift. The power supply of master controller circuit, and three floor indicator circuits (LED seven segment display) will be separate and communication between these will be through optocouplers.
In this project we can use L817 or 4n35 optocouplers. I used L817 optocoupler with no special reason. Please note that the inputs of the master controller will also be connected to microcontroller 8051 through optocouplers like L817. Although, i have not shown the optocouplers for input signals in the circuit diagram with the assumption that students will use these by their own.
The circuit diagram of Elevator Lift control for three stories with microcontroller 8051 is as under:-
#include<reg51.h> // include reg51 . h
//inputs from limit switches on each floor
sbit limit_sw_f2 = P1^0; // active low
sbit limit_sw_f1 = P1^1;
sbit limit_sw_f0 = P1^2;
// inputs from cabin for request to go on required floor
sbit goto_sw_f2 = P1^3; // active low
sbit goto_sw_f1 = P1^4;
sbit goto_sw_f0 = P1^5;
// inputs from outside cabin to call lift on each floor
sbit call_sw_f2 = P1^6; // active low
sbit call_sw_f1 = P1^7;
sbit call_sw_f0 = P3^7;
// outputs for motor
sbit motor_up = P3^5; // logic low will turn ON the motor for Up
sbit motor_down = P3^6; // logic low will turn ON the motor for down
// output for display
sbit digit_0 = P3^3; // active high
sbit digit_1 = P3^4; // active high
unsigned char floor;
//void delay(void);
void main (void){
P1 = 0xff;
P3 = 0xf8;
floor =0;
// on powered up goto ground floor
while(limit_sw_f0){motor_down =0;motor_up=1;}
motor_down =1;motor_up=1;
digit_0=0;digit_1=0;
while(1){
if((floor==0)||(floor==1)){
if((!goto_sw_f2)||(!call_sw_f2)){
while(limit_sw_f2){
motor_down =1;motor_up=0;
if(!limit_sw_f1){digit_0=1;digit_1=0;floor=1;}
}
motor_down =1;motor_up=1;
digit_0=0;digit_1=1;floor=2;
}
if((!goto_sw_f1)||(!call_sw_f1)){
while(limit_sw_f1){
motor_down =1;motor_up=0;
}
motor_down =1;motor_up=1;
digit_0=1;digit_1=0;floor=1;
}
}
if((floor==2)||(floor==1)){
if((!goto_sw_f1)||(!call_sw_f1)){
while(limit_sw_f1){
motor_down =0;motor_up=1;
}
motor_down =1;motor_up=1;
digit_0=1;digit_1=0;floor=1;
}
if((!goto_sw_f0)||(!call_sw_f0)){
while(limit_sw_f0){
motor_down =0;motor_up=1;
if(!limit_sw_f1){digit_0=1;digit_1=0;floor=1;}
}
motor_down =1;motor_up=1;
digit_0=0;digit_1=0; floor=0;
}
}
}








Dear sir,
ReplyDeleteFirst of all I'm happy to find a guide to my project.
Actually I'm a final year student of BE EEE. I like to do final year project in home automation using Embedded system, because i know basics about 8051 microcontroller, and also i have done small gadgets using 8051 microcontroller, As a mini project I have done Automatic electrical appliances controlling system in real time using RTC (real time clock). I would like to add some more concepts in Home automation for the Final year project, So please suggest me some Ideas to do in Home automation.
Also i need to intrerface the ZigBee sir, So please kindly explain how to interface ZigBee with C Code, and kindly please provide some suggestions for my final year project (Home automation).
And also I'm interested in listening the online Lecturers about microcontrollers. So Please provide that details also.
I will look forward for your reply.
Thank you very much sir.
@ S.Premkumar
ReplyDeleteIt is nice idea to do final project on microcontroller 8051 for home automation and control. As you said, you have basic working knowledge about microcontrollers and you have done some small projects.
You will surly do this one also. for ideas you can scan my blog, i hope you will find some useful information about different projects of microcontrollers.
I have not use ZigBee so far, so i can not suggest you about it.
If you make final proposal and need help, ask here, if i could, i will help you.
hello sir,
ReplyDeletethanks a lot for a gsm modem interfearance post.....
dear sir,
ReplyDeletetnkx a lot for ur gsm modem post....
its awesome n m working on it...
dear sir,
ReplyDeletetnk u for ur gsm modem post..
i m currently working on this project...
dear sir,
ReplyDeletetnk u for ur gsm modem post..
i m currently working on this project...
Sir,
ReplyDeleteI had asked you about three floor elevator system before.
your reply and circuit helped me a lot.
we made some changes in circuit as we just wanted to demonstrate the logic.
I have mailed you the circuit which i have designed and the c code which i have written.
can you help me with following points :
1. what to do with port 3 of 89c51 if it is not used
2. what about PSEN'.ALE,RST,EA'/VPP pins? I am not using any external memory device.
3. are the LCD connections okay?
the Keil C51 (c to hex converter we are using) dosen't support lcd.h file
Hence, I need your help with displaying code(eg. i need to display current floor and up/down motion of the elevator, then which function should i write? )
also tell me if there are any changes you would like to suggest in c code.
thanking you
Rucha G.
hi I m final year student and my project is Lift controller using 8051 microcontroller so do u have ant idea.
Deleteplz help me if u have any relevant stuff for this project....
Sir, we want a circuit diagram and programming for elevator doors,in which doors will automatically open for few seconds when elevator reaches at desired floor, and then they automatically close.And if another person or obstacle comes so doors again open for another few seconds then closes. And show the connection of this circuit with the previous circuit that you have already provided for elevator.
ReplyDeleteSir, we want a circuit diagram and programming for elevator doors,in which doors will automatically open for few seconds when elevator reaches at desired floor, and then they automatically close.And if another person or obstacle comes so doors again open for another few seconds then closes. And show the connection of this circuit with the previous circuit that you have already provided for elevator.
ReplyDelete@ Ali Rizwan :-
ReplyDeleteI can help you to develop a full automatic elevator control including the door auotmation. But before this, you have to give some very basic information about your project such as:-
1. How many floor are there in the building whose lefit or elevator program is required.
2. The door of lift required to control as you said, but what about the doors of each floor? How the doors of each floor will be controlled and syncronized with the door of lift?
3. for detection of obstacle or person in between the doors of lift, which sensor is being used.
4. for detection of full doors opened and full closed, you will also required some sensors. you which kind of these are?
5. It is better if you can send me whole requirments of lift controller and project proposal.
you can e-mail me on rghkk@hotmail.com or come for yahoo chat on rghkk1@yahoo.com
Hi there,
ReplyDeleteI'm an engineering student seeking help on constructing a lift microcontroler for my final year project. i have questions like what are the main things to consider? what is the best microcontroler to use from the 8051 family? why? the programming part whats the best language to use? please contact me letting me know if you can help with this project and what are the prices. kind regards
alonzo
@ alonzo (Lift controller) :-
ReplyDeleteThe engineering students should work on project based om microcontroller, it is good to read that you are engineer and you want to develop a lift controller using microcontroller from 8051 family.
Now answer to your questios are as under:-
Q1. what are the main things to consider?
Answer During the developemnt of control for lift or elevvatot, many parameters are required to consider with respect to diffferent aspects, like "selection microcontroller and other components", "interfacing circuit between microcontroller and external devices which depends on sensors and switches", "isolation between inputs, outputs and control circuit, transfer of signals, noise level in the building and surrounding place where the controller will be kept, control citcuit of motors, and algorithm of operation, number of floors etc.
Q2. what is the best microcontroler to use from the 8051 family?
Answer Try to search the microcontroller available in local market near you and then make a comarison between their features by studying the datasheets of microcontrollers, then select one which fullfill your requirements.
Q3. why?
Answer Because you ahve selected it by doing a healthy comparison of features of different microcontroller, and it is your selection.
Q4. the programming part whats the best language to use?
Answer The best language depends upon the microcontroller you selected,your programming skills, compilers, and speed required for different operations.
Q5. what are the prices.
Answer How much tea will be sweet? It depends upon the level of suger, more suger in tea, more sweet it is, haaa haaa
if you still have any questions, then eithor e-mail, or chat, or comments here
ok
Sir, here C program is given for this same project(i.e. 3Storied Lift Controller) I am in the need of Assembly Program which is equivalent to If Available I'll b thankful to you.
ReplyDeleteHye Dr.Rana..
ReplyDeleteI really attract with this project and I want to make this project for my final project.So,I hope you can give me the list of the components and also the equipments for this project..
I really appreciate sir...
Thanks..
@ Majid :-
ReplyDeleteI donot have assembly languge program OR assembly code for lift or elevator controlller using microcontroller 8051.
But if you have written the code and it has errors or you are trying to write the assembly language code, and feels difficulty, then you can send me your code, i will check it and try to finish it for you.My e-mail is given on this blog.
@ Adam Is :-
ReplyDeleteIt is good that you want to make this project as your final year degree project.
You want the component list and equipement list ok
This is not a difficult work, open the post and goto the image in which circuit diagram of lift controller is shown, and make your required list by your own, instead of asking me to do the same job for you.
If you have questions or confusion about the desiging and code writin of the project or if you are not understanding the algorithm of lift controller. Then feel free to ask the question, i will try to help you.
Thank Dr.Rana for the information..
ReplyDeleteI do my own first,to see what happen..
anything problem I will ask you again..
Ok Dr.Rana..
Thank you very much..
@ Adam Is :-
ReplyDeleteYes , you should work BY YOUR OWN on THE PROJECT DEVELOPEMENT OF LIFT CONTROLLER USING MICROCONTROLLER.
you can discuss the problem related to the microcontroller project.
Hye Dr. Rana..
ReplyDeleteThis program is in C language..
I have problem about this C language..
I not expert with this program language..
So, did you have program in assembly language because in assembly language I more understand and easy to me to find the errors in my program..
Thank you..
Yes the lift controller program in this post is written in C-Language.What kind of probelm you have? No problem if you are not expert with this lanuage, mine too not expert, and a few persons in world are expert of C language.I donot have a program in assembly language for lift controller.
ReplyDeleteIf you feel easy to write your own program and you can remove errors, then do it. very simple
Actually,I not understand program in C language but I need try do first..any problem I ask you again..
ReplyDeleteOne more thing Dr.Rana, the 7 segments are anode or cathode uses??
Thank you..
@ ADAM IS :-
ReplyDeleteThere is no problem , ask as many question as you can.
The seven segments used in the project of three story lift controller for indication of current floor are of "common Anode " type.
ok
Dr.Rana..
ReplyDeleteThis circuit is the complete circuit..isn't right??
There is no additional components to the circuit??
hye...im farah 2nd year engineering student.
ReplyDeletei have to develop a programming using microcontroller.im using ic8051.i have elevator project in mind.ive completed my flowchart but i have difficulties with elevator circuit diagram..i hope u can help me with the circuit.
i m looking forward for your reply.im really hope u can help me with this.
enc :the elevator flowchart system.
Hello i m Final year student and doing Digital lift controller project using 8051 microcontroller
Deletei need help in circuit diagram as cofused how to do it ?
plz help .....
my email is
mirza_mehboob786@yahoo.co.uk
@ Farah (8051 microcontroller lift controller project):-
ReplyDeleteok
send me the flow chart of your lift controller project.
tell me is it passenger lift ot cargo lift?
how many stories or floor are there in the building whose lift controller you want to design.
@ Adam Is :-
ReplyDeleteThe circuit works fine in proteus and seemed complete, but in real life you will need some componenets related to crystal, and reset circuit, motor interfacing, input interfacing, i assumed the student will do these by their own.
Hi Dr Rana. May i know the terminal of (dg0,dg1,common) from U4,U7,U10 is connecting to which terminal? And the micro controller from pin 21 to 39 is not connecting to anywhere? TQ.
ReplyDelete@ kenneth9328 (lift controller connection problem):-
ReplyDelete1. The dg0,dg1,and common are the signals for interfacing the seven segment on each floor, these should be connected to the cicuit shown at the bottom of figure(the display circuit, parallel to each other).
2.The U7,U4,U10, are the part of seven segment display circuit to be mounted on each floor.
3.PIn 21 and 39 are left un-connected.
This is not a difficult work, open the post and goto the image in which circuit diagram of lift controller is shown, and make your required list by your own, instead of asking me to do the same job for you.
ReplyDeleteBoiler Construction elevator
plz help me wd a prjct : wireless rf anti collision trains wd auto breaking systm.... i need d ckt diag... email : b.deepanshi@gmail.com
ReplyDeleteSir, I am studying diploma i mechatronics & now I'm in final year. I am going to do elevator control for four stories....
ReplyDeleteSo, can you help sir????
I need the whole thing in the way you gave for three stories, but it should be for four stories....:-)
Thanks in advance...
Sir, I'm final year student studying diploma in mechatronics. I have decided to do 'elevator control for four stories'...
ReplyDeleteSo, can you please help me for this as I have no idea on how to do this...
I am looking forward for your reply....
Thanking you in advance... :-)
How do I write operating module by micro C ???
ReplyDeleteHello DR.RANA, i have create the circuit following your circuit diagram. Those 7-segments function correctly, Now the at89c51 seem like cant work at all. i'm program .hex by "kitrus123". can i know the crystal use 12Mhz? It's doesn't work for me, i need ur guidance urgently.... thanks for reply DR.Rana.
ReplyDeletethe crystal is use 24Mhz?
ReplyDeletethe crystal is use 24Mhz?
ReplyDeletesir,i m a third year student working on an elevator system. the above ckt has helped a lot. apart from this my project statement has a clause saying that i hav to incorporate a door open or close buzzer, direction display and load display in the kift. how do u think i should proceed
ReplyDeleteHello sir
ReplyDeletei m Final year studend of EE.
My final project is Digital Lift Controller so i am stuck tht how to start it need some guide lines and if u have some stuff relevant to this plz help me out....
i need to make Lift controller using 8051 micro controller and stuck tht wht kind of circuit it will be
looking forward to u
Thanks
MIRZA
hello i have the same project and also stuck wd some parts so plz help if any1 have relevent stuff or idea
Deletethanks
mastermind921@gmail.com