Precise method for linearizing sine and cosine signals in resolvers and quadrature encoders applications
Precise method for linearizing sine and cosine signals in resolvers and quadrature encoders applications
The 3Mh Annual Conference of the IEEE industrial Electronics Society, November 2 6,2004, Busan,Korea
Precise method for linearizing sine and cosine signals in resolvers and
quadrature encoders applications
Abstract-Resolvers and quadrature encoders prottde angle. Another approach, based upon the absolute values of
electrical signal related to the sine and cosine of the me. the sine and cosine signals was proposed in [ 141. However
chanical shaft angle over the full 360 degree range. A con- this converter was characterized by a residual non-linearity
verter is described for the linearization of these signals, ena- resulting in a theoretical precision of0.12". In this paper, we
bling the angle to be determined using simple linear equations. present a converter incorporating a new linearization tech-
The converter is based upon the difference between the absw
nique, and characterized by a significantly better linearity
lute values of the transducer signals, together with a dedicated
linearization technique. The converter proiqdes a nearly per- and precision. The proposed converter, shown in Fig. 1, i s
fect triangular signal from which the angle is determined based upon the computation of the difference between the
unambiguously over the full range. The theoretical error of absolute values of the sine and cosine signals, followed by a
non-linearity may be cut down to 7x104 degree. The principle dedicated linearization technique applied to this difference.
and theory of operation, and computer simulation are given. This results in a triangular signal from which the angle is
The converter, full details of which are ghen, has been im- computed using an appropriate simple linear equation. In
plemenled using analogue electronic circuitW. The practical this paper, two forms of linearization techniques are pre-
performance of the converter has been evalualed using a sented and discussed. These are simpler andlor result in
PC-based test rig. T h e converter was successfully tested with a
lower residual error than the expressions described previ-
commercial resolver. The experimental results obtained are in
excellent agreement wilh theory and simulation. ously 1141, 1151.
Authorized licensed use limited to: ISRO - Vikram Sarabhai Space Centre. Downloaded on December 28,2023 at 06:22:42 UTC from IEEE Xplore. Restrictions apply.
waveform Vo(0) compares reasonably with a normalized It is shown below that, by using a suitable linearization
perfect triangular waveform, PY(0). Obviously within each technique, V@) may be modified to give an almost perfect
of the four quadrants of input angle the slope is fit of PT(0). Thus the precision of the linear computation
APT(O)/AO=A/x, with evident application in linear angle of the angle from the linearized signal may be greatly en-
computation. hanced. The fact that E(@) is made up of harmonics pre-
sent in the absolute values of the input sine and cosine sig-
nals, suggests the possibility of finding a combination of
these signals having an expansion similar to (5). This
represents the basis for the proposed linearization tech-
nique: a compensation term C(O), generated from the in-
put signals and ideally equal to - E(@), is combined with
Vo(0) in order to produce a linearized signal VoL(0) as il-
lustrated in Fig. 3. It follows that,
0 (degree)
Fig. 2: Simulation results of: (a) Nonnalized input sine and cosine
signals. and non-Linearized signal VJQ) :
(b) Raw amr E@)=Vd@)-ZT(@). n
Vn(0) -'
=-z-
a
cos(n@)
n2-1
n=2,6,10,14,... (2)
and
n = 2,6,10,14,. .. (3)
E ( @ )= ;
8 z[s
between (2) and (3):
-&-)cos(n@) n = 2,6,10,14, .. .
residual error, e(@)= V~L(0)-pr(O).Once the linearization
is carried out, the angle may be determined from the lin-
earized signal V o ~ ( 0 using
) a simple linear equation angle
-io-' (5) (the slope is A V,L/A @=: *4/lr) within each quadrant of in-
= -[120.19~0~(20)-54.37~0~(6@) put angle. The four quadrants are easity identified by using
x?
- 21.05c*s(10@)- 10.94c0s(l40) +...I
1936
Authorized licensed use limited to: ISRO - Vikram Sarabhai Space Centre. Downloaded on December 28,2023 at 06:22:42 UTC from IEEE Xplore. Restrictions apply.
simple booIean equations employing the signs of the sine (n=0,1,2,3, ...) , the chosen constraint angle e(Oc)=O
and cosine signals as reported previously in [14]. "clamps" the error to zero at further input angles (one in
each of the four quadrants of input). Note that because of
In previous communications [14], 1151the authors described function symmetry it is possible to restrict OCto the open
two compensation signal forms resulting in an improvement interval (0, d4). The relationship between K and 0, may
of linearity of Vo,(O). The compensation signal described in be derived by writing e(@-)= VOLI(OC)-PT(OC)= Va(Oc)+
[14] resulted in a residual error in the determination of 0 C~(OC)-PT(O~) = 0; simple analysis yields:
equivalent to &.12", while in [IS] a more complex lin-
earization signal resulted in an error ten times smaller. In the +cos@,
(4/w)Q, - 1 - S i n 0 ,
following, two forms of linearization signal are presented K= (9)
sin^, -2sinzOc -cos@,
and discussed separately. These are simpler and/or result in
lower residual error than the expressions described previ- Fig. 4 shows the maximum (peak) residual error of non-
ously. linearity versus constraint angle &. The results show that
the peak error is minimized for Qc -17.72", corresponding
to a value for K, approximately equal to 0.252. This result
A. Newly Proposed Method I in excellent agreement with the value of 0.253 estimated
a b v e , with reference to Fourier expansions of Cl@) and
Evidently, the error signal E(@) and the raw signal Vo(0) E(@). By using K=0.252 in (7) and combining with (1)
have the same harmonics, but the terms coefficients are dif- and (61, the residual error in the computation of 0 is equi-
ferent. From (2) and (3,the ratio of the terms coefficients oscillating within G.05" despite the simplicity of the ex-
of E ( @ )to those of V@) may be found as: pression of the compensation term, which is an important
4 1
R ~ r i o ( n ) = - - ( ~ - 1 ) + I ; n = 2 , 6 , 1 0 ,14 ,... consideration in practical implementation particulady
?rn when using analog electronic circuitry.
By computing this ratio for the various values for n, it is
easy to show that except for Rario(2)=0.045, all remaining
Finally Cl(@)and its Fourier expansion, comparable to that
Ratio(n=6, 10, 14, ...) are negative and comparable in
of E(@) given in (3,may be written as follows.
magnitude. Therefore, the first compensation term, Cl(@),
proposed in this work is based upon the manipulation of
= 0.2521sin 01- [cos Oi+ 1- 2sin Q]
C,(0)
Vo(0) in order to match E(@). From the analysis above it
should be possible to obtain a compensation signal, Cl(@), IO-^
= -[I 19.68 cos( 2@)- 57.60 COS( 6 0 )
by adding a cos (20) term to Vo(0) in order to modify the x
sign of the coefficient of the fundamental component of (2) - 2 0 . 3 6 ~ 0 ~1(0 0 ) - 1 0 . 3 4 ~ 0 ~1( 4 0 ) + ...I
without affecting that of the remaining harmonics.
C,(O)= K x + cos(2e)]=
[v,(0) + 1- 2sin 2(0)] (7)
K x [voce,
!$
- 012
010
z
5
E
By forcing the amplitude of the fundamental component of .a OM
B
C l ( @ )to match that of E(@), given in equation (3,a suit- OM
5 IO 15 20 25 SJ 35
able value for the scaling factor K may be estimated as Constraint angle, (degree)
K=0.253. The choice of a suitable value for K may be fur-
ther investigated as fallows, The trend of the residual error
curve depends on the value for the coefficient K as shown Fig. 4: Simulation of the residual error (difference between linearly computed
in Fig. 4. If the criterion of approximation is the minimiza- angle and true angle) when using the linearized signal VO,i(Qj=
tion of the maximum error, then the value for K is chosen VO(B)+CI(B).(Upper) Residual mor curves for e~values of 5.00. 10.00,
to force a zero error at a suitabIe constraint angle Oc, ren- 17.72, 20.00. and 25.00 degrees. (Lower) Peak value of the residual error
minimized for 0~-17.729 corresponding to K L-o.252.
dering the error curve qui-oscillating. In addition to the
zero error ensured by Vo(0) at the angles n d4
1937
Authorized licensed use limited to: ISRO - Vikram Sarabhai Space Centre. Downloaded on December 28,2023 at 06:22:42 UTC from IEEE Xplore. Restrictions apply.
B. Proposed Method 2 The result shows that the terms coefficients of C2(0)match
almost perfectly those of E(@) given i n (5). As a conse-
T h e residual error of 0.05" obtained with the first compen-
quence, the curve VoL2(0)=Vo(0)+Cz(O) is an excellent
sation term described above, is a result of slight mismatch
match of a perfect triangular wave WO);and the residual
between the linearization signal, Cl(@), and the raw error
error, as shown in Fig. 5, in the linear computation of 0 is
signal, E(@), it is intended to cancel out. This mismatch
extremely low.
may be demonstrated by the fact that the respective peak
positions of the two signals are located 0.7 degree apart. A
second form of linearizing signal is presented; this is based
ItI EXPERIMENTAL
on the first formula with a modification aiming at match-
ing the peak positions of the compensation signal and raw
error. The new compensation signal is as follows: The converter incorporating the compensation signal 1 was
implemented using simple analogue building blocs as shown
in Fig. 6.
1938
Authorized licensed use limited to: ISRO - Vikram Sarabhai Space Centre. Downloaded on December 28,2023 at 06:22:42 UTC from IEEE Xplore. Restrictions apply.
PCI-ADC) in order to compute the angle from the converter. the theoretical error curve, given in Fig. 5. The experimental
Because the true angle is known to the computer, this pro- error b u n d s are in good agreement with theory and simu-
cedure enables the determination of the experimental re- lation. Note that at 90°,the effect of gains rounding is ob-
sidual error of non-linearity of the converter. Evidently the vious as illustrated by simulation results for formula two
calcuIated error is the overall error of the converter, and (Fig. 5).
XI-ADC interface card. It is worth noting that the quan-
tization error of the 12-bit AID and DIA converters of the
PCI-ADC is equivalent to more than 0.022". This is because
- 0.10 , .
the full swing of VoLI(O)represents a variation of the angle
by 90", and even when using the full input range of the card
for logging VoL1(0) the resulting quantization error of the
A/Tl converter i s 90"/4095.
Fig.9: Exprrmental data of Fig. 8 plotced together wich the theoretical residual
error (solid line).
Fig. 10 Modulated and demodulated resolver sine and cosine signals. The
resolver was driven at 12 rpm.
1939
Authorized licensed use limited to: ISRO - Vikram Sarabhai Space Centre. Downloaded on December 28,2023 at 06:22:42 UTC from IEEE Xplore. Restrictions apply.
range. Two forms of linearization have been proposed; the S. K Kaul, R. Koul. C.L.Bhat, I. K Kad& A KTickm, “Useof
a ‘look-up’ table improves the accuracy Of a lowsost re-
resulting theoretical error of non-linearity in the computa- solver-based absoluk shaft encoder,” Mepruremenr Science and
tion of the angle from the linearized converter output is T k h d o g Y , 1997. VOI8, pp. 329-331
theoretically 5x10” degree with the first technique, and
S.P. Vlahu, “Direct resolver Lo digital converter,” US Parent
below 7x104degree for the second. The converter incorpo- 5912 638,1999.
rating the first linearization technique has been imple-
mented using analogue electronic circuitry. The perform- J. G. Webster. Ed, ‘The Measurement, Instrumentation, and Sen-
ance of the prototype converter has been evduated using a sors Handbwk.” CRC Press and IEEE Press, 1999, pp. 6.128 ~
6141.
FC-based test rig and a commercial resolver. The experi-
mental results showed satisfactory agreement with theory G.A. Woolveg “Digital ”ducers.” Journal offhysics E: Sci.
and simulation. Insirum.,Dec 1982,Vol IS.No12,pp 1271-1280.
M.L. Gasperi & W.G. Onarheim, “Method and apparatus for COT-
recting resolver mors,”US Palent 4 933 674, 1990.
I940
Authorized licensed use limited to: ISRO - Vikram Sarabhai Space Centre. Downloaded on December 28,2023 at 06:22:42 UTC from IEEE Xplore. Restrictions apply.