SlideShare a Scribd company logo
1 of 23
Download to read offline
November 2012 Doc ID 1679 Rev 2 1/23
AN235
Application note
Stepper motor driving
By Thomas Hopkins
Introduction
Dedicated integrated circuits have dramatically simplified stepper motor driving. To apply
these ICs, designers need little specific knowledge of motor driving techniques, but an
understanding of the basics helps in finding the best solution. This note explains the basics
of stepper motor driving and describes the drive techniques used today.
www.st.com
Contents AN235
2/23 Doc ID 1679 Rev 2
Contents
1 Motor configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Step sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 The bipolar motor produces more torque . . . . . . . . . . . . . . . . . . . . . . . . 8
4 Motor drive topologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
5 Slow versus fast decay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6 Control signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
8 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
AN235 List of figures
Doc ID 1679 Rev 2 3/23
List of figures
Figure 1. Stepper motor configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Figure 2. ICs for stepper motor drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 3. Full-step sequence for a two-phase bipolar motor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 4. Half-step sequence for a two-phase bipolar motor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 5. Current waveform to reduce half-step torque ripple . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 6. Bipolar motors deliver more torque than unipolar motors. . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 7. Simple L/R drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 8. Peak winding current decreases at higher speed, limited by motor inductance . . . . . . . . . 11
Figure 9. L/nR drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 10. Switch mode drive implementations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 11. Current waveforms for L/R, L/nR and switch mode drive . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 12. Bilevel current drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 13. PWM current decay modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 14. Ripple current with slow decay and fast decay mode drive . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 15. Logic signals for full-step and half-step drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 16. Current waveforms during transition from full-step to half-step state . . . . . . . . . . . . . . . . . 19
Figure 17. Bipolar stepper motor drive implemented with the L6506 and the L6203. . . . . . . . . . . . . . 20
Figure 18. Bipolar stepper motor driver implemented with the L297 and the L6203 . . . . . . . . . . . . . . 20
Figure 19. Implementing torque ripple reduction in half-step with the L297 . . . . . . . . . . . . . . . . . . . . 21
Motor configurations AN235
4/23 Doc ID 1679 Rev 2
1 Motor configurations
From a circuit designer's point of view stepper motors can be divided into two basic types:
unipolar and bipolar. A stepper motor moves one step when the direction of current flow in
the field coil(s) changes, reversing the magnetic field of the stator poles. The difference
between unipolar and bipolar motors lies in the way that this reversal of the magnetic field is
achieved (Figure 1). The bipolar motor has one coil per phase and needs two changeover
switches, or a full-bridge, for each phase. The switches reverse the direction of current flow
in the coil. The unipolar motor has a center tapped coil on each phase and needs one
changeover switch, or two transistors to ground, for each phase. The switches select which
half of the coil current flows through.
Figure 1. Stepper motor configuration
The advantage of the bipolar circuit is that there is only one winding, with a good bulk factor
(low winding resistance). The main disadvantage is the more complex drive circuit needing
the two changeover switches for each phase. This is implemented as a full H-bridge for each
phase and requires more transistors that the unipolar configuration.
The unipolar circuit needs only one changeover switch, implemented as two transistors to
ground, for each phase. Its enormous disadvantage is, however, that a double bifilar winding
is required. This means that at a specific bulk factor the wire is thinner and the resistance is
much higher. The problems involved are going to be discussed in this application note.
Unipolar motors are still popular today for low performance applications because the drive
circuit is simpler when implemented with discrete devices. However, with the integrated
circuits available today, bipolar motors can be driver with no more components than the
unipolar motors.
Figure 2 compares integrated unipolar and bipolar driver ICs. The unipolar driver integrates
the four transistors to ground and the four freewheeling diodes. The bipolar driver integrates
two full H-bridges and the 8 freewheeling diodes.
A: Bipolar motor configuration B: Unipolar motor configuration
AM16499v1
AN235 Motor configurations
Doc ID 1679 Rev 2 5/23
Figure 2. ICs for stepper motor drive
A: Unipolar motor driver IC B: Bipolar motor driver IC
AM16500v1
Step sequence AN235
6/23 Doc ID 1679 Rev 2
2 Step sequence
With either motor configuration, the motor makes one step each time the polarity of the
current in the stator winding changes. For a motor with one pole pair on the rotor, this
corresponds to 4 steps per electrical cycle. Figure 3 shows the step sequence and idealized
current waveform for a two-phase bipolar stepper motor. In Figure 3, each time the current
in one of the windings is reversed, the motor makes one step of 90°. Of course no stepper
motors would want to use such a course step. Typical stepper motors are 1.8° or 7.5° per
step corresponding to 200 or 48 steps per rotation. A 200 step per rotation motor would
have 50 pole pairs on the rotor and need 50 electrical cycles per mechanical rotation.
Figure 3. Full-step sequence for a two-phase bipolar motor
In Figure 3 the current is reversed to make each step. However it is possible to have an
intermediate, half-step, position by simply switching the current in one coil off before
switching it on in the reverse direction. Figure 4 shows the sequence for half-step drive and
the idealized current waveform for a two-phase bipolar stepper motor. In half-step we now
have 8 half-steps per electrical cycle and have doubled the effective resolution of the
stepper motor.
I1
I2
I1
I2
I2
I1
I2
1 3
5 7
I1
AM16501v1
AN235 Step sequence
Doc ID 1679 Rev 2 7/23
Figure 4. Half-step sequence for a two-phase bipolar motor
The main advantage of half-step is the increased resolution. The main disadvantage of half-
step operation is that in the half-step state the motor has only about 70% of the torque as
when driven to the full-step state. This is the direct result of lower flux density in the stator.
In the full-step state the magnetic vector generated by the stator is the vector sum of the
magnetic vectors of the two coils. When both coils are excited evenly, the vector sum of the
two is at a 45° angle and has a magnitude of √2 times the magnitude of each individual
vector. When only one coil is driven, as in the half-step states, the total magnetic vector is
only the vector for one coil. This results in a 30% reduction in torque for the half-steps. The
reduction in torque can be compensated for by increasing the current in the one driven coil
for the half-steps. If the current in increased by √2 when only one coil is driven, as shown in
Figure 5, the torque is essentially equal for both full-step and half-step states.
Figure 5. Current waveform to reduce half-step torque ripple
I1
I2
I1 I1
I1 I1
I2 I2
I2 I2
I1
I2
I1=0
I2=0
I1=0
I2=01 2 3 4
5 6 7 8
AM16502v1
1.4
1
0
-1
-1.4
1.4
1
0
-1
I Coil 1
I Coil 2
-1.4
AM16503v1
The bipolar motor produces more torque AN235
8/23 Doc ID 1679 Rev 2
3 The bipolar motor produces more torque
The torque of the stepper motor is proportional to the magnetic field intensity of the stator
windings, which is proportional to the number of turns and the current in the winding, so
torque is proportional to N*I. A natural limit against any current increase is the danger of
saturating the iron core, though this typically isn't the major factor for stepper motors. Much
more important is the maximum temperature rise of the motor, due to the power loss in the
stator windings. The dissipation in the windings is equal to the square of the current times
the winding resistance. Since the resistance is proportional to the number of turns,
dissipation is proportional to N*I2
. This gives an advantage to the bipolar configuration which
better uses the copper in the windings compared to a unipolar motor.
Consider the motor shown in Figure 1 B. When it is driven as a unipolar motor, current flows
from Vs to ground in one half of the center tapped winding through N turns. The power
dissipation and torque for the unipolar configuration are:
Equation 1
If the same motor is driven as a bipolar motor, from the ends with the center tap left
unconnected, the current flows through both halves or 2N turns and the dissipation and
torque are:
Equation 2
If Pd is set to be the same for both drive conditions, substituting one equation into the other
shows that
Equation 3
Since the bipolar driven motor better uses the copper in the windings it can deliver more
torque with the same dissipation in the windings than a unipolar motor built on the same
frame. Another way to look at it is that the bipolar motor has less dissipation to produce the
same torque.
Pd N Iu
2
⋅∼ and Tu N Iu⋅∼
Pd 2N Ib
2
⋅∼ and Tb 2NIb∼
Ib Iu
1
2
-------= and Tb 2 Tu⋅=
AN235 The bipolar motor produces more torque
Doc ID 1679 Rev 2 9/23
Figure 6. Bipolar motors deliver more torque than unipolar motors
40% Bipolar
Log scale
Unipolar
Torque
Speed
AM16504v1
Motor drive topologies AN235
10/23 Doc ID 1679 Rev 2
4 Motor drive topologies
For a stepper motor, the motor current is determined primarily by the drive voltage and the
motor impedance (resistance and inductance). A simple and popular drive topology is to
supply only as much voltage as needed, utilizing the resistance (RL) of the winding to limit
the current as shown in Figure 7. For simplicity, the single FET in Figure 7, Figure 9 and
Figure 10 represents either a FET and clamping diode for the unipolar motor drive or a
composite of the two diagonal switches of a full-bridge the bipolar drive. A typical motor with
5 V and 1 A on its name plate means that with a 5 V drive the resulting current is 1 A,
corresponding to having a 5 Ω coil resistance.
Figure 7. Simple L/R drive
As already discussed, the torque of the motor is, among others, proportional to the winding
current. In the full-step sequence, the motor changes the polarity of the winding current in
the same stator winding every two steps. The rate at which the current changes its direction,
in the form of an exponential function, depends on the winding inductance, the coil
resistance and drive voltage. Figure 8 A shows that at a low step rate the winding current IL
reaches its nominal value VL/RL before the direction is changed at the next step. However, at
higher speeds, the polarity of the stator current is changed more often and the current no
longer reaches its saturating value because of the limited change time. Clearly, the peak
and the area under the current waveform diminish with increasing step rate, reducing torque
and power. This is shown in Figure 8 B.
Rc
Lc
Vs
Ic = Vs/Rc
t = Lc/Rc
AM16505v1
AN235 Motor drive topologies
Doc ID 1679 Rev 2 11/23
Figure 8. Peak winding current decreases at higher speed, limited by motor
inductance
The only way to have the current rise more quickly is to have a higher drive voltage or a
lower inductance. One method used to get better performance is to increase the drive
voltage and use an external resistance to limit the current to the original value as shown in
Figure 9. The exponential time constant is L/R so increasing the resistance reduces the rise
time. Since the asymptotic current is set by the resistance, the time constant and current
can be set by selecting the drive voltage and the external resistance. This topology, referred
to as L/nR drive, was commonly used in early printers. Its significant disadvantage is the
very significant dissipation in the external resistance. For the 1 A motor the dissipation in the
external resistance is around 20 W.
Figure 9. L/nR drive
What is really needed is a low dissipation drive circuit that would give the fast rise times of a
higher drive voltage and limit the current to the desired value without the high dissipation
associated with the external resistance in the L/nR drive configuration. Such a drive can be
implemented using switch mode techniques as show in Figure 10. Here the peak current is
AM16506v1
Rc
Lc
Vs
Ic = Vs/(Rc+Rs)
Rs
t = L/(Rc+Rs)
AM16507v1
Motor drive topologies AN235
12/23 Doc ID 1679 Rev 2
set by the voltage reference and the value of the sense resistor so that each time the current
reaches the set peak value the switch is turned off for the remainder of the period. Since the
only losses in this technique are the saturation loss of the switch and the resistive loss in the
sense resistor and coil resistance, the total efficiency is very high.
The average current drawn from the power supply is less than the winding current due to the
chopping. When the transistor is on, current is being drawn from the supply, however, during
the off-time the current is recirculating locally and there is no current from the power supply.
This type of phase current control, that has to be done separately for each motor phase,
leads to the best ratio between the supplied electrical and delivered mechanical energy.
Figure 10. Switch mode drive implementations
It would make no sense to apply the same principle to a current controlled unipolar circuit,
as additional switches for each phase would be necessary for the shortening out of the
windings during the off-time and thus the number of components would be similar to the
bipolar drive. Moreover, there would be the previously discussed torque disadvantage.
Rc
Lc
Vs
Vref
OSC S
R
Q
Rsense
Ic = Vref/Rsense
Fixed frequency PWM
Current control
L297
L6506
Rc
Lc
Vs
Vref
T
_
Q
Rsense
Ic = Vref/Rsense
Constant off time FM
Current control
Monostable
L6207, L6208
L6219, PBL3717
AM16508v1
AN235 Motor drive topologies
Doc ID 1679 Rev 2 13/23
Figure 11. Current waveforms for L/R, L/nR and switch mode drive
Figure 11 compares the current rise time for the three drive topologies. The comparison is
done for a 5 V, 1 A motor. The L/R drive uses the motor's rated voltage, the L/nR uses five
times the motor rated voltage and an external resistor equal to four times the winding
resistance and the switch mode drive uses a supply voltage five times the motor rated
voltage with the peak current set equal to the motor rated voltage divided by the winding
resistance (1 A). In each case the final current reaches 1 A but the figure clearly shows the
faster rise time of the higher voltage drives. This faster rise significantly improves the torque
at higher step rates.
Another drive topology that may be used is a bilevel drive, where a higher voltage is applied
during the transition and then the supply voltage is dropped back down to the lower voltage
to maintain the current. The circuit shown in Figure 11 applies a high voltage, without the
additional limit resistor, during the time set by the monostable for each transition. When the
monostable times out, the switch is opened and the voltage is reduced to the lower voltage
that is just enough to maintain the current.
Time
Current
0 10 20 30 40 50 60 70 80 90 100
0
0.5
1
5Vx
5Vx
VxL/R drive
L/5R drive
Chopping drive
Supply voltage
AM16509v1
Motor drive topologies AN235
14/23 Doc ID 1679 Rev 2
Figure 12. Bilevel current drive
This configuration requires additional power components to switch the supply voltage that
are not needed with the switch mode technique and is not often used.
AM16510v1
AN235 Slow versus fast decay
Doc ID 1679 Rev 2 15/23
5 Slow versus fast decay
When implementing current controlled motor drives, the designer has a choice of the
recirculation path the current flows in during the "off" time. Figure 12 shows the two
recirculation options implemented in the L6208, or the L6203. Applying the chopping to only
one side of the bridge allows the current to recirculate around a low voltage loop, in the
upper transistors within the bridge. Since the rate of change of the current is controlled
primarily by the L/R time constant of the motor, the current decays relatively slowly, hence
the designation of slow decay mode. Applying the chopping signal to both sides of the
bridge results in a higher voltage across the coil since the current is recirculating back
through the power supply. The higher voltage across coil forces a faster decay of current,
hence a fast decay mode.
Figure 13. PWM current decay modes
The selection of the decay mode influences the operation of a drive in several ways. The
most obvious is the magnitude of the ripple current. Drives implemented using the fast
decay mode have, for the same off-time or chopping frequency, a higher ripple current than
drives implemented using a slow decay mode, as shown in Figure 13. This difference in
itself is not significant for most stepper motor drives. Issues with the stability of the current
control loop are discussed elsewhere [1.]. Generally for full-step and half-step drives the
slow decay mode is preferred since it reduces the current ripple and, for many driver ICs, the
dissipation in the device.
VS VS VS
ON time
Current builds
In winding
OFF time
Slow decay
Recirculation
OFF time
Fast decay
Recirculation
AM16511v1
Slow versus fast decay AN235
16/23 Doc ID 1679 Rev 2
Figure 14. Ripple current with slow decay and fast decay mode drive
AM16512v1
AN235 Slow versus fast decay
Doc ID 1679 Rev 2 17/23
Figure 15. Logic signals for full-step and half-step drive
AM16513v1
Control signals AN235
18/23 Doc ID 1679 Rev 2
6 Control signals
In most applications the stepper motor driver IC is controlled by a microcontroller that
generates the commutation sequence for the motor. Figure 15 shows the typical control
signals from the microcontroller for operating in full-step and half-step modes. In the
simplest form, a full-step drive needs two square waves in quadrature to drive the motor.
The rotational direction is determined by which of the two phases is leading the other and
the rotational speed is directly proportional to the clock frequency. More often, since the
switch mode current control signals are ANDed with the phase control, four signals to the
drive IC are actually required, one for each half-bridge.
In the half-step state one of the motor phases is off with zero current. When moving from the
full-step state to the half-step state the current must fully discharged to reach zero current.
Although simply taking the input that was high to a low-state would eventually cause the
current to decay to zero, it leaves the bridge in a slow decay mode with the current
circulating around the two low transistors in the bridge. For high step rated, the current may
not decay to zero during the step, as shown in Figure 16 b.
AN235 Control signals
Doc ID 1679 Rev 2 19/23
Figure 16. Current waveforms during transition from full-step to half-step state
To get the fastest decay from a full-step to a half-step state the bridge should be disabled so
that both of the transistors that were on are switched off. This puts the bridge in a fast decay
mode and the current decays more quickly, as shown in Figure 16 c. For half-step operation
an additional two signals are required to inhibit the bridge and put it in tristate during the
steps when there is no current in that phase. Figure 15 shows the drive signals required for
a driver like the L298 or L6203.
The six commutation signals can easily be generated from a microcontroller, but the current
control is typically implemented in circuitry that is added between the microcontroller and
AM16514v1
Control signals AN235
20/23 Doc ID 1679 Rev 2
the driver IC, as shown in Figure 17. Here a dedicated current control IC, the L6506,
combines the commutation signals with the current control signals and then passed the 6
lines to the driver IC. Some driver ICs, like the L6219 or the L6207, have the current control
built into the driver IC.
Figure 17. Bipolar stepper motor drive implemented with the L6506 and the L6203
Alternatively, logic circuitry or a dedicated IC like the L297 can generate the control signals
from a step clock and direction signal. Figure 17 shows a drive circuit using the L297 and
the L6203. In this circuit the microcontroller needs to supply only the STEP and the
CW/CCW signals. Since most applications do not switch between full-step and half-step, the
HALF/FULL signal can usually be hard wired to the desired operation condition.
Figure 18. Bipolar stepper motor driver implemented with the L297 and the L6203
As discussed earlier the torque ripple in half-step can be decreased by increasing the
current in the winding during the half-step states. The circuit in Figure 19 detects when one
off the inhibit lines is low and increased the voltage at the REF input of the L297 to increase
the current during the half-step.
AM16518v1
AM16515v1
AN235 Control signals
Doc ID 1679 Rev 2 21/23
Figure 19. Implementing torque ripple reduction in half-step with the L297
AM16516v1
References AN235
22/23 Doc ID 1679 Rev 2
7 References
1. Stepper motor driver considerations, common problems and solutions, AN460.
8 Revision history
Table 1. Document revision history
Date Revision Changes
02-Jul-1988 1 Initial release.
14-Nov-2012 2
Changed: Figure 3, Figure 4, Figure 5, Figure 6, Figure 7, Figure 9,
Figure 10, Figure 11, Figure 13, Figure 14 and Figure 17.
Added: Section 2.
Updated: drive configuration topic.
Removed: microstepping section.
Minor text changes.
AN235
Doc ID 1679 Rev 2 23/23
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
© 2012 STMicroelectronics - All rights reserved
STMicroelectronics group of companies
Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan -
Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America
www.st.com

More Related Content

What's hot

improved reactive power capability of grid connected doubly fed induction gen...
improved reactive power capability of grid connected doubly fed induction gen...improved reactive power capability of grid connected doubly fed induction gen...
improved reactive power capability of grid connected doubly fed induction gen...
vinay kumar mali
 

What's hot (20)

Study of Permanent Magnent Synchronous Macnine
Study of Permanent Magnent Synchronous MacnineStudy of Permanent Magnent Synchronous Macnine
Study of Permanent Magnent Synchronous Macnine
 
Wind energy
Wind energyWind energy
Wind energy
 
PWM RECTIFIER
PWM RECTIFIERPWM RECTIFIER
PWM RECTIFIER
 
2. brushless dc motors
2. brushless dc motors2. brushless dc motors
2. brushless dc motors
 
BLDC Motors
BLDC MotorsBLDC Motors
BLDC Motors
 
Advance Power Electronic Converters for Renewable Energy Systems
Advance Power Electronic Converters for Renewable Energy SystemsAdvance Power Electronic Converters for Renewable Energy Systems
Advance Power Electronic Converters for Renewable Energy Systems
 
Modeling and simulation of pmsm
Modeling and simulation of pmsmModeling and simulation of pmsm
Modeling and simulation of pmsm
 
improved reactive power capability of grid connected doubly fed induction gen...
improved reactive power capability of grid connected doubly fed induction gen...improved reactive power capability of grid connected doubly fed induction gen...
improved reactive power capability of grid connected doubly fed induction gen...
 
Induction Motor
Induction Motor Induction Motor
Induction Motor
 
ULTRASONIC MOTOR
ULTRASONIC MOTOR  ULTRASONIC MOTOR
ULTRASONIC MOTOR
 
P.F.C. Methods in Non-Linear Loads
P.F.C. Methods in Non-Linear LoadsP.F.C. Methods in Non-Linear Loads
P.F.C. Methods in Non-Linear Loads
 
Unit v conventional and solid state speed control of ac drives
Unit v conventional and solid state speed control of ac drivesUnit v conventional and solid state speed control of ac drives
Unit v conventional and solid state speed control of ac drives
 
Unit v linear induction motor
Unit v linear induction motorUnit v linear induction motor
Unit v linear induction motor
 
Piezoelectric ultrasonic motor.pp
Piezoelectric ultrasonic motor.ppPiezoelectric ultrasonic motor.pp
Piezoelectric ultrasonic motor.pp
 
Solar bicycle
Solar bicycleSolar bicycle
Solar bicycle
 
alternator ppt.pptx
alternator ppt.pptxalternator ppt.pptx
alternator ppt.pptx
 
Brushless dc motors (BLDC Motor)
Brushless dc motors (BLDC Motor)Brushless dc motors (BLDC Motor)
Brushless dc motors (BLDC Motor)
 
BLDC Motor
BLDC MotorBLDC Motor
BLDC Motor
 
FINAL PROJECT VAWT
FINAL PROJECT VAWTFINAL PROJECT VAWT
FINAL PROJECT VAWT
 
IRJET- Voice Operated Lift Control System using Microcontroller
IRJET- Voice Operated Lift Control System using MicrocontrollerIRJET- Voice Operated Lift Control System using Microcontroller
IRJET- Voice Operated Lift Control System using Microcontroller
 

Similar to An235 stepper motor driving

PowerElectronics_FinalDesign
PowerElectronics_FinalDesignPowerElectronics_FinalDesign
PowerElectronics_FinalDesign
Spencer Minder
 
Document on Speed Control Of D.C Motors
Document on  Speed Control Of D.C MotorsDocument on  Speed Control Of D.C Motors
Document on Speed Control Of D.C Motors
Malik Zaid
 
Electric_Drives_FinalProj
Electric_Drives_FinalProjElectric_Drives_FinalProj
Electric_Drives_FinalProj
Spencer Minder
 
bidirectional report
bidirectional reportbidirectional report
bidirectional report
Hasan baig
 
Kollmorgen ct series step motors_catalog
Kollmorgen ct series  step motors_catalogKollmorgen ct series  step motors_catalog
Kollmorgen ct series step motors_catalog
Electromate
 
Mitsubishi fuso fighter 6 m60 engine
Mitsubishi fuso fighter 6 m60 engineMitsubishi fuso fighter 6 m60 engine
Mitsubishi fuso fighter 6 m60 engine
William Valer
 
Uttar pradesh power corparation ltd. training report
Uttar pradesh power corparation ltd. training reportUttar pradesh power corparation ltd. training report
Uttar pradesh power corparation ltd. training report
19saurabh89
 

Similar to An235 stepper motor driving (20)

PowerElectronics_FinalDesign
PowerElectronics_FinalDesignPowerElectronics_FinalDesign
PowerElectronics_FinalDesign
 
Document on Speed Control Of D.C Motors
Document on  Speed Control Of D.C MotorsDocument on  Speed Control Of D.C Motors
Document on Speed Control Of D.C Motors
 
Electric_Drives_FinalProj
Electric_Drives_FinalProjElectric_Drives_FinalProj
Electric_Drives_FinalProj
 
It 5170 stepper motor
It 5170 stepper motorIt 5170 stepper motor
It 5170 stepper motor
 
Abb technical guide no.06 revc
Abb technical guide no.06 revcAbb technical guide no.06 revc
Abb technical guide no.06 revc
 
bidirectional report
bidirectional reportbidirectional report
bidirectional report
 
An470
An470An470
An470
 
Sprabq8
Sprabq8Sprabq8
Sprabq8
 
Rotor Resistance Control of Wound Rotor Induction Generator (WRIG) using PSCA...
Rotor Resistance Control of Wound Rotor Induction Generator (WRIG) using PSCA...Rotor Resistance Control of Wound Rotor Induction Generator (WRIG) using PSCA...
Rotor Resistance Control of Wound Rotor Induction Generator (WRIG) using PSCA...
 
Stepper Motor
Stepper MotorStepper Motor
Stepper Motor
 
Presentation200 (1).ppt
Presentation200 (1).pptPresentation200 (1).ppt
Presentation200 (1).ppt
 
Report pid controller dc motor
Report pid controller dc motorReport pid controller dc motor
Report pid controller dc motor
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 
print
printprint
print
 
Kollmorgen ct series step motors_catalog
Kollmorgen ct series  step motors_catalogKollmorgen ct series  step motors_catalog
Kollmorgen ct series step motors_catalog
 
Mitsubishi fuso fighter 6 m60 engine
Mitsubishi fuso fighter 6 m60 engineMitsubishi fuso fighter 6 m60 engine
Mitsubishi fuso fighter 6 m60 engine
 
EE6703 SEM
EE6703 SEMEE6703 SEM
EE6703 SEM
 
Speed Control of BLDC Motor with Four Quadrant Operation Using dsPIC
Speed Control of BLDC Motor with Four Quadrant Operation Using dsPICSpeed Control of BLDC Motor with Four Quadrant Operation Using dsPIC
Speed Control of BLDC Motor with Four Quadrant Operation Using dsPIC
 
Uttar pradesh power corparation ltd. training report
Uttar pradesh power corparation ltd. training reportUttar pradesh power corparation ltd. training report
Uttar pradesh power corparation ltd. training report
 
Project paper
Project paperProject paper
Project paper
 

Recently uploaded

Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systems
meharikiros2
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
hublikarsn
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
pritamlangde
 

Recently uploaded (20)

Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdf
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257
 
8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systems
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptx
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 

An235 stepper motor driving

  • 1. November 2012 Doc ID 1679 Rev 2 1/23 AN235 Application note Stepper motor driving By Thomas Hopkins Introduction Dedicated integrated circuits have dramatically simplified stepper motor driving. To apply these ICs, designers need little specific knowledge of motor driving techniques, but an understanding of the basics helps in finding the best solution. This note explains the basics of stepper motor driving and describes the drive techniques used today. www.st.com
  • 2. Contents AN235 2/23 Doc ID 1679 Rev 2 Contents 1 Motor configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 Step sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3 The bipolar motor produces more torque . . . . . . . . . . . . . . . . . . . . . . . . 8 4 Motor drive topologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 5 Slow versus fast decay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6 Control signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 8 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
  • 3. AN235 List of figures Doc ID 1679 Rev 2 3/23 List of figures Figure 1. Stepper motor configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Figure 2. ICs for stepper motor drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Figure 3. Full-step sequence for a two-phase bipolar motor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Figure 4. Half-step sequence for a two-phase bipolar motor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Figure 5. Current waveform to reduce half-step torque ripple . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Figure 6. Bipolar motors deliver more torque than unipolar motors. . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Figure 7. Simple L/R drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Figure 8. Peak winding current decreases at higher speed, limited by motor inductance . . . . . . . . . 11 Figure 9. L/nR drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Figure 10. Switch mode drive implementations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Figure 11. Current waveforms for L/R, L/nR and switch mode drive . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Figure 12. Bilevel current drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Figure 13. PWM current decay modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Figure 14. Ripple current with slow decay and fast decay mode drive . . . . . . . . . . . . . . . . . . . . . . . . 16 Figure 15. Logic signals for full-step and half-step drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Figure 16. Current waveforms during transition from full-step to half-step state . . . . . . . . . . . . . . . . . 19 Figure 17. Bipolar stepper motor drive implemented with the L6506 and the L6203. . . . . . . . . . . . . . 20 Figure 18. Bipolar stepper motor driver implemented with the L297 and the L6203 . . . . . . . . . . . . . . 20 Figure 19. Implementing torque ripple reduction in half-step with the L297 . . . . . . . . . . . . . . . . . . . . 21
  • 4. Motor configurations AN235 4/23 Doc ID 1679 Rev 2 1 Motor configurations From a circuit designer's point of view stepper motors can be divided into two basic types: unipolar and bipolar. A stepper motor moves one step when the direction of current flow in the field coil(s) changes, reversing the magnetic field of the stator poles. The difference between unipolar and bipolar motors lies in the way that this reversal of the magnetic field is achieved (Figure 1). The bipolar motor has one coil per phase and needs two changeover switches, or a full-bridge, for each phase. The switches reverse the direction of current flow in the coil. The unipolar motor has a center tapped coil on each phase and needs one changeover switch, or two transistors to ground, for each phase. The switches select which half of the coil current flows through. Figure 1. Stepper motor configuration The advantage of the bipolar circuit is that there is only one winding, with a good bulk factor (low winding resistance). The main disadvantage is the more complex drive circuit needing the two changeover switches for each phase. This is implemented as a full H-bridge for each phase and requires more transistors that the unipolar configuration. The unipolar circuit needs only one changeover switch, implemented as two transistors to ground, for each phase. Its enormous disadvantage is, however, that a double bifilar winding is required. This means that at a specific bulk factor the wire is thinner and the resistance is much higher. The problems involved are going to be discussed in this application note. Unipolar motors are still popular today for low performance applications because the drive circuit is simpler when implemented with discrete devices. However, with the integrated circuits available today, bipolar motors can be driver with no more components than the unipolar motors. Figure 2 compares integrated unipolar and bipolar driver ICs. The unipolar driver integrates the four transistors to ground and the four freewheeling diodes. The bipolar driver integrates two full H-bridges and the 8 freewheeling diodes. A: Bipolar motor configuration B: Unipolar motor configuration AM16499v1
  • 5. AN235 Motor configurations Doc ID 1679 Rev 2 5/23 Figure 2. ICs for stepper motor drive A: Unipolar motor driver IC B: Bipolar motor driver IC AM16500v1
  • 6. Step sequence AN235 6/23 Doc ID 1679 Rev 2 2 Step sequence With either motor configuration, the motor makes one step each time the polarity of the current in the stator winding changes. For a motor with one pole pair on the rotor, this corresponds to 4 steps per electrical cycle. Figure 3 shows the step sequence and idealized current waveform for a two-phase bipolar stepper motor. In Figure 3, each time the current in one of the windings is reversed, the motor makes one step of 90°. Of course no stepper motors would want to use such a course step. Typical stepper motors are 1.8° or 7.5° per step corresponding to 200 or 48 steps per rotation. A 200 step per rotation motor would have 50 pole pairs on the rotor and need 50 electrical cycles per mechanical rotation. Figure 3. Full-step sequence for a two-phase bipolar motor In Figure 3 the current is reversed to make each step. However it is possible to have an intermediate, half-step, position by simply switching the current in one coil off before switching it on in the reverse direction. Figure 4 shows the sequence for half-step drive and the idealized current waveform for a two-phase bipolar stepper motor. In half-step we now have 8 half-steps per electrical cycle and have doubled the effective resolution of the stepper motor. I1 I2 I1 I2 I2 I1 I2 1 3 5 7 I1 AM16501v1
  • 7. AN235 Step sequence Doc ID 1679 Rev 2 7/23 Figure 4. Half-step sequence for a two-phase bipolar motor The main advantage of half-step is the increased resolution. The main disadvantage of half- step operation is that in the half-step state the motor has only about 70% of the torque as when driven to the full-step state. This is the direct result of lower flux density in the stator. In the full-step state the magnetic vector generated by the stator is the vector sum of the magnetic vectors of the two coils. When both coils are excited evenly, the vector sum of the two is at a 45° angle and has a magnitude of √2 times the magnitude of each individual vector. When only one coil is driven, as in the half-step states, the total magnetic vector is only the vector for one coil. This results in a 30% reduction in torque for the half-steps. The reduction in torque can be compensated for by increasing the current in the one driven coil for the half-steps. If the current in increased by √2 when only one coil is driven, as shown in Figure 5, the torque is essentially equal for both full-step and half-step states. Figure 5. Current waveform to reduce half-step torque ripple I1 I2 I1 I1 I1 I1 I2 I2 I2 I2 I1 I2 I1=0 I2=0 I1=0 I2=01 2 3 4 5 6 7 8 AM16502v1 1.4 1 0 -1 -1.4 1.4 1 0 -1 I Coil 1 I Coil 2 -1.4 AM16503v1
  • 8. The bipolar motor produces more torque AN235 8/23 Doc ID 1679 Rev 2 3 The bipolar motor produces more torque The torque of the stepper motor is proportional to the magnetic field intensity of the stator windings, which is proportional to the number of turns and the current in the winding, so torque is proportional to N*I. A natural limit against any current increase is the danger of saturating the iron core, though this typically isn't the major factor for stepper motors. Much more important is the maximum temperature rise of the motor, due to the power loss in the stator windings. The dissipation in the windings is equal to the square of the current times the winding resistance. Since the resistance is proportional to the number of turns, dissipation is proportional to N*I2 . This gives an advantage to the bipolar configuration which better uses the copper in the windings compared to a unipolar motor. Consider the motor shown in Figure 1 B. When it is driven as a unipolar motor, current flows from Vs to ground in one half of the center tapped winding through N turns. The power dissipation and torque for the unipolar configuration are: Equation 1 If the same motor is driven as a bipolar motor, from the ends with the center tap left unconnected, the current flows through both halves or 2N turns and the dissipation and torque are: Equation 2 If Pd is set to be the same for both drive conditions, substituting one equation into the other shows that Equation 3 Since the bipolar driven motor better uses the copper in the windings it can deliver more torque with the same dissipation in the windings than a unipolar motor built on the same frame. Another way to look at it is that the bipolar motor has less dissipation to produce the same torque. Pd N Iu 2 ⋅∼ and Tu N Iu⋅∼ Pd 2N Ib 2 ⋅∼ and Tb 2NIb∼ Ib Iu 1 2 -------= and Tb 2 Tu⋅=
  • 9. AN235 The bipolar motor produces more torque Doc ID 1679 Rev 2 9/23 Figure 6. Bipolar motors deliver more torque than unipolar motors 40% Bipolar Log scale Unipolar Torque Speed AM16504v1
  • 10. Motor drive topologies AN235 10/23 Doc ID 1679 Rev 2 4 Motor drive topologies For a stepper motor, the motor current is determined primarily by the drive voltage and the motor impedance (resistance and inductance). A simple and popular drive topology is to supply only as much voltage as needed, utilizing the resistance (RL) of the winding to limit the current as shown in Figure 7. For simplicity, the single FET in Figure 7, Figure 9 and Figure 10 represents either a FET and clamping diode for the unipolar motor drive or a composite of the two diagonal switches of a full-bridge the bipolar drive. A typical motor with 5 V and 1 A on its name plate means that with a 5 V drive the resulting current is 1 A, corresponding to having a 5 Ω coil resistance. Figure 7. Simple L/R drive As already discussed, the torque of the motor is, among others, proportional to the winding current. In the full-step sequence, the motor changes the polarity of the winding current in the same stator winding every two steps. The rate at which the current changes its direction, in the form of an exponential function, depends on the winding inductance, the coil resistance and drive voltage. Figure 8 A shows that at a low step rate the winding current IL reaches its nominal value VL/RL before the direction is changed at the next step. However, at higher speeds, the polarity of the stator current is changed more often and the current no longer reaches its saturating value because of the limited change time. Clearly, the peak and the area under the current waveform diminish with increasing step rate, reducing torque and power. This is shown in Figure 8 B. Rc Lc Vs Ic = Vs/Rc t = Lc/Rc AM16505v1
  • 11. AN235 Motor drive topologies Doc ID 1679 Rev 2 11/23 Figure 8. Peak winding current decreases at higher speed, limited by motor inductance The only way to have the current rise more quickly is to have a higher drive voltage or a lower inductance. One method used to get better performance is to increase the drive voltage and use an external resistance to limit the current to the original value as shown in Figure 9. The exponential time constant is L/R so increasing the resistance reduces the rise time. Since the asymptotic current is set by the resistance, the time constant and current can be set by selecting the drive voltage and the external resistance. This topology, referred to as L/nR drive, was commonly used in early printers. Its significant disadvantage is the very significant dissipation in the external resistance. For the 1 A motor the dissipation in the external resistance is around 20 W. Figure 9. L/nR drive What is really needed is a low dissipation drive circuit that would give the fast rise times of a higher drive voltage and limit the current to the desired value without the high dissipation associated with the external resistance in the L/nR drive configuration. Such a drive can be implemented using switch mode techniques as show in Figure 10. Here the peak current is AM16506v1 Rc Lc Vs Ic = Vs/(Rc+Rs) Rs t = L/(Rc+Rs) AM16507v1
  • 12. Motor drive topologies AN235 12/23 Doc ID 1679 Rev 2 set by the voltage reference and the value of the sense resistor so that each time the current reaches the set peak value the switch is turned off for the remainder of the period. Since the only losses in this technique are the saturation loss of the switch and the resistive loss in the sense resistor and coil resistance, the total efficiency is very high. The average current drawn from the power supply is less than the winding current due to the chopping. When the transistor is on, current is being drawn from the supply, however, during the off-time the current is recirculating locally and there is no current from the power supply. This type of phase current control, that has to be done separately for each motor phase, leads to the best ratio between the supplied electrical and delivered mechanical energy. Figure 10. Switch mode drive implementations It would make no sense to apply the same principle to a current controlled unipolar circuit, as additional switches for each phase would be necessary for the shortening out of the windings during the off-time and thus the number of components would be similar to the bipolar drive. Moreover, there would be the previously discussed torque disadvantage. Rc Lc Vs Vref OSC S R Q Rsense Ic = Vref/Rsense Fixed frequency PWM Current control L297 L6506 Rc Lc Vs Vref T _ Q Rsense Ic = Vref/Rsense Constant off time FM Current control Monostable L6207, L6208 L6219, PBL3717 AM16508v1
  • 13. AN235 Motor drive topologies Doc ID 1679 Rev 2 13/23 Figure 11. Current waveforms for L/R, L/nR and switch mode drive Figure 11 compares the current rise time for the three drive topologies. The comparison is done for a 5 V, 1 A motor. The L/R drive uses the motor's rated voltage, the L/nR uses five times the motor rated voltage and an external resistor equal to four times the winding resistance and the switch mode drive uses a supply voltage five times the motor rated voltage with the peak current set equal to the motor rated voltage divided by the winding resistance (1 A). In each case the final current reaches 1 A but the figure clearly shows the faster rise time of the higher voltage drives. This faster rise significantly improves the torque at higher step rates. Another drive topology that may be used is a bilevel drive, where a higher voltage is applied during the transition and then the supply voltage is dropped back down to the lower voltage to maintain the current. The circuit shown in Figure 11 applies a high voltage, without the additional limit resistor, during the time set by the monostable for each transition. When the monostable times out, the switch is opened and the voltage is reduced to the lower voltage that is just enough to maintain the current. Time Current 0 10 20 30 40 50 60 70 80 90 100 0 0.5 1 5Vx 5Vx VxL/R drive L/5R drive Chopping drive Supply voltage AM16509v1
  • 14. Motor drive topologies AN235 14/23 Doc ID 1679 Rev 2 Figure 12. Bilevel current drive This configuration requires additional power components to switch the supply voltage that are not needed with the switch mode technique and is not often used. AM16510v1
  • 15. AN235 Slow versus fast decay Doc ID 1679 Rev 2 15/23 5 Slow versus fast decay When implementing current controlled motor drives, the designer has a choice of the recirculation path the current flows in during the "off" time. Figure 12 shows the two recirculation options implemented in the L6208, or the L6203. Applying the chopping to only one side of the bridge allows the current to recirculate around a low voltage loop, in the upper transistors within the bridge. Since the rate of change of the current is controlled primarily by the L/R time constant of the motor, the current decays relatively slowly, hence the designation of slow decay mode. Applying the chopping signal to both sides of the bridge results in a higher voltage across the coil since the current is recirculating back through the power supply. The higher voltage across coil forces a faster decay of current, hence a fast decay mode. Figure 13. PWM current decay modes The selection of the decay mode influences the operation of a drive in several ways. The most obvious is the magnitude of the ripple current. Drives implemented using the fast decay mode have, for the same off-time or chopping frequency, a higher ripple current than drives implemented using a slow decay mode, as shown in Figure 13. This difference in itself is not significant for most stepper motor drives. Issues with the stability of the current control loop are discussed elsewhere [1.]. Generally for full-step and half-step drives the slow decay mode is preferred since it reduces the current ripple and, for many driver ICs, the dissipation in the device. VS VS VS ON time Current builds In winding OFF time Slow decay Recirculation OFF time Fast decay Recirculation AM16511v1
  • 16. Slow versus fast decay AN235 16/23 Doc ID 1679 Rev 2 Figure 14. Ripple current with slow decay and fast decay mode drive AM16512v1
  • 17. AN235 Slow versus fast decay Doc ID 1679 Rev 2 17/23 Figure 15. Logic signals for full-step and half-step drive AM16513v1
  • 18. Control signals AN235 18/23 Doc ID 1679 Rev 2 6 Control signals In most applications the stepper motor driver IC is controlled by a microcontroller that generates the commutation sequence for the motor. Figure 15 shows the typical control signals from the microcontroller for operating in full-step and half-step modes. In the simplest form, a full-step drive needs two square waves in quadrature to drive the motor. The rotational direction is determined by which of the two phases is leading the other and the rotational speed is directly proportional to the clock frequency. More often, since the switch mode current control signals are ANDed with the phase control, four signals to the drive IC are actually required, one for each half-bridge. In the half-step state one of the motor phases is off with zero current. When moving from the full-step state to the half-step state the current must fully discharged to reach zero current. Although simply taking the input that was high to a low-state would eventually cause the current to decay to zero, it leaves the bridge in a slow decay mode with the current circulating around the two low transistors in the bridge. For high step rated, the current may not decay to zero during the step, as shown in Figure 16 b.
  • 19. AN235 Control signals Doc ID 1679 Rev 2 19/23 Figure 16. Current waveforms during transition from full-step to half-step state To get the fastest decay from a full-step to a half-step state the bridge should be disabled so that both of the transistors that were on are switched off. This puts the bridge in a fast decay mode and the current decays more quickly, as shown in Figure 16 c. For half-step operation an additional two signals are required to inhibit the bridge and put it in tristate during the steps when there is no current in that phase. Figure 15 shows the drive signals required for a driver like the L298 or L6203. The six commutation signals can easily be generated from a microcontroller, but the current control is typically implemented in circuitry that is added between the microcontroller and AM16514v1
  • 20. Control signals AN235 20/23 Doc ID 1679 Rev 2 the driver IC, as shown in Figure 17. Here a dedicated current control IC, the L6506, combines the commutation signals with the current control signals and then passed the 6 lines to the driver IC. Some driver ICs, like the L6219 or the L6207, have the current control built into the driver IC. Figure 17. Bipolar stepper motor drive implemented with the L6506 and the L6203 Alternatively, logic circuitry or a dedicated IC like the L297 can generate the control signals from a step clock and direction signal. Figure 17 shows a drive circuit using the L297 and the L6203. In this circuit the microcontroller needs to supply only the STEP and the CW/CCW signals. Since most applications do not switch between full-step and half-step, the HALF/FULL signal can usually be hard wired to the desired operation condition. Figure 18. Bipolar stepper motor driver implemented with the L297 and the L6203 As discussed earlier the torque ripple in half-step can be decreased by increasing the current in the winding during the half-step states. The circuit in Figure 19 detects when one off the inhibit lines is low and increased the voltage at the REF input of the L297 to increase the current during the half-step. AM16518v1 AM16515v1
  • 21. AN235 Control signals Doc ID 1679 Rev 2 21/23 Figure 19. Implementing torque ripple reduction in half-step with the L297 AM16516v1
  • 22. References AN235 22/23 Doc ID 1679 Rev 2 7 References 1. Stepper motor driver considerations, common problems and solutions, AN460. 8 Revision history Table 1. Document revision history Date Revision Changes 02-Jul-1988 1 Initial release. 14-Nov-2012 2 Changed: Figure 3, Figure 4, Figure 5, Figure 6, Figure 7, Figure 9, Figure 10, Figure 11, Figure 13, Figure 14 and Figure 17. Added: Section 2. Updated: drive configuration topic. Removed: microstepping section. Minor text changes.
  • 23. AN235 Doc ID 1679 Rev 2 23/23 Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST’s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein. UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. © 2012 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com