Elevator Controller - Inside...

15
Elevator Controller BRANDON AHO AND JINBO ZHU

Transcript of Elevator Controller - Inside...

Page 1: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

Elevator Controller BRANDON AHO AND JINBO ZHU

Page 2: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

What are we modeling?

Page 3: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

What are our simplifications?

Small model with robotics components

No special operation such as special buttons, weight compensation,

vibrations in the system, safety measures, precise elevation etc.

2 floors

No doors

This is a demonstration of the controller’s basic operation – not a

simulation of an actual elevator.

Page 4: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

What are we using to model it?

HCS12 Microcontroller on SSMI Board

Breadboard

Resistors x4

Indicator Switches x2

User Switches x2

DC Stepper Motor

DC Stepper Motor Controller

Actobotics Equipment

Page 5: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

What are we using to model it?

HCS12 Microcontroller

Breadboard

Resistors x4

User Switches x2

DC Stepper Motor Controller

Page 6: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

What are we using to model it?

DC Stepper Motor

Indicator Switch x2

(microswitch)

Actobotics equipment

(C channel, sprockets,

chain, various fasteners, shaft)

2 objects of equal

mass to simulate

elevator and

counterweight

Page 7: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

What are we using to model it?

• Normally open contact.

• Normally closed contact.

• Common pin is connected to

HCS12 input pin.

• Grounded via resistor.

• A complete depression of the

lever arm is suggested to

ensure a signal is sent.

Page 8: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

How does it all work together?

The microcontroller controls the elevator just how you would expect

it to.

Press a button, no other user buttons will function again until the

elevator reaches its destination.

Controller knows if a floor has been reached through input from one

of two indicator microswitches.

Page 9: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

How does it all work together?

Page 10: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

Rough Timing Diagram

Page 11: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

pseudocode

Page 12: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

How the hardware works

Stepper motor has four wires & poles: A, A’, B, B’

Stepper motor controller handles the clockwise/ counter clockwise

rotation of the stepper motor

Pulse the “step” pin to rotate the motor one position. This advances the

DC stepper motor pins in the correct fashion – it is hard-coded onto the

motor controller

Direction pin can be logic 1 or 0.

Motor receives +9V from the AC to DC power source

Page 13: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

What special functions of the

HCS12 are we implementing?

Real-Time Interrupt System Output Compare

Sends a pulse from the HCS12 to the motor controller at varying

intervals, giving us an acceleration profile similar to what one would

expect from a real world elevator.

Loops and logic structures to handle our four states: stationary at top, stationary at bottom, moving up, and moving down.

As one might expect, the user buttons will not do anything until the

previous button’s corresponding floor has been reached.

The microswitches only cause a state change when the elevator is

already in motion.

Page 14: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

Our conclusions

The HCS12 in conjunction with DC stepper motor & controller work

for this small application.

Not enough pins for a full-scale building with potentially more than a

hundred floors.

No accounting for weight changes in the elevator, this factor is

removed by using a stepper motor.

Not as advanced as other elevator controllers which are built with

other features which can control the lighting, doors, sounds, music,

entertainment/news/weather/directory consoles, and even video

communications/ surveillance of modern elevator systems.

Page 15: Elevator Controller - Inside Minesinside.mines.edu/~whoff/courses/EENG383/projects/2014fall/Aho_Zhu.… · Our conclusions The HCS12 in conjunction with DC stepper motor & controller

Your questions