50 likes | 80 Vues
Students will construct a 2-story Lego elevator with sensors and motors, and program it using Interactive C. Learn about elevator algorithms and operations.
E N D
Elevator Project Description Dr. S. Ahmadi ECE 002
Project Description • Students will build a mock elevator for a 2 story building and create a program to control it. • The basic blocks will be: elevator car, elevator shaft, digital sensors, analog sensors. • The elevator and elevator shaft will be made of legos. • The elevator car will be powered using the motors from the lego kit. • Analog Sensors will be used to determine when the elevator has reached a given “floor.” • Digital Sensors will be used to determine if a customer is “calling” the elevator to a given “floor.” • The students will use the handyboard to control the motors and sensors to operate the elevator and program the device using Interactive C.
Graphical Representation/Animation Motor 1 String attached to gear Lowers/raises elevator car 2nd Floor Analog Sensor 3 3 2nd Floor DIGTIAL Sensor 8 2nd Floor 1st Floor DIGTIAL Sensor 7 1st Floor Analog Sensor 2 2 1st Floor
Flowchart for Elevator Algorithm (Page 1 of 2) A Listen for call (loop) Has a call arrived? N Y Y Is call from 1st floor? Is elevator on 1st floor? Is elevator on 2nd floor? Y N Y N Turn on elevator motor going down (loop) Has elevator reached 1st floor? Turn off motor/ Apply Brakes N Y Go to Page 2
Flowchart for Elevator Algorithm (Page 2 of 2) From Page 1 A Return back to circle A on page 1 Y Is call from 2nd floor? Is elevator on 2nd floor? Is elevator on 1st floor? Y N Y N Turn on elevator motor going up (loop) Has elevator reached 2nd floor? Turn off motor/ Apply Brakes N Y Next Page