Embedded

pleasanthopebrothersΗλεκτρονική - Συσκευές

2 Νοε 2013 (πριν από 3 χρόνια και 7 μήνες)

87 εμφανίσεις

1

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

STEPPER MOTOR CONTROL USING HC11
MICROCONTROLLER

Project Presentation for ELET 5300

Dr. C.Wu


Instructor


Presented by

Sriteja Tarigopula

04/23/03

2

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

STEPPER MOTOR CONTROL USING HC11
MICROCONTROLLER

Project Presentation for ELET 5300

Dr. C.Wu


Instructor


Presented by

Sriteja Tarigopula

04/23/03

3

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller





Problem Statement

To calculate the speed of a simple motor and
displaying the speed using a seven
-
segment
display using a HC11Microcontroller from
Motorola

4

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller



Hardware Requirements


Stepper Motor


(1)


HC11 EVB


(1)


Seven Segment Display


(1)


25K

Ω potentiometer


(1)


ULN
-
2075B Motor Driver IC


(1)

5

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller



CIRCUIT DIAGRAM

6

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller



LED Connections

7

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller


Subroutines


INIT Subroutine.


TURN Subroutine.




8

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller


Subroutines (Cont’d)


READAD Subroutine :


ADTCL Register


9

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller


Subroutines (Cont’d)

Channel Selection When Bit 4=1


CD


CC


CB


CA


Port E






Result Register

0


0


0


0


PE0


ADR1


0


0


0


1


PE1


ADR2


0


0


1


0


PE2


ADR3


0


0


1


1


PE3


ADR4


0


1


0


0


PE4


ADR1


0


1


0


1


PE5


ADR2


0


1


1


0


PE6


ADR3


0


1


1


1


PE7


ADR4


10

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller


Subroutines (Cont’d)


READAD Subroutine :


OPTION Register


11

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller


Subroutines (Cont’d)


COMPSD Subroutine.


DISPLAY Subroutine.

12

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller


Modified Circuit Diagram


13

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller



Coil Winding Diagram for J835L PM 24P

14

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller


Normal 4


Step sequence

Cloclwise

Step #

Winding A

Winding

B

Winding C

Winding
D

Counter
Clockwise

1

1

0

0

1

2

1

1

0

0

3

0

1

1

0

4

0

0

1

1

15

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller



Subroutines


INIT Subroutine.


TURN Subroutine.


READAD Subroutine.


COMPSD Subroutine.


DISPLAY Subroutine.

16

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller



Applications


Robotic Controllers.


Turning Machine Tools.


Shaft Positioning Control Systems.

17

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Stepper Motor Control using HC11 Microcontroller



References


Data Acquisition and Process Control with M68HC11
microcontroller by Driscoll, Coughlin,Villanucci.


Design of Embedded Systems using 68HC12/11
microcontrollers by Richard E.Haskell.


www.motorola.com


18

S

T

E

P

P

E

R


M

O

T

O

R


C

O

N

T

R

O

L




U

S

I

N

G


H

C

11

Thank you…