Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Abstract—The injection of low-harmonic current to the elec- and implementation. As an alternative, linear control schemes
trical grid is nowadays regulated by international standards. In with resonant harmonic compensators have been extensively
order to accomplish these standards, selective harmonic compen- used [19]–[33]. Good enough results are given by these control
sation is carried out in grid-connected photovoltaic inverters by
means of resonant harmonic compensators. This paper gives a algorithms in single-phase and three-phase grid-connected PV
systematic design procedure for selecting the gains and parame- inverters [19]–[24]. Moreover, this selective harmonic compen-
ters of these harmonic compensators. Other factors considered in sation approach has been successfully applied in other non-
the design process include frequency deviation, grid synchroniza- PV applications, such as active pulsewidth modulation (PWM)
tion, and transient response. Both a design example meeting the rectifiers [25], active power filters [26]–[29], uninterruptible
requirements of grid interconnection and selected experimental
results from a digital-signal-processor-based laboratory prototype power supplies [30]–[32], and dynamic voltage restorers [33].
are also reported. Selective harmonic compensation with linear control
schemes is now a mature control technology. It consists of
Index Terms—Current harmonic content, grid-connected in-
verter, linear current regulator, photovoltaic (PV) power system. a bank of generalized integrators, i.e., second-order bandpass
filters tuned to resonate at a predefined frequency. In fact, each
I. I NTRODUCTION generalized integrator is responsible for the attenuation of an
individual grid-current harmonic. Ideal generalized integrators
TABLE I
REQUIREMENTS FOR SINGLE-PHASE GRID-CONNECTED PV INVERTERS
From Fig. 1, the duty cycle dynamics can be modeled as G6 (s)H1 (s)P W M (s)Gd (s)
G9 (s) = . (23)
1 + T (s)
d(s) = [H1 (s)iref (s) − HS (s)ii (s)] P W M (s)Gd (s) (17)
The PV-system loop gain T (s) can be written as
where HS (s) = H1 (s) + H2 (s), and P W M (s) and Gd (s)
are the transfer functions of the PWM modulator and the T (s) = G3 (s) (H1 (s) + H2 (s)) P W M (s)Gd (s). (24)
control processing delay, respectively. These functions can be
written as
1 IV. C ONTROL D ESIGN C ONSIDERATIONS
P W M (s) = (18)
Vm This section examines the fundamental transfer functions
−Td s derived above and discusses the effects of K, ξ, and h on
Gd (s) = e (19)
the inverter performance. The analysis is based on the inverter
with Vm and Td the amplitude of the PWM triangular signal parameter values listed in Table II. It is worth mentioning
and the computational delay time of one sampling period, that these parameters have been extracted from the laboratory
respectively [21], [28]. prototype.
CASTILLA et al.: CONTROL DESIGN GUIDELINES FOR PV INVERTERS WITH HARMONIC COMPENSATORS 4495
Fig. 2. Bode diagram of the harmonic compensator H1 (s) with (a) constant damping factor ξ, (b) constant harmonic gain K, and (c) constant product Kξ.
Fig. 4. Bode diagram of (a) loop gain T (s), (b) grid voltage to grid current transfer function G8 (s), and (c) reference signal to grid current transfer function
G9 (s). Damping factor ξ = 0.003, and harmonic gain K = 20.
C. Grid Voltage Synchronization Fig. 6 basically shows two design curves for the K gain. Both
curves define the limit values of K that meet the phase margin
The resonant harmonic compensators give an excellent har-
requirements for the grid inductance deviation (see Table I). In
monic rejection capability, as shown in Fig. 4. For that reason,
particular, with K = 80, the phase margin is 60◦ at stiff grid and
the reference signal is simply generated as
52.9◦ at weak grid. Moreover, with K = 375, the phase margin
iref = kout vgrid (25) is 41.5 at stiff grid and 30◦ at weak grid. Therefore, from the
phase margin requirement, the value of K should belong to the
where kout is the output of the slow external dc-link voltage range 80 < K < 375.
loop. The design of this loop has been widely described in the Taking in mind that the phase margin is seriously affected
literature and will therefore not be considered here [2], [23]. by the grid inductance, a high value of K value is preferable
Thus, kout is viewed as a constant sensing factor. in order to obtain a fast transient response in the presence of
In that case, in which no phase deviation exist between the voltage sags and short-time interruptions.
reference signal and the grid voltage, the phase of the transfer
function G9 (s) at the grid frequency can be directly identified
as the power factor angle ϕ. Fig. 5 shows design curves for E. Current Harmonic Rejection
this parameter including the specified limit of ±2.6◦ . Note
that the grid synchronization deteriorates as ξ and h increase, The harmonic rejection capability of the resonant harmonic
particularly for maximum grid frequency (51 Hz). In particular, compensators has been described above (see Fig. 4). Some
the maximum values meeting the requirements of Table I are additional design considerations are detailed here once the
ξ = 0.0085 and h = 7. In fact, the design of h at its highest selection of ξ, h, and K has been widely discussed.
value is desirable in order to improve the harmonic attenuation. The attenuation of a generic current harmonic is mainly
However, for ξ, the lowest value is preferable for accurate governed by the magnitude of the grid voltage to grid current
grid synchronization. From a theoretical point of view, the transfer function G8 (s) at the frequency nωo . The shape of
minimum value of ξ is zero. The control scheme, however, this function, furthermore, is modulated by the phase margin,
does not properly work with ξ = 0 due to the compensators are as Fig. 7 clearly shows. For the lower phase margin, lower
given by H1 (s) = 0 and H2 (s) = 1. From a practical point of magnitude of G8 (s) is given so that higher current harmonic
view, we assume a minimum value of ξ = 0.001. An accurate attenuation is expected. It is worth mentioning that the low
representation of the compensators H1 (s) and H2 (s) is also G8 (s) magnitude is obtained in nearly all the frequency range
possible with lower practical values of ξ but at the expense of interest. In view of that, we can conclude that low phase
of increasing the computational load of the fixed-point DSP margin values are preferable for both fast transient response and
platform due to an increase of the required precision on the low-current harmonic injection.
bandpass filter algorithms. As it was shown in Fig. 2(c), when the product Kξ is main-
tained constant, the Bode diagrams of the compensator H1 (s)
overlap for practically all frequencies, except for a narrow
D. Sensitivity to Grid-Impedance Variation
range around the grid frequency. This interesting property is
The grid inductance has a significant impact on the phase shared by all the transfer functions that include low-bandwidth
margin. As a general rule, the phase margin deteriorates as the generalized integrators. In the case of the loop gain T (s), when
grid inductance increases. Fig. 6 clearly shows this fact. the product Kξ is constant, the magnitude and phase diagrams
CASTILLA et al.: CONTROL DESIGN GUIDELINES FOR PV INVERTERS WITH HARMONIC COMPENSATORS 4497
Fig. 7. Bode diagram of grid voltage to grid current transfer function G8 (s)
with highest resonant filter h = 7 and stiff grid situation.
TABLE III
SOLUTION TO THE DESIGN EXAMPLE
Fig. 9. Experimental grid voltage and current using the highest harmonic filter
Fig. 8. Experimental grid voltage and current using the control parameters h = 13. Weak grid situation with high-voltage distortion (THD = 8.6%) and
shown in Table III. (a) Stiff grid situation with medium voltage distortion frequency deviation. (a) fo = 49 Hz. (b) fo = 51 Hz.
(THD = 4.1%) and nominal frequency. (b) Weak grid situation with high-
voltage distortion (THD = 8.6%) and frequency deviation (fo = 51 Hz).
worse case condition and compared with the specified standard oratory utility grid to emulate normal operation, i.e., stiff grid
limits. This last design step is carried out below. situation with medium voltage distortion (THD = 4.1%) and
nominal frequency (fo = 50 Hz). Next, the prototype was con-
VI. E XPERIMENTAL R ESULTS nected to an AGILENT programmable ac source to emulate ab-
normal conditions. A weak grid situation with Lgwk = 3.3 mH
This section verifies experimentally the proposed control and rgwk = 1.5 Ω was emulated by means of the ac source
design procedure. A complete set of measures including grid output impedance. High-voltage distortion (THD = 8.6%) was
synchronization, harmonic distortion, and transient response is generated by clamping the sinusoidal output voltage waveform.
reported. Periodic voltage sags and grid frequency deviations were easily
reproduced with the ac source. Selected experimental results
A. Laboratory Prototype and Test Setup from these tests are reported and discussed below.
The grid-connected PV inverter shown in Fig. 1 has been
built using a 4.5-kVA SEMIKRON full-bridge inverter and a
B. Grid Synchronization
fixed-point TMS320F2812 DSP control platform. The inverter
uses insulated gate bipolar transistor switches operating at The PV inverter has good grid synchronization using the
18-kHz switching frequency and with unipolar PWM modula- control solution listed in Table III. Fig. 8 shows this capability
tion. The control scheme has been programmed and translated for two test conditions. In both cases, the phase deviation
into the DSP platform. The discrete version of the resonant between the grid voltage and current meet the power factor
compensators (1) and (2) has been derived using the Tustin angle requirement shown in Table I.
transformation, with a sampling frequency of 18 kHz. An The control parameters ξ and h have a significant effect on
isolated voltage sensor is used to measure the grid voltage the power factor angle ϕ, particularly when the grid frequency
vgrid . In that case, the gain kout expressed in (25) takes the deviates from its nominal value (see Fig. 5). This issue is
value kout = 26.9 mA/V. A Hall current sensor is employed to corroborated by the experimental results shown in Fig. 9. As it
measure the inverter current ii . A complete list of the laboratory can be seen, using h = 13 (the design solution is h = 7), a high
prototype parameters is given in Tables II and III. phase deviation between the grid voltage and current is obtained
An extensive set of experiments was carried out. First, the for fo = 49 Hz and fo = 51 Hz. Both deviations widely exceed
output of the experimental prototype was connected to the lab- the specifications listed in Table I.
CASTILLA et al.: CONTROL DESIGN GUIDELINES FOR PV INVERTERS WITH HARMONIC COMPENSATORS 4499
Fig. 10. Measured grid current harmonic spectra using the control parameters shown in Table III. Nominal frequency with (a) stiff grid and (b) weak grid. Weak
grid with frequency deviation (c) fo = 49 Hz and (d) fo = 51 Hz.
R EFERENCES
[1] S. B. Kjaer, J. K. Pedersen, and F. Blaabjerg, “A review of single-phase
grid-connected inverters for photovoltaic modules,” IEEE Trans. Ind.
Appl., vol. 41, no. 5, pp. 1292–1306, Sep./Oct. 2005.
[2] J. M. Carrasco, L. Garcia Franquelo, J. T. Bialasiewicz, E. Galván,
R. C. Portillo Guisado, M. A. Martín Prats, J. I. León, and
N. Moreno Alfonso, “Power-electronic systems for the grid integration of
renewable sources: A survey,” IEEE Trans. Ind. Electron., vol. 53, no. 4,
pp. 1002–1016, Jun. 2006.
[3] N. Femia, G. Lisi, G. Petrone, G. Spagnuolo, and M. Vitelli, “Dis-
tributed maximum power point tracking of photovoltaic arrays: Novel
approach and system analysis,” IEEE Trans. Ind. Electron., vol. 55, no. 7,
pp. 2610–2621, Jul. 2008.
[4] F. Liu, S. Duan, F. Liu, B. Liu, and Y. Kang, “A variable step size INC
MPPT method for PV systems,” IEEE Trans. Ind. Electron., vol. 55, no. 7,
pp. 2622–2628, Jul. 2008.
[5] D. Sera, R. Teodorescu, J. Hantschel, and M. Knoll, “Optimized max-
imum power point tracker for fast-changing environmental conditions,”
IEEE Trans. Ind. Electron., vol. 55, no. 7, pp. 2629–2637, Jul. 2008.
[6] D. Nguyen and B. Lehman, “An adaptive solar photovoltaic array us-
ing model-based reconfiguration algorithm,” IEEE Trans. Ind. Electron.,
vol. 55, no. 7, pp. 2644–2654, Jul. 2008.
[7] R. Gules, J. D. P. Pacheco, H. L. Hey, and J. Imhoff, “A maximum
Fig. 11. Measured grid current THD versus damping factor for constant phase power point tracking system with parallel connection for PV stand-alone
margin. Weak grid situation with high-voltage distortion (THD = 8.6%) and applications,” IEEE Trans. Ind. Electron., vol. 55, no. 7, pp. 2674–2683,
frequency deviation (fo = 51 Hz). Jul. 2008.
[8] M. Fortunato, A. Giustiniani, G. Petrone, G. Espagnuolo, and
M. Vitelli, “Maximum power point tracking in a one-cycle-controlled
single-stage photovoltaic inverter,” IEEE Trans. Ind. Electron., vol. 55,
no. 7, pp. 2683–2684, Jul. 2008.
[9] R. González, E. Gubía, J. López, and L. Marroyo, “Transformerless
single-phase multilevel-based photovoltaic inverter,” IEEE Trans. Ind.
Electron., vol. 55, no. 7, pp. 2694–2702, Jul. 2008.
[10] J. H. Lee, H. S. Bae, and B. H. Cho, “Resistive control for a photovoltaic
battery charging system using a microcontroller,” IEEE Trans. Ind. Elec-
tron., vol. 55, no. 7, pp. 2767–2775, Jul. 2008.
[11] Characteristics of the Utility Interface for Photovoltaic (PV) Systems,
IEC61727, Dec. 2004.
[12] IEEE Standard for Interconnecting Distributed Resources With Electric
Power Systems, IEEE15471, 2005.
[13] 2002 National Electrical Code, Nat. Fire Protection Assoc. Inc., Quincy,
MA, 2002.
[14] G. Escobar, P. R. Martínez, J. Leyva Ramos, and P. Mattavelli, “A negative
feedback repetitive control scheme for harmonic compensation,” IEEE
Trans. Ind. Electron., vol. 53, no. 4, pp. 1383–1386, Jun. 2006.
[15] G. Escobar, P. R. Martínez, and J. Leyva Ramos, “Analog circuits to
implement repetitive controllers with feedforward for harmonic com-
pensation,” IEEE Trans. Ind. Electron., vol. 54, no. 1, pp. 567–573,
Feb. 2007.
[16] G. Escobar, A. A. Valdez, J. Leyva Ramos, and P. Mattavelli, “Repetitive-
based controller for a UPS inverter to compensate unbalance and har-
monic distortion,” IEEE Trans. Ind. Electron., vol. 54, no. 1, pp. 504–510,
Feb. 2007.
[17] R. Griñó, R. Cardoner, R. Costa Castelló, and E. Fossas, “Digital repetitive
control of a three-phase four-wire shunt active filter,” IEEE Trans. Ind.
Electron., vol. 54, no. 3, pp. 1495–1503, Jun. 2007.
[18] G. Escobar, P. G. Hernández-Briones, P. R. Martínez, M. Hernández-
Gómez, and R. E. Torres-Olguin, “A repetitive-based controller for the
compensation of 6l ± 1 harmonic components,” IEEE Trans. Ind. Elec-
tron., vol. 55, no. 8, pp. 3150–3158, Aug. 2008.
[19] R. Teodorescu, F. Blaabjerg, U. Borup, and M. Liserre, “A new control
structure for grid-connected LCL PV inverters with zero steady-state er-
ror and selective harmonic compensation,” in Proc. IEEE APEC, 2004,
pp. 580–586.
Fig. 12. Experimental grid current transient response during periodic voltage [20] E. Blanco, E. Bueno, F. Espinosa, S. Cobreces, F. J. Rodriguez, and
sags for (a) pm = 30◦ and (b) pm = 60◦ . Weak grid situation with high- M. A. Ruiz, “Fast harmonics compensation in VSCs connected to the grid
voltage distortion (THD = 8.6%) and frequency deviation (fo = 51 Hz). by synchronous-frame generalized integrators,” in Proc. IEEE ISIE, 2005,
pp. 751–755.
As an interesting topic for future work, the effect of different [21] M. Liserre, R. Teodorescu, and F. Blaabjerg, “Stability of photovoltaic and
wind turbine grid-connected inverters for a large set of grid impedance
fundamental K1 and n-harmonic gains Kn could be investi- values,” IEEE Trans. Power Electron., vol. 21, no. 1, pp. 263–272,
gated. Moreover, the possibility of selecting ξ = 0 in a practical Jan. 2006.
environment (i.e., the use of ideal generalized integrators [19]) [22] M. Liserre, R. Teodorescu, and F. Blaabjerg, “Multiple harmonics control
for three-phase grid converter systems with the use of PI-RES current
and the suitable control design procedure for this particular case controller in a rotating frame,” IEEE Trans. Power Electron., vol. 21,
could be investigated. no. 3, pp. 836–841, May 2006.
CASTILLA et al.: CONTROL DESIGN GUIDELINES FOR PV INVERTERS WITH HARMONIC COMPENSATORS 4501
[23] F. Blaabjerg, R. Teodorescu, M. Liserre, and V. Timbus, “Overview Jaume Miret (M’01) received the B.S. degree in
of control and grid synchronization for distributed power generation telecommunications and the M.S. and Ph.D. de-
systems,” IEEE Trans. Ind. Electron., vol. 53, no. 5, pp. 1398–1409, grees in electronics from the Technical University of
Oct. 2006. Catalonia, Barcelona, Spain, in 1992, 1999, and
[24] M. Castilla, J. Miret, J. Matas, L. García de Vicuña, and J. M. Guerrero, 2005, respectively.
“Linear current control scheme with series resonant harmonic compen- Since 1993, he has been an Assistant Professor in
sator for single-phase grid-connected photovoltaic systems,” IEEE Trans. the Department of Electronic Engineering, Technical
Ind. Electron., vol. 55, no. 7, pp. 2724–2733, Jul. 2008. University of Catalonia, Vilanova i la Geltrú, Spain,
[25] G. Escobar, A. A. Valdéz, J. Leyva-Ramos, and P. R. Martínez, where he teaches courses on digital design and cir-
“A controller for a Boost converter with harmonic reduction,” IEEE cuit theory. His research interests include dc-to-ac
Trans. Control Syst. Technol., vol. 12, no. 5, pp. 717–726, Sep. 2004. converters, active power filters, and digital control.
[26] X. Yuan, W. Merk, H. Stemmler, and J. Allmeling, “Stationary-frame
generalized integrators for current control of active power filters with zero
steady-state error for current harmonics of concern under unbalanced and José Matas received the B.S., M.S., and Ph.D. de-
distorted operating conditions,” IEEE Trans. Ind. Appl., vol. 38, no. 2, grees in telecommunications engineering from the
pp. 523–532, Mar./Apr. 2002. Technical University of Catalonia, Barcelona, Spain,
[27] R. I. Bojoi, G. Griva, V. Bostan, M. Guerreiro, F. Farina, and in 1988, 1996, and 2003, respectively.
F. Profumo, “Current control strategy for power conditioners using sinu- From 1988 to 1990, he was an Engineer with
soidal signal integrators in synchronous reference frame,” IEEE Trans. a consumer electronics company. Since 1990, he
Power Electron., vol. 20, no. 6, pp. 1402–1412, Nov. 2005. has been an Associate Professor in the Department
[28] C. Lascu, L. Asiminoaei, I. Boldea, and F. Blaabjerg, “High performance of Electronic Engineering, Technical University of
current controller for selective harmonic compensation in active power Catalonia, Vilanova i la Geltrú, Spain. His research
filters,” IEEE Trans. Power Electron., vol. 22, no. 5, pp. 1826–1835, interests include power-factor-correction circuits, ac-
Sep. 2007. tive power filters, uninterruptible power systems,
[29] G. Escobar, A. A. Valdéz, R. E. Torres-Olguin, and M. F. Martínez- distributed power systems, and nonlinear control.
Montejano, “A model-based controller for a three-phase four-wire shunt
active filter with compensation of the neutral line current,” IEEE Trans.
Power Electron., vol. 22, no. 6, pp. 2261–2270, Nov. 2007. Luis García de Vicuña received the Ingeniero de
[30] D. N. Zmood and D. G. Holmes, “Stationary frame current regulation of Telecomunicación and Dr. Ing. degrees from the
PWM inverters with zero steady-state error,” IEEE Trans. Power Elec- Technical University of Catalonia, Barcelona, Spain,
tron., vol. 18, no. 3, pp. 814–822, May 2003. in 1980 and 1990, respectively, and the Dr.Sci. de-
[31] E. Twining and D. G. Holmes, “Grid current regulation of a three-phase gree from the Université Paul Sabatier, Toulouse,
voltage source inverter with an LCL input filter,” IEEE Trans. Power France, in 1992.
Electron., vol. 18, no. 3, pp. 888–895, May 2003. From 1980 to 1982, he was an Engineer with
[32] G. Escobar, P. Mattavelli, A. M. Stankovic, A. A. Valdez, and a control applications company. He is currently an
J. Leiva-Ramos, “An adaptive control for UPS to compensate unbalance Associate Professor in the Department of Electronic
and harmonic distortion using a combined capacitor/load current sensing,” Engineering, Technical University of Catalonia,
IEEE Trans. Ind. Electron., vol. 54, no. 2, pp. 839–847, Apr. 2007. Vilanova i la Geltrú, Spain, where he teaches courses
[33] M. J. Newman, D. G. Holmes, J. G. Nielsen, and F. Blaabjerg, “A dy- on power electronics. His research interests include power electronics model-
namic voltage restorer (DVR) with selective harmonic compensation at ing, simulation and control, active power filtering, and high-power-factor ac/dc
medium voltage level,” in Conf. Rec. IEEE IAS Annu. Meeting, 2003, conversion.
pp. 1228–1235.