Beruflich Dokumente
Kultur Dokumente
PROJECT ABSTRACT
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
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
FLOW CHART
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