Elevator Project Description Dr. S. Ahmadi ECE 002.

5
Elevator Project Description Dr. S. Ahmadi ECE 002

Transcript of Elevator Project Description Dr. S. Ahmadi ECE 002.

Page 1: Elevator Project Description Dr. S. Ahmadi ECE 002.

Elevator Project Description

Dr. S. Ahmadi

ECE 002

Page 2: 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.

Page 3: Elevator Project Description Dr. S. Ahmadi ECE 002.

Graphical Representation/Animation

2nd Floor

1st Floor

1st Floor Analog Sensor 2 2

2nd Floor Analog Sensor 3 3

Motor 1String attached to gear

Lowers/raises elevator car

2nd Floor DIGTIAL Sensor 8

1st Floor DIGTIAL Sensor 7

Page 4: Elevator Project Description Dr. S. Ahmadi ECE 002.

Listen for call

Has elevator reached

1st floor?

Turn on elevator motor going down

Is elevatoron 2nd floor?

Is elevatoron 1st floor?

Is call from1st floor?

Has a call arrived?

Turn off motor/Apply Brakes

Y

Y

N

(loop)

(loop)

N

Y

Go toPage 2

A

Flowchart for Elevator Algorithm (Page 1 of 2)

YN

N Y

Page 5: Elevator Project Description Dr. S. Ahmadi ECE 002.

Has elevator reached

2nd floor?

Turn on elevator motor going up

Is elevatoron 1st floor?

Is elevatoron 2nd floor?

Is call from2nd floor?

Turn off motor/Apply Brakes

Y

(loop)

N

Y

Next Page

A

Flowchart for Elevator Algorithm (Page 2 of 2)

YN

N Y

FromPage 1

Return back to circle A on page 1