modeling and control of a three-phase isolated grid - scielo

14
MODELING AND CONTROL OF A THREE-PHASE ISOLATED GRID-CONNECTED CONVERTER FOR PHOTOVOLTAIC APPLICATIONS Marcelo Gradella Villalva * [email protected] Thais Gama de Siqueira [email protected] Marcos Fernando Espindola * [email protected] Ernesto Ruppert * [email protected] UNICAMP - UNIVERSITY OF CAMPINAS, BRAZIL UNIFAL - UNIVERSITY OF ALFENAS AT PO¸ COS DE CALDAS, BRAZIL ABSTRACT This paper describes the modeling and control of a three-phase grid-connected converter fed by a photo- voltaic array. The converter is composed of an iso- lated DC-DC converter and a three-phase DC-AC volt- age source inverter The converters are modeled in order to obtain small-signal transfer functions that are used in the design of three closed-loop controllers: for the out- put voltage of the PV array, the DC link voltage and the output currents. Simulated and experimental results are presented. KEYWORDS: grid-connected, photovoltaic, converter, PV RESUMO Modelagem e controle de um conversor trif´ asico conectado ` a rede para aplica¸ oes fotovolt´ aica Este artigo descreve a modelagem e o controle de um conversortrif´asico conectado ` a rede alimentado por um conjunto fotovoltaico. O conversor ´ e composto de um est´ agio CC-CC isolado um est´ agio CC-CA. S˜ ao obtidas Artigo submetido em 04/12/2009 (Id.: 01090) Revisado em 13/04/2010, 31/08/2010 Aceito sob recomenda¸ ao do Editor Associado Prof. Darizon Alves de An- drade fun¸ oes de transferˆ encia com as quais s˜ao projetados trˆ es sistemas de controle em malha fechada: um para a tens˜ao de entrada do arranjo de pain´ eis solares, um para a tens˜ao do do barramento de tens˜ao cont´ ınua e outro para as correntes trif´asicas de sa´ ıda. PALAVRAS-CHAVE: conversor, fotovoltaico, conectado ` a rede 1 INTRODUCTION The aim of this paper is to describe the modeling and control design of a three-phase grid-connected converter for photovoltaic (PV) applications. The converter has two stages: an isolated DC-DC full-bridge (FB) and a three-phase DC-AC inverter with output current con- trol. The converters are modeled in order to obtain small-signal transfer functions that are used in the de- sign of linear closed-loop controllers based on propor- tional and integral (PI) compensators. Fig. 1 shows the blocks that constitute the system stud- ied in this paper. The PV array feeds the DC-DC full- bridge FB converter, which in turn feeds the three-phase DC-AC inverter. Three controllers are used in the sys- tem. The control block of the DC-DC converter contains the controller of the input voltage v pv of the converter, which is the output voltage of the PV array. The DC- Revista Controle & Automa¸c˜ ao/Vol.22 no.3/Maio e Junho 2011 215

Upload: others

Post on 09-Feb-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

MODELING AND CONTROL OF A THREE-PHASE ISOLATED

GRID-CONNECTED CONVERTER FOR PHOTOVOLTAICAPPLICATIONS

Marcelo Gradella Villalva∗

[email protected]

Thais Gama de Siqueira†

[email protected]

Marcos Fernando Espindola∗

[email protected]

Ernesto Ruppert∗

[email protected]

∗UNICAMP - UNIVERSITY OF CAMPINAS, BRAZIL

†UNIFAL - UNIVERSITY OF ALFENAS AT POCOS DE CALDAS, BRAZIL

ABSTRACT

This paper describes the modeling and control of athree-phase grid-connected converter fed by a photo-voltaic array. The converter is composed of an iso-lated DC-DC converter and a three-phase DC-AC volt-age source inverter The converters are modeled in orderto obtain small-signal transfer functions that are used inthe design of three closed-loop controllers: for the out-put voltage of the PV array, the DC link voltage and theoutput currents. Simulated and experimental results arepresented.

KEYWORDS: grid-connected, photovoltaic, converter,PV

RESUMO

Modelagem e controle de um conversor trifasico

conectado a rede para aplicacoes fotovoltaica

Este artigo descreve a modelagem e o controle de umconversor trifasico conectado a rede alimentado por umconjunto fotovoltaico. O conversor e composto de umestagio CC-CC isolado um estagio CC-CA. Sao obtidas

Artigo submetido em 04/12/2009 (Id.: 01090)

Revisado em 13/04/2010, 31/08/2010

Aceito sob recomendacao do Editor Associado Prof. Darizon Alves de An-

drade

funcoes de transferencia com as quais sao projetadostres sistemas de controle em malha fechada: um paraa tensao de entrada do arranjo de paineis solares, umpara a tensao do do barramento de tensao contınua eoutro para as correntes trifasicas de saıda.

PALAVRAS-CHAVE: conversor, fotovoltaico, conectado arede

1 INTRODUCTION

The aim of this paper is to describe the modeling andcontrol design of a three-phase grid-connected converterfor photovoltaic (PV) applications. The converter hastwo stages: an isolated DC-DC full-bridge (FB) and athree-phase DC-AC inverter with output current con-trol. The converters are modeled in order to obtainsmall-signal transfer functions that are used in the de-sign of linear closed-loop controllers based on propor-tional and integral (PI) compensators.

Fig. 1 shows the blocks that constitute the system stud-ied in this paper. The PV array feeds the DC-DC full-bridge FB converter, which in turn feeds the three-phaseDC-AC inverter. Three controllers are used in the sys-tem. The control block of the DC-DC converter containsthe controller of the input voltage vpv of the converter,which is the output voltage of the PV array. The DC-

Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011 215

+

-

+

-

PVarray

DC-DC DC-ACconverterconverter

AC

gri

d

controlcontrol

vpv vlink

ia,b,c

Figure 1: Block diagram of the PV system.

0 5 10 15 20 25 300

1

2

3

4

5

6

7

8

9

V [V]

I [A

]

KC200GT

linearmodel

MPP

Figure 2: Nonlinear I-V characteristic of the solar array andcurve of the equivalent linear model at the MPP.

AC control block contains the controller of the DC linkcapacitor (the capacitor that connects the DC-DC andDC-AC converters) voltage vlink and another for the si-nusoidal three-phase output currents ia,b,c. This kind oftwo-stage PV system has also been reported in (de Souzaet al., 2007) using an analog control approach.

2 MODELING THE PV ARRAY

The PV array presents the nonlinear characteristic il-lustrated in Fig. 2. In this example the KC200GT(Kyocera, n.d.) solar array is used. The dynamic behav-ior of the converter depends on the point of operation ofthe PV array. Because the array directly feeds the con-verter it must be considered in the dynamic model of theconverter. A PV array linear model will be necessaryfor modeling the DC-DC converter in next section. Thesystem is modeled considering that the PV array oper-ates at the maximum power point (MPP) with nominalconditions of temperature and solar irradiation.

The equation of the I-V characteristic is given by(Villalva et al., 2009a), (Villalva et al., 2009b):

I = Ipv − I0

[

exp

(V + RsI

Vta

)

− 1

]

− V + RsI

Rp(1)

where Ipv and I0 are the photovoltaic and saturationcurrents of the array, Vt = NskT/q is the thermalvoltage of the array with Ns cells connected in se-ries, Rs is the equivalent series resistance of the ar-ray, Rp is the equivalent shunt resistance, and a isthe ideality constant of the diode. The parametersof the PV array equation (1) may be obtained frommeasured or practical information obtained from thedatasheet: open-circuit voltage, short-circuit current,maximum-power voltage, maximum-power current, andcurrent/temperature and voltage/temperature coeffi-cients. A complete explanation of the method usedto determine the parameters of the I-V equation maybe found in Villalva et al. (2009a) and Villalva et al.(2009b).

As the PV system is expected to work near the max-imum power point (MPP), the I-V curve may be lin-earized at this point. The derivative of the I-V curve atthe MPP is given by:

g(Vmp, Imp) = − I0

VtNsaexp

[Vmp + ImpRs

VtNs

]

− 1

Rp(2)

The PV array may be modeled with the following linearequation at the MPP:

I = (−gVmp + Imp) + gV (3)

Fig. 2 shows the nonlinear I-V characteristic of the Ky-ocera KC200GT solar array superimposed with the lin-ear I-V curve described by (3). The parameters of theI-V equation obtained with the modeling method pro-posed in Villalva et al. (2009a) and Villalva et al. (2009b)are listed in Table 1. From these parameters, with (2)and (3), the equivalent voltage source and series resis-tance of the solar array linearized at the MPP are ob-tained: Veq = 51.6480 V and Req = 3.3309 Ω.

3 DC-DC FULL-BRIDGE CONVERTER

3.1 Modeling

Fig. 3 shows the full-bridge (FB) DC-DC converter.The first step in the modeling of this converter is ob-

216 Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011

Table 1: Parameters of the KC200GT solar photovoltaic arrayat nominal operating conditions.

Imp 7.61 AVmp 26.3 VPmax 200.143 WVoc 32.9 VI0,n 9.825 · 10−8 AIpv 8.214 Aa 1.3Rp 415.405 ΩRs 0.221 Ω

serving the approximate voltage waveforms of Fig. 4.By replacing the instantaneous voltages and currents bytheir average values it is possible to obtain an averageequivalent circuit without the switching elements (tran-sistors and diodes) and the transformer contained inthe dashed box with terminals 1-2-3-4. This modelingmethod is described in Erickson e Maksimovic (2001),Middlebrook (1988), Middlebrook e Cuk (1976) and wasused in Villalva e Ruppert F. (2008b), Villalva e Rup-pert F. (2008a), and Villalva e Ruppert F. (2007) in themodeling of the input-controlled buck converter, whichis very similar fo the modeling of the FB converter usedin this paper.

iL iin,invipv iin,fb

vlinkvret

L

Cpv Clinkvpv v1 v2

+ ++ ++

−− − −−

1 2

3 4

Figure 3: Isolated full-bridge DC-DC converter.

By observing the circuit terminals 1-2-3-4 the followingequations may be written, where average values withinone swithing period T are marked with a bar over thevariable:

vret = dvpvn (4)

iin,fb = diLn (5)

where vret is the average output voltage of the rectifier,vpv is the average voltage at the input of the converter,

T

T

T

T

T

T/2

T/2

T/2

T/2

T/2

vpv

v1

v2

vret

d′T

d′T

d′T

Vpv

Vpv

−Vpv

nVpvnVpv

nVpv

−nVpv

Vlink

vlink

nVpv2d′

Figure 4: Approximate voltage waveforms of the FB converter.

_+

+ ++

− −−DC

DC

< iL > < iin,inv >< ipv > < iin,fb >

< vlink >< vret >

L

Cpv Clink< vpv >

1 2

3 41 : 2d′n

Veq

Req

Figure 5: Equivalent average circuit of the FB converter.

iin,fb is the average input current, iL is the average in-ductor current, n is the primary to secondary turns ratioof the transformer, and d is the effective duty cycle ofthe converter defined as d = 2d′.

With (4) and (5) the equivalent circuit of Fig. 5 is ob-tained, where Veq and Req are the equivalent voltageand resistance of the linear PV array model obtained inprevious section.

The average state equations of the circuit of Fig. 5 are:

Veq − vpv

Req= Cpv

dvpv

dt+ iin,fb (6)

vret − vlink = LdiLdt

(7)

Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011 217

The state equations (8) and (9) are obtained by replac-ing (4) and (5) in (6) and (7):

Veq − vpv

Req= Cpv

dvpv

dt+ iLdn (8)

dnvpv − vlink = LdiLdt

(9)

The average variables may be separated in steady-stateand small-signal components (Erickson e Maksimovic,2001):

vpv = Vpv + vpv (10)

vlink = Vlink + vlink

iL = IL + iL

d = D − d

With the definitions of (10), with vlink = 0, from (8)and (9) the state equations (11) and (12) are obtained:

Veq

Req− (Vpv + vpv)

Req= Cpv

dvpv

dt+n(DIL+DiL−dIL−diL)

(11)

n(DVpv + Dvpv − dVpv − dvpv) = LdiLdt

(12)

From (11) and (12), by neglecting the nonlinear terms

ndiL and ndvpv and by applying the Laplace transform,the small-signal s-domain state equations are obtained:

− vpv(s)

Req= sCpvvpv(s) + nDiL(s) − d(s)ILn (13)

nDvpv(s) − d(s)Vpvn = LsiL(s) (14)

from which the small-signal transfer function Gvd(s) ofthe converter input voltage is obtained:

Gvd(s) =vpv(s)

d′(s)=

Req(sLILn + n2DVpv)

s2ReqLCpv + sL + n2D2Req(15)

The Gvd(s) transfer function describes the behavior ofthe full-bridge converter input voltage with respect to

εVpv,ref Hpv

Hpv

GvdCvd

d

vpv

PI+

Figure 6: Controller of the input voltage vpv of the FB con-verter.

Table 2: Parameters of the 2× 15 PV array with the KC200GTsolar array module.

Ipv,mp 15.22 AVpv,mp 394.50 VReq 24.9816 ΩVeq 774.7194 V

the control variable d′ = 1 − d. Due to the presenceof the turns ratio n in the model the error of the lin-ear model represented by the transfer function increasesproportionally to n. This problem is not observed inconventional converter models whose output voltage iscontrolled. So it is important, mainly if n is not a smallnumber, to model the converter as near as possible theoperating point of the PV array – this is possible withthe linear model developed in previous section.

3.2 Control

Fig. 6 shows the input voltage controller of the FB con-verter based on a PI compensator. The PI may bedesigned with conventional feedback control techniquesto meet any desired specifications of bandwidth, phasemargin, etc.

As an example, a FB converter control system is de-signed to operate with a 6 kW (peak) PV array com-posed of 2 × 15 KC200GT modules. In section 2 theparameters and the equivalent linear model at the MPPof the KC200GT module where obtained. The parame-ters of the linear model of the 2×15 array are presentedin Table 2. Table 3 presents the system parameters fromwhich the Gvd(s) transfer function is obtained:

Gvd(s) =20000.0 + 3.7 s

0.00012 s2 + 0.0050 s + 25.0(16)

The converter is designed considering a switching fre-quency fsw = 20 kHz. A good practice is to choosethe control bandwidth to be near 10% of the switch-ing frequency. Fig. 7 shows the Bode plot of the con-verter transfer function, from which the compensatorCvd(s) is designed. In order to achieve zero steady-

218 Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011

state control error, with a satisfactory phase margin andbandwidth of approximately 3 kHz, with feedback gainHpv = 0.002, Cvd(s) is designed as:

Cvd(s) =300 (s + 100)

s(17)

Fig. 7 shows the Bode plot of the compensated loopGvd(s)Cvd(s)Hpv.

4 THREE-PHASE GRID-CONNECTEDDC-AC INVERTER

Fig. 8 shows the three-phase inverter connected to theAC grid through the coupling inductors Lac. The con-verter receives DC voltage and current from the FB con-verter and delivers active power to the grid with sinu-soidal currents. The output currents ia,b,c are synthe-sized by current controller of section 4.1 and the DC linkcapacitor voltage vlink is kept at the steady value Vlink

by the voltage controller studied in section 4.2.

Table 3: Parameters used in the modeling of the FB converterand in the design of the voltage controller.

Ipv 14.99 AVpv 400 VVeq 774.7194 VReq 24.98 ΩC 1000 µFL 5 mHVlink 400 VD 0.5fsw 20 kHzn 2

4.1 Synthesis of the sinusoidal output cur-rents

1) Modeling - The process of modeling the three-phasegrid-connected converter with controlled output cur-rents (Buso e Mattavelli, 2006) is based on the equiva-lent circuit of Fig. 9. Considering the converter is drivenby a sinusoidal PWM modulator with symmetrical tri-angular carrier, it can be modeled as a constant gain,being m the PWM modulation index. Each phase ofthe converter is analyzed independently with the equiv-alent circuit of Fig. 9 and the inductor current transferfunction is:

Gim(s) =ia,b,c

m=

Ginv

s Lac=

Vlink

2 s Lac(18)

-20

0

20

40

60

80

100

Magnitude (

dB

)

100

101

102

103

104

105

-180

-135

-90

-45

0

Phase (

deg)

Gm = Inf , Pm = 73.9 deg (at 1.87e+004 rad/sec)

Frequency (rad/sec)

Gvd Cvd Hpv

Gvd

Figure 7: Bode plots of the full-bridge DC-DC convertertransfer function Gvd(s) and of the compensated loopGvd(s)Cvd(s)Hpv.

+

-

Lac

Lac

Lac

ia

ib

ic

vsa

vsb

vsc

iL iin,inv

vlink Cpv

va

vb

vc

n

grid

Figure 8: Three-phase grid-connected DC-AC converter.

2) Control with PI compensators - The output currentsof the grid-connected converter can be synthesized bythe current controller of Fig. 10, which is composed ofthree PI compensators that determine the modulationindexes of each of the sinusoidal PWM modulators thatdrive the three phases of the converter. The references ofthe output currents, ia,b,c,ref, are sinusoidal waveformsoriginated from the DC link voltage controller explainedin next section.

The PI compensators with transfer function Cim(s) aredesigned using the same principles used in section 3.2.For example, with the parameters of Table 4 the systemtransfer function and the PI compensator are:

Gim(s) =200

0.005 s + 1, Cim(s) =

7.9 (s + 1000)

s(19)

The compensator of (19) provides a current controlloop with bandwidth of approximately 2 kHz, excellent

Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011 219

Lac

ia

vsa

m Ginv

va

Figure 9: Single-phase equivalent circuit of the grid-connectedconverter output.

ia

ib

ic

ma

mb

mc

Gim

εa

εb

εc

phase a

phase b

phase c

ia,ref

ib,ref

ic,ref

Hiac

Hiac

Hiac

Hiac

Hiac

Hiac

PWM

PWM

PWM

inverter

inverter

inverter

PI

PI

PI

Cim

Cim

Cim

+

+

+

Figure 10: Controller of the output currents of the DC-AC con-verter in stationary coordinates.

phase margin and low steady state error. Fig. 11 showsthe bode plots of Gim(s) and of the compensated loopGim(s)Cim(s)Hiac.

3) Control with PI compensators in the synchronous ref-erence frame - The quality of the three-phase currentssynthesis may be significantly improved with the syn-chronous current controller illustrated in Fig. 12. Thetransformation of the abc currents to the synchronousdq frame permits to cancel the current steady state er-ror (Buso e Mattavelli, 2006) because the currents inthe fundamental frequency become DC quantities. Thistransformation also gives the controller excellent imu-nity to integrator saturation caused by offsets in themeasured currents. The current controller of Fig. 12employs two PI compensators for the d and q currents.The dq-abc and abc-dq transformations are presented inthe appendix 1. The transformations employ the angleθ (syncronized with the grid voltages) provided by thephase-locked loop (PLL) of Appendix 2.

Table 4: Parameters of the grid-connected converter system.

Hiac 1/25Hvlk 1/500Clink 4700 µFLac 2 mHVlink 400 Vfsw 10 kHz

V(∗)ac 220 V

(∗) line rms voltage

-20

0

20

40

60

80

Magnitude (

dB

)

101

102

103

104

105

-135

-90

-45

0P

hase (

deg)

Gm = Inf , Pm = 86.4 deg (at 1.27e+004 rad/sec)

Frequency (rad/sec)

Gim

Gim Cim Hiac

Figure 11: Bode plots of Gim(s) and GimCim(s)Hiac.

ia

ib

ic

ma

mb

mc

εa

εb

εc

ia,ref

ib,ref

ic,ref

Hiac

Hiac

Hiac

Hiac

Hiac

Hiac

PI

PI

Cim

Cim

abc → dq dq → abceq. (28)eq. (29)

eq. (30)eq. (31)

md

mq

ed

eq

θ1θ1

PLL

+

+

+

grid voltages

Figure 12: Controller of the output currents of the DC-AC con-verter in synchronous dq coordinates.

220 Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011

Clink< vlink >< iL > < iin,inv >

+

Figure 13: Equivalent circuit of the DC link charge.

According to the theoretical analysis presented in (Busoe Mattavelli, 2006), the PI compensators of the syn-chronous frame controller may be designed exactly likethe single-phase compensators used in the conventionalstationary frame current controller presented in previoussection, except that the integral gain of the synchronousframe PI is twice the gain of the conventional single-phase PI. The implementation of the PI compensatorsused in both stationary and synchronous controllers isexplained in Appendix 3.

4.2 Control of the DC link voltage

1) Modeling - The circuit of Fig. 13 shows the DC linkcapacitor and two equivalent current sources replacingthe DC-DC and DC-AC converters. The capacitor re-ceives energy from the DC-DC converter and deliversit to the DC-AC inverter. The difference between theinput and output charges increases or decreases the ca-pacitor voltage. The average input and output currents(and consequently the converter input and output pow-ers) must be in equilibrium so that the average capacitorvoltage is constant.

The following power balance equations may be written:

< vlink >< iin,inv >= 3Vac(rms)Iac(rms) (20)

< iin,inv >=3Vac(rms)Iac(pk)

< vlink >√

2(21)

where Vac(rms) and Iac(rms) are the per-phase rms gridvoltage and current.

Eq. (22) may be simplified considering the average ca-pacitor voltage is approximately constant. Both the ca-pacitor and voltage control time constants are large, so:

< iin,inv >=3Vac(rms)Iac(pk)

Vlink

√2

(22)

From the circuit of Fig. 13 the following average stateequation is obtained, considering < iL >= IL:

IL − Clinkd < vlink >

dt− < iin,inv >= 0 (23)

Because one are interested in finding a small-signal equa-tion of the capacitor voltage and of the converter in-put current, the assumptions < vlink >= Vlink and< iL >= IL where conveniently used in the averagepower equation (22) and in the state equation (23), re-spectively. From (22) and (23):

IL − Clinkd < vlink >

dt=

3Vac(rms)Iac(pk)

Vlink

√2

(24)

Replacing < vlink >= Vlink+ vlink and Iac(pk) = Iac(pk)+

Iac(pk) in (24) and applying the Laplace transform re-sults the following small-signal s-domain state equation:

s Clinkvlink(s) =3Vac(rms)Iac(pk)(s)

Vlink

√2

(25)

From (25) the DC link voltage transfer funcion is ob-tained:

Gvlk(s) =vlink(s)

Iac(pk)(s)=

3Vac(rms)

s ClinkVlink

√2

(26)

The transfer function of (26) is consistent with thetransfer function developed in (Barbosa et al., 1998),where the authors used a different approach and ob-tained a similar equation.

2) Control - The controller of Fig. 14 is used to regulatethe DC link voltage. The PI compensator with trans-fer function Cvlk(s) determines the peak of the outputsinusoidal currents. Three unit sinusoidal signals syn-chronized with the grid voltages are multiplied by thePI output Iac(pk). These multiplications generate thecurrent references used by the current controller of sec-tion 4.1, Fig. 10. The balance of the input and outputpowers of the DC link capacitor is achieved by regulat-ing the amplitudes of the sinusoidal currents injected inthe grid.

Fig. 15 shows the equivalent control loop of the DC linkvoltage with the Gvlk(s) transfer function (26) obtainedin last section.

With the scheme of Fig. 15 it is possible to design thecompensator Cvlk(s) in order to achieve the control ofthe DC link voltage. With the parameters of Table 4

Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011 221

Cvlk

Hvlk

Hvlk

vlink

Vlink,ref ε

ia,ref

ib,ref

ic,ref

Iac(pk)

vsan

vsbn

vscn

PI

3-φ PLL

+

×××

Figure 14: DC link voltage controller.

Ipk

Cvlk Gvlk

Hvlk

Hvlk

vlink

Vlink,refε+

Figure 15: Equivalent control loop of the DC link voltage.

the following transfer function and compensator (27) areobtained:

Gvlk(s) =202.2

s, Cvlk(s) =

1553 (s + 10)

s(27)

The bandwidth of the control loop is made intention-ally low so that the DC link voltage control will notcause disturbances in the sinusoidal output currents ofthe converter. The amplitudes of the currents are reg-ulated so that the average DC link capacitor voltage isconstant. The amplitudes of the currents are practicallyconstant when the system is in steady state.

Fig. 16 shows the Bode plots of the equivalent transferfunction of the DC link capacitor voltage and of thecompensated system. The bandwidth of the control loopis adjusted near 100 Hz with the PI compensator of (27)and the zero located at s = −10 rad/s warranties a lowsteady state error.

5 SIMULATION RESULTS

This section presents results of simulations of the DC-DC and DC-AC converters. The aim of these simula-tions is to verify the performance of the controllers andcompensators designed in previous sections. The con-verters where simulated with the parameters of Tables2–4. The PV array was simulated with the circuit modelof Fig. 17 that describes the nonlinear I-V equation (1)presented in section 2. The PV model represents a 6 kWarray composed of 2 × 15 KC200GT modules.

-50

0

50

100

150

Magnitude (

dB

)

10-1

100

101

102

103

-180

-135

-90

Phase (

deg)

Gm = -Inf dB (at 0 rad/sec) , Pm = 89.1 deg (at 628 rad/sec)

Frequency (rad/sec)

Gvlk

Gvlk Cvlk Hvlk

Figure 16: Bode plots of Gvlk(s) and GvlkCvlk(s)Hvlk.

PV array model equation

+−

V

V

I

I

Im Rp

Rs

Figure 17: Circuit-based PV model used in the simulation.

5.1 DC-DC converter

The results presented in this section where obtainedwith the simulation of the FB DC-DC converter fed bythe PV array circuit model. The output of the converteris connected to a constant voltage source Vlink = 400 V.The aim of this simulation is to test the behavior ofthe FB converter with the voltage controller designed insection 3 without the influence of the DC-AC converterand other parts of the system.

Fig. 18 shows the behavior of the PV array voltagevpv controlled with the voltage compensator designed insection 3. The vpv voltage reaches the reference Vpv,ref =394.5 V with zero steady state error. Fig. 19 shows thebehavior of the PV array current.

5.2 DC-AC inverter

1) Control of the sinusoidal output currents - The simu-lation result presented in this section was obtained withthe DC link capacitor replaced by a constant voltagesource Vlink = 400 V. The objective is to analyze thebehavior of the current controller of Fig. 10 without theinfluence of the DC link capacitor and of the rest of thesystem.

222 Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011

0.02 0.022 0.024 0.026 0.028 0.03 0.032 0.034 0.036 0.038 0.04

382

384

386

388

390

392

394

396

time

Vp

v

Figure 18: Output voltage of the PV array and input voltage ofthe full-bridge DC-DC converter vpv.

0.02 0.022 0.024 0.026 0.028 0.03 0.032 0.034 0.036 0.038 0.04

13.8

13.9

14

14.1

14.2

14.3

14.4

14.5

time

Ipv

Figure 19: Output current of the PV array and input current ofthe full-bridge DC-DC converter ipv.

Fig. 20 shows the three-phase currents synthesized bythe current controller and injected into the grid throughthe three coupling inductors connected at the output ofthe DC-AC inverter (see to Fig. 8).

2) Control of the DC link voltage - The DC-AC converterwas simulated separately from the rest of the system. Asshown in Fig. 21, in this simulation the DC link capac-itor Clink is fed by a current source that is initially zeroand steps from 0 to 15 A at t = 0.25 s. This simula-tion shows that the DC-AC converter and the voltage

0 0.002 0.004 0.006 0.008 0.01 0.012 0.014 0.016 0.018 0.02−60

−40

−20

0

20

40

60

time

iabc

Figure 20: Three-phase currents injected into the grid.

ClinkvlinkiL

iin,inv ia,b,c

inverter

grid

+

Figure 21: Grid-connected DC-AC converter fed by a currentsource. iL = 0 at t < 0.25 s and iL = 15 A at t > 0.25 s.

controller of Fig. 14 keep Clink charged at Vlink,ref . Ifthere is no energy source connected to the capacitor itis charged with energy from the AC grid. When the ca-pacitor is fed by the DC-DC converter (represented bythe current source iL in this simulation) the capacitor ischarged with part of the input energy. The remainderof energy, that is not stored in the capacitor, is fullydelivered as active power to the AC grid.

Figs. 22 and 23 show the DC link voltage and the outputcurrents ia,b,c during this simulation. In Fig. 22 onecan see that the DC capacitor charges at the referencevoltage of 400 V and after the current step the DC linkvoltage is reestablished by the voltage controller.

5.3 Complete system with DC-DC and DC-AC converters

In the preceding sections the DC-DC and DC-AC con-verters where individually simulated and the three con-trol systems (PV array voltage, DC link voltage andsinusoidal output currents) where individually analyzedwithout the influence of other system parts.

The objective of this section is to present the resultsof a simulation with all system parts working together:PV array, and DC-DC and DC-AC converters with theirrespective controllers.

It was shown in section 5.2 that the DC link voltage con-troller of Fig. 14 is capable to regulate the vlink voltageeven in the presence of a large step in the input current.It is now expected that the DC link voltage controllerand the DC-AC converter will not significantly sufferinfluence from the DC-DC converter. Also, from theview point of the DC-DC converter, it is expected thatthe DC link voltage controller keeps the DC link voltageconstant.

Fig. 24 shows the behavior of the DC link voltage vlink

and of the vpv during the simulation. The DC linkcapacitor is initially charged at 300 V. This is neces-sary because otherwise large transient currents would be

Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011 223

0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5280

300

320

340

360

380

400

420

time

vlin

k

Figure 22: Plot of the DC link voltage Vlink. The capacitor isinitially charged at Vlink = 300 V and there is no input current.The capacitor is charged with energy from the AC grid untilit reaches the reference voltage Vlink,ref = 400 V. The inputcurrent of the converter (iL) steps from 0 to 15 A at t = 0.25 s.

drained from the AC grid at the system startup. In apractical system the DC link capacitor is charged eitherby a rectifier constituted of the DC-AC converter diodes,with a series resistance inserted before the capacitor onlyduring the system startup, or by the DC-DC converterwith output voltage control during the startup.

The PV output capacitor Cpv is charged from 0 V toapproximately 400 V with energy from the PV array.During the initial charge of the capacitor the PV ar-ray supplies its maximum current. Approximately neart = 0.25 s, when the capacitor is charged, the DC-DCconverter starts to supply current (iL) to the DC-ACconverter, as Fig. 25 shows. The output sinusoidal cur-rents, that where draining power to charge the capacitorClink, suffer a phase inversion near t = 0.25 s and fromthis time the DC-AC converter begins to deliver activepower to the grid, as Figs. 26 and 27 show.

6 EXPERIMENTAL RESULTS

This section shows some experimental results with thesystem operating at full load. At the time this paper waswritten the converter had not been tested with the PVplant and only laboratory experiments were available.The PV array was replaced by a high-power DC sourcein series with a 6 Ω resistance constituted by a bank of36 halogen lamps. This experimental DC source permitsto make all necessary tests with the converter before itis experimented with the real PV plant.

Fig. 28 shows waveforms of the system operating insteady state with approximately 8 kW of output power.

0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5−40

−30

−20

−10

0

10

20

30

40

time

iab

c

Figure 23: Three-phase output currents of the grid-connectedconverter. From t = 0 s to t = 0.25 s the system drains energyfrom the AC grid. From t = 0.25 s, when the input currentsteps from 0 to 15A, the converter injects active power intothe grid.

0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10

50

100

150

200

250

300

350

400

450

time

Vpv

Vlink

Figure 24: Plot of the DC link voltage vlink and of the PV arrayvoltage vpv.

The DC link voltage was set at 500 V, the DC input isapproximately 280 V and the input current is 35 A.

Fig. 29 shows the system behavior when submitted to a6 kW power step. The DC input is suddenly connectedand the system reaches steady state in 400 ms. TheDC input is then removed and the system reaches againsteady state (no output power) also in 400 ms (observingthe DC link voltage perturbation). Fig. 30 shows thethree-phase output currents and the DC link voltage inthe same situation.

Fig. 31 shows the output current of one phase super-imposed with the current reference. Fig. 32 shows theFFT of the output current, where one can see that the60 Hz component is approximately 30 dB greater than

224 Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011

0 0.05 0.1 0.15 0.2 0.25 0.315

15.5

16

16.5

Ipv

0 0.02 0.04 0.06 0.08 0.1−10

0

10

20

time

IL

Figure 25: Plot of the FB DC-DC output inductor current iL

and of the PV array current ipv.

0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1−40

−30

−20

−10

0

10

20

30

time

Ia,b

,c

Figure 26: Output currents ia,b,c injected into the AC grid bythe DC-AC converter.

the most significant harmonic component (5 th). Nonoticeable 3 rd harmonic component is present and thesubsequent components above the 5 th are very attenu-ated.

7 CONCLUSIONS

This paper has presented the modeling and control de-sign of a two-stage PV system based on a DC-DC full-bridge converter and a three-phase grid connected DC-AC inverter. The main objective of the paper was to de-velop small-signal models and design PI compensatorsfor three purposes: the regulation of the PV voltage,the regulation of the DC link voltage and the injectionof purely sinusoidal and synchronized currents into thegrid. The simulation results and the experimental re-

0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1−10000

−8000

−6000

−4000

−2000

0

2000

4000

6000

8000

time

Ppv

Pout

Figure 27: Output power of the PV array and output power ofthe converter system delivered to the AC grid.

Figure 28: System at full load in steady state. In this order:Ch3 - DC link voltage (500 V/div); Ch2 - Output current ofone phase (20 A/div); Ch1 - DC input current (50 A/div); Ch4- DC input voltage (250 V/div).

Figure 29: System behavior with 6 kW power step. In this order:Ch3 - DC link voltage (500 V/div); Ch2 - Output current of onephase (10 A/div); Ch1 - DC input current (20 A/div); Ch4 -DC input voltage (250 V/div).

Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011 225

Figure 30: System behavior with 6 kW power step. In thisorder: Ch1, Ch2, Ch3 - Output currents (20 A/div); Ch4 - DClink voltage (500 V/div).

Figure 31: Output current of one phase superimposed with thecurrent reference (25 A/div).

Figure 32: FFT of the output current.

sults show that the objectives were successfully achieved.Besides presenting the subject of small-signal modelingof the input-regulated DC-DC converter, the paper alsoserves as a tutorial for the design of the system andseveral important subjects are carefully analysed: con-verter modeling, synchronous reference frame currentcontroller, capacitor voltage controller, PV voltage reg-ulation, PLL and implementation of digital anti-windupPI compensators.

APPENDIX 1 - COORDINATE TRANS-FORMATIONS

[iαiβ

]

=

2

3

[1 −1/2 −1/2

0√

3/2 −√

3/2

]

iaibic

(28)

[idiq

]

=

[cos θ sin θ− sin θ cos θ

] [iαiβ

]

(29)

[iαiβ

]

=

[cos θ − sin θsin θ cos θ

] [idiq

]

(30)

iaibic

=

2

3

1 0

−1/2√

3/2

−1/2 −√

3/2

[iαiβ

]

(31)

APPENDIX 2 - DIGITAL THREE-PHASEPLL

The digital PLL of Fig. 33 is a simplified version ofthe PLL presented in (Marafao et al., 2005) (Kuboet al., 2006) (Marafao et al., 2004). The principle ofoperation is the dot product between the voltage vec-tor v and the orthogonal vector u⊥. When the PLLis synchronized with the grid voltages the two vectorsare orthogonal and the product is zero. The PI com-pensator works to minimize the error ε = 0 − v · u⊥,i.e. to cancel the dot product, and generates the cor-rection component ∆ω. The integration of the angularfrequency ω = ∆ω+ω0 gives the angle θ⊥. The vector u1

corresponds to the unitary sinusoids synchronized withthe positive sequence of the grid voltages. A sequencedetection algorithm (not shown here) is used to generatethe output signals in the correct phase sequence. Thisalgorithm is based on the abc-αβ transformation anddetects the sequence (positive or negative) by observ-ing the direction (clockwise or counterclockwise) of therotating voltage vector.

226 Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011

PI

v = [vsanvsbnvscn]

u⊥ =

sin(θ⊥)sin(θ⊥ − 2π/3)sin(θ⊥ + 2π/3)

u1 =

sin(θ1)sin(θ1 − 2π/3)sin(θ1 + 2π/3)

v · u⊥

θ1

θ⊥

θ⊥

integrator

ω0

∆ω

++

+

+

+

ε

0

u1

u⊥

π/2

Figure 33: Digital phase-locked loop.

APPENDIX 3 - IMPLEMENTATION OFDIGITAL PI COMPENSATORS

The continuous-time compensators designed in previoussections can be realized as discrete-time digital com-pensators. There are several ways of discretizing ana-log compensators. All of them present similar resultswhen the compensator bandwidth is not greater than10% of the sampling frequency (Franklin et al., 1995).The Tustin or bilinear transform is used in this work.The compensators and controllers were implementedwith the Texas floating point digital signal controllerTMS320F28335 with sampling frequency fs = 1/Ts =10 kHz.

A discrete-time compensator is a digital filter. The filtercoefficients may be obtained from the s-domain trans-fer function with the desired transformation method. InMATLAB the following command may be used to findthe filter coefficients: [numz, denz] = bilinear(nums,

dens, fs), where numz = [b0 b1] and denz = [a0 a1] arethe numerator and denominator vectors with the coeffi-cients of the Tustin (or bilinear) approximation.

In the IIR direct transposed form the filter differenceequation is (Oppenheim e Schafer, 1989):

yk = b0ek + b1ek−1 − a1yk−1 (32)

The difference equation (32) is the simplest way to im-plement the PI compensator. The proportional and inte-gral components are embedded in the equation. In orderto implement the simple anti-windup strategy proposedin this paper, one wish to develop another equation.

The following equation describes a PI compensator:

yk = kpek + kiik (33)

with the trapezoidal integrator ik:

ik =Ts

2[ek + ek−1] + ik−1 (34)

The compensator of (33) and (34) is equivalent to thecompensator described by (32), with the difference thatin (33) the proportional and integral parts are separated.

One can write the past integrator value ik−1 as:

ik−1 =1

ki

yk − kp

ki

ek−1 (35)

so ik can be rewritten as:

ik =kiTs

2ek +

kiTs

2ek−1 + yk−1 − kpek−1 (36)

Replacing (36) in (33), the difference equation (32) be-comes:

yk =

[

kp +kiTs

2

]

︸ ︷︷ ︸

b0

ek +

[kiTs

2− kp

]

︸ ︷︷ ︸

b1

ek−1 + yk−1 (37)

The above equation (37) shows the correspondence be-tween the coefficients of (33) and (32), with a1 = −1.The difference equations (33) and (32) may be used in-distinctly to implement the first order PI compensator.However, in the form of (33) the simple anti-windup al-gorithm of Fig. 34 is possible. This algorithm simplystops the integrator when the control output exceedsthe limits. In practical systems the compensator outputmay sometimes exceed the maximum effective control ef-fort. This causes integrator saturation and deterioratesthe control performance.

ACKNOWLEDGMENTS

This work was sponsored by FAPESP, CNPq, andCAPES.

REFERENCES

Barbosa, P. G., Rolim, L. G. B., Watanabe, E. H. eHanitsch, R. (1998). Control strategy for grid-

Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011 227

ik = Ts

2 [ek−1 + ek−1] + ik−1

yk = kpek + kiik

(yk > ymax)||(yk < ymin)

ik = ik−1

yk = kpek + kiik

ek

yk

yes no

ek−1 = ek

yk−1 = yk

ik−1 = ik

Figure 34: PI compensator with integrator anti-windup.

connected DC-AC converters with load power fac-tor correction, Generation, Transmission and Dis-tribution, IEE Proceedings-, Vol. 145, pp. 487–491.

Buso, S. e Mattavelli, P. (2006). Digital control in powerelectronics, Morgan & Claypool Publishers.

de Souza, K. C. A., Coelho, R. F. e Martins, D. C.(2007). Proposta de um sistema fotovoltaico de doisestagios conectado a rede eletrica comercial, Re-vista Eletronica de Potencia (SOBRAEP), Brazil-ian Journal of Power Electronics 12(2): 129–136.

Erickson, R. W. e Maksimovic, D. (2001). Fundamentalsof Power Electronics, Kluwer Academic Publishers.

Franklin, G. F., Powell, J. D. e Emami-Naeini, A.(1995). Feedback control of dynamic systems.

Kubo, M. M., Villalva, M. G., Marafao, F. P. e Rup-pert F., E. (2006). Analise e projeto de PLL dedesempenho melhorado baseado em filtro passa-baixas chebyshev inverso, 16th Brazilian Confer-ence on Automatic Control, CBA.

Kyocera (n.d.). KC200GT high efficiency multicrystalphotovoltaic module (datasheet).

Marafao, F. P., Deckmann, S. M., Pomilio, J. A.e Machado, R. Q. (2004). A software-basedPLL model: Analysis and applications., Congresso

Brasileiro de Automatica, CBA, Brazilian Confer-ence of Control and Automation.

Marafao, F. P., Deckmann, S. M., Pomilio, J. A. eMachado, R. Q. (2005). Metodologia de projeto eanalise de algoritmos de sincronismo PLL, Revistada Sociedade Brasileira de Eletronica de Potencia(SOBRAEP), Brazilian Journal of Power Electron-ics 10(1).

Middlebrook, R. (1988). Small-signal modeling of pulse-width modulated switched-mode power converters,Proceedings of the IEEE 76(4): 343–354.

Middlebrook, R. D. e Cuk, S. (1976). A general unifiedapproach to modelling switching converter powerstage, IEEE Power Electronics Specialists Confer-ence, pp. 18–34.

Oppenheim, A. V. e Schafer, R. (1989). Discrete-TimeSignal Processing.

Villalva, M. G., Gazoli, J. R. e Ruppert F., E. (2009a).Comprehensive approach to modeling and simula-tion of photovoltaic arrays, IEEE Transactions onPower Electronics 25(5): 1198–1208.

Villalva, M. G., Gazoli, J. R. e Ruppert F., E. (2009b).Modeling and circuit-based simulation of photo-voltaic arrays, Revista Eletronica de Potencia (SO-BRAEP), Brazilian Journal of Power Electronics .

Villalva, M. G. e Ruppert F., E. (2007). Buck con-verter with variable input voltage for photovoltaicapplications, Congresso Brasileiro de Eletronica dePotencia (COBEP) .

Villalva, M. G. e Ruppert F., E. (2008a). Dynamic anal-ysis of the input-controlled buck converter fed by aphotovoltaic array, Revista Controle & Automacao- Sociedade Brasileira de Automatica, BrazilianJournal of Control and Automation 19(4): 463–474.

Villalva, M. G. e Ruppert F., E. (2008b). Input-controlled buck converter for photovoltaic applica-tions: modeling and design, 4th IET Conference onPower Electronics, Machines and Drives. PEMD,pp. 505–509.

228 Revista Controle & Automacao/Vol.22 no.3/Maio e Junho 2011