Professional Documents
Culture Documents
CONTENTS
PAGE NO
4.0 Installation 6
6.0 Exercises 23
Data acquisition and control represent the most popular applications of microprocessors. Stepper
Motor control is a very popular application of microprocessors in control area, as stepper motors
are capable of accepting pulses directly from the microprocessor and move accordingly.
Fig (in Appendix B) shows a PM stepper motor in its simplest form. It consists of two stator
windings A, B and a motor having two magnetic poles N and S. When a voltage +V is applied
to stator winding A, a magnetic field Fa is generated as shown in Fig (a). The rotor positions
itself such that its poles lock with corresponding stator poles.
With the winding `A' excited as before , winding `B' is now switched on to a voltage +V as shown
in Fig (b). This produces a magnetic field Fb in addition to Fa. The resulting magnetic field F
makes an angle of 45 degrees as shown in Fig (b). The rotor consequently moves through 45 in
anti-clock-wise direction , again to cause locking of rotor poles with corresponding stator poles.
While winding `B' has voltage +V applied to it, winding `A' is switched off in Fig(c). The rotor
then moves through a further 45 degrees in anti-clockwise direction to align itself with stator
field Fb. With voltage +V on winding B, a voltage -V is applied to winding A as shown in Fig
(d). Then the stator magnetic field has two components: Fa , Fb and their resultant F makes an
angle of 135 degrees position .
In this way it can be seen that, as the pattern of excitation of the state of windings is changed, the
rotor moves successively through 45 degrees steps through Figs (e) to (h), and completes one full
revolution in anti-clock-wise direction. The figures are meant only to illustrate the principle of
operation of PM stepper motor. A practical PM stepper motor will have 1.8 degrees step angle
and 50 tooth on its rotor; there are eight main poles on the stator, each having five tooth in the
pole face. The step angle is given by
Single Phase Mode: Figs (a,c,e,g) illustrate the single phase mode in which only one of the motor
windings is excited at a time. There are four steps in the sequence, the excitation sequence factor
K=2, so that step angle is 90 degrees.
Two Phase Mode: Here both the stator phases are excited at a time as shown in figs (b,d,f,h). There
are four steps in the excitation sequence, K=2 and step angle is 90 degrees. However, the rotor
positions in the two-phase mode are 45 degrees away from those in single phase mode.
Hybrid Mode: This is a combination of single phase and two phase modes as shown in Figs (a-
h). There are eight steps in excitation sequence; K=2 and step angle = 45 degrees.
From Figs (a-h), it can be observed that a voltage +V is applied to a stator winding during some
steps, while voltage -V is applied during certain other steps. This requires a bipolar regulated
power supply capable of yielding +V, -V and zero outputs and a pair of SPDT switches, which is
quite cumbersome. Consequently each of the two stator windings is split into two sections A1-A2,
B1-B2. These sections are wound differentially as shown by the polarity dots in Fig (j). These
winding sections can now be excited from a unipolar regulated power supply through switches S1
to S4 as shown in Fig (j). This type of construction is called bipolar winding construction.
Bipolar winding results in reduced winding inductance and consequently improved torque
stepping rate characteristics.
The schematic diagram of a simple Variable Reluctance (VR) stepper motor is shown in fig (K).
There are twelve tooth on the stator and eight on the rotor. The rotor does not carry either a
permanent magnet or winding; it is assembled from soft iron punchings. The stator is also
assembled from soft iron punchings, and carries stator windings A,B and C as shown in Fig (k).
When stator winding A is excited, it creates a patterns of N and S poles as shown in Fig (i). The
rotor then positions itself as shown in Fig (i), so as to minimize the reluctance of the magnetic
circuit. When phase B is excited next, the rotor will move through 15 degrees to again seek
minimum reluctance position. VR stepper motors are available as 3-5 phase motors with step angle
given by
B = 360 ( N1-N2)
N1*N2
The main application area of stepper motors is in numerical control (NC) systems for machine
tools. Here they are employed for driving the cutting tool along x,y,z directions. Another application
in this area is the coordinate table. Indexing mechanisms used in multistation machine tools employ
stepper motors for moving either work piece or cutting tools.
Stepper motors find application in positioning the spraying gun in spray painting machines. In
the medical field, positioning servos for X-ray machines or Radio-isotope heads employ stepper
motor drives. The latest application of stepper motors is in industrial robots for actuating the
robot joints.
4 pin connector on the interface. T he inputs to these transistors are from the 8255 PPI I/O lines of
the Microprocessor Trainer kit or from Digital I/O card plugged in the PC. "Port A" lower nibble
PA0, PA1, PA2, PA3 are the four lines brought out to the 26 pin FRC male connector (J1) on the
interface module. The free-wheeling diodes across each winding protect transistors from switching
transients. Refer to appendix B for detailed schematic diagram.
The stepper motor specification is available at the end of the manual. The motor is reversible on with
a torque of 3kgcm. The power requirement is +5V DC @ 1.2A current per winding at full torque.
The step angle is 1.8* i.e, for every single excitation, the motor shaft rotates by 1.8*. For the motor to
rotate one full revolution (360*), number of steps required is 200. The stepper motor used has four
stator windings which are brought out through coloured wires terminated at a 4 pin polarized female
connector. The remaining two wires ( usually White & Black wires) are shorted and terminated at 2
pin polarized female connector.
4.0 INSTALLATION
The interface is housed in a plastic enclosure which has a locking mechanism. To open the cover,
push in the locking mechanism with a finger and lift the cover to open.
The interface has two nos of 3 pin and one four pin connectors. Plug in four pin polarised
connector of the motor to interface and the 3 pin connector of the motor to the 3 pin connector of the
interface marked as "WHT BLK". Connect the 3 pin female connector of the stepper motor power
supply to the connector on the interface marked as "GND +5/12V". Connect the 26 core flat ribbon
cable to J1 connector on the interface module and the other end of the cable to Microprocessor trainer
kit as stated in Table 3.1. Now the installation is done. Switch on power to the trainer kit as well as
the stepper motor. Key-in the demo program for the appropriate trainer & execute the same. When
the program is executed, the motor shaft rotates in steps at the speed depending upon the delay
between successive steps, which is generated and can be controlled by the program. The direction of
rotation can also be controlled through software.
MICROPROCESSOR A B
TRAINER
MPS 85-3 J2 J1
ESA 85-2 J2 J1
ESA-80 J2 J1
ESA-65 P4
ESA-68K P3 P4
ESA 68K-2 J2 J1
ESA 68-2 J1 J6
ESA 196 J1 J2
ESA-31 J2 J1
ESA-51 J10 J7
ESA-51E J5 J3
ESA 86/88-2 J4 J5
ESA 86/88-3 J8 J9
ESA-86/88E J4 J6
;the motor
8C08 CD 20 8C CALL DELAY ;Delay between
;steps
8C0B 0F RRC ;change this
;to RLC to
;reverse the
;direction
8C0C C3 06 8C JMP LOOP
ORG 8C20H
8C20 F5 DELAY: PUSH PSW ;This routine
;gives an
8C21 21 01 00 LXI H,0001H ;approximate
;delay of 1.5secs
8C24 11 FF FF DELAY20: LXI D,0FFFFH
8C27 1B DELAY10: DCX D
8C28 7A MOV A,D
8C29 B3 ORA E
8C2A C2 27 8C JNZ DELAY10
8C2D 2B DCX H
8C2E 7C MOV A,H
8C2F B5 ORA L
8C30 C2 24 8C JNZ DELAY20
8C33 F1 POP PSW
8C34 C9 RET
ORG 400H
6.0 EXERCISES
The sample program presented in this manual demonstrated some specific applications of this
interface. A few exercises are presented below to enable the user to gain a better understanding of the
interface. Users are encouraged to visualize other applications and develop software accordingly.
1) Write a program for the stepper motor for the 1800 rotation for full step sequence in
Clockwise direction.
2) Write a program for the stepper motor for the 2700 rotation for half step sequence in
Anti-Clockwise direction.
3) Write a program to run two motors, one in Clockwise direction and the other in Anti-
Clockwise direction
a) Simultaneously.
b) Alternatively.