Implement at Inverter f 2812

5
Implementation of Single-Phase Grid Connected Inverter Using TMS320F2812 Krismadinata Chaniago, J. Selvaraj, N.A. Rahim, Centre for Power Electronics, Drives, Automation and Control Department of Electrical Engineering, University of Malaya Malaysia Abstract- This paper describes a digital control method for single-phase grid-connected inverter system with an LCL filter for distributed generation application. Digital PI Current Controller is applied as the control method. The control algorithm is implemented in low cost Digital Signal Processor (DSP) TMS320F2812 eZdsp board. The control method provides robust current regulation and achieve unity power factor. Simulation and experimental results are provided to demonstrate the effectiveness of the design.. I. INTRODUCTION Distributed energy offers solutions to many of the nation's most pressing energy and electric power problems, including blackouts and brownouts, energy security concerns, power quality issues, tighter emissions standards, transmission bottlenecks, and the desire for greater control over energy costs[1]. Photovoltaic as one of distributed energies need to convert to AC source in order to connect to the grid. Inverter is used to convert DC to AC. For inverter-based distributed generation systems (DG), the inverters are connected to the existing grid; therefore, the voltage cannot be controlled. Grid-connected system does not require the battery bank and has become the primary PV application for high power applications. The main purpose of the grid-connected system is to transfer maximum solar array energy into grid with a unity power factor [2]. The strategies of current controllers can be classified as: hysteresis controllers, predictive controllers and ramp comparison controllers. The hysteresis controllers utilize some type of hysteresis in the comparison of the currents to the current reference; the predictive controllers calculate the inverter voltages required to force the measured currents to follow the current reference, while the ramp comparison controller compares the current errors to triangle wave to generate the inverter firing signals [3]. Inverter output current or grid current feedback PI control is commonly used for current-controlled inverters, since they perform satisfactorily during transient under limited operating range. Implementation in analog or digital is cheap and straightforward. This paper will present analysis and implementation of digital PI current control for single-phase grid connected inverter. The control algorithm is implemented in DSP TMS320F2812. II. SINGLE-PHASE GRID CONNECTED INVERTER Single-phase grid connected inverter is similar with single-phase inverters that are widely used in industrial applications such as induction heating, standby power supplies and uninterruptible supplies, however the output of the inverter is directly connected to grid. The inverter consists of four switching devices (represented as ideal switches) connected in the form of a bridge configuration. dc V 1 S 4 S 2 S 3 S grid V grid I f L g L f C inv V Fig. 1 Single-phase grid-connected inverter The single-phase grid connected inverter topology is shown in Fig. 1. It is composed of a dc voltage source (V dc ), four power switches (S 1 -S 4 ), a filter inductor (L f ), a filter inductor grid (L g ), a filter capacitor (C f ) and utility grid (V grid ). The switching ripple filter topology selected for the inverter filter was based on a LCL network as shown in Fig. 2 f C f L g L inv V grid V inv I grid I f r g r Fig. 2 LCL Filter topology The LCL inverter filter equations are as following: dt dI L I r V V inv f inv f c inv f + = . (1) 978-1-4244-1718-6/08/$25.00 ©2008 IEEE Pg 1498 Authorized licensed use limited to: UNIVERSIDADE FEDERAL DE MINAS GERAIS. Downloaded on February 9, 2009 at 18:45 from IEEE Xplore. Restrictions apply.

description

implement at inverter

Transcript of Implement at Inverter f 2812

  • Implementation of Single-Phase Grid Connected Inverter Using TMS320F2812

    Krismadinata Chaniago, J. Selvaraj, N.A. Rahim,

    Centre for Power Electronics, Drives, Automation and Control Department of Electrical Engineering, University of Malaya

    Malaysia

    Abstract- This paper describes a digital control method for single-phase grid-connected inverter system with an LCL filter for distributed generation application. Digital PI Current Controller is applied as the control method. The control algorithm is implemented in low cost Digital Signal Processor (DSP) TMS320F2812 eZdsp board. The control method provides robust current regulation and achieve unity power factor. Simulation and experimental results are provided to demonstrate the effectiveness of the design..

    I. INTRODUCTION Distributed energy offers solutions to many of the

    nation's most pressing energy and electric power problems, including blackouts and brownouts, energy security concerns, power quality issues, tighter emissions standards, transmission bottlenecks, and the desire for greater control over energy costs[1].

    Photovoltaic as one of distributed energies need to convert to AC source in order to connect to the grid. Inverter is used to convert DC to AC. For inverter-based distributed generation systems (DG), the inverters are connected to the existing grid; therefore, the voltage cannot be controlled. Grid-connected system does not require the battery bank and has become the primary PV application for high power applications. The main purpose of the grid-connected system is to transfer maximum solar array energy into grid with a unity power factor [2].

    The strategies of current controllers can be classified as: hysteresis controllers, predictive controllers and ramp comparison controllers. The hysteresis controllers utilize some type of hysteresis in the comparison of the currents to the current reference; the predictive controllers calculate the inverter voltages required to force the measured currents to follow the current reference, while the ramp comparison controller compares the current errors to triangle wave to generate the inverter firing signals [3].

    Inverter output current or grid current feedback PI control is commonly used for current-controlled inverters, since they perform satisfactorily during transient under limited operating range. Implementation in analog or digital is cheap and straightforward.

    This paper will present analysis and implementation of digital PI current control for single-phase grid connected inverter. The control algorithm is implemented in DSP TMS320F2812.

    II. SINGLE-PHASE GRID CONNECTED INVERTER

    Single-phase grid connected inverter is similar with single-phase inverters that are widely used in industrial applications such as induction heating, standby power supplies and uninterruptible supplies, however the output of the inverter is directly connected to grid. The inverter consists of four switching devices (represented as ideal switches) connected in the form of a bridge configuration.

    dcV

    1S

    4S

    2S

    3S

    gridV

    gridI

    fL gL

    fC

    invV

    Fig. 1 Single-phase grid-connected inverter

    The single-phase grid connected inverter topology is

    shown in Fig. 1. It is composed of a dc voltage source (Vdc), four power switches (S1-S4), a filter inductor (Lf), a filter inductor grid (Lg), a filter capacitor (Cf) and utility grid (Vgrid).

    The switching ripple filter topology selected for the inverter filter was based on a LCL network as shown in Fig. 2

    fC

    fLgL invVgridV

    invIgridI

    frgr

    Fig. 2 LCL Filter topology

    The LCL inverter filter equations are as following:

    dtdILIrVV invfinvfcinv f += . (1)

    978-1-4244-1718-6/08/$25.00 2008 IEEE Pg 1498

    Authorized licensed use limited to: UNIVERSIDADE FEDERAL DE MINAS GERAIS. Downloaded on February 9, 2009 at 18:45 from IEEE Xplore. Restrictions apply.

  • dt

    dILIrVV gridggridggridc f += . (2)

    dtdV

    CII fcfgridinv = (3)

    Applying Laplaces transform, the LCL inverter filter can be modeled as shown in Fig. 3.

    Transfer function for this filter is:

    )(1

    123

    ginv

    grid

    rrsssVI

    ++++=

    (4)

    Where: );( fgf CLL=

    ),( ffgfgf CLrCLr += )( 1 fgfg LLCrr ++=

    Procedure to design LCL filter including example can be found in [4], [5] and [6].

    invV

    gridV

    +ff SLr +

    1

    gg SLr +1

    fSC1

    +

    +

    invI

    gridI

    Fig.3. LCL equivalent block diagram

    In this case, 1kW inverter were designed with Vdc =

    200V, m = 0.9, and an LCL filter having a resonance frequency of 1.84 kHz. L1=3mH, L2=1mH, r1=0.2, r2=0.1 and Cf = 10F.

    II. DIGITAL PI CURRENT CONTROL

    In inverter-based DG, the output voltage from inverter

    must be higher than the Vgrid. It is required to assure power flow to grid. Since Vgrid is uncontrollable, the only way of controlling the operation of the system is by controlling the current that is following into the grid.

    Approximately 75% of feedback controllers in the process industry are PI controllers; most of the balances are PID controller. Some applications require only P, or PD controllers, but these are few. [7]

    A proportional controller has only one adjustable or tuning parameter, so this controller have no integration property and will always exhibit error at steady-state in the presence of disturbances and changes in set-point.

    To remove the steady-state offset in the controlled variable of the process, the integral or reset action is added

    and the controller becomes a PI controller. A PI controller has two adjustable or tuning parameter, Kp and Ki.

    +

    IP ST

    K 110

    1

    +0i drivegate

    controller PI windup-Anti

    wave triangle

    Fig.4. PI Regulator Fig.4 shows PI current regulator with insertion of an anti-

    windup to ensure the controlled signal do not saturate. The equation describing a PI controller is as follows:

    =

    +=t

    ip deKteKtu0

    )()()(

    (5)

    Where: u(t) is the control signal e(t) is the error signal t is the continuous-time domain time variable is the calculus variable of integration Kp is the proportional mode control gain Ki is the integral mode control gain

    A digital PI model can be obtained from conversion of the

    analog model or continuous to discrete. Various methods of discretization can be seen in [4].

    The purpose of the digital PI controller is that the current error e(k) can be kept to a minimum value. The current error e(k) is defined as e(k) = Iref(k) - Io(k)

    Where Iref(k) is the specified sinusoidal current command and Io(k) is the measured output current. A digital PI controller is used to generate the required control current Iref(k) according to e(k). As follows:

    )(1

    )()( 1 zezKzeKzu ip

    += (6)

    And the incremental form of the algorithm can be derived as

    )()1()( kukuku += (7) )()]1()([)( keKkekeKku iP += (8)

    Relationship between continuous-time and discrete-time domain of the PI algorithm can be expressed as:

    P term )()( keKteK pp = (9)

    I term [ ] = =

    +t k

    iii ieie

    hKdeK0 0

    )1()(2

    )(

    (10)

    Time relationship: t = k * h (11) Where:

    h is the sampling period

    Pg 1499

    Authorized licensed use limited to: UNIVERSIDADE FEDERAL DE MINAS GERAIS. Downloaded on February 9, 2009 at 18:45 from IEEE Xplore. Restrictions apply.

  • k is the discrete-time index: k = 0, 1, 2,

    pK

    'iKinverter)(kIref

    )(0 kI

    )(ke+

    ++

    )(ku )(0 tI

    T Fig.5 Diagram of digital PI current controller for inverter

    For simplification purposes, it is convenient to define

    new controller gains as:

    2' hKK ii = (12)

    [ ]=

    ++=k

    iip ieie

    hKkeKku0

    )1()(2

    )()( (13)

    To eliminate the need to calculate the full summation each time step (which would require an ever increasing amount of computation as time goes on), the summation is expressed as a running sum:

    [ ])1()()1()( ++= kekeksumksum (14) )(')()( ksumKkeKku ip += (15)

    IV. SIMULATION RESULT

    Simulations have been conducted for a single-phase grid-

    connected inverter using PSIM power electronic simulation software. In the simulations, DC voltage source is 200V, the grid voltage is 120V and the grid frequency is 50Hz; Fig 6 shows PWM pattern for unfiltered inverter output voltage.

    Fig. 6 Simulation result of Inverter output voltage before inductor Fig. 7 shows the waveform of Vgrid and Fig. 8 shows

    waveform of injected current to grid Iload. Waveform of produced current is at unity power factor with grid voltage. This can be shown in Fig. 9.

    Fig.7. Simulation result Grid voltage

    Fig. 8 Waveform of injected current to grid Iload

    Fig. 9 Simulation result Grid voltage

    and Grid current at unity power factor

    V. EXPERIMENT RESULT

    The control algorithm discussed so far has been implemented and tested experimentally on a single-phase grid connected inverter. The inverters parameters are equal to parameters in the simulation. Control algorithm of this inverter is implemented in fix-point TMS320F2812.Experiment setup of this digital signal processing for this inverter as shown in Fig. 10, while hardware setup can be seen in Fig.11.

    Pg 1500

    Authorized licensed use limited to: UNIVERSIDADE FEDERAL DE MINAS GERAIS. Downloaded on February 9, 2009 at 18:45 from IEEE Xplore. Restrictions apply.

  • Fig. 10. Block diagram of experiment setup

    Fig.11. Inverter hardware setup

    1 >

    Fig. 12 Experiment result of Inverter output voltage

    before inductor (100V/div, 5ms/div)

    Fig. 12 shows experiment result of output inverter before fed to filter. In this figure, is shown unipolar PWM pattern. To avoid short circuit in one of inverter leg, a dead band of 4 s is implemented.

    In Fig.13, and 14 shows output voltage of inverter and current that fed to grid. Fig. 15 shows the combined waveform of the current and grid voltage to show that the system is operating at near unity power factor. The Current waveform is the same phase as voltage waveform, while in Fig.16 shown a graphic harmonic distortion.

    1 >

    Fig. 13 Experiment result of

    Grid voltage (100V/div, 5ms/div)

    2 >

    Fig. 14 Experiment result of

    Grid current (10A/div, 5ms/div)

    Fig.15. Experiment result Grid voltage and current at unity power factor

    (100V/div,10A/div, 5ms/div)

    Pg 1501

    Authorized licensed use limited to: UNIVERSIDADE FEDERAL DE MINAS GERAIS. Downloaded on February 9, 2009 at 18:45 from IEEE Xplore. Restrictions apply.

  • Fig.16. Harmonic magnitude as a % of the fundamentalamplitude, THD=4.82%

    Generally, the experiment results are similar with the

    simulation result to show that the PI current control can be implemented with grid connected inverter.

    VI. CONCLUSION This paper presents a digital feedback PI current controller

    for single-phase grid connected inverter. The effectiveness of the control scheme has been verified both by simulation and experimentally. The current produced by this inverter is in phase with grid voltage and also achieve near unity power factor. This method is robust and effective than conventional reference signal generation by the controller and matching it with the grid voltage at later stage.

    ACKNOWLEDGMENT This work has been supported by United Nations

    Development Programme-Global Environment Facility, Pusat Tenaga Malaysia and University of Malaya, for Malaysia Building Integrated Photovoltaic Technology Application Project, The authors would like to thank all the people who are concern.

    REFERENCES

    [1] www.eere.energy.gov/de/ [2] Il-Song Kim, Sliding mode controller for the single-phase grid-

    connected photovoltaic system. Applied Energy 2006, Elsevier [3] Kojabadi, et. al, "A Novel DSP-Based Current-Controlled PWM

    Strategy for Single Phase Grid Connected Inverters", IEEE Trans. on Power Electronics, Vol. 21, No.4, July 2000, pp. 985-993

    [4] M. Liserre, F. Blaabjerg, and A. DellAquila, Step-by-step design procedure for a grid-connected three-phase PWM Voltage Source

    Converter, Int. J. Electron., vol. 91, no. 8, pp. 445460, Aug. 2004.

    [5] M. Bojrup, Advanced control of active filters in a battery charger application, Ph.D. dissertation, Lund Univ. Technology., Lund, Sweden, 1999.

    [6] M. Lindgren, Modeling and control of voltage source converters connected to the grid, Ph.D. dissertation, Chalmers Univ. Technol., Gteborg, Sweden, 1998.

    [7] M. Gopal, Digital Control and State variable methods, Second Edition, Singapore Mc Graw Hill, 2004

    2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 500.0% 0.3% 0.7% 1.0% 1.4% 1.7% 2.0% 2.4% 2.7% 3.1% 3.4%

    Pg 1502

    Authorized licensed use limited to: UNIVERSIDADE FEDERAL DE MINAS GERAIS. Downloaded on February 9, 2009 at 18:45 from IEEE Xplore. Restrictions apply.