damian marks rekha vemuri instructor: dr. wu simple control system for a stepper and dc motor using...

24
Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Upload: irene-fitzgerald

Post on 22-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Damian Marks

Rekha Vemuri

Instructor: Dr. Wu

Simple control system for a Stepper and DC motor using a

tachometer and the HC11

Page 2: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Presentation Outline

Objective Background Methodology Assembly language program Discussion Conclusion

Page 3: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Objective

The objective of the project is to control and measure the speed of a motor

Page 4: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Background

This project effectively utilizes both software and hardware.

– DC Motor– Stepper motor– Counter– SKAMP light sensor– HC11 Evaluation Board

(EVB)

Page 5: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Hardware Description

DC motor– Runs on Direct Current– Speed can be controlled by changing the voltage

Page 6: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Hardware Description (cont)

DC Motor– The motor converts electrical energy to mechanical

work as the output shaft turns– DC motors consist of one set of coils, called an

armature, inside another set of coils or a set of permanent magnets, called the stator.

– Applying a voltage to the coils produces a torque in the armature, resulting in motion.

Page 7: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Hardware Description

Stepper Motor– Converts electrical pulses into discrete mechanical

rotational movements.– Has no brushes, or contacts– Stepper motor receives a rectangular pulse train

and responds by rotating its shaft.

Page 8: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Hardware Description

Stepper Motor– Pulse train is controlled by means

of a Microcontroller.– Requires no feed back loop and

sensors in controlling a stepper motor.

Page 9: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Hardware Description

Stepper Motor Applications– Film advance

Page 10: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Hardware Description

Stepper Motor Applications– Conveyor

Page 11: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Hardware Description

Stepper Motor Applications– Labeling Machine

Page 12: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Hardware Description

Stepper Motor Applications– Window Blind Gluing

Page 13: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Hardware Description

Stepper Motor Applications– Tube Cutter

Page 14: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Hardware Description

Counter

PE0 PE1 PE2 PE3 PE4 PE5 PE6 PE7

Q0 Q1 Q2 Q3

Counter

Port E

Page 15: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Hardware Description

Skan-A-Matic SKAMP light sensor

Page 16: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Software

Buffallo – HC11 Monitor Program AS11.exe – Compiler1 Assembly – Programming Language THR 68HC11 Sim V3.06 Hyper Terminal – The serial communication

program used to interface the HC11 with the PC.

Page 17: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Software

Assembly Language Programming Modules– Real-time interrupt– Delay Loop– Counting Sub-routine– Stepper Routine– Hexadecimal to ASCII character conversion sub-

routine

Page 18: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Real-time Flow Chart

Page 19: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Delay Sub-routine

Page 20: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Rotate Sub- Routine Flow chart

Page 21: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Counter Sub-Routine Flowchart

Page 22: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Problems Faced

Limited Memory on EVB Board Limited Ports on EVB Board Real-time Interrupts

Page 23: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Conclusions

Page 24: Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11

Questions?