# Harmonic Elimination

336 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 22, NO. 1, JANUARY 2007 Modulation-Based Harmonic Elimination Jason R.

**Harmonic Elimination**specifically for you

Wells, Member, IEEE, Xin Geng, Student Member, IEEE, Patrick L. Chapman, Senior Member, IEEE, Philip T. Krein, Fellow, IEEE, and Brett M. Nee, Student Member, IEEE Abstract—A modulation-based method for generating pulse waveforms with selective harmonic elimination is proposed. Harmonic elimination, traditionally digital, is shown to be achievable by comparison of a sine wave with modi? d triangle carrier. The method can be used to calculate easily and quickly the desired waveform without solution of coupled transcendental equations. Index Terms—Pulsewidth modulation (PWM), selective harmonic elimination (SHE). I. INTRODUCTION S ELECTIVE harmonic elimination (SHE) is a long-established method of generating pulsewidth modulation (PWM) with low baseband distortion [1]–[6]. Originally, it was useful mainly for inverters with naturally low switching frequency due to high power level or slow switching devices.

Conventional sine-triangle PWM essentially eliminates baseband harmonics for frequency ratios of about 10:1 or greater [7], so it is arguable that SHE is unnecessary. However, recently SHE has received new attention for several reasons. First, digital implementation has become common. Second, it has been shown that there are many solutions to the SHE problem that were previously unknown [8]. Each solution has different frequency content above the baseband, which provides options for ? attening the high-frequency spectrum for noise suppression or optimizing ef? iency. Third, some applications, despite the availability of high-speed switches, have low switching-to-fundamental ratios. One example is high-speed motor drives, useful for reducing mass in applications like electric vehicles [9]. SHE is normally a two-step digital process. First, the switching angles are calculated of? ine, for several depths of modulation, by solving many nonlinear equations simultaneously. Second, these angles are stored in a look-up table to be read in real time. Much prior work has focused on the ? st step because of its computational dif? culty. One possibility is to replace the Fourier series formulation with another orthonormal set based on Walsh functions [10]–[12]. The resulting equations are more tractable due to the similarities between the rectangular Walsh function and the desired waveform. Another orthonormal set approach based on block-pulse functions is presented in [13]. In [14]–[20], it is observed that Manuscript received August 2, 2006; revised September 11, 2006.

This work was supported by the Grainger Center for Electric Machines and Electromechanics, the Motorola Center for Communication, the National Science Foundation under Contract NSF 02-24829, the Electric Power Networks Ef? ciency, and the Security (EPNES) Program in cooperation with the Of? ce of Naval Research. Recommended for publication by Associate Editor J. Espinoza. J. R. Wells is with P. C. Krause and Associates, Hentschel Center, West Lafayette, IN 47906 USA. X. Geng, P. L. Chapman, P. T. Krein, and B. M.

Nee are with the Grainger Center for Electric Machines and Electromechanics, University of Illinois at Urbana-Champaign, Urbana, IL 61801 USA (e-mail: [email protected] edu). Digital Object Identi? er 10. 1109/TPEL. 2006. 888910 the switching angles obtained traditionally can be represented as regular-sampled PWM where two phase-shifted modulating waves and a “pulse position modulation” technique achieve near-ideal elimination. Another approximate method is posed by [21] where mirror surplus harmonics are used. This involves solving multilevel elimination by considering reduced harmonic elimination waveforms in each switching level.

In [22], a general-harmonic-families elimination concept simpli? es a transcendental system to an algebraic functional problem by zeroing entire harmonic families. Faster and more complete methods have also been researched. In [23], an optimal PWM problem is solved by converting to a single univariate polynomial using Newton identities, Pade approximation theory, and symmetric function properties, which . If a few can be solved with algorithms that scale as O solutions are desired, prediction of initial guess values allows rapid convergence of Newton iteration [24].

Genetic algorithms can be used to speed the solution [25], [26]. An approach that guarantees all solutions ? t a narrowly posed SHE problem transforms to a multivariate polynomial system [27]–[30] through trigonometric identities [31] and solves with resultant polynomial theory. Another approach [32]–[34] that obtains all solutions to a narrowly-posed problem uses homotopy and continuation theory. Reference [35] points out the exponentially growing nature of the problem and proposes the “simulated annealing” method as a way to rapidly design the waveform for optimizing distortion and switching loss.

Another optimization-based approach is given in [36] and [37], where harmonics are minimized through an objective function to obtain good overall harmonic performance. There have been several multilevel and approximate real-time methods proposed; these are beyond the scope here but discussed brie? y in [38]. This manuscript proposes an alternative real-time SHE method based on modulation. A modi? ed triangle carrier is identi? ed that is compared to an ordinary sine wave. In place of the conventional of? ine solution of switching angles, the process simpli? s to generation and comparison of the carrier and sine modulation, which can be done in minimal time without convergence or precision concerns. The method does not require an initial guess. In contrast to other SHE methods, the method does not restrict the switching frequency to an integer multiple of the fundamental. The underlying idea was proposed in [39] but has been re? ned here to identify speci? c carrier requirements that exactly eliminate harmonics and improve performance in deeper modulation. The method involves a function of modulation depth that is derived from simulation and curve ? ting. In this respect, it has some similarity to [15] and [16], in which approximate switching angles are calculated and ? tted to simple functions for cases of both low-( 0. 8 p. u. ) and high-modulation depth. It is interesting that the proposed approach connects modulation to a harmonic elimination process. Carrier waveform mod- 0885-8993/$25. 00 © 2007 IEEE IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 22, NO. 1, JANUARY 2007 337 Fig. 1. Direct calculation of the phase modulation function at various modulation depths with ? rst through 109th harmonics controlled.

Fig. 2. Direct calculation of the phase modulation function at various modulation depths with ? rst through 177th harmonics controlled. i? cation is common in other PWM work, as in switching frequency randomization intended to reduce high-frequency components. A detailed review is outside the scope, but one discussion is given in [40]. The proposed technique is not a variation of random-frequency carriers. Instead, the carrier waveform is modi? ed in a speci? c and deterministic way to bring about a certain effect. The proposed method is readily implemented in real time.

The switching signals themselves can be generated by analog comparison, while the modi? ed carrier is generated with fast digital calculation and digital-to-analog conversion. Hardware demonstration is provided here. An approximate, low-cost implementation based on present-day hardware is given in [41], but further re? nement is needed for precise elimination. II. SIGNAL DEFINITIONS AND SIMULATED RESULTS Consider a quasi-triangular waveform to be used as the carrier signal in a PWM implementation. In principle, the frequency and phase can be modulated.

To represent this, consider a triangular carrier function written as (1) where is the base switching frequency, is a phase-mod0, (1) reulation signal, and is a static phase shift. For duces to an ordinary triangle wave based on conventional quadrant de? nitions of the inverse cosine function. The modulating where signal will be represented as is the depth of modulation. The pulsewidth-modulated signal, , is 1 if and 1, otherwise. 2 In [39], a phase modulation function is considered, where is the desired output fundamental fre, but dequency. This was shown to approach SHE at low 0. . To determine a better phase-modulagrades above tion function, the pattern of switching angles that occurs was investigated. Fig. 1 shows the phase modulation values needed for various with harmonics 1–109 conversus angle trolled. Fig. 2 shows the same with harmonics 1–177 controlled. Many other sets of controlled harmonics were tested with similar results. The pattern looks much like a shockwave pattern that can be modeled with the Bessel–Fubini equation from nonlinear acoustics [42] (2) where is a Bessel function of the ? rst kind. The natural is in? ity in principle, but for calculation purposes number 15 or higher is usually suf? cient, as discussed below. The and have been determined by curve functions ? tting as (3) 1. and (4), shown at the bottom of the page, where 0 Fig. 3 shows a closeup view of a PWM waveform generated as in (2). Nineteen harmonics are with a carrier that uses 0. 95. The waveform is compared controlled with a (high) to one generated with conventional elimination by numerical solution of nonlinear equations. As can be seen, the switching edges match well. Fig. 4 shows a full-period time waveform and a magnitude 11.

With spectrum [fast Fourier transform (FFT)] for this switching frequency ratio, the method eliminates harmonics two through ten (even harmonics are zero by symmetry). The 2 and the modulation depth carrier phase shift is set to 1. The spectrum con? rms the desired elimination. is 0. This value Fig. 5 shows the same study except with also achieves satisfactory baseband performance, but with a different pulse pattern. The pattern provides slight differences in higher-order harmonics. For example, the 11th and 13th harto . monics vary 2%–3% in magnitude as is varied from (4) 338

IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 22, NO. 1, JANUARY 2007 Fig. 3. Conventional harmonic elimination waveform and proposed PWM 0. 95, harmonics controlled through the 19th). waveform (m = Fig. 5. Pulse waveform p, message signal m, and magnitude of pulse waveform 1, and ‘ 0. spectrum for ! =! 11, m = = = Fig. 4. Pulse waveform p, message signal m, and magnitude of pulse waveform spectrum for ! =! 11, m 1, and ‘ =2. = = = In these cases, all baseband harmonics are eliminated. In three-phase systems, triplen harmonics may cancel in the currents automatically if neutral current does not ? w. Therefore it is not always necessary to eliminate them by design in the SHE process. Modulation-based harmonic elimination excluding triplen harmonics is similar in many respects to the case here. However, the phase-modulation functions resemble piecewise polynomials rather than the shockwave form of Figs. 1 and 2. This is discussed in detail in [38]. The speed of calculating these waveforms is dictated by , the number of terms to keep in the series (2), and , the number of discrete points used to approximate the waveforms. A personal computer (1. 86-GHz Intel M Processor with 1. -GB RAM) running MATLAB on Windows XP was used to carry out the calculations. First, a modi? ed triangle wave was ap100 000 points per cycle, the modulation proximated with 1, and a frequency ratio of 19 was used. depth was set to was varied from ? ve to 35. Over this range, the The number quality of solution was acceptable and the average calculation time varied from 0. 327 to 0. 915 s. Next, the same conditions 35 and was varied from 10 000 were used with except to 200 000. The average calculation time varied almost linearly from 0. 149 to 1. 78 s with no signi? cant difference in the resulting spectrum.

Finally, with held constant at 100 000, the frequency ratio was varied from seven to 51. The average calculation time was consistently near 0. 92 s. This is expected since the number of harmonics eliminated has no scaling effect in (2). However, for larger frequency ratios, larger may be needed for precision. In summary, it is recommended that be set to at least 1,000 the frequency ratio and set to at least 15. In any case, with present-day personal computers the solution can be calculated in less than 1 s (typically) without iteration, divergence, or need for an initial estimate, and reduced versions can be computed in less than 200 ms.

Notice that this time interval need not cause trouble with real-time implementations. The carrier only needs to be recomputed with the modulation signal changes. In applications such as uninterruptible supplies, this is infrequent. In motor-drive applications, a response time of 200 ms to a command change may be acceptable as is. Alternatively, a look-up table can store some of the relevant terms to speed up the process dramatically. Dedicated DSP Please de? ne DSPalgorithms will be much faster than PC computations based on MATLAB. III. EXPERIMENTAL EXAMPLES To show that the proposed technique satisfactorily eliminates harmonics, the modi? d carrier was programmed into a function generator. The output provided a carrier signal in a conventional sine-triangle process. Three examples are shown below to reveal a range of interesting conditions. Fig. 6 shows the resulting waveforms for a high-depth case 0, and 0. 95. The with nineteen harmonics eliminated, and are shown at frequency ratio is 21:1. The signals the top, followed by the PWM waveform and the FFT spectrum. From the spectrum it can be seen that the desired harmonic-free baseband spectrum is achieved. In the next example, the phase 2.

The unexpected result was that the spectrum shift is was insensitive to , as shown in comparison to Fig. 7. The desired spectrum occurs despite the difference in carriers. The resulting PWM waveforms at various values of may not offer obvious advantages, but it is noteworthy that they are not the same as conventionally computed SHE waveforms and would not be achievable with conventional SHE solution techniques. As another example, it is shown that the carrier base fre, need not be an odd multiple of . In Fig. 8, the frequency, IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 22, NO. 1, JANUARY 2007 339 Fig. . Experimental modulation-based SHE with ! ‘ 0. = =! = 21, m = 0. 95, Fig. 9. Experimental modulation-based SHE with ! ‘ 0. = =! = 13. 5, m = 0. 95, Fig. 7. Experimental modulation-based SHE with ! ‘ =2. = =! = 21, m = 0. 95, Fig. 10. Experimental modulation-based SHE with ! ‘ 0. = =! = 50, m = 0. 95, The last example, shown in Fig. 10, applies to a case where a high number of harmonics is eliminated (50 1 ratio) effectively, which is much higher than typically are reported in the literature. IV. CONCLUSION A method for calculating and implementing SHE switching angles was proposed and demonstrated.

The method is based on modulation rather than solution of nonlinear equations or numerical optimization. The approach is based on a modi? ed carrier waveform that can be calculated based on concise functions requiring only depth of modulation as input. It rapidly calculates the desired switching waveforms while avoiding iteration and initial estimates. Calculation time is insensitive to the switching frequency ratio so elimination of many harmonics is straightforward. It is conceivable the technique could be realized with low-cost microcontrollers for real-time implementation.

Once the carrier is computed, a conventional carrier-modulator comparison process produces switching instants in real time. REFERENCES [1] F. G. Turnbull, “Selected harmonic reduction in static dc-ac inverters,” IEEE Trans. Commun. Electron. , vol. CE-83, pp. 374–378, Jul. 1964. Fig. 8. Experimental modulation-based SHE with ‘ 0. = ! =! = 20, m = 1. 0, quency ratio is adjusted to be 20:1, with 0, and now 1. 0. The same nineteen harmonics are eliminated, but now the switching frequency is 5% lower. Intervals during which the carrier waveform is not triangular can be seen in the ? gure. As shown in Fig. , the frequency ratio can also be a half-in0. 95 and 0. teger. In this case, the ratio is 13. 5:1, 340 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 22, NO. 1, JANUARY 2007 [2] H. S. Patel and R. G. Hoft, “Generalized techniques of harmonic elimination and voltage control in thyristor inverters: part I-harmonic elimination,” IEEE Trans. Ind. Appl. , vol. IA-9, no. 3, pp. 310–317, May/ Jun. 1973. [3] ——, “Generalized techniques of harmonic elimination and voltage control in thyristor inverters: part II-voltage control techniques,” IEEE Trans. Ind. Appl. , vol. IA-10, no. 5, pp. 666–673, Sep. /Oct. 1974. [4] I.

J. Pitel, S. N. Talukdar, and P. Wood, “Characterization of programmed-waveform pulsewidth modulation,” IEEE Trans. Ind. Appl. , vol. IA-16, no. 5, pp. 707–715, Sep. /Oct. 1980. [5] ——, “Characterization of programmed-waveform pulse-width modulation,” in Proc. IEEE Ind. Appl. Soc. Annu. Meeting, 1979, pp. 375–382. [6] P. N. Enjeti, P. D. Ziogas, and J. F. Lindsay, “Programmed PWM techniques to eliminate harmonics: a critical evaluation,” IEEE Trans. Ind. Appl. , vol. 26, no. 2, pp. 302–316, Mar. /Apr. 1990. [7] D. G. Holmes and T. A. Lipo, Pulse Width Modulation for Power Converters Principles and Practice.

Hoboken, NJ: IEEE Press, 2003. [8] J. R. Wells, B. M. Nee, P. L. Chapman, and P. T. Krein, “Selective harmonic control: a general problem formulation and selected solutions,” IEEE Trans. Power Electron. , vol. 20, no. 6, pp. 1337–1345, Nov. 2005. [9] P. L. Chapman and P. T. Krein, “Motor re-rating for traction applications—? eld weakening revisited,” in Proc. IEEE Int. Elect. Mach. Drives Conf. , 2003, pp. 1391–1398. [10] T. J. Liang and R. G. Hoft, “Walsh function method of harmonic elimination,” in Proc. IEEE Appl. Power Electron. Conf. , 1993, pp. 847–853. [11] T. -J. Liang, R. M. O’Connell, and R.

G. Hoft, “Inverter harmonic reduction using Walsh function harmonic elimination method,” IEEE Trans. Power Electron. , vol. 12, no. 6, pp. 971–982, Nov. 1997. [12] F. Swift and A. Kamberis, “A new Walsh domain technique of harmonic elimination and voltage control in pulse-width modulated inverters,” IEEE Trans. Power Electron. , vol. 8, no. 2, pp. 170–185, Apr. 1993. [13] J. Nazarzadeh, M. Razzaghi, and K. Y. Nikravesh, “Harmonic elimination in pulse-width modulated inverters using piecewise constant orthogonal functions,” Elect. Power Syst. Res. , vol. 40, pp. 45–49, 1997. [14] S. R. Bowes and P.

R. Clark, “Simple microprocessor implementation of new regular-sampled harmonic elimination PWM techniques,” in Proc. IEEE Ind. Appl. Soc. Annu. Meeting, 1990, pp. 341–347. [15] ——, “Transputer-based harmonic-elimination PWM control of inverter drives,” IEEE Trans. Ind. Appl. , vol. 28, no. 1, pp. 72–80, Jan. /Feb. 1992. [16] ——, “Simple microprocessor implementation of new regular-sampled harmonic elimination PWM techniques,” IEEE Trans. Ind. Appl. , vol. 28, no. 1, pp. 89–95, Jan. /Feb. 1992. [17] ——, “Regular-sampled harmonic-elimination PWM control of inverter drives,” IEEE Trans.

Power Electron. , vol. 10, no. 5, pp. 521–531, Sep. 1995. [18] S. R. Bowes, “Advanced regular-sampled PWM control techniques for drives and static power converters,” IEEE Trans. Ind. Electron. , vol. 42, no. 4, pp. 367–373, Aug. 1995. [19] S. R. Bowes, S. Grewal, and D. Holliday, “Single-phase harmonic elimination PWM,” Electron. Lett. , vol. 36, pp. 106–108, 2000. [20] S. R. Bowes and S. Grewal, “Novel harmonic elimination PWM control strategies for three-phase PWM inverters using space vector techniques,” Proc. Inst. Elect. Eng. , vol. 146, pp. 495–514, 1999. [21] L. Li, D. Czarkowski, Y.

Liu, and P. Pillay, “Multilevel selective harmonic elimination PWM technique in series-connected voltage inverters,” IEEE Trans. Ind. Appl. , vol. 36, no. 1, pp. 160–170, Jan. /Feb. 2000. [22] P. Bolognesi and D. Casini, “General harmonic families elimination methodology for static converters control,” in Proc. Int. Conf. Power Electron. Var. Speed Drives, 1998, pp. 86–91. [23] D. Czarkowski, D. V. Chudnovsky, G. V. Chudnovsky, and I. W. Selesnick, “Solving the optimal PWM problem for single-phase inverters,” IEEE Trans. Circuits Syst. I, vol. 49, no. 4, pp. 465–475, Apr. 2002. [24] J.

Sun and H. Grotstollen, “Solving nonlinear equations for selective harmonic eliminated PWM using predicted initial values,” in Proc. Int. Conf. Ind. Electron. , Contr. , Instrum. , Automat. , 1992, pp. 259–264. [25] A. I. Maswood, S. Wei, and M. A. Rahman, “A ? exible way to generate PWM-SHE switching patterns using genetic algorithm,” in Proc. IEEE Appl. Power Electron. Conf. , 2001, pp. 1130–1134. [26] B. Ozpineci, L. M. Tolbert, and J. N. Chiasson, “Harmonic optimization of multilevel converters using genetic algorithms,” in Proc. IEEE Power Electron. Spec. Conf. , 2004, pp. 3911–3916. 27] J. Chiasson, L. Tolbert, K. McKenzie, and D. Zhong, “Eliminating harmonics in a multilevel converter using resultant theory,” in Proc. IEEE Power Electron. Spec. Conf. , 2002, pp. 503–508. [28] J. N. Chiasson, L. M. Tolbert, K. J. McKenzie, and Z. Du, “A complete solution to the harmonic elimination problem,” IEEE Trans. Power Electron. , vol. 19, no. 2, pp. 491–499, Mar. 2004. [29] J. Chiasson, L. M. Tolbert, K. McKenzie, and Z. Du, “Elimination of harmonics in a multilevel converter using the theory of symmetric polynomials and resultants,” in Proc. IEEE Conf. Dec. Contr. , 2003, pp. 507–3512. [30] J. N. Chiasson, L. M. Tolbert, K. J. McKenzie, and Z. Du, “Control of a multilevel converter using resultant theory,” IEEE Trans. Contr. Syst. Technol. , vol. 11, no. 3, pp. 345–354, May 2003. [31] J. Sun and H. Grotstollen, “Pulsewidth modulation based on real-time solution of algebraic harmonic elimination equations,” in Proc. Int. Conf. Ind. Electron. , Contr. Instrum. , 1994, pp. 79–84. [32] T. Kato, “Sequential homotopy-based computation of multiple solutions for selected harmonic elimination in PWM inverters,” IEEE Trans. Circuits Syst. I, vol. 46, no. 5, pp. 86–593, May 1999. [33] J. Sun, S. Beineke, and H. Grotstollen, “Optimal PWM based on realtime solution of harmonic elimination equations,” IEEE Trans. Power Electron. , vol. 11, no. 4, pp. 612–621, Jul. 1996. [34] Y. -X. Xie, L. Zhou, and H. Peng, “Homotopy algorithm research of the inverter harmonic elimination PWM model,” in Proc. Chin. Soc. Elect. Eng. , 2000, vol. 20, pp. 23–26. [35] S. R. Shaw, D. K. Jackson, T. A. Denison, and S. B. Leeb, “Computeraided design and application of sinusoidal switching patterns,” in Proc. IEEE Workshop Comput. Power Electron. , 1998, pp. 185–191. [36] V. G.

Agelidis, A. Balouktsis, and I. Balouktsis, “On applying a minimization technique to the harmonic elimination PWM control: the bipolar waveform,” IEEE Power Electron. Lett. , vol. 2, no. 2, pp. 41–44, Jun. 2004. [37] V. G. Agelidis, A. Balouktsis, and C. Cosar, “Multiple sets of solutions for harmonic elimination PWM bipolar waveforms: analysis and experimental veri? cation,” IEEE Trans. Power Electron. , vol. 21, no. 2, pp. 415–421, Mar. 2006. [38] J. R. Wells, “Generalized Selective Harmonic Control,” Ph. D. dissertation, Univ. Illinois, Urbana, 2006. [39] P. T. Krein, B. M. Nee, and J. R.

Wells, “Harmonic elimination switching through modulation,” in Proc. IEEE Workshop Comput. Power Electron. , 2004, pp. 123–126. [40] A. M. Stankovic, G. C. Verghese, and D. J. Perreault, “Analysis and synthesis of randomized modulation schemes for power converters,” IEEE Trans. Power Electron. , vol. 10, no. 6, pp. 680–693, Nov. 1995. [41] M. J. Meinhart, “Microcontroller Implementation of Modulation-Based Selective Harmonics Elimination,” M. S. thesis, Univ. Illinois, Urbana, 2006. [42] B. En? o and C. Hedberg, Theory of Nonlinear Acoustics in Fluids. Dordrecht, The Netherlands: Kluwer, 2002.