Sie sind auf Seite 1von 5

ELEVATOR PROJECT

Tuesday, January 28, 14

PROJECT ABSTRACT

Main goals of the project include:


Make an elevator successfully move from any of the two oors from the response of a Push Button Sensor
Have

the elevator car move to the appropriate oor


Incorporate Use Use

a variety of sensors into the project a motor to pull the elevator car Interactive C to create program to move the elevator car
Extra

Credit: Make the elevator work for three oors


2

Tuesday, January 28, 14

ELEVATOR CODE
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

void main() { int color=0; printf("\n Elevator Program"); while (start_button()==0); while(stop_button()==0) ! { while (1) { if (digital(7)==1) {if (digital(8)==1) { } else if (digital(8)==0) {motor (1,-20); while (digital(8)==0); back motor (1,0);}} if (digital (9)==1) {if (analog(6)<=200) { } else if (analog(6)>=200) {motor (1,20); while (analog(6)>=200); motor (1,0);}} } } } //If 1st button is pressed //Elevator already at 1st //Elevator is not at 1st //Brings elevator down //When elevator gets to the bottom motor moves //If 2nd oor button is pressed //Elevator is already at 2nd //Elevator is not at 2nd //Brings elevator up //waits for start button press //Waits until stop button pressed

Tuesday, January 28, 14

FLOW CHART

Tuesday, January 28, 14

CONCLUSION AND DISCUSSION


Success of the elevator measured by its ability to move to all oors ! Code incorporated basic functions for each movement of the elevator ! Main di"culties of project include:
!

Structural design of elevator casing ! Structural design of elevator car ! String had no friction on the pulley system ! Sensors necessary in the incorporation of elevator and thinking process
! !

Project would have been more successful if all three oors were reached
5

Tuesday, January 28, 14

Das könnte Ihnen auch gefallen