Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1. Overview
This board provides all the typical interface
methods commonly used to control stepper
motors. The board contains a unipolar
stepper motor, driver circuits for the motor
coils, a sensor that detects a reference or
“home” position and a PLD interface
capable of automatically sequencing the
motor using one of three drive patterns plus
the ability to directly drive each coil from an
outside source.
3. Sequences IW IX IY IZ
Each sequence has it own unique features. 1 0 1 0
Full Step: This sequence has two coils energized 1 0 0 1
at any point in time. Consequently, it offers the greatest 0 1 0 1
torque when in motion and also the greatest holding 0 1 1 0
torque when the rotor is stopped under load. Motion Full Step Sequence
between steps is sudden and rather harsh due to the
strength of the field. On this motor the rotor moves 7.5
degrees between states of the full step sequence. It IW IX IY IZ
requires 48 steps or twelve repetitions the sequence 1 0 1 0
shown to make a full revolution of the shaft. 1 0 0 0
1 0 0 1
0 0 0 1
Half Step: This sequence assures that only one 0 1 0 1
coil will switch between each step. This causes the rotor 0 1 0 0
to move only half as far as a full step, hence the name
0 1 1 0
Half Step. During these intermediate steps, there is only
0 0 1 0
one coil energized resulting in lower holding torque. On
Half Step Sequence
this motor the rotor moves 3.75 degrees between states of the half step sequence. It
takes 96 steps (twelve repetitions of the half step state table) to make a full revolution.
4. Dynamic Response
The shaft of this stepper motor is attached to a plastic gear. Although the gear is light
weight and the rotor itself is very small, these moving parts have mass and inertia. It
takes a certain amount of time for the rotor to move in response to a movement of the
magnetic field. If the magnetic field advances several steps in less time than the rotor
can actually move, the motor will “slip”. From a dead stop the motor will not even be
able to start into motion if the step rate is too high. The fastest reliable step rate for
these motors is achieved with an approximate minimum of 5 ms between steps. Faster
speeds can be obtained by ramping the speed up but the step rate must be ramped
back down when stopping in order to assure that it stops in the expected position.
Inasmuch as the motor cannot start instantly, it also cannot stop instantly at the
next position. The mass of the rotor and wheel tend to make it overshoot and then
oscillate back and forth a few times before coming to rest. At certain step rates, this
oscillation combined with the moving magnetic field can cause the motor to slip and
act spastic. To eliminate this phenomenon, a little pressure can be applied to the rim
of the gear using a finger or a piece of cardboard to damp out the vibrations.
5. The Interface
This board allows an external device to interface in two ways. The first method is
referred to as Direct Drive and the second method uses an on-board sequencer. Two
toggle switches S1 and S2 are used to select the method of interface as well as the
desired sequence when using the on-board sequencer.
Direct Drive
Direct Drive: (S1, S1) = (1, 0) This is the simplest Stepper Board
interface to understand. Four pins labeled IW, IX, IY,
IW
and IZ are used to directly control the current to their IX
respective coils. A “1” on the input pin energizes the IY
IZ
coil. In order to move the motor the external device
must produce the desired sequence on W,X,Y,Z. If a
microcontroller is providing this sequence, a lookup table (array) is generally used to
store the desired sequence. It is important to make sure the software keeps track of the
current state of W,X,Y, and Z (i.e. store the pointer or array index value). Wherever
the stepper stops, it must start again with the next value in the sequence.
Sequencer Drive: The stepper board contains a GAL16V8 PLD (U402 on the
schematic) which serves as a sequencer. Sequencer is just another word for a
synchronous counter circuit that can count through a sequence of states in either
direction. There are two inputs to the sequencer: the clock (rising edge triggered step
pulse) and the direction input (HIGH level steps CW, LOW level steps CCW). The
DIR level must be stable and then when the PGT of STEP occurs, the motor moves
one step in the desired direction. The sequencer can count through any of the three
sequences that were described earlier. Switches
Sequencer
S1, and S2 determine which sequence will be Interface
used in response to the STEP and DIR inputs. Stepper Board
This is the simplest interface to use as the external
device must simply supply a level on DIR and a STEP
CW
pulse for each step. The sequencer provides the DIR
correct sequence of on/off states. CCW
S2 S1
Full Step (S1, S2) = (0, 1)
Select
Half Step (S1, S2) = (1, 1) Sequence
Wave Drive (S1, S2) = (0, 0)