Sunteți pe pagina 1din 13

APPLICATION NOTE

BIPOLAR STEPPER MOTOR CONTROL


By Pierre PAYET BURIN
This application note is intended to provide design the current flow in the winding. The signal applied to
details for the implementation of a stepper motor this input is first gated through a Schmidt trigger and
control, built around the TEA3717. then through a delay element so as to avoid a simul-
This integrated circuit has been developed to offer taneous conduction of transistors when direction of
control and current regulationof up to 1A, in one win- current in the bridge is reversed.
ding of a bipolar motor. Regulation of winding current is performed by chop-
Two TEA3717s and a minimum of external compo- ping action on the power supply for a durationtoff de-
nents are sufficient to implement the full control fun- termined by a monostable.
ction of a two-phase bipolar stepper motor. This monostable is triggered by the output level
The system can be commanded, according to the swing of a comparator, to the input of which a volt-
desired mode of operation, by either fixed or pro- age proportional to delivered output current is ap-
grammable logic. plied.
The current spikes corresponding to the diodes re-
FUNCTIONAL DESCRIPTION verse recovery time are filtered by a low pass filter
The circuit is organized around a H-bridge configu- RC CC to not trigger the comparator.
rated by four transistors and their integrated free Three comparators are available for this purpose :
wheel diodes. their thresholds are internally fixed ratios of VR input
voltage. Each of them can be selected individually
The ”Phase” input controls the switching of the brid-
by using I1 and I0 inputs.
ge transistors and also determines the direction of

Figure 1 : TEA3717 Block Diagram.

AN266/0189 1/13
APPLICATION NOTE

Figure 2 : Typical Operating Sequences.

Direction of current Transistors of the bridge are represented by


flow switches :
– switch open : transistor cut-off

2/13
APPLICATION NOTE

CONTROL OF BIPOLAR TWO-PHASE MOTOR


The proposed diagram features two TEA3717s each controlling one winding. Full-step and fraction-of-a-step
operation is performed by combined use of phase and current level selection control inputs.
Figure 3 : Control of a Bipolar Two-phase Motor.

3/13
APPLICATION NOTE

Figure 4 : Winding Currents for Rotation in Full-and Micro-steps.


IA , IB : Currents flowing through motor windings.
IH , IM, IL : Current thresholds selected by IO, I1.
I : any of IH, IM or IL values.

I0 I1 I
1 1 0
0 1 IL
1 0 IM
0 0 IH

N° of
IA IB
steps
1 I I
N° of I 0
IA IB 2 I -I N° of
steps IA IB
0 -I steps
1 I I 3 -I -I 1 I I
2 I –I -I 0 IM IL
3 –I –I -I I
4 IM - IL
4 –I I 0 I 2 I -I
Full step. 1/2 step. 1/3 step.

N° of
N° of IA IB
N° of IA IB steps
IA IB steps 1 I I
steps
1 I I IH IM
1 I I IH IM
IM IL IM IL
IH IL I 0
I 0
IH - IL IM - IL
IM - IL
IH - IM IH - IM
2 I -I 2 I -I 2 I -I
1/4 step.
1/5 step. 1/6 step.

N° of
IA IB
N° of steps
IA IB
steps 1 I I
1 I I IH IM
IH IM IM IL
IM IL IH IL
IH IL I 0
IH - IL IH - IL
IM - IL IM - IL
IH IM IH - IM
2 I -I 2 I -I
1/7 step. 1/8 step.

4/13
APPLICATION NOTE

FULL-STEP OPERATION : ”Phase” inputs determine the direction of current


This is moto’s typical mode of operation. flow in the windings, while inputs I0 and I1 at a con-
Simultaneous power supply to both windings gua- stant level, select the level of this current. This is the
rantees availability of maximum torque. simplest type of control implementation.

Figure 5 : Signals to Provide to Controller for Full-step Rotation.

1 - Motor not controlled.


2 - Rotation of 7 steps @ IH max. current.
3 - Rotation of 6 steps @ IL low current.

HALF-STEP OPERATION : torque available on motor spindle is at its lowest va-


This mode allows to doublethe motor resolution and lue.
also to eliminate certain vibrations. Power is applied Samecontrol signals as thoseused forfull-step ope-
alternately to one winding and then to both. In half- ration are applied to ”phase” inputs, and I0, I1 inputs
step position, where only one winding is powered, are used to annul the current in one winding.

5/13
APPLICATION NOTE

Figure 6 : Signals to Provide to Controller for Full-step Rotation.

6/13
APPLICATION NOTE

MICRO-STEP OPERATION: cro-steps :


Micro-steps of up to 1/8 are obtained by implemen- - difference between theoretical value and availa-
ting the flow of different supply current levels ble value for winding current,
through both windings.
- comparator threshold levels dispersion,
This type of operation may be envisaged if a good
rotational regularity is required. - motor winding characteristics dispersion.
These factors don’t affect full-step position
Some factors reduce the positioning precision of mi-
Figure 7 : Signals to Provide to Controller for Rotation in 1/8th of a Step.

CHOICE OF OPERATING FREQUENCY The rate of current increase in the winding depends
Motor’s rotational speed is determinated by the fre- on Vmm. Thus, if operation at maximum speed is de-
quency of PhA and PhB signals. sired, it would be a good practice to work with high
supply voltages.
This speed is limited by the mechanical characteris-
tics and the time constant of L, r circuit formed by the
winding.
Figure 8 : Phase Currents for two Differents Speeds.

7/13
APPLICATION NOTE

I 1 = I0 = Ph COMMAND If while the current is still positive, control signals Ph


Simultaneous application of control signals to three : I0 =I1 =1 are applied to correspondinginputs,diode
inputs Ph, I1 and I0 (or to Ph and one of I inputs while D2 or D3 will conduct and cause Q1 and Q4 to be
the otheris it at high level), is used for half-step ope- turned-off,which prevents the current rise in the win-
ration or unipolar mode. ding and disturbs the proper motor operation.
Blocking of Q1 and Q4 is performed by a built-in pro-
It must be ensured that the time t during tectionunit and prevents the parasitics generatedby
which Ph = I1 = I0 = 1 is higher than the time t min the conductionof D2 and D3 to cause any short-cir-
required to annul the winding current. cuit within the bridge.
Figure 9 : Operation with Ph = I1 = IO.

Normal circuit operation 1b, 2b Identical to 1a, 2a


Direction of current 3b : Q1 cut-off due of conduction of D3.
Slow decrease of current since.
VMB – VMA = 0 instead of being – Vmm.

4b 2b
5b 3a
6b 1b.

8/13
APPLICATION NOTE

CHOICE OF TOF F : SWITCHING TIME FOR A suitable value of toff for the majority of applications
CURRENT REGULATION is 30µs.
The value of toff determines the quality of thecurrent
regulation in one phase. ∗to ff( max)

The larger the toff, the more important is the current This is the toff value over which the ripple value be-
ripple. comes excessive
Let’s k be the desired ripple value and t = L/r the time
Value of toff is found from the expression toff = 0.69 constant of motor winding, then :
Rt.Ct where 1kΩ ≤ Rt ≤ 100kΩ toff(max) is given approximately by : toff(max) ≈ kt
Figure 10 : Winding Current @ off (max).

IH , M, L – Imin L
k = t =
IH, M, L r

toff (max) = kt

9/13
APPLICATION NOTE

∗t o ff( min) - t’d : this is the time required by VC toreach the com-
This is the limit under which the current regulation parator threshold level and is determined by low
is not guaranteed. pass filter RC, CC.

Even if the current continually exceeds the threshold Therefore, toff must be selected to be long enough
levels IH, IM or IL, the device will ensure a minimum to allow the current to fall to a level below IH, IM or
conduction time ton(min) which is combination of two IL.
periods : Supply voltage Vmm and winding characteristics
- td : comparator trigger time and transistor desatu- both determine the value of toff(min).
ration time implosed by TEA3717
Figure 11 : Winding Current @ TOFF(MIN).

Figure 11 Bis : Winding Current, VE and VC Voltages @ TOFF(MIN).

10/13
APPLICATION NOTE

SELECTION OF R S VALUES It is also possible to vary the motor current in a con-


Three values of motor current IH, IM and IL are de- tinuous mode :
terminated by the choice of RS and VR values. - by VR adjustment
The value of RS is calculated such that VCH = RS.IH - by feeding back a portion of the voltage drop
0.42 across RS through a potentiometerwhose wiper
where VCH = is connected to the comparator input.
5
In order to minimize the differential voltage VE - VC
VR and IH is the maximum motor supply current.
due to comparator’s input current, care must be ta-
A choice of RS valuearound 1Ω will guarantee a fast ken to avoid the appearance of a large impedance
increase of the winding current and offers the pos- between E and C terminals. Appropriates values of
sibility of operation with a voltage around 5 V for VR, P and RC would be : P = 1 kΩ and RC = 470Ω .
and thus is suitable for most applications. CABLING
Figure 12 : Continuous Variation of Current Level.

11/13
APPLICATION NOTE

Sincethe TEA3717 operatesin switch mode, it is es- Connection link between RS and the TEA3717
sential to take particular cabling precautions so as -
must be kept as short as possible
to avoid the generation of interferences susceptible
to disturb the correct operation of the control elec- - Decoupling of Vmm by a ceramic capacitor (15 to
tronics. 150nF) directly connected to the TEA3717 and
also by an electrolytic of higher value : 10to 22µF.
Recommended precautions are :
- Decoupling of VCC.
- Separated ground connection for Vmm supply

Figure 13 : TEA3717 PC Board Layout.

12/13
APPLICATION NOTE

Information furnished is believed to be accurate and reliable. However, SGS-THOMSON Microelectronics assumes no responsibility for
the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its
use. No license is granted by implication or otherwise under any patent or patent rights of SGS-THOMSON Microelectronics. Specifica-
tions mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information pre-
viously supplied. SGS-THOMSON Microelectronics products are not authorized for use as critical components in life support devices or
systems without express written approval of SGS-THOMSON Microelectronics.

 1995 SGS-THOMSON Microelectronics All Rights Reserved

SGS-THOMSON Microelectronics GROUP OF COMPANIES

Australia - Brazil - France - Germany - Hong Kong - Italy - Japan - Korea - Malaysia - Malta - Morocco - The Netherlands - Singapore -
Spain - Sweden - Switzerland - Taiwan - Thaliand - United Kingdom - U.S.A.

13/13

S-ar putea să vă placă și