Handout-Steeper Motor Interfacing With 8051
Handout-Steeper Motor Interfacing With 8051
Aim:
Theory
A motor in which the rotor is able to assume only discrete stationary angular
position is a stepper motor.
The rotary motion occurs in a step-wise manner from one equilibrium position to
the next.
Stepper Motors are used very wisely in position control systems like printers, disk
drives, process control machine tools, numerically controlled machines and
robotics etc.
The basic two-phase stepper motor consists of two pairs of stator poles.
Each of the four poles has its own winding.
The excitation of any one winding generates a North Pole.
A South Pole gets induced at the diametrically opposite side. The rotor
magnetic system has two end faces.
It is a permanent magnet with one face as South Pole and the other as North
Pole.
The Stepper Motor windings A1, B1, A2, B2 are cyclically excited with a DC
2
current to run the motor in clockwise direction. By reversing the phase sequence as
A1, B2, A2, B1, anticlockwise stepping can be obtained.
ANTICLOCKWISE CLOCKWISE
STEP A1 A2 B1 B2 DATA STEP A1 A2 B1 B2 DATA
1 1 0 0 1 9h 1 1 0 1 0 Ah
2 0 1 0 1 5h 2 0 1 1 0 6h
3 0 1 1 0 6h 3 0 1 0 1 5h
4 1 0 1 0 Ah 4 1 0 0 1 9h
Stepper motor
8051
8255
Microcont Driver Stepper
roller Circuit motor
Representation
4
4120 7F Move 01 to R7
4121 DELAY MOV 01 01
R7,#01H
4122 7E Move 11 to R6
4123 MOV 11 11
R6,#11H
4124 7B Move FF to R3
4125 L2 MOV FF
R3,#FFH
4126 L1 DJNZ DB
R3,L1
4127 FE
412C RET 22
412D LOOKUP DB 09 09
412E 05 05
412F 06 06
4130 0A 0A
4131 END 09
Procedure
Enter the above program starting from location 4100.and execute the same.
The stepper motor rotates.
Varying the count at R4 and R5 can vary the speed.
Entering the data in the look-up TABLE in the reverse order can vary
direction of rotation.
Result:
Thus a stepper motor was interfaced with 8051 and run
in forward and reverse directions at various speeds.
8