Wheel Speed Sensors and Notch Filters
Wheel Speed Sensors and Notch Filters
Abstract: This paper addresses the measurement of the wheel angular velocity of wheeled
vehicles. The wheel angular velocity measurement is often affected by large periodic distur-
bances. The paper proposes a model of the origin of that disturbance: even a small offset in the
positioning of the encoder can cause large, velocity dependent noise. After having shown that
the periodic term is indeed a noise and not part of the actual signal, an adaptive notch filter
is discussed. Lyapunov theory is employed to prove the quadratic stability of the time-variant
filter. An analysis of both simulation and experimental tests supports the analysis and methods.
1. INTRODUCTION
Speed [km/h]
As shown by the brief outline of the available literature, 100
40
20
2. ENCODER-WHEEL MODELING
0
0 50 100 150 200 250 Different causes for periodic behavior are taken into con-
Time [s]
sideration. Usually, periodic disturbances are induced by
unbalanced axis, imperfections or cracks (see e.g. Mc-
Fig. 2. Example of periodic noise on wheel speed signal. Fadden and Smith [1984]). This is not the case of the
considered motorcycle wheels, since such vibrations are
shows the logged front wheel velocity (multiplied by the not present in any other signals such as the suspension
radius to get the equivalent vehicle velocity) during a compression or wheel vertical acceleration.
lap on a test track. In this figure and in the rest of the Another source of a periodic noise can be the wheel speed
paper we will refer to the fixed position algorithm as the estimation algorithm, itself. In particular, it is well known
estimation algorithm of choice. From figure a clear periodic that the line per period algorithms are subject to periodic
component is observed. Further analysis reveals that the oscillations; however the fixed positions (FP) algorithm
frequency of that component is locked with the rotational (employed herein) is not subject to these phenomena
frequency of the wheel. This can be easily observed in
Figure 3. The figure plots the measured velocity spectro- To understand another possible cause, consider Figure
gram during the same lap. It shows the main frequency 4 where a sketch of a wheel along with the encoder is
component of the signal as function of the time; the lower depicted. The encoder is represented as a series of rays
panel plots the wheel speed. A clear linear correlation is of length D that originate form the encoder center E.
observed between the velocity and the main component of Each ray should be considered as the edge that divides
the disturbance/noise term. It is clearly visible how the an empty from a full part of the encoder: in the FP
most important harmonic component in the considered algorithm every time that the hall-effect sensor encounters
signal varies its frequency following the same path of the such discontinuity a timer starts to measure the time gap
speed signal. until the next transition. The FP algorithm assumes that
the encoder is fixed with the wheel, rotates around the
These phenomena was already notices by Corno and same axis and has equidistant lines.
Savaresi [2010] and an ad-hoc solution based on a notch
filter was proposed. Being outside of the main scope of that Now consider the fact that the encoder may be mounted
paper, no attempt at identifying the cause nor a rigorous with an offset e, thus E does not coincide with the wheel
proof of the performance of the provided solution were rotation axis C. The hall-effect sensor H is fixed with the
provided. This paper aims at addressing the above issues. motorcycle frame and it is located at distance R form the
1696
16th IFAC Symposium on System Identification
Brussels, Belgium. July 11-13, 2012
1697
16th IFAC Symposium on System Identification
Brussels, Belgium. July 11-13, 2012
[r ad]
n
0.132
a [cm]
5.05
θ
63
n + 1−
n
5 0.131
62.5
θ
4.95 0.13
4.9 0.129 62
Fig. 5. Distance from encoder center of the hall sensor (upper-left), effective angular displacement between two
consecutive triggers (upper right), estimated and actual angular velocity (lower).
real 80 its derivatives may suffer from the component at 1X; this
65 measured complete
measured complete 75
disturbance is remarkably large, and may become critical if
Angular speed [rad/s]
64 real
70 measured complete
63 measured simplified the 1X frequency corresponds to 10 Hz when the vehicle
62
65
speed is about 60 km/h. Since the disturbance can be
60 critical, in Corno and Savaresi [2010] it was proposed to
61
55 filter all the wheel-speed signals using the adaptive notch-
60
0.1 0.2 0.3 0.4 0.5 50
0.1 0.2 0.3 0.4 0.5
filtering scheme illustrated in Figure 8.
Time [s] Time [s]
~3km/h
150 245
203 203.05 203.1 its main harmonic is removed via the adaptive filter:
70
100 68 s2 + ωn2
N (s) = (7)
66 s2 + 2ξωn s + ωn2
50 64
~0.8km/h
62
where ωn corresponds to the rolling frequency. Figure 9 ex-
0 60
emplifies the effect of the filtering scheme in the frequency
50 100 Time [s] 150 200 72 72.25 72.5
domain. It is also shown that the other parameter that
appears is the pole damping ratio ξ: according to depicted
Fig. 7. Experimental example of once-per-revolution noise: transfer function, this parameter can be used to modify
the increase of amplitude with speed is highlighted. the selectiveness of the notch filter.
If the notch frequency is constant, the stability of the
Finally, it can be noticed that with the mentioned values proposed filter is trivial: 0 < ξ < 1 guarantees the
for encoder radius and offset, the model in equation (6) asymptotic stability of the filter. Conversely, when the
predicts an amplitude oscillation similar to the experimen- notch frequency ωn varies, the system is not more linear
tal ones. This confirms the proposed once-per-revolution time invariant anymore and 0 < ξ < 1 may not be enough
modeling. to guarantee stability (Khalil [1996]); luckily the following
can be proven:
3. ADAPTIVE FILTERING Theorem 1. The adaptive notch filter in equation (7) is
asymptotically stable for any notch frequency trajectory
The above analysis has shown the main noise affecting ωn = ωn (t) > 0.
the wheel rotational speed. From the control perspective,
any control loop closed on the wheel velocity or any of Let us consider a state-space realization of the notch filter:
1698
16th IFAC Symposium on System Identification
Brussels, Belgium. July 11-13, 2012
0
ployed to support the analysis and test the proposed
methods.
−50
−100 −1
10 10
0 1
10
2
10
REFERENCES
Frequency [Hz]
D. Atkinson, P. Acarnley, and J. Finch. Observer for In-
duction Motor State and Parameter Estimation. IEEE
Fig. 9. Adaptive notch filter scheme for once-per- Transactions on Industry Applications, 27:1119–1127,
revolution noise suppression. 1991.
−2ξωn ωn
2ξωn
L. Bascetta, G. Magnani, and P. Rocco. Velocity Estima-
ẋ = x+ u tion: Assessing the Performance of Non Model-Based
−ωn 0 0
Techniques. Advanced intelligent mechatronics, 2007
y = [ −1 0 ] x + [1] u ieee/asme international conference on, pages 1–6, Sept.
2007.
Since ωn = ωn (t) the system can be written as a linear P. Belanger, P. Dobovolny, A. Helmy, and X. Zhang. Esti-
time variant (LTV) system with equations mation of Angular Velocity and Acceleration from Shaft-
ẋ = A (ωn ) x + B (ωn ) u Encoder Measurements. The International Journal of
Robotics Research, 17(11):1225–1230, 1998.
y = Cx + D u L. Ben-Brahim, S. Tadakum, and A. Akdag. Speed Control
The above system is said to be quadratically stable if there of Induction Motor Without Rotational Trasducers.
exists a time invariant matrix P > 0 such that: IEEE Transactions on Industry Applications, 35(4):844–
T 850, 1999.
A (t) P + P A (t) < 0 R.H. Brown and S. Schneider. Velocity Observations from
at all time t. In such a case, V (x) = xT P x is a Lyapunov Discrete Position Encoders. In IEEE Conference on
function for the above system. The notch filter state matrix Decision and Control, volume 6, pages 1111–1118, 1987.
can be written as follows: M. Corno and S.M. Savaresi. Experimental identification
of engine-to-slip dynamics for traction control applica-
−2ξωn ωn −2ξ 1
A (ωn ) = = ωn = ωn à tions. European Journal of Control, 16(1):88–108, 2010.
−ωn 0 −1 0
M. Corno, Savaresi S.M., and G.J. Balas. On linear
and it can be easily noticed that à is Hurwitz. Thus the parameter varying (LPV) slip-controller design for two-
Lyapunov equation can be written as: wheeled vehicles. International Journal of Robust and
Nonlinear Control, 19(12):1313–1336, 2009.
h i
ωn (t) ÃT P + P Ã < 0
P.S.R. Diniz. Adaptive filtering: algorithms and practical
Since ωn (t) is a positive scalar and à is Hurwitz, matrix implementation, volume 694. Springer Verlag, 2008.
P > 0 satisfying the above equation exists (see Khalil F. Janabi-Sharifi, V. Hayward, and C. Chen. Discrete-time
[1996]). The stability of the notch filter is thus proved. Adaptive Windowing for Velocity Estimation. IEEE
It is of interest to notice that the stability is guaranteed Transaction of Control Systems Technology, 8(6):1003–
for any positive value of ωn , regardless of the speed with 1009, 2000.
which the frequency varies. R.C. Kavanagh. Shaft Encoder Characterization via The-
oretical Model of Differentiator with Both Differential
In Figure 10 the power spectra of the measured signal and and Integral Nonlinearities. IEEE Transactions on In-
the adaptively filtered one are shown. For comparison a strumentation and Measurements, 49(4):795–801, 2000.
linear low pass filter of the second order is shown. In order R.C. Kavanagh. Performance Analysis and Compensation
to reach the same 1X attenuation level of the adaptive of M/T-Type Digital Tachometers. IEEE Transactions
structure with a low pass filter, a cut off frequency of 4 Hz on Instrumentation and Measurements, 50(4):965–970,
is required. Such a low pass filter filters out many of the 2001.
relevant features of the signal. H.K. Khalil. Nonlinear Systems. 2nd Edition, Prentice
Hall, Upper Saddle River, New Jersey, 1996.
4. CONCLUSION S.H. Kim, T.S. Park, J.Y. Yoo, and G.T. Park. Speed-
sensorless Vector Control of an Induction Motor Using
This paper proposed a detailed discussion of the periodic Neural Network Speed Estimation. IEEE Transactions
component often measured on the wheel angular velocity on Industrial Electronics, 48(3):609–614, 2001.
1699
16th IFAC Symposium on System Identification
Brussels, Belgium. July 11-13, 2012
measured
filtered apative notch
filtered low pass
power spectrum
1X
frequency [Hz]
155
150
velocity [km/h]
145
140
measured
filtered adaptive notch
135
filtered low pass
Fig. 10. Speed measurement spectra and time domain, before and after notch filtering.
M. Lemkin, P.H. Yang, A.C. Wuang, J. Jones, and D.M. Y. Su, C. Zheng, D. Sun, and B. Duan. A Simple Non-
Auslander. Velocity Estimation From Widely Spaced linear Velocity Estimator for High Performance Motion
Encoder Pulses. In American Control Conference, pages Control. IEEE Transactions on Industrial Electronics,
998–1002, Seattle,Washington, USA, 1995. 52(4):1161–1169, 2005.
E. Levi and M. Wang. A Speed Estimator for High Y. Su, C. Zheng, P. Mueller, and B. Duan. A Simple
Performance Sensorless Control of Induction Motor in Improved Velocity Estimation for Low-Speed Regions
the Field Weakening Region. IEEE Transactions on Based on Position Measurements Only. IEEE Transac-
Power Electronics, 17:365–378, 2002. tions on Control Systems Technologies, 14(5):937–942,
PD McFadden and JD Smith. Vibration monitoring of 2006.
rolling element bearings by the high-frequency reso- M. Tanelli, C. Vecchio, M. Corno, A. Ferrara, and S.M.
nance technique–a review. Tribology International, 17 Savaresi. Traction control for ride-by-wire sport mo-
(1):3–10, 1984. torcycles: A second-order sliding mode approach. In-
T. Ohmae, T. Matsuda, K. Makiyama, and M. Tachikawa. dustrial Electronics, IEEE Transactions on, 56(9):3347–
A Microprocessor Controlled High Accuracy Wide 3356, 2009.
Range Speed Regulator for Motor Drives. IEEE Trans-
actions on Industrial Electronics, IE-29:207–211, 1982.
F.-Z. Peng and T. Fukao. Robust Speed Identification for
Speed Sensorless Vector Control of Induction Motors.
IEEE Transactions on Industry Applications, 30(5):
1234–1240, 1994.
S. Phillips and M. Branicky. Velocity Estimation Using
Quantized Measurements. In IEEE Conference on
Decision and Control, pages 4847–4852, 2003.
A. Proca, A. Keyhani, and A. Akdag. Sensorless Sliding-
mode Control of Induction Motors Using Operating
Condition Dependent Models. IEEE Transactions on
Energy Conversion, 18(2):205–212, 2003.
S.M. Savaresi, C. Poussot-Vassal, C. Spelta, O. Sename,
and L. Dugard. Semi-active Suspension Control Design
for Vehicles. Elsevier (Butterworth-Heinemann), Ox-
ford, UK, 2010.
K. Shi, T. Chan, Y. Wong, and S. Ho. Speed Estimation
on an Induction Motor Drive Using an Optimized Ex-
tended Kalman Filter. IEEE Transactions on Industrial
Electronics, 49:124–133, 2002.
1700