Professional Documents
Culture Documents
Active Noise Control in Headsets by Using A Low-Cost Microcontroller
Active Noise Control in Headsets by Using A Low-Cost Microcontroller
5, MAY 2011
moreover,
L−1
y(n) = wl (n)x(n − l) (2)
l=0
M −1
x (n) = sm (n)x(n − m). (3)
m=0
applications such as battery charging, wireless sensor network, where μ is a learning constant.
uninterruptible power supply, and motorcycle suspension [12]– However, an effective normalized FXLMS is commonly used
[15]. However, research and commercial ANC headsets have to prevent a large learning constant and protect the learning
typically been made using floating-point processing-type DSPs. algorithm against instability associated with large changes in
Accordingly, the overall cost of an ANC headset system is correction term
commonly high. This paper presents the use of a 16-bit mi- μ
crocontroller unit (MCU) as the core of the ANC headset and wl (n + 1) = wl (n) + x (n − l)e(n) (5)
Px (n) + c
designs a modified FANC (MFANC) algorithm to realize an
ANC headset in an MCU. Therefore, the proposed system has l = 0, 1, . . . , L − 1, where the power function is
lower cost because the price of an MCU is only about one-
seventh of that of a DSP. A means of reducing the computation Px (n) = (1 − α)Px (n − 1) + αx2 (n). (6)
time is also presented to reduce processing time and improve
the performance of an ANC headset using an MCU. In (5) and (6), c is a small positive constant and α is close
This article is organized as follows. Section II discusses the to one [9]. (1)–(6) present the FANC system. This method is
basic concept of the FANC system. Section III briefly describes effective when the primary signal cannot easily be obtained in
the differences in the design of ANC headset systems between an ANC system.
DSPs and 16-bit MCUs and analyzes the modified design
of FANC. Section IV presents the experimental results and
verifies the effectiveness of the proposed method. The results III. M ODIFIED FANC H EADSET BASED
in this paper are also compared with those obtained using a ON A M ICROCONTROLLER
commercial headset. Finally, Section V draws conclusions.
An ANC application, such as the headset, is typically real-
ized using a floating-point DSP, because the speed of a high-
II. A DAPTIVE FANC S YSTEM level DSP can reach 1 000 000 instructions/s. The DSP can
perform some very useful functions and instructions quickly,
Fig. 2 presents the basic idea on which a headset with such as convolution, to handle the complex signal processing
FANC is based. In this system, S(z) is the transfer function jobs in DSP. Therefore, noise can be cancelled effectively using
of the secondary path in the ear cup and S (z) is the estimate the FANC algorithm in an ANC system and numerous digital
of the secondary path. The Lth-order adaptive finite-impulse- devices have applications that use DSPs. However, using DSP
response (FIR) filter W (z) uses LMS algorithm to update as its core, an effective commercial ANC headset costs about
its coefficients. It is based on the theory of adaptive control USD$100 ∼ 300—so expensive that ANC headsets are still not
[16]–[19]. The primary noise, antinoise, and residual noise are popular devices.
denoted d(n), y (n), and e(n), respectively. Since the primary This paper presents an ANC headset that uses an MCU in-
noise d(n) is canceled by the antinoise y (n), it is unavailable stead. Although an MCU is cheaper than a DSP, the processing
during the noise cancellation processes. Therefore, the primary speed of an MCU is much slower than a DSP. In general, MCUs
noise that must be estimated before the LMS algorithm can perform only simple applications. The proposed paper utilizes
be implemented in the FANC system. Let sm (n) and m = the modified algorithm to save the computing effort and tries to
0, . . . , M − 1be the coefficients of the M th-order FIR filter realize adaptive systems in time by an MCU. Fig. 3 displays a
S (z), and wl (n) and l = 0, . . . , L − 1be the coefficients of the block diagram of the proposed headset design based on FANC.
Lth-order adaptive filter W (z) at time n; the estimate of the In Fig. 3, the audio signal a(n) and the artificial noise signal
primary noise x(n) is y(n) are sent to the headphone to cancel the unwanted noise
M −1 d(n). An online modeling algorithm is adopted to identify the
x(n) ≡ d (n) = e(n) + sm (n)y(n − m) (1) dynamic equations for the secondary path to avoid unstable
m=0 situations that are associated to the plant fluctuation of ear cup.
1938 IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS, VOL. 58, NO. 5, MAY 2011
Therefore, the small positive constant μ does not cause the TABLE II
COMPUTING TIME OF PROPOSED METHOD BY FIXED-POINT OPERATIONS
quantization of correction terms. For a 16-bit MCU, the range
of sm (n)/μ and wl (n)/μ is [−32 768, 32 767]. Hence, the
coefficients sm (n) and wl (n) are [−32, 32] at μ = 0.001,
which are suitable for the LMS algorithm.
We also modify (8), (10)–(12) in the ANC headset system to
save the computing time, such as
M −1
e2 (n) = e(n)+μ · (Sm (n)/μ) a(n−m) (18)
m=0
TABLE III
M −1 CHARACTERISTICS OF PIC24H AND DSP
x(n) ≡ d (n) = e2 (n)+μ · (sm (n)/μ) y1 (n−m), (19)
m=0
L−1
y(n) = μ · (wl (n)/μ)x(n−l) (20)
l=0
M −1
x (n) = μ · (sm (n)/μ) x(n−m). (21)
m=0
Fig. 7. Spectrum of the residual signal with narrowband noise at 400 Hz, blue:
ANC OFF, red: ANC ON. (a) The commercial headset. (b) Our MCU headset
with MFANC method.
industrial noise, such as fan or engine noise has the main power
at low frequency, we examine the effectiveness of the proposed
paper by reducing narrowband and broadband noises at low
frequency.
Fig. 6. Manikin with a microphone in its ear.
The first experiment indicates the performance of the can-
cellation of narrowband noise. The microphone in the ear of
others of an MCU are all poorer than those of a floating-point manikin is applied to measure the residual noise before and
DSP. However, the price of an MCU is about one-seventh of after ANC. Blue line in Fig. 7(a) represents the noise at 400 Hz
the price of a DSP; therefore, if an MCU in an ANC headset while the red line plots the noise-canceling performance of
can perform as well as a DSP, then, the progress of an effective the commercial ANC headset. The performance of noise can-
ANC headset can be improved. cellation at 400 Hz is approximately 15 dB. Fig. 7(b) plots
A commercial audio headset, PHILIPS SHP2000, is mod- the performance of the novel MCU headset with the MFANC
ified by adding an error microphone to each ear cup as our algorithm. The noise canceling performance at 400 Hz is about
MFANC headset, as presented in Fig. 5. The acoustic plant S(z) 35 dB. The noise canceling result of MCU headset is better than
in the ear cup is learned by the adaptive filter S (z). An Agilent the commercial headset.
35670A Dynamic Spectrum Analyzer is adopted to measure the However, as the frequency of the narrowband noise increases,
performance. A manikin, with a microphone mounted in its ear, the noise-canceling performance of the commercial headset
is employed to monitor the residual noise signal, as displayed in becomes worse. Narrowband noise at 800 Hz is utilized to
Fig. 6. A leading commercial ANC headset, costing USD150, evaluate the performance of both of the headsets. In Fig. 8(a),
is considered for comparison. The orders of both the adaptive the commercial ANC headset cannot cancel the undesired
weighting filter W (z) and the estimated secondary path filter noise, but in Fig. 8(b), the proposed MCU-based ANC headset
S (z) in the proposed design are both 20: L = M = 20. All still cancels the noise at 800 Hz with a performance of around
the initial weights of adaptive filters are randomly initialized 25 dB.
between the range [−0.5, 0.5]. The sampling frequency is In the third experiment, broadband white noise at 250–
10 kHz. The limiter constants ymax = (85)10 and ymin = 300 Hz is used to confirm the performance of commercial and
(−85)10 are decided to avoid overdriving the speaker. proposed ANC headsets. Fig. 9(a) and (b) plot the results thus
In this paper,the performance of a PIC24H MCU in a head- obtained. The noise-canceling performance of the commercial
set that implements the MFANC algorithm is studied using ANC headset is around 10 dB; however, the proposed design
performing various noise cancellation experiments. Because cancels the broadband noise up to 20 dB.
CHANG AND LI: ACTIVE NOISE CONTROL IN HEADSETS BY USING A LOW-COST MICROCONTROLLER 1941
Fig. 10. Spectrum of the residual signal with sound signal at 500 Hz
Fig. 8. Spectrum of the residual signal with narrowband noise at 800 Hz, blue:
and broadband noise at 350 ∼ 400 Hz, blue: ANC OFF, red: ANC ON.
ANC OFF, red: ANC ON. (a) The commercial headset. (b) Our MCU headset
(a) Commercial headset. (b) MCU headset with MFANC method.
with MFANC method.
TABLE IV
NOISE REDUCTION PERFORMANCE OF MCU BASED
AND C OMMERCIAL ANC H EADSETS
viable solution to MCU design. These experiments indicate that [13] H. Guo, K. S. Low, and H. A. Nguyen, “Optimizing the localization of a
both headsets effectively cancel low-frequency noise. wireless sensor network in real time based on a low cost microcontroller,”
IEEE Trans. Ind. Electron., vol. 58, no. 3, pp. 741–749, Mar. 2011.
[14] Z. He and Y. Xing, “Distributed control for UPS modules in parallel oper-
ation with RMS voltage regulation,” IEEE Trans. Ind. Electron., vol. 55,
V. C ONCLUSION no. 8, pp. 2860–2869, Aug. 2008.
[15] F. Baronti, F. Lenzi, R. Roncella, R. Saletti, and O. Di Tanna, “Electronic
This paper describes a MFANC algorithm to realize ANC control of a motorcycle suspension for preload self-adjustment,” IEEE
headsets using a low-cost MCU. Since most ANCs are realized Trans. Ind. Electron., vol. 55, no. 7, pp. 2832–2837, Jul. 2008.
using the floating-point-type DSPs, this investigation develops [16] B. Singh and J. Solanki, “An implementation of an adaptive control al-
gorithm for a three-phase shunt active filter,” IEEE Trans. Ind. Electron.,
an easy but effective means of producing an ANC based on an vol. 56, no. 8, pp. 2811–2820, Aug. 2009.
MCU. Since MCUs are cheap, the cost of such an ANC headset [17] F. D. Freijedo, J. Doval-Gandoy, O. Lopez, P. Fernandez-Comesana, and
is much lower than that of a conventional ANC headset. The C. Martinez-Penalver, “A signal-processing adaptive algorithm for selec-
tive current harmonic cancellation in active power filters,” IEEE Trans.
performance of an ANC headset based on a MCU is compared Ind. Electron., vol. 56, no. 8, pp. 2829–2840, Aug. 2009.
with that of a commercial headset. The proposed technique is [18] K. K. Shyu, M. J. Yang, Y. M. Chen, and Y. F. Lin, “Model reference
very versatile and can be used to support other applications that adaptive control design for a shunt active-power-filter system,” IEEE
Trans. Ind. Electron., vol. 55, no. 1, pp. 97–106, Jan. 2008.
were originally based on a DSP. [19] C. H. Lu and C. C. Tsai, “Adaptive predictive control with recurrent neural
network for industrial processes: An application to temperature control of
a variable-frequency oil-cooling machine,” IEEE Trans. Ind. Electron.,
ACKNOWLEDGMENT vol. 55, no. 3, pp. 1366–1375, Mar. 2008.
[20] The MICROCHIP MCU PIC24H, User’s Manual. Transmission Systems
T. Knoy is appreciated for his editorial assistance. for Communications, Western Electric Co., Winston-Salem, NC, 1985,
3rd ed., pp. 44-60.
R EFERENCES
[1] P. Lueg, “Process of silencing sound oscillations,” U.S. Patent 2043416,
Jun. 9, 1936.
[2] S. M. Kuo and D. R. Morgan, Active Noise Control Systems: Algorithms
Cheng-Yuan Chang was born in Taiwan in 1968.
and DSP Implementation. NewYork: Wiley, 1996.
He received the B.S. and M.S. degrees in control
[3] B. Widrow and S. D. Stearns, Adaptive Signal Processing. Englewood
engineering from National Chiao-Tung University,
Cliffs, NJ: Prentice-Hall, 1985.
Hsinchu, Taiwan, in 1990 and 1994, respectively, and
[4] C. Y. Chang, “Efficient active noise controller using a fixed-point DSP,”
the Ph.D. degree in electrical engineering from Na-
Signal Process., vol. 89, no. 5, pp. 843–850, May 2009.
tional Central University, Jhongli, Taiwan, in 2000.
[5] A. Carini and G. L. Sicuranza, “Optimal regularization parameter of the
From 1994 to 2007, he was with the Department
multichannel filtered-x affine projection algorithm,” IEEE Trans. Signal
of Electronic Engineering, Ching Yun University,
Process., vol. 55, no. 10, pp. 4882–4895, Oct. 2007.
Jhongli, Taiwan. He is currently a Professor and
[6] E. P. Reddy, D. P. Das, and K. M. M. Prabhu, “Fast adaptive algorithms for
Chair of the Department of Electrical Engineering,
active control of nonlinear noise processes,” IEEE Trans. Signal Process.,
Chung Yuan Christian University, Jhongli, Taiwan.
vol. 56, no. 9, pp. 4530–4536, Sep. 2008.
His research interests are in the area of active noise control applications, fuzzy
[7] D. Zhou and V. DeBrunner, “A new active noise control algorithm that
neural controller design, GA algorithm, and nonlinear crane tracking controller
requires no secondary path identification based on the SPR property,”
design.
IEEE Trans. Signal Process., vol. 55, no. 5, pp. 1719–1729, May 2007.
[8] J. H. Lin, P. C. Li, S. T. Tang, P. T. Liu, and S. T. Young, “Industrial
wideband noise reduction for hearing aids using a headset with adaptive-
feedback active noise cancellation,” Med. Biol. Eng. Comput., vol. 43,
no. 6, pp. 739–745, Nov. 2005.
[9] W. S. Gan and S. M. Kuo, “An integrated audio active noise control Sheng-Ting Li was born in Taiwan in 1982. He re-
headsets,” IEEE Trans. Consum. Electron., vol. 48, no. 2, pp. 242–247, ceived the B.S. degree from Minghsin University of
May 2002. Science and Technology, Hsinchu, Taiwan, in 2004,
[10] S. M. Kuo, S. Mitra, and W. S. Gan, “Active noise control system for and the M.S. degree from Chung Yuan Christian Uni-
headphone applications,” IEEE Trans. Control Syst. Technol., vol. 14, versity, Jhongli, Taiwan, in 2009, both in electrical
no. 2, pp. 331–335, Mar. 2006. engineering.
[11] Y. Song, Y. Gong, and S. M. Kuo, “A robust hybrid feedback active noise From 2004 to present, he is an excellent Electronic
cancellation headset,” IEEE Trans. Speech Audio Process., vol. 13, no. 4, Engineer at Teco Image System Corporation, Ltd.,
pp. 607–617, Jul. 2005. Taoyuan, Taiwan. He is proficient in hardware circuit
[12] J. H. Lee, H. S. Bae, and B. H. Cho, “Resistive control for a photo- design, PCB board layout, and good at MCU/DSP
voltaic battery charging system using a microcontroller,” IEEE Trans. Ind. control. His research interests are in the area of
Electron., vol. 55, no. 7, pp. 2767–2775, Jul. 2008. intelligent control applications and active noise control system.