Ed WP Automatic Commutation of Stepper Motors
Ed WP Automatic Commutation of Stepper Motors
Dr. Norbert Veignat, GVP Marketing & Sales, DMM & BLDC Motors
Portescap, La Chaux-de-Fonds, Switzerland
_________________________________________________________________________________________
CONTENTS
loosing synchronism.
Stepper motors are in fact natural positioning
devices which do not require position feedback. The
Phase A
drawback of their design are important iron losses
when running at high speed. Therefore steppers are Fig. 1
mainly used for low speed positioning. Model of a two phase stepper motor
and encoder
However, the escap disc magnet stepper motor is an
______________________________________________________________________________________________
____
Portescap Page 1 of 9 NV/mf-June 1996
(C) 1996, Portescap. All rights reserved.
The four full-step target positions encoder channels (example: 01 means a = 0, b = 1). α
per electrical period
is the phase advance angle introduced between motor
and sensor signals, its influence on motor
The magnetic encoder indicates the rotor
performance will be seen later.
position within an electrical angle of 90° (fig. 3).
Fig. 3
Encoder output signal (2 channels) versus position of BEMF Phase A
the encoder magnet BEMF Phase B
Sensor a
0 45 90 135 180 225 270 315 360
Electrical angle Sensor b
A-B- A+B-
Sensors unstable oscillating mode. Table 1 gives examples of
the motor working mode for various phase currents
Motor Stable position with current
Example A+B+ means Ι A = Ι 0, Ι B = Ι0 (hence rotor positions) if in each case the sensor is
aligned to give the same signal state 01 (a = 0, b = 1,
Fig. 4 α < 45°).
Rotor target positions with phase currents,
and corresponding logic signals of
encoder channels
logic states vs initial dir. of initial dir. of
phase currents rotation = CCW rotation = CW
01 for A+ B+ position mode position mode
01 for A- B+ BLDC mode oscillating
The first circle (lower left) shows the four motor phase advance mode
target positions and corresponding states of phase =α
01 for A- B- at low speed: at low speed:
energization (example: A+B+ means: IA = IB = +I0). The
oscillating mode oscillating
upper right circle shows the logic states of both at high speed: at high speed:
BLDC mode, BLDC mode
______________________________________________________________________________________________
____
Portescap Page 2 of 9 NV/mf-June 1996
(C) 1996, Portescap. All rights reserved.
phase advance phase signal CCW CW
= 90° +α advance = 90- state
α
01 A- B+ A+ B-
01 for A+ B- oscillating mode BLDC mode
00 A- B- A+ B+
phase
advance =α 10 A+ B- A- B+
11 A+ B+ A- B-
Table 1 logic equations logic equations
Motor behaviour resulting from various sensor A = a A =a
positions for logic state 01
B = b B =b
Direction
Back-EMF Phase A +5v GND
Back-EMF Phase B Sensor b
Sensor a
Sensor a
0 45 90 135 180 225 270 315 360
Sensor b Vm
Electrical angle out 1 out 2 out 3 out 4
Phase A Phase B
SGS
298
1 2 3 4
Fig. 6
In A In B
Vm + 5V In A
7805
Start/ In B
have α = 0.
signals and phase currents as per Table 2, where a Circuit for driving the motor
with zero phase advance
positive phase current is taken to be equivalent to
logic 1 and a negative current equivalent to logic 0.
Motor working with 45° phase advance
Figure 8 shows the motor drive circuit required for
If the sensor remains adjusted as before, the
zero phase advance.
logic equations need to be changed. If the sensor is
rotated by -45°, the same drive electronics can be
A+B +
A - B+
used.
00 01
Angular relation between phase The motor can rotate in either direction, low speed
currents and logic states torque is about nil, as commutation takes place at an
unstable rotor position.
sensor ab motor rotates motor rotates
______________________________________________________________________________________________
____
Portescap Page 3 of 9 NV/mf-June 1996
(C) 1996, Portescap. All rights reserved.
Note that this approach also
is valid with only
Torque
(mNm)
120
60
Measurements 40
20
80
0 0 Speed
Torque (mNm)
10 U=7V
U=24V 6 U=24V
Use of a sensor having the same resolution as We now consider a motor working in half-step
the motor is relatively inexpensive. The 100 steps per mode, with an encoder giving four counts per full step.
______________________________________________________________________________________________
____
Portescap Page 4 of 9 NV/mf-June 1996
(C) 1996, Portescap. All rights reserved.
be 90 + 22.5 = 112.5° ahead of the position of stable V
Torque B
112,5° Fig. 13
22.5° 90°
Practical implementation
As a simple solution for autocommutation a If the phase advance should be decreased
stepper motor with encoder and a standard stepper instead, the process is similar but now uses the
driver are used, see figure 13. With this cost-effective "N+1" pulse before going back to the original rhythm.
system the encoder pulses, through an electronic That way it has lost one pulse and now runs with a
interface, are fed to the clock input and trigger the phase advance of 112.5 - 22.5 = 90°.
changing the phase advance. stepper driver but with automatic commutation, a
convenient solution for spindle drives, pumps, mirror
drives and so forth.
______________________________________________________________________________________________
____
Portescap Page 5 of 9 NV/mf-June 1996
(C) 1996, Portescap. All rights reserved.
equilibrium :
3.2 Motor working in microstep mode
In this case the commutation angle is not
We now consider a motor working in microstep optimum for low speed, and torque ripple will slightly
mode and making 4 microsteps per full step, with an increase. With the rotor in position 1, the stator field
encoder giving four counts per full step. may target either "5" or "6", resulting in a phase
advance of 90° or 112.5° instead of the ideal 101.25°.
The error can be corrected by calculating the
motor speed and, after detection of position 1, letting
the rotor move approximately 11.25° before
commutating the stator field to position 6.
The driver generates the motor of 11.25°, 33.75°, 56.25° and so forth, resulting in the
target positions n° 1, 2, 3, 4, ..., 15 and 16. optimum low speed commutation angle.
The encoder detects rotor positions at
n°. 1, 2, 3, 4, ..., 15 and 16 When using an encoder of twice the resolution,
giving 8 pulses per full step, the solution proposed in
paragraph 3.1 may be applied.
With a motor having a sinusoidal torque
constant, the low speed commutation angle should 3.3 Motor working in sine-cosine mode
be 90 + 11.25 = 101.25° ahead of the position of
stable equilibrium (see fig. 15). This particular case makes it easy to obtain a
torque motor.
Let TA = torque of phase A
1
TB = torque of phase B
Torque
One Phase on
0.5
iA = current in phase A
Fig. 15
iB = current in phase B
Motor torque functions withmicrosteps
4
per full step.
Then the torque equations are:
The optimum low speed commutation angle is
101.25°. Angles are always electrical TA = -k iA sin(Nθ) and TB = k iB cos(Nθ)
______________________________________________________________________________________________
____
Portescap Page 6 of 9 NV/mf-June 1996
(C) 1996, Portescap. All rights reserved.
The resulting motor torque is constant: Analog speed control
T = TA + TB = k I0 (sin²(Nθ) + cos²(Nθ)) = k I0 Similar to DC motors the speed of steppers
driven in BLDC mode may be controlled using a
However, with a stepper motor this theoretical encoder (see fig. 16).
the driver uses a high voltage and high chopper Sequencer Driver M
______________________________________________________________________________________________
____
Portescap Page 7 of 9 NV/mf-June 1996
(C) 1996, Portescap. All rights reserved.
below 500 rpm sampling time is insufficient and
therefore results are better with the motor driven in
Ph B Ph B Ph B
Ι1 Ph A k Ι1 Ph A k Ι1 Ph A
a b c
Position control
Fig. 17
Stepper motors being designed for open loop
Different ways of speed control by changing :
positioning, it makes little sense closing the loop and
a) the phase advance
b) the currentamplitude increase cost. Motors built for microstep operation
c) both parameters simultaneously
have low detent torque and a perfectly sinusoidal
torque function. When driven in microstep mode they
With the Hall sensors used in the PP520 motor easily provide the accuracy needed for many
the control algorithm is simple as compared to an applications. If necessary, a final position error is
optical encoder because the two Hall signals identify corrected by adding a few microsteps, in stepper
4 rotor positions per electrical period. mode.
The microprocessor controls only two 5 CONCLUSION
parameters which are the absolute values of each
phase current. Their polarities depend directly on the Stepper motors are often used for reasons of low
logic state of the Hall outputs (fig. 18). cost and easy implementation in relatively simple
applications.
______________________________________________________________________________________________
____
Portescap Page 8 of 9 NV/mf-June 1996
(C) 1996, Portescap. All rights reserved.
Bibliography :
D. Regnier, C. Oudet, D. Prudham
"Starting Brushless DC Motors utilizing Velocity Sensors" 1985
IMCSD
C. Oudet, N. Veignat
"Considerations on Peak Speed of Head Actuators used in Winchester Disc Drives" 1987
IMCSD
M. Jufer
"Evolution des Moteurs Synchrones du Moteur Pas-à-pas au Moteur Synchrone
Autocommuté", 1988
JEMP, Nancy
R. Osseni
"Modélisation etAuto-asservissements de Moteurs SynchronesAutocommutés" 1988
Thèse, EPFL
M. Crivii, M.Jufer
"Auto-commutation de Moteurs Pas-à-pas sans Capteur" 1990
6e colloque sur les moteurs-pas-à-pas, EPFL, Juillet 4-5, 1990
M. Crivii, M.Jufer
"Autocommutation de Moteurs Pas-à-pas sans Capteur" 1990
"Positionnement Incrémental par Entraînement Electrique"
EPFL, Juillet 1990
L. Antognini, C.Dayer
"Sensorless Drive of P.M.
Step Motors applied to Dynamic Torque Optimisation" 1991
IMCSD
N. Veignat
"Application &Possibilities for a BLDCMotor having a High Number of Poles 1991
Motion Control Technology Conference, Boston, Mars 1991
P. André, N.Veignat
"Optimised Use ofhigh Speed Stepping Motor by Implementation ofAdequate Speed Profile" 1995
IMCSD
_________________________________________________________________________________________________
_
Portescap Page 9 of 9 NV/mf-June 1996
(C) 1996, Portescap. All rights reserved.