Top Banner

of 88

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    1/88

    A Single Phase Grid Connected DC/AC Inverter with

    Reactive Power Control for Residential PV Application

    by

    Xiangdong Zong

    A thesis submitted in conformity with the requirementsfor the degree of Masters of Applied Science

    Graduate Department of Electrical and Computer EngineeringUniversity of Toronto

    Copyright 2011 by Xiangdong Zong

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    2/88

    Abstract

    A Single Phase Grid Connected DC/AC Inverter with Reactive Power Control for

    Residential PV Application

    Xiangdong Zong

    Masters of Applied Science

    Graduate Department of Electrical and Computer Engineering

    University of Toronto

    2011

    This Master of Applied Science thesis presents a single phase grid connected DC/AC

    inverter with reactive power (VAR) control for residential photovoltaic (PV) applications.

    The inverter, utilizing the voltage sourced inverter (VSI) configuration, allows the local

    residential PV generation to actively supply reactive power to the utility grid. A low

    complexity grid synchronization method was introduced to generate the parallel and

    orthogonal components of the grid voltage in a highly computationally efficient manner

    in order to create a synchronized current reference to the current control loop. In addition,the inverter is able to use a small long life film type capacitor on the DC-link by utilizing a

    notch filter on the voltage control loop. Simulations were performed on PSCAD/EMTDC

    platform and a prototype was also developed in the lab to prove the effectiveness of the

    controllers and the grid synchronization method.

    ii

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    3/88

    Acknowledgements

    First I would like to express my gratitude to my supervisor Professor Peter Lehn for his

    wisdom, patience, and for giving me the opportunity to study with him and this exciting

    project for my thesis. His guidance and support were the most important assets that led

    the completion of this thesis.

    I would also like to thank my loving parents Youjin and Guanghui for their uncon-

    ditional love and support, and my wife Xiaolin for sticking with me through thick and

    thin over the last five years.

    Finally I would like to acknowledge and give thanks to all the people working in the

    power lab for their support, especially Damien Frost and Gregor Simeonov.

    iii

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    4/88

    Contents

    List of Abbreviations vii

    1 Introduction 1

    1.1 Background and Motivation . . . . . . . . . . . . . . . . . . . . . . . . . 2

    1.2 Literary Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

    1.2.1 Grid connected PV systems . . . . . . . . . . . . . . . . . . . . . 4

    1.2.2 Controls of the VSI . . . . . . . . . . . . . . . . . . . . . . . . . . 6

    1.2.3 Reducing the Size of the DC-link Capacitor . . . . . . . . . . . . 8

    1.2.4 Grid Synchronization Techniques . . . . . . . . . . . . . . . . . . 10

    1.3 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

    2 Single Phase Grid Connected Inverter Design 13

    2.1 Inverter Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

    2.2 Switching Circuit Configuration . . . . . . . . . . . . . . . . . . . . . . . 14

    2.3 DC-link Capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

    2.3.1 Electrolytic Capacitors vs. Film Capacitors . . . . . . . . . . . . 152.3.2 Sizing the DC-link Capacitor . . . . . . . . . . . . . . . . . . . . 18

    2.4 Output Filter Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

    2.4.1 Filter Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 21

    3 Controller Design 25

    iv

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    5/88

    3.1 Current Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

    3.1.1 Plant Modelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

    3.1.2 Proportional Resonant Controller . . . . . . . . . . . . . . . . . . 27

    3.1.3 Closed-Loop Stability . . . . . . . . . . . . . . . . . . . . . . . . . 30

    3.2 Grid Synchronization Method . . . . . . . . . . . . . . . . . . . . . . . . 32

    3.2.1 Grid Voltage Estimator . . . . . . . . . . . . . . . . . . . . . . . . 32

    3.2.2 Grid Voltage Amplitude Identifier . . . . . . . . . . . . . . . . . . 38

    3.2.3 Synchronized Current Reference Creation . . . . . . . . . . . . . . 41

    3.2.4 Discussion of the Proposed Grid Synchronization Method . . . . . 41

    3.3 Voltage Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

    3.3.1 Voltage Loop Modelling . . . . . . . . . . . . . . . . . . . . . . . 43

    3.3.2 DC Voltage Compensator . . . . . . . . . . . . . . . . . . . . . . 46

    3.4 Digital Implementation of the Controller . . . . . . . . . . . . . . . . . . 46

    3.4.1 Switching Frequency Consideration . . . . . . . . . . . . . . . . . 48

    3.4.2 Per-unitize and Fixed Number Format . . . . . . . . . . . . . . . 48

    4 PSCAD/EMTDC Simulation Results 49

    4.1 Inverter Current Loop Simulation . . . . . . . . . . . . . . . . . . . . . . 49

    4.1.1 Steady State Response . . . . . . . . . . . . . . . . . . . . . . . . 51

    4.1.2 Transient Response . . . . . . . . . . . . . . . . . . . . . . . . . . 52

    4.2 Inverter Voltage Loop Simulation . . . . . . . . . . . . . . . . . . . . . . 53

    4.2.1 Steady State Response . . . . . . . . . . . . . . . . . . . . . . . . 53

    4.2.2 Transient Response . . . . . . . . . . . . . . . . . . . . . . . . . . 55

    5 Inverter Experimental Results 58

    5.1 Steady State Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

    5.2 Transient Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

    v

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    6/88

    6 Conclusion and Future Work 65

    6.1 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

    6.2 Future Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

    A IEEE-1547 Standard on Harmonic Current Injection 67

    B PR Controller Behaviour 68

    C Harmonics Table for Switch Mode Inverters 70

    Bibliography 71

    vi

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    7/88

    List of Abbreviations

    AC Alternating Current

    DC Direct Current

    DR Distributed Resources

    LF Loop Filter

    microFIT micro-feed-in tariff

    MPPT Maximum Power Point Tracking

    OPA Ontario Power Authority

    PCC Point of Common Coupling

    PD Phase Detector

    PI Proportional Integral

    PLL Phase Locked Loop

    PR Proportional Resonant

    PV photovoltaic

    SOGI Second Order Generalised Integrator

    SPWM Sinusoidal Pulse Width Modulation

    vii

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    8/88

    TDD Total Demand Distortion

    THD Total Harmonic Distortion

    VCO Voltage Controlled Oscillator

    VSI Voltage Sourced Inverter

    viii

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    9/88

    List of Tables

    2.1 Inverter specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

    2.2 Output filter parameters and their chosen values . . . . . . . . . . . . . . 24

    3.1 PR compensators parameters and systems parameters . . . . . . . . . . 30

    4.1 Inverter current loop simulation power stage parameters . . . . . . . . . 50

    4.2 Active and reactive power measurement of the current loop simulation . . 51

    4.3 Active and reactive power measurement of the voltage loop simulation . . 54

    5.1 Summary of measured power factor and TDD . . . . . . . . . . . . . . . 59

    A.1 Maximum harmonic current distortion in percent of current(I)

    a

    . . . . . 67

    C.1 Generalized harmonics ofVAo for a large mf . . . . . . . . . . . . . . . . 70

    ix

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    10/88

    List of Figures

    1.1 Past technology - centralized inverters . . . . . . . . . . . . . . . . . . . 5

    1.2 Two stage inverter configurations . . . . . . . . . . . . . . . . . . . . . . 6

    1.3 Instantaneous output power of a single phase inverter at unity displace-

    ment factor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

    1.4 An example of an active power decoupling circuit . . . . . . . . . . . . . 9

    2.1 Power stage configuration of the single phase PV inverter . . . . . . . . . 14

    2.2 Generic DC-link voltage waveform . . . . . . . . . . . . . . . . . . . . . 15

    2.3 Full bridge configuration with PWM unipolar voltage switching scheme . 16

    2.4 Output LCL filter of the inverter . . . . . . . . . . . . . . . . . . . . . . 21

    2.5 Magnitude plot of the output filter transfer functionHf(s) . . . . . . . . 23

    2.6 Magnitude plot ofHf(j) using selected filter components values . . . . 24

    3.1 The inverter controller overall block diagram . . . . . . . . . . . . . . . . 26

    3.2 Current controller block diagram . . . . . . . . . . . . . . . . . . . . . . 27

    3.3 Bode plot of (a) ideal PR compensator, (b) non-ideal PR compensator,

    Kcp=1, Kci =2000, =0.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

    3.4 The bode plot of the uncompensated and compensated current loop gain 31

    3.5 Overview of the grid synchronizer and VAR controller . . . . . . . . . . 32

    3.6 Feedback loop of the grid voltage estimator . . . . . . . . . . . . . . . . . 33

    x

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    11/88

    3.7 (a) State trajectory of the estimator, (b)Peak voltage phasor diagram of

    the estimators input and outputs . . . . . . . . . . . . . . . . . . . . . . 34

    3.8 Bode plot of Vg(j)

    Vg(j) and

    Vg(j)

    Vg(j) . . . . . . . . . . . . . . . . . . . . . . . 36

    3.9 Turn on trajectory of the estimators state variables with different ksync

    values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

    3.10 Time domain response of the estimators state variables . . . . . . . . . . 38

    3.11 Zoomed in time domain response of the distorted grid voltage vg(t), the

    estimators output and its desired values . . . . . . . . . . . . . . . . . . 39

    3.12 Power factors vs. grid frequencies for Q=0 while neglecting switching

    harmonics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

    3.13 Inverter power stage diagram . . . . . . . . . . . . . . . . . . . . . . . . 43

    3.14 Phasor diagram ofig and its two components . . . . . . . . . . . . . . . 44

    3.15 Voltage loop of the inverter . . . . . . . . . . . . . . . . . . . . . . . . . 45

    3.16 Effect of the double-line frequency ripple on the current reference signal . 45

    3.17 Bode plot of the uncompensated and compensated voltage loop gain . . 47

    4.1 Inverter current loop simulation setup . . . . . . . . . . . . . . . . . . . . 504.2 PSCAD/EMTDC simulation result of the grid voltage estimators outputs

    and their desired values . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51

    4.3 Steady state response of the current loop simulation . . . . . . . . . . . . 52

    4.4 Step response of the current loop simulation . . . . . . . . . . . . . . . . 53

    4.5 Inverter voltage loop simulation setup . . . . . . . . . . . . . . . . . . . . 54

    4.6 Steady state response of the current loop simulation . . . . . . . . . . . . 55

    4.7 TDD vs. ign when running pure real power and reactive power for voltage

    loop simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

    4.8 Voltage loop simulation based on the DC-link voltage step change . . . . 57

    4.9 Step response of the voltage loop simulation based on the DC input current

    step change and irefg step change . . . . . . . . . . . . . . . . . . . . . . . 57

    xi

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    12/88

    5.1 Inverter experimental setup . . . . . . . . . . . . . . . . . . . . . . . . . 59

    5.2 Steady state operation of the inverter. From top to bottom: DC-link

    voltage Vndc=140V on CH1 at 50V/Div, grid voltage vg=60V(RMS) on

    CH4 at 100V/Div and output currentig=10A (RMS) on CH3 at 20A/Div.

    Time scale 5ms/Div . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

    5.3 TDD vs. ign when running pure real power and reactive power . . . . . . 61

    5.4 DC-link voltage step response of the inverter. (a) From top to bottom:

    DC-link voltage vdc(t) on CH1 at 10V/Div, grid voltage vg(t) on CH4

    at 100V/Div and output current ign on CH3 at 2A/Div. Time scale

    20ms/Div. (b) From top to bottom: DC-link voltage vdc(t) on CH1 at

    50V/Div, grid voltagevg(t) on CH4 at 100V/Div and output currentign(t)

    on CH3 at 10A/Div. Time scale 20ms/Div . . . . . . . . . . . . . . . . . 63

    5.5 Input power step change and irefg step change response of the inverter.

    (a) from top to bottom: DC-link voltage vdc(t) on CH1 at 50V/Div, grid

    voltagevg(t) on CH4 at 100V/Div and output current ign(t) on CH3 at

    10A/Div, time scale 10ms/Div. (b) from top to bottom: DC-link voltage

    vdc(t) on CH1 at 50V/Div, grid voltage vg(t) on CH4 at 100V/Div and

    output current ign(t) on CH3 at 5A/Div, time scale 100ms/Div . . . . . . 64

    B.1 Frequency response of the PR controller with each parameter changes . . 69

    xii

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    13/88

    Chapter 1

    Introduction

    This chapter introduces the main topic of this thesis, a single phase grid connected

    DC/AC inverter with reactive power (VAR) control for residential photovoltaic (PV)

    applications. In this work, the foci are on the control of the inverter and the grid

    synchronization technique. Another challenge involves the reduction of the size of the

    DC-link capacitor in order to use long life film capacitor in a low cost manner.

    First, a brief background on the single phase PV grid connected inverter is presented

    along with the motivation of this work. Then, a literary review on the PV inverter

    system configurations, controls, DC-link capacitor reduction techniques and the grid

    synchronization methods are presented. The objectives of this work is stated at the end

    of this chapter.

    The remainder of the work is organized as follows:

    Chapter 2 describes the design of the inverters power stage including the selection of

    the switching circuits, DC-link capacitor consideration, and the output filter design.

    Chapter 3 focuses on the control methods of the inverter which consist of a current

    controller along with a low complexity grid synchronization technique and a DC voltage

    controller.

    Chapter 4 shows the PSCAD/EMTDC simulation results for the grid connected in-

    1

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    14/88

    Chapter 1. Introduction 2

    verter. The validation of the current loop control and the voltage control are shown.

    Chapter 5 shows the experimental results for the grid connected inverter. The steady

    state operation and the transient response results of the inverter are shown and discussed.

    Chapter 6 summarizes the thesis, and the future directions that can be investigated.

    1.1 Background and Motivation

    Integration of PV power generation systems in the grid plays an important role in securing

    the electric power supply in an environmentally-friendly manner. Grid-connected PV

    inverters are needed to extract the energy from the PV modules and feed it into the utility

    grid while ensuring the power quality follows certain grid interconnection standards such

    as IEEE-1547 [1].

    In addition to large scale rural solar farms, the market of residential PV power gen-

    erations has grown rapidly in recent years by the encouragement of local governments

    and utility companies. For example, in 2009, Ontario Power Authority (OPA) launched

    the micro-feed-in tariff (microFIT) program to provide opportunities for homeowners,farmers and small business owners to develop mircro renewable electricity generation

    projects (10 kilowatts or less in size). Under the microFIT program, they will be paid a

    much higher price for the electricity that the projects produce comparing to the standard

    price people pay for their electricity. Particularly, for PV rooftop generation, the contract

    price paid is 80.2 cents/kWh, whereas the blended rate of electricity in Ontario is 7.74

    cents/kWh in the summer period. Therefore, with the help of such stimulation programs,

    a growing market exists for residential PV inverters. Many companies such as National

    Semiconductor and Enphase are expanding their business in the area of residential PV

    inverters.

    Unlike rural solar farms, residential PV modules require the grid-connected inverters

    to be small, low-power and single-phase units. In North America, a split phase electricity

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    15/88

    Chapter 1. Introduction 3

    distribution system, also referred to as 3-wire, single-phase, mid-point neutral system, is

    commonly used for single family residential and light commercial applications. There are

    two live conductors in the system providing 240V between them; both live conductors

    are referred as hot wires. The neutral wire is centre tapped from the output of the

    distribution transformer, thus the hot to neutral voltage is 120V. The safety ground

    connects cases of equipments to earth ground as a protection against faults. Such a

    system makes it possible to supply 120V for ordinary receptacle service at home, while

    also having 240V available for major appliances such as electric ranges and water heaters.

    The frequency of the system is 60Hz. Therefore, single phase, 60Hz and 120/240V point

    of common coupling (PCC) voltage can be used as a basic guideline when designing the

    grid connected PV inverters and their controls.

    As more distributed resources (DR) become integrated into the grid at the distri-

    bution level, the trend that the DR units actively supply reactive power to the grid

    has appeared. Having the capability of supplying reactive power with local DRs would

    not only help grid stability [24] but will also partially reduce the burden of delivering

    reactive power from central generation to the local distribution level for compensating

    of inductive load [5]. Although purposeful injection of reactive power or attempting to

    regulate voltage by a distributed generator is not currently permitted by IEEE-1547,

    there is a trend of changing such standard based on the reasons mentioned above. In

    fact, in recent years, researchers have explored methods for single phase inverters to gain

    the ability of supplying reactive power to the grid [6] [7]. Therefore, it is beneficial that

    the single phase DC/AC grid connected inverter would have the feature of controlling

    reactive power.

    This thesis will therefore focus on designing a single phase grid connected DC/AC

    inverter with VAR control for residential PV application.

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    16/88

    Chapter 1. Introduction 4

    1.2 Literary Review

    1.2.1 Grid connected PV systems

    Grid connected PV systems are categorized based on the number of power stages. The

    past technology used single stage centralized inverter configurations. The present and fu-

    ture technology focus predominantly on the two stage inverters where a DC/DC converter

    is connected in between the PV modules and the DC/AC inverter.

    1.2.1.1 Single Stage Centralized Inverters

    A general summary of the evolution of the PV system configurations are described in [8].

    The first generation of the grid connected PV systems directly connect centralized grid

    connected DC/AC inverter to an array of PV modules, shown in Figure 1.1(a). The

    PV modules are connected in series, also referred to as PV strings, in order to provide

    sufficient output voltage. The PV strings are then connected in parallel through string

    diodes in order to achieve high power production. In this configuration, the centralized

    DC/AC inverter is subjected to handle, maximum power point tracking (MPPT), gridcurrent control and voltage amplification if necessary. Although the configuration is

    simple, the drawbacks are substantial. One of the biggest is the poor energy harvesting

    capabilities of the centralized MPPT due to shading, panel mismatch and degradation

    factors [9]. Other drawbacks may include losses in the string diodes and the non-flexibility

    of the design.

    Reduced power versions of the centralized inverter configuration were developed to

    have separated MPPT for each PV string, Figure 1.1(b). The systems are referred to as

    string inverters. They offer higher energy harvesting than central converters and eliminate

    the loss associated with string diodes. Although this configuration is advantageous in

    the two aforementioned ways, people would still try to seek a more flexible design which

    allows them to start their PV power plants with fewer modules and to easily enlarge the

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    17/88

    Chapter 1. Introduction 5

    DC

    ACAC grid

    PV string

    String diodes

    (a) Centralized inverter configuration

    DC

    AC

    PV string

    DC

    AC

    PV string

    ACgrid

    (b) Reduced centralized inverter con-

    figuration

    Figure 1.1: Past technology - centralized inverters

    system in the future. For this reason, DC/DC converters can be connected in between

    the PV modules and the DC/AC inverters to provide MPPT and voltage amplification

    so that fewer PV modules can be used in each string. Further system enlargements can

    also be easily achieved with the help of the DC/DC converters.

    1.2.1.2 Two Stage Inverters

    In order to improve the energy harvesting capabilities and design flexibility, dedicated

    DC/DC converters, which perform MPPT for each PV string can be connected in the

    middle between the PV modules and the DC/AC inverter [8], Figure 1.2. The system

    shown in Figure 1.2(a) has its PCC at the AC terminal. This system type benefits

    from its modularity and the capability of plug-and-play installation by users that possess

    limited knowledge of electrical systems. The output from the DC/DC converter in this

    configuration can be either a low ripple DC voltage, or a modulated current that follows a

    rectified sine wave. In the latter case, the DC/DC converter handles MPPT and output

    current regulation while the DC/AC inverter switches at the grid frequency to unfold

    the rectified sine wave. Reference [10] is an example of the unfolding configuration. The

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    18/88

    Chapter 1. Introduction 6

    DC

    AC

    DC

    DC

    DC

    AC

    DC

    DC

    ACgrid

    PV string

    PV string

    (a) Two stage inverter PCC at AC terminal

    DCAC

    DC

    DC

    DC

    DC

    ACgrid

    PV string

    PV string

    (b) Two stage inverter PCC at DC/AC inverter in-

    put

    Figure 1.2: Two stage inverter configurations

    slow switching scheme of the DC/AC inverter allows usage of slow switching devices, e.g

    BJTs. In the case that the output is a low ripple DC voltage, the DC/DC converter

    performs MPPT and voltage amplification if necessary. The DC/AC inverter is then a

    voltage sourced inverter (VSI) which handles the output current regulation and DC bus

    voltage regulation. The VSI usually uses a self commutating half bridge or full bridge

    configuration as its switching circuit.

    In the system shown in Figure 1.2(b), multiple DC/DC converters feed a single VSI.

    The DC/DC converters handle MPPT and voltage amplification if necessary and the

    central DC/AC inverter is again a VSI which handles the output current regulation and

    intermediate DC bus voltage regulation. In this thesis, we focus on the VSI design of the

    DC/AC inverter which is commonly used in the two stage PV inverter systems of types

    shown in Figure 1.2(a) and 1.2(b) above.

    1.2.2 Controls of the VSI

    There are three major output current control techniques for the single phase VSI: hys-

    teresis band, predictive, and sinusoidal pulse width modulation (SPWM) control [11] [12].

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    19/88

    Chapter 1. Introduction 7

    Traditional hysteresis controllers normally have an error band within a fixed range [13].

    In such controllers, if the measured output current is lower than the lower limit of the

    hysteresis band of the reference current, the bridge increases its output voltage, increas-

    ing the current. On the contrary, when the output current is higher than the upper

    limit of the hysteresis band of the reference current, the bridge reduces its output volt-

    age, decreasing the current. This type of controller has the advantage of simplicity and

    robustness, but the fixed error band would cause constant varying switching frequency,

    which may increase the complexity of designing the output filters and the heat sinks of

    the switches. An example of an adaptive hysteresis band current controller which can

    achieve almost constant switching frequency to overcome the aforementioned problems

    is stated in [14].

    Predictive controllers calculate the required bridge output voltage to force the mea-

    sured output current to follow the reference value. This type of control offers a potential

    to achieve precise current control with minimum distortions [15] [16]. However, the

    controller needs complicated calculations and requires a very accurate knowledge of the

    system parameters. Reference [17] proposed an adaptive predictive current controller

    which has more tolerance for system parameter mismatch, i.e. unexpected changes of

    actual inductance with magnetic field intensity, temperature, etc. A fuzzy logic controller

    was also proposed in [18] which provides robust performance under parameter and load

    disturbances.

    The SPWM control has a long history and is easy to implement. The traditional

    method of SPWM control uses a proportional-integral (PI) compensator in the feedback

    loop to regulate the output current. However, while PI compensators have excellent

    performances on regulating DC quantities, tracking a sinusoidal current reference would

    lead to steady state magnitude and phase errors [19]. Then, over the past two decade,

    researchers have explored use of proportional-resonant (PR) controller, while can provide

    infinite gain at the reference signals oscillating frequency [20] [21]. The PR controller,

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    20/88

    Chapter 1. Introduction 8

    Pout

    t1/(2fg)

    VgrmsIg

    rms

    Figure 1.3: Instantaneous output power of a single phase inverter at unity displacement

    factor

    based on the internal model principle first proposed by Francis and Wonham [22],

    has the ability to eliminate the steady state error when tracking a sinusoidal wave and is

    commonly used in single phase inverter systems [21,23,24]. This thesis takes advantage of

    the PR compensator and implements the current controller using SPWM control theory.

    1.2.3 Reducing the Size of the DC-link Capacitor

    One of the challenges when designing single phase VSIs for PV application is the selection

    of the DC-link capacitor. The instantaneous output power of a single phase inverter is

    graphically shown in Figure 1.3, which contains a constant and a double-line frequency

    power component. Therefore, the DC-link contains power pulsation with twice the grid

    frequency. Often, large electrolytic capacitors are connected to the DC-link to absorb

    this power pulsation so that the DC-link voltage ripple can be kept small. However, most

    PV module manufactures offer 25 year warranties on 80% of the initial efficiency and five

    years warranty on materials and workmanship [8]. Therefore, electrolytic capacitors with

    large capacitance can not be used in PV applications because of their short lifetime.

    Many techniques were proposed to reduce the size of the DC-link capacitor while

    maintaining a good inverter power quality so that a more reliable film type capacitor can

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    21/88

    Chapter 1. Introduction 9

    DC

    ACvg(t)

    iin idc

    idecoupleCdc

    CdecoupleS1

    S2

    Decoupling circuit

    Figure 1.4: An example of an active power decoupling circuit

    be used.

    Methods like [25] and [26] uses an auxiliary circuit to circulate the double-line fre-

    quency ripple power. Figure 1.4 is an example shown in [25], where the bidirectional

    DC/DC converter is used as the decoupling circuit and the decoupling capacitor is al-

    lowed to contain a large ripple component. In addition to the fact that an auxiliary circuit

    would increase the energy loss, the inductor and the capacitor size used in the auxiliary

    circuit has to be sufficiently large. Meanwhile, the switches used in the auxiliary circuit

    must have rating comparable to the main power stage switches. Therefore, although

    such methods can solve the problem of double-line frequency ripple, they are not a viable

    solution considering the extra cost and energy loss associated with the introduction of

    the auxiliary circuit.

    Other methods [27] and [28] use control methods such as predictive and hysteresis

    band control on the DC-link voltage. Both methods were able to average out the

    double-line frequency ripple by only sampling the DC-link voltage every AC cycle so

    that the output current would stay unaffected by the large ripple component. This thesis

    utilizes a notch filter in the control loop to average out the double-line frequency that

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    22/88

    Chapter 1. Introduction 10

    appeared on the DC-link voltage. A detail analysis of the DC-link capacitor can be found

    in Section 2.3.

    1.2.4 Grid Synchronization Techniques

    A conventional method of grid synchronization for grid connected DC/AC inverter is to

    duplicate the grid voltage so that output current reference has the same phase as the

    grid voltage [30]. While this method is simple, it carries the distortions and transients

    from the grid to the output current, which is undesirable for grid connected applications.

    In addition, this method of grid synchronization cannot provide inverters the ability of

    controlling reactive power flow.

    Phase locked loops (PLL) are commonly used in the single phase grid connected

    inverters. Stationary frame PLLs only take the grid voltage as the input and do not

    require additional signal. The typical stationary frame PLL employs a sinusoidal multi-

    plier phase detector (PD), a loop filter (LF) and a voltage controlled oscillator (VCO).

    Reference [31] modified the stationary frame PLLs with additional state feedback terms.

    These feedback terms increase the synchronization speed, improve the immunity to inputnoise and disturbances, and eliminate the double-line frequency ripple term generated

    from the PD.

    Synchronous frame (dq) PLLs are also commonly used in the modern grid connected

    inverters. Such types of systems convert the oscillating grid voltage and its emulated

    orthogonal component () to DC quantities (dq) using - dq transform. Then a PI

    regulator can be used to regulate either Vd or Vq to be zero so that the phase of the d

    or q component can be locked. The methods of generating the orthogonal component

    are different. In [32], a all pass filter is used on the input to have the phase of the gird

    voltage delayed by 90 . However, the all pass filter would also carry distortions from

    the input. Others such as [33] and [34] generate the orthogonal component based on a

    second order generalised integrator (SOGI). This structure effectively filters out the high

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    23/88

    Chapter 1. Introduction 11

    frequency distortion on the input and the orthogonal component before they are fed into

    the - dq transform. The synchronous frame PLLs, although not explicitly specified,

    has the potential to provide sufficient phase information to the controller for the reactive

    current reference generation. This effectively allows the inverter to have the ability of

    controlling reactive power flow. Although this type of PLLs has the aforementioned

    merits, its implementation process can be complicated due to the need for an orthogonal

    component generator and sin and cos operations in the - dq transform.

    This thesis proposes a low complexity grid synchronization method which extracts

    both the parallel component and the orthogonal component from the grid voltage while

    sufficiently filtering out grid distortions. The grid synchronizer is easy to implement and

    provides the inverter the capability of controlling the reactive power generation without

    the need for dq frame transformation.

    1.3 Objectives

    The objectives of this works are as follows:

    Ensure that the voltage on the DC side of the VSI and the output current are well

    regulated by choosing appropriate inverter topology, the output filter configuration

    and proper control methods.

    The output current should meet the standard associated with larger 3-phase PV

    inverters as laid out in IEEE-1547. This will enable grid code compliance if a large

    number of inverters are clustered together and grid interfaced at the same PCC.

    Use high reliable energy storage components (i.e. film capacitors) to increase the

    life-span of the inverter in a low cost manner.

    Introduce a new method of grid synchronization which gives the inverter the capa-

    bility of controlling the reactive power generation at minimal computational burden.

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    24/88

    Chapter 1. Introduction 12

    Exploit new generation MOSFETs and low cost MCUs to maximize switching fre-

    quency and drive down output filter size and cost.

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    25/88

    Chapter 2

    Single Phase Grid Connected

    Inverter Design

    In this chapter, the design of the single phase PV inverter power stage is described,

    Figure 2.1. Firstly, the inverter design specifications are given. Secondly, based on the

    specifications, the choice of the switching scheme is briefly described. Thirdly, the selec-

    tion of the DC-link capacitor is discussed based on its lifetime and size. Following this,

    the design equations on DC-link capacitance are developed based on the power balance

    and double-line frequency ripple voltage. Finally, the design guide for the output filter

    is discussed based on the IEEE-1547 standard and the filter configuration is described.

    2.1 Inverter Specifications

    The basic specifications for the inverter design are listed in Table 2.1. Since the design

    primarily focuses on the control and the grid synchronization method of the inverter,

    the efficiency target of the inverter is not specified because it is outside of the scope.

    Although maximizing efficiency is not the focus of this work, loss considerations still

    drive selection of a viable converter topology.

    In addition, Figure 2.2 illustrates a general waveform of the DC-link voltage to show

    13

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    26/88

    Chapter 2. Single Phase Grid Connected Inverter Design 14

    vg(t)

    +

    -

    ig(t)

    LgLi

    Cf

    Rd

    +

    -

    sa sb

    salow sblow

    idc(t)

    Cdc ign(t)vdc(t) vt(t)

    Figure 2.1: Power stage configuration of the single phase PV inverter

    the definition of the nominal DC-link voltage and the ripple component.

    Rated grid voltage, Vratedg 250V (RMS)

    Rated grid current,Iratedg 10A (RMS)

    Switching frequency range, fsw >20kHz,20kH z)

    without indroduction of excessive switching loss.

    Furthermore, showing in Figure 2.3(d), using unipolar voltage switching scheme effec-

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    27/88

    Chapter 2. Single Phase Grid Connected Inverter Design 15

    vdc(t)

    vdc,ripple(t)Vdcn

    t

    Figure 2.2: Generic DC-link voltage waveform

    tively moves the first major harmonic of the bridge output voltage from order mf 1 to

    the order of 2mf1, wheremf is the frequency modulation ratio - the ratio between theswitching frequency and the fundamental frequency. The output filter thus reduces its

    size for free. Since this full bridge configuration with SPWM unipolar voltage switch-

    ing scheme is commonly used in voltage sourced inverters, further investigations will not

    be presented in this thesis. A full detail analysis can be found in [35].

    2.3 DC-link Capacitor

    This section discusses the two types of capacitors that can be used as the DC-link buffer-

    ing capacitor. A brief comparison is made based on their life time and power decoupling

    ability. Methods of ensuring the inverters power quality while using a capacitor that has

    a small capacitance are also discussed. Finally, the calculation of the DC-link capacitance

    is shown in this section.

    2.3.1 Electrolytic Capacitors vs. Film Capacitors

    The DC-link capacitor is important for the power decoupling between the input power to

    the inverter and their output power to the utility grid. Normally, electrolytic capacitors

    are used for their large capacitance and low cost. However, in PV applications where the

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    28/88

    Chapter 2. Single Phase Grid Connected Inverter Design 16

    +

    -vdc(t) +

    -vt(t)

    sa sb

    salow sblow

    A

    B

    (a) Full bridge configuration

    t

    vref

    (-vref)

    vsaw

    0

    (b) Unipolar SPWM switching scheme

    t

    vdc

    -vdc

    0

    vt

    vt,fund(t)

    (c) Waveform of the bridge output voltage

    dc

    ht

    v

    V)(

    h0

    0.2

    0.4

    0.6

    0.8

    1.0

    1 mf 2mf 3mf 4mf

    (2mf-1) (2mf+1)

    (d) Harmonics on the nominlized frequency spectrum

    Figure 2.3: Full bridge configuration with PWM unipolar voltage switching scheme

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    29/88

    Chapter 2. Single Phase Grid Connected Inverter Design 17

    inverters are usually exposed to outdoor temperatures, the lifetime of such electrolytic

    capacitors is shorten drastically according to the equation below [8] [36]:

    Lop= Lop(0) 2T0ThT (2.1)

    whereLopis the operational lifetime,Lop(0) is the specified operational lifetime at the

    hot-spot temperature T0 (can be found in the product datasheets), Th is the operating

    temperature and T is the degree Celsius increase that would results in half the oper-

    ational life (also can be found in the product datasheet). Typically, Lop(0) is between

    3000 hours to 6000 hours (8 months to 16 months) at 85 C for electrolytic capacitors

    with rated voltage above 400V [37].

    In PV applications, since most PV module manufactures offer 25 year warranties on

    80% of the initial efficiency and five years warranty on materials and workmanship [8],

    the lifetime of the electrolytic capacitors have become a major limiting component inside

    a PV inverter.

    Film capacitors are a clear the alternative given their long life expectancy and wide

    operating temperature range. Unfortunately, film capacitors are far more expensive thanthe electrolytic ones in term of cost per farad, hence the size of the capacitance has to

    be smaller to keep the price of the capacitor acceptable. However, smaller capacitance

    would weaken the power decoupling ability of the DC-link capacitor which may cause

    DC-link voltage fluctuations that lead to distortion of the inverter output current to the

    grid.

    There are two factors that can cause undesirable DC-link voltage variations. The

    first one, which can be referred to as the transient DC fluctuation is caused by the rapid

    increase/decrease of the input power flowing into the DC-link capacitor. The quality

    of the output current can be optimized by using a very fast current controller or by an

    optimal current adjustment method stated in [29] and [28]. However, in PV application,

    the chance of rapid DC input power variation is little due to the nature of the sun as

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    30/88

    Chapter 2. Single Phase Grid Connected Inverter Design 18

    well as the processing delay of MPPT in the front end DC/DC converter. Therefore, the

    transient DC fluctuation is not a major concern when designing a VSI for PV application.

    The second factor, which can be referred to as the AC fluctuation of the DC-link

    voltage is caused by the double-line frequency ripple power generated from the grid

    side (refer to Equation (2.4)). This double-line frequency ripple component can couple

    through the DC voltage control loop to cause a significant amount of distortion on the

    current reference signal.

    Therefore, methods need to be taken so that the inverter output current is immune

    to the double-line frequency ripple on the DC-link voltage. A notch filter or an average

    filter can be applied to the feedback signal of the DC-link voltage in the voltage control

    loop, so that this double-line frequency ripple component is filtered out before entering

    the voltage controller. This prevents the output current from having distortions that

    are resulted from the DC voltage control loop. Furthermore, we also employ a nonlinear

    DC voltage feedforward to the output of the current controller so that the modulation

    signal that is sent to the SPWM modulator cancels out the effect of the double-line

    frequency ripple that appears on the DC-link (refer to Figure 3.1 in Chapter 3). A

    further discussion on the double-line frequency ripple component reduction method can

    be found in Section 3.3.

    In this thesis, a notch filter is employed in the DC voltage control loop to keep the

    output current from the distortion caused by the double-line frequency ripple voltage. As

    a result, the inverter has a relatively large tolerance on the voltage ripple that appeared

    on the DC-link, thus a film capacitor with relatively small capacitance can be used to

    keep the DC-link capacitor at an acceptable price.

    2.3.2 Sizing the DC-link Capacitor

    To limit the magnitude of the double-line frequency ripple voltage to the specified level,

    the DC link capacitor is sized according to the following equations:

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    31/88

    Chapter 2. Single Phase Grid Connected Inverter Design 19

    Assuming the grid voltage and the grid current are:

    vg(t) = Vgcos(gt) (2.2)

    ig(t) = Igcos(gt ) (2.3)

    Then the instantaneous output power can be easily obtained as:

    Pout(t) = VgIgcos(gt)cos(gt ) = Vrmsg Irmsg cos+Vrmsg Irmsg cos(2gt ) (2.4)

    This can be rewritten to be:

    Pout(t) =Scos+Scos(2gt ) (2.5)

    where S is the apparent power which has a unit of VA. Then assuming (i) the instan-

    taneous input power equals to the instantaneous output power of the inverter, (ii) the

    DC capacitance filters out the high switching frequency components in the DC current

    idc(t), and (iii) the DC-link has a nominal voltage ofVndc,

    Vndcidc(t)=Scos+Scos(2gt ) (2.6)

    Theidc(t) can be separated as a DC component, Idcand an AC component,idc,ripple(t).

    Then the double-line frequency component can be extracted such that:

    Vndcidc,ripple(t) =Scos(2gt ) (2.7)

    Rearranging the above equation yields:

    idc,ripple(t) = S

    Vndccos(2gt ) = Idc,ripplecos(2gt ) (2.8)

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    32/88

    Chapter 2. Single Phase Grid Connected Inverter Design 20

    Then the capacitance of the DC-link capacitor can be easily obtained given the mag-

    nitude of the maximum allowed ripple voltage, Vmaxdc,ripple:

    Cdc= Idc,ripple2gVmaxdc,ripple

    = S2gVndcV

    maxdc,ripple

    (2.9)

    Finally, substituting, these parameters from the inverter specifications.

    Cdc= 2.5kV A

    2 377rad/s 400V 40V = 207.2F (2.10)

    Based on this, a 230FCornell Dubilier film type capacitor which as a life expectancy

    of 200,000 hours (44 years) at 60 Cwas selected to be used in the prototype.

    2.4 Output Filter Design

    As discussed in Section 2.2, the lowest order harmonics that appeared on the harmonic

    spectrum of the output voltage of the full-bridge are at the sidebands of 2mf. Since the

    inverter switching frequency is set to be greater than the audible frequency (20kHz), thelowest order of the harmonics of the inverter is (2mf 1) = 665. According to the IEEEDR interconnection standard, IEEE-1547 [1]1, any current harmonic which has an order

    that is greater than 35 must have a magnitude that is no greater than 0.3% of the rated

    current of the DR output, and the total demand distortion (TDD)2 has to be under 5%

    (the original harmonic regulation table in IEEE-1547 can be found in Appendix A). If

    the lowest order harmonics of this inverter can be reduced to 0.3%, the TDD can be

    readily kept under 5%. Thus, the primary design guide for the inverter output filter is to

    make the magnitude of the major harmonic current of the inverter less than 0.3% of the

    rated current. In addition, as IEEE-1547 also stated, the harmonic current injections

    shall be exclusive of any harmonic currents due to harmonic voltage distortion present in

    the Area Electrical Power System (EPS) without the DR connected, the output filter

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    33/88

    Chapter 2. Single Phase Grid Connected Inverter Design 21

    vg(t)vt(t)

    Li LgCf

    Rd

    ig(t)+

    -

    +

    -

    LCL Filter

    Figure 2.4: Output LCL filter of the inverter

    design will not take harmonic grid voltage distortions into consideration.

    2.4.1 Filter Configuration

    A third order LCL filter, Figure 2.4, was used to meet the aforementioned harmonic

    reduction target. A switching frequency of 30kHz was selected based on considerations

    for the filter size and the practical implementation of the digital controller.

    vt(t) stands for the terminal voltage or the output voltage of the full bridge, which

    consists of a fundamental component and higher order harmonics components. Solv-

    ing the grid current in Laplace domain using superposition yields the following transfer

    functions:

    Ig(s)

    Vt(s)

    Vg=0

    = sCfRd+ 1s3LiLgCf+s2CfRd(Li+Lg) +s(Li+Lg)

    (2.11)

    Ig(s)Vg(s)

    Vt=0

    = s2LiCf+ sCfRd+ 1s3LiLgCf+ s2CfRd(Li+Lg) +s(Li+Lg)

    (2.12)

    From the above Equation (2.11) and (2.12), one can observe that the grid current ig(t)

    1IEEE-1547 directly references the grid current harmonic distortion limits for general distributionsystems stated in IEEE-519 [38]

    2TDD: the total root-sum-square harmonic current distortion, in percent of the maximum demandload current or the rated DR current capacity [1]

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    34/88

    Chapter 2. Single Phase Grid Connected Inverter Design 22

    depends on both the terminal voltagevt(t) and the grid voltagevg(t). As discussed before,

    the output filter design will not take harmonic grid voltage distortion into consideration

    because IEEE-1547 allows the presence of harmonic current distortion caused by grid

    voltage distortion. Therefore, Equation (2.12) will not be taken into consideration in

    output filter design.

    The terminal voltage vt(t) contains a fundamental component and higher frequency

    components which could result in higher frequency distortions on the grid current ig(t).

    Therefore, Equation (2.11) is used as the output filter transfer function as:

    Hf(s) = Ig(s)

    Vt(s)

    Vg=0

    = sCfRd+ 1s3LiLgCf+ s2CfRd(Li+Lg) +s(Li+Lg)

    (2.13)

    The RMS value of the higher order frequency components ofvt(t) can be calculated

    using the look up table from [35] (refer to Appendix C), given the nominal DC-link

    voltageVndc:

    |Vt(jhg)| = 1

    2 2 (VAo)h1/2Vndc

    Vndc2 =

    1

    2 k(h)Vn

    dc (2.14)

    The (VAo)h is the peak value of each harmonic voltage between one leg of the bridge

    and the centre point of the DC-link, vAo(t). In full bridge configuration, vt(t) = 2vAo(t).

    k(h) = (VAo)h1/2Vn

    dc

    is tabulated as a function of ma and the orders of harmonics (refer to

    Appendix C for details about the harmonics table). Therefore, combining (2.13) and

    (2.14), the RMS value of the harmonic current can be expressed as:

    |Ig(jhg)| = 12 |Hf(jhg)| k(h) Vndc (2.15)

    Remember that|Ig(jhg)| can not exceed 0.3% of the rated current of the inverter.Therefore, given the RMS value of the rated grid current Iratedg the following relationship

    can be derived:

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    35/88

    Chapter 2. Single Phase Grid Connected Inverter Design 23

    0dB

    gi LL 1

    gif

    gi

    LLC

    LL

    -70dB

    376614

    -20dB/dec

    -60dB/dec

    Peak depends on Rd

    |Hf(jw)|

    Figure 2.5: Magnitude plot of the output filter transfer function Hf(s)

    |Hf(jhg)| k(h) Vndc2 Iratedg

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    36/88

    Chapter 2. Single Phase Grid Connected Inverter Design 24

    Li Lg Cf Rd

    300H 100H 30F 1.5

    Table 2.2: Output filter parameters and their chosen values

    100

    101

    102

    103

    104

    105

    106

    100

    80

    60

    40

    20

    0

    20

    40

    60

    80

    Magnitude(dB)

    Bode Diagram

    Frequency (rad/sec)

    Figure 2.6: Magnitude plot ofHf(j) using selected filter components values

    be seen that with the components chosen in Table 2.2, the magnitude ofHf(j) is under

    -70dB at =376614.

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    37/88

    Chapter 3

    Controller Design

    The discussion of the controller for the inverter can be divided into three parts: 1) current

    controller, 2) grid synchronization and 3) DC voltage controller. A block diagram of the

    controller is shown in Figure 3.1. Similarly to the control of a three phase VSI, the

    current controller is used to regulate the current injected into the grid and the voltage

    controller is used to regulate the DC voltage at a desirable level. Unlike the three phase

    VSI, the active and the reactive power of the single phase VSI cannot be controlled by

    varying id and iq in the d-q frame. Instead, a grid synchronizer block is proposed to

    create a grid current reference which has the control of the active and the reactive power

    flow.

    3.1 Current Controller

    A single phase feedback current loop is used to regulate the grid current. A proportional

    resonant (PR) compensator is used to track a sinusoidal current reference signal. The

    plant modelling, PR compensator design and the closed loop stability is discussed in this

    section. The current controller block diagram is shown in Figure 3.2.

    25

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    38/88

    Chapter 3. Controller Design 26

    vg(t)

    +

    -

    ig(t)

    LgLiCf

    Rd

    +

    -

    sa sb

    salow sblow

    idc(t)

    Vdcref Gv(s)

    Notch Filter

    vdcfil

    +-

    evref

    gi || GridSynchronization

    ref

    gi

    ref

    giGi(s)

    vdc

    vg(t) ig

    +

    - ei

    Voltage Controller

    Current Controller

    GridSynchronization

    Cdc

    SPWM

    vrefa

    vrefb

    sa salow sb sblow

    )(

    1

    tvdc

    *-1

    ign(t)vdc(t)vt(t)

    DCvoltage

    feedward

    Figure 3.1: The inverter controller overall block diagram

    3.1.1 Plant Modelling

    Before designing the loop compensator, the plant model of the inverter can be derived

    from Section 2.4.1 by combining equation (2.11) and (2.12), which yields:

    Ig(s) =Gf(s)s2LiCf+sCfRd+ 1

    sCfRd+ 1 Vg Vt

    (3.1)

    where,

    Gf(s) = sCfRd+ 1

    s3LiLgCf+s2CfRd(Li+Lg) +s(Li+Lg) (3.2)

    Since the magnitude and phase response of s2LiCf+sCfRd+1

    sCfRd+1 are 0dB and 0 at the

    fundamental frequency ofVg(j). Therefore, equation (3.1) can be simplified to equa-

    tion (3.3).

    Ig(s) .=Gf(s)(Vg Vt) (3.3)

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    39/88

    Chapter 3. Controller Design 27

    Gi(s) Gf(s)

    Vg(s)

    +

    -

    Ig(s)Igref(s)+

    -

    Vt(s)

    PlantCurrent Controller

    Figure 3.2: Current controller block diagram

    Given the plant model, a PR compensator, Gi(s) is then added to the closed loop

    and the equivalent closed loop diagram can be seen in Figure 3.2.

    3.1.2 Proportional Resonant Controller

    Normally in a three phase VSI SPWM based current controller, the 60Hz three phase grid

    signals can be transformed into DC quantities by performing the ABC to d-q transform

    (Parks transform) so that the current reference can be set to be a DC quantity and a

    PI compensator is sufficient to track the DC reference signal. However, in a single phase

    inverter, the grid signals cannot be transformed into DC quantities so that the referencesignal to the feedback loop has to be sinusoidal.

    In high switching frequency converters, such as power factor corrected (PFC) power

    supplies, non-DC quantities can still be regulated using a simple PI compensator because

    of their fast switching frequency, i.e. 200kHz. However, in this PV inverter, switching at

    such high frequency is not an option considering the switching loss associated with the

    MOSFETs and their reverse conducting diodes that are connected to a DC-link with a

    relatively high voltage level. Therefore, for this PV inverter that is switching at 30kHz, a

    PI compensator is no longer sufficient to track the reference. A higher order compensator

    is needed to used as a substitute.

    According to Figure 3.2, the relationship between the input and the output of the

    current loop can be derived as:

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    40/88

    Chapter 3. Controller Design 28

    Ig(s) =Hi(s)Irefg (s) +Hv(s)Vg(s) (3.4)

    where,

    Hi(s) = Gi(s)Gf(s)

    Gi(s)Gf(s) 1 (3.5)

    Hv(s) = Gf(s)

    1 Gi(s)Gf(s) (3.6)

    To successfully track the irefg (t) signal without steady state errors, the magnitude of

    Hi(j) in Equation (3.5) has to equal to 1 at the fundamental frequency of the irefg (t).

    Thus, it is clear that ifGi(j) has a infinite gain at the fundamental frequency, Hi(j)

    would have a unity gain. On the other hand, ifGi(j) has a infinite gain at the fundamen-

    tal frequency, Hi(j) in Equation (3.6) would results in 0 at the fundamental frequency

    so that theHv(j) term can be neglected. Therefore, it is not necessary to have the grid

    voltage feed-forward in the current control loop. To conclude, the compensator, Gi(j)

    has to have a infinite gain at the fundamental frequency in order to track the current

    reference, iref

    g (t).A proportional-resonant (PR) compensator meets the aforementioned controller re-

    quirement. An ideal PR compensator which has an infinite gain at o has a transfer

    function shown in Equation (3.7) and a generic bode plot is shown in Figure 3.3(a).

    However, the infinite gain of the controller leads an infinite quality factor of the system,

    which cannot be achieved in either analog or digital controller implementation. Further-

    more, since the gain of an ideal PR compensator at other frequencies is low, it is no

    adequate either to eliminate the higher order harmonics influenced by the grid voltage or

    to react to slight grid frequency variation. This is undesirable because the harmonic grid

    voltage distortion would results in a significant amount of harmonic grid current distor-

    tion. Therefore, a damping term is introduced to form a non-ideal PR compensator

    transfer function shown in Equation (3.8). This damping term reduces the infinite gain

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    41/88

    Chapter 3. Controller Design 29

    0

    50

    100

    150

    200

    250

    300

    Magnitude(d

    B)

    101

    102

    103

    104

    450

    405

    360

    315

    270

    Phase(deg)

    Bode Diagram

    Frequency (rad/sec)

    (a) Ideal PR compensator

    0

    5

    10

    15

    20

    25

    30

    Magnitude(dB)

    100

    101

    102

    103

    104

    105

    90

    45

    0

    45

    90

    Phase(deg)

    Bode Diagram

    Frequency (rad/sec)

    (b) Non-deal PR compensator

    Figure 3.3: Bode plot of (a) ideal PR compensator, (b) non-ideal PR compensator, Kcp=1,

    Kci =2000, =0.1

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    42/88

    Chapter 3. Controller Design 30

    at the fundamental frequency to a finite large gain but increases the bandwidth of the

    compensator. A generic bode plot of the non-ideal PR compensator is shown in Fig-

    ure 3.3(b). In order to understand the non-ideal PR controllers behaviour, three groups

    of bode plots are drawn in Appendix B to demonstrate how the PR controllers response

    varies by changing the each parameter in the transfer function.

    Gi(s) = Kcp+

    Kci s

    s2 +2o(3.7)

    Gi(s) = Kcp+

    Kci s

    s2 + 2os +2o(3.8)

    3.1.3 Closed-Loop Stability

    The closed loop gain of the current control loop with the PR compensator can be simply

    obtained by Equation (3.9). The PR compensators parameters and systems parameters

    are chosen in Table 3.1.

    Tc(s) =Gi(s)Gf(s) =

    Kcp+ Kci s

    s2 +os +2o

    sCfRd+ 1s3LiLgCf+s2CfRd(Li+Lg) +s(Li+Lg)

    (3.9)

    Kcp Kci Li Lg Cf Rd

    3 20000 0.01 300H 100H 30F 1.5

    Table 3.1: PR compensators parameters and systems parameters

    The bode plot of the uncompensated loop gain and the compensated loop gain is

    shown in Figure 3.4. It can be seen from the compensated current loop gain, the large

    system bandwidth would give the current controller a fast response. Meanwhile, having

    a phase margin of 50.9 demonstrates closed loop stability.

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    43/88

    Chapter 3. Controller Design 31

    100

    80

    60

    40

    20

    0

    20

    Magnitude(dB)

    103

    104

    105

    106

    270

    225

    180

    135

    90

    Phase(deg)

    Bode DiagramGm = 9.43 dB (at 2.22e+004 rad/sec) , Pm = 90 deg (at 2.54e+003 rad/sec)

    Frequency (rad/sec)

    (a) Uncompensated current loop gain

    100

    50

    0

    50

    100

    Magnitude(dB)

    100

    101

    102

    103

    104

    105

    106

    225

    180

    135

    90

    45

    0

    Phase(deg)

    Bode DiagramGm = 14.2 dB (at 3.33e+004 rad/sec) , Pm = 50.9 deg (at 1.12e+004 rad/sec)

    Frequency (rad/sec)

    (b) Compensated current loop gain

    Figure 3.4: The bode plot of the uncompensated and compensated current loop gain

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    44/88

    Chapter 3. Controller Design 32

    3.2 Grid Synchronization Method

    A low complexity method of grid synchronization is introduced in this section. Effort has

    been taken to minimize the computational processes of reproducing a parallel component

    and an orthogonal component of the grid voltage by means of using only a two by two

    state matrix. The reactive power can then be controlled once the orthogonal component

    of the grid is obtained.

    The grid voltage synchronizer consists of two parts: (i) a grid voltage estimator, (ii)

    an amplitude identifier. An overview of the grid synchronizer is shown in Figure 3.5.

    3.2.1 Grid Voltage Estimator

    The grid voltage estimator takes the grid voltage as its input and outputs one signal

    which is aligned with the grid voltage (parallel component) and the other signal which is

    90 leading the grid voltage (orthogonal component). This estimator has a state space

    form of:

    Grid voltageestimator

    vg||gv

    gv

    ref

    gi ||

    Amplitudeidentifier

    gV

    ref

    gi

    igref

    Figure 3.5: Overview of the grid synchronizer and VAR controller

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    45/88

    Chapter 3. Controller Design 33

    vg +-

    e=vg-x1

    x1

    y

    eDxCy

    eBxAx

    x1=[1 0] y

    Figure 3.6: Feedback loop of the grid voltage estimator

    x1x2

    =

    A 0 oo 0

    x1x2

    +

    B ksync

    0

    (vg x1) (3.10)

    vg

    vg

    =

    y1

    y2

    =

    C 1 0

    0 1

    x1

    x2

    The above state space form the estimator takes vgx1 as its input and outputs x1 as

    the parallel component ofvg. Thus, this essentially resembles a feedback loop illustratedin Figure 3.6, where the output x1 tracksvg.

    The reference signal of this feedback loop is vg, a sinusoidal signal oscillating at the

    grid frequency g. The state matrix A provides the grid voltage estimator a internal

    oscillator oscillating at the o. This provides the estimator an infinite gain at o in the

    frequency domain.

    The ksync term introduces damping to the oscillator which widens the estimators

    bandwidth and reduces the gain at o. As a result, x1 tracks the input vg, at its funda-

    mental frequency while also rejecting other harmonics that appeared on the grid voltage.

    Following this, the output y1 is denoted as vg to illustrate the its alignment with the

    grid voltage and the output y2 is denoted as vg to illustrate it is orthogonal to the

    grid voltage. The state trajectory and the peak voltage phasor diagram are shown in

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    46/88

    Chapter 3. Controller Design 34

    Im

    Re

    ||gV

    gV

    x1

    x2

    wo

    (a) (b)

    Figure 3.7: (a) State trajectory of the estimator, (b)Peak voltage phasor diagram of the

    estimators input and outputs

    Figure 3.7.

    The state space form of the compensator (Equation (3.10)) can be further rewritten

    to the standard state space form shown in Equation (3.11) so that vg is expressed as the

    input to the estimator and the outputs are the parallel component and the orthogonal

    component ofvg.

    x1

    x2

    =

    A ksync oo 0

    x1

    x2

    +

    B ksync

    0

    (vg) (3.11)

    vg

    vg

    =

    y1

    y2

    =

    C 1 0

    0 1

    x1

    x2

    3.2.1.1 Simulations of the Grid Voltage Estimator

    The behaviour of this grid synchronizer was further analyzed by means of studying its

    responses in both frequency and time domain.

    First, the bode plot of each output of the compensators responses are shown in Fig-

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    47/88

    Chapter 3. Controller Design 35

    ure 3.8. In Figure 3.8(a), the Vg(j)

    Vg(j) response has a magnitude of 0dB and a phase of

    0 at the grid fundamental frequency and filters out distortions at any other frequen-

    cies. In Figure 3.8(b), the Vg(j)

    Vg(j) response also keeps the magnitude at 0dB at the grid

    fundamental frequency but only filters out distortions at higher frequencies. Meanwhile,

    the phase of the Vg(j)

    Vg(j) response is at 90 at the grid fundamental frequency so that vg

    leadsvgby 90. It can also be observed from Figure 3.8, the more theksync increases, the

    less the synchronizer are sensitive to slight variations of the grid fundamental frequency

    but more vulnerable to noise at other frequencies. Furthermore, the larger the ksyncgets,

    the wider the controllers bandwidth extends, which means the faster the vg locks onvg.

    Then, the turn-on trajectories of the state variables x1 and x2 are shown in Fig-

    ure 3.9 for different ksync values. Zero initial conditions are assumed in each case. From

    the two plots, several observations can be extracted. First, the final state trajectories are

    identical circles proving thatx1and x2are sinusoidal functions with 90 phase difference.

    Second, the radius of the circle equals to the magnitude of the grid voltage indicating

    that both sinusoidal functions have an amplitude that equals to the magnitude of the

    grid voltage. This effectively proves that the grid estimator resembles the fundamental

    component of the grid voltage and emulates an orthogonal component with the same

    magnitude. Third, with the initial conditions of states x1 and x2 equal to zero, the plot

    with the larger ksynchas a faster speed to reach the final trajectory.

    Furthermore, we investigate how well the grid estimator responses to inputs that

    contain both harmonics and a frequency variation. Figure 3.10 shows the time domain

    simulation based on the worst case conditions on the frequency variations of the grid

    provided by IEEE-1547 standard [1] and the percentage voltage harmonics on the grid

    provided by IEEE-519 standard [38]. According to IEEE-519, the worst case harmonics

    that would appear on the grid voltage is 3% of the fundamental voltage at each harmonic,

    with a total harmonic distortion (THD) of 5%. The worst grid frequency is 59.3Hz

    according to IEEE-1547.

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    48/88

    Chapter 3. Controller Design 36

    80

    70

    60

    50

    40

    30

    20

    10

    0

    Magnitude(dB)

    100

    101

    102

    103

    104

    105

    90

    45

    0

    45

    90

    Phase(deg)

    Bode Diagram

    Frequency (rad/sec)

    Ksync=100

    Ksync=300

    Ksync=500

    Ksync=1000

    (a) bode plot of Vg(j)

    Vg(j)

    100

    80

    60

    40

    20

    0

    20

    Magn

    itude(dB)

    100

    101

    102

    103

    104

    105

    0

    45

    90

    135

    180

    Phase(deg)

    Bode Diagram

    Frequency (rad/sec)

    Ksync=100

    Ksync=300

    Ksync=500

    Ksync=1000

    (b) bode plot of Vg(j)Vg(j)

    Figure 3.8: Bode plot of Vg(j)

    Vg(j) and

    Vg(j)

    Vg(j)

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    49/88

    Chapter 3. Controller Design 37

    x2

    x1

    gV

    (a) Turn on trajectory when ksync=200

    x2

    x1

    gV

    (b) Turn on trajectory when ksync=600

    Figure 3.9: Turn on trajectory of the estimators state variables with differentksyncvalues

    Normally, the harmonics that appeared on the grid voltage are predominately low

    order odd harmonics due to thyristor bridges and diode rectifiers in the system. The

    harmonics that are multiple of three are mainly trapped inside the delta connection

    of distribution transformers so that they are not presented in the local grid. There-

    fore, the predominate harmonics that appeared on the local grid are in the order of

    5th, 7th, 11th, 13th.... The simulation takes the worst case percentage of harmonics from

    the lowest order and add them up until the worst case THD is reached. Based on this,

    the simulation uses a 3% of each harmonic of 5th, 7th and 11th order so that they add up

    to have a THD of 5% on the grid voltage. The worst case grid fundamental frequency of

    59.3Hz is used in this simulation. ksync = 200 is used for the grid voltage estimator.

    While Figure 3.10 illustrates the turn on transition of each state variables of the

    estimator in time domain, Figure 3.11 shows the zoomed-in version of the results which

    contain the distorted grid voltage, the desired x1 and x2 waveform and the resulting x1

    andx2 from the grid estimator.

    Finally, given the grid voltage estimators internal oscillators frequencyois 377rads/s

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    50/88

    Chapter 3. Controller Design 38

    0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1400

    300

    200

    100

    0

    100

    200

    300

    400

    x1

    vg

    (a) Time domain response ofx1 vs. vg(t)

    0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1400

    300

    200

    100

    0

    100

    200

    300

    400

    vg

    x2

    (b) Time domain response ofx2 vs. vg(t)

    Figure 3.10: Time domain response of the estimators state variables

    (60Hz), the power factors of the inverter at different grid frequencies are shown in Fig-

    ure 3.12 for different ksyncvalues neglecting switching harmonics and assuming the reac-

    tive power compensation feature of the inverter is turned off. One can observe that as

    ksyncgets larger, the more consistent that the power factors become over a certain range

    of frequencies.

    3.2.2 Grid Voltage Amplitude Identifier

    A grid voltage amplitude identifier is needed to determine the amplitude of the grid

    voltage. It has a form of the following:

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    51/88

    Chapter 3. Controller Design 39

    0.114 0. 116 0.118 0.12 0.122 0.124 0.126 0.128 0. 13400

    300

    200

    100

    0

    100

    200

    300

    400

    Vg

    x1(desired)

    (a) Desired x1 vs. vg(t)

    0.114 0.116 0.118 0.12 0.122 0.124 0.126 0. 128 0. 13400

    300

    200

    100

    0

    100

    200

    300

    400

    x1

    x1(desired)

    (b) Desired x1 vs. x1

    0.126 0 .128 0 .13 0 .132 0 .134 0 .136 0 .138 0 .14 0 .142 0 .144400

    300

    200

    100

    0

    100

    200

    300

    400

    Vg

    x2(desired)

    (c) Desired x2 vs. vg(t)

    0.128 0.13 0.132 0.134 0.136 0.138 0.14 0.142400

    300

    200

    100

    0

    100

    200

    300

    400

    x2

    x2(desired)

    (d) Desired x2 vs. x2

    Figure 3.11: Zoomed in time domain response of the distorted grid voltage vg(t), the

    estimators output and its desired values

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    52/88

    Chapter 3. Controller Design 40

    50 52 54 56 58 60 62 64 66 68 70

    0.85

    0.9

    0.95

    1

    1.05

    Freqeuncy (Hz)

    PowerFactor(PF)

    Ksync

    =200

    Ksync

    =300

    Ksync

    =500

    Ksync

    =1000

    Figure 3.12: Power factors vs. grid frequencies for Q=0 while neglecting switching har-

    monics

    Vg =

    v2g+v2g (3.12)

    Equivalently, we may also write Vg =

    x21+x22 which is graphically displayed in the

    transient state plane plot of Figure 3.9.

    Other options of implementing the amplitude identifier may include peak detection

    for the grid voltage or peak detection for either output of the grid voltage estimator. Both

    methods avoid using the square root operand, the latter one is more preferred because

    the grid voltage estimator filters out the harmonic distortions that appeared on the grid

    voltage so that the peak detection for the output of the estimator is more accurate than

    for the grid voltage itself.

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    53/88

    Chapter 3. Controller Design 41

    3.2.3 Synchronized Current Reference Creation

    Once the vg and vg are obtained from the grid voltage estimator, and Vg is obtained

    from the amplitude identifier, the control of the phase of the synchronized current refer-

    ence becomes possible. Therefore, given the grid reference currents parallel and orthog-

    onal components, irefg and irefg, a synchronized current reference signal can be obtained

    by the following equation:

    irefg =irefg vg+i

    refg vg

    Vg(3.13)

    Since the parallel component of the current reference iref

    g

    is aligned with the grid

    voltage, this part of the current then controls the active power flow to the grid. On the

    other hand, since the orthogonal component of the current reference irefg is 90 leading

    the grid voltage, this part of the current controls the reactive power flow to the grid.

    Therefore, the input irefg and irefg are the input control commands for the active and

    reactive power.

    3.2.4 Discussion of the Proposed Grid Synchronization Method

    The proposed grid synchronization method is advantageous in two major ways. Firstly,

    comparing with the conventional method of single phase grid synchronization method

    as discussed in [30] where vg(t) is simply duplicated for parallel synchronization, the

    proposed grid synchronizer not only reproduces a filtered signal that is in phase with

    grid voltage, but also emulates an orthogonal component of the grid voltage, which can

    be used to generate reactive power reference to the inverter. Therefore, the inverter

    gains the ability of controlling the reactive power flow comparing to the conventional

    PV inverters that only transfer active power due to their inability of reproducing an

    orthogonal component of the current reference.

    Secondly, other systems [32] [33] [34] which uses a synchronous frame PLL to lock

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    54/88

    Chapter 3. Controller Design 42

    on the phase of the grid voltage would need zero voltage crossing detection to reset the

    integrator and the d-q transformations used which would need sin and cos calculations.

    Both actions increase the complexity of the implementing the synchronizer in a digital

    processor. On the other hand, the proposed grid synchronizer only uses a two by two

    state matrix and a two by two output matrix to generate the parallel component and the

    orthogonal component. This method therefore lowers the computational burden of the

    digital processor significantly.

    The down side of the synchronization method is that since the grid estimator has

    a fixed oscillator frequency o, exposure to large frequency variation would result in

    undesirable power factor downgrade (refer to Figure 3.12). Although increasing ksync

    would minimize the effect, the noise suppression ability of the estimator would be hurt.

    Another down side of the grid synchronization method is its need of a square root

    calculation in the amplitude identifier, which could increase the processing time of the

    digital processor. Fortunately, the fast fixed point square root algorithm can be used

    in this case which significantly increase the processing speed of square root calculation.

    Other viable options such as peak detection on the output of the estimator would avoid

    the square root calculation, therefore can be used as a substitute.

    Finally, a ksync = 200 is used in the PSCAD/EMTDC simulation and the prototype

    designed in the lab. This selection ofksync is more focused on noise suppression than

    immunity to frequency variation because the grid frequency can be set exactly in 60Hz

    in PSCAD/EMTDC simulation, and the grid frequency in the lab is well regulated at

    60Hz with a maximum variation less than 0.5Hz.

    3.3 Voltage Controller

    The DC-link voltage can be regulated by a closed loop voltage controller. Figure 3.13 is

    a simplified power stage diagram which is used to analyze the DC voltage behaviour.

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    55/88

    Chapter 3. Controller Design 43

    +

    -

    vdc(t)

    ig(t)

    LgLiCf

    Rd

    H

    vt(t)

    vg(t)Cdc

    idc(t)

    Figure 3.13: Inverter power stage diagram

    3.3.1 Voltage Loop Modelling

    The differential equation on the DC side is:

    Cdcdvdc(t)

    dt =idc(t) (3.14)

    Again, idc(t) consists of two components, a DC component, Idc and a double-line

    frequency AC component, idc,ripple(t). Both of them can be obtained from the power

    balance equation:

    vdc(t)idc(t) = Vgcos(gt)Igcos(gt ) (3.15)

    vdc(t)Idc+vdc(t)idc,ripple(t) =VgIg

    2 cos+

    Vg Ig2

    cos(2gt ) (3.16)

    From equation (3.16), the two components of the DC current can be expressed as:

    Idc=Vg

    2vdc(t)Igcos=

    Vrmsg2vdc(t)

    Igcos (3.17)

    idc,ripple(t) =Vg Igcos(2gt )

    2vdc(t) (3.18)

    Since we align the parallel component of the current reference signal with the grid

    voltage using a grid synchronization function block, the grid current ig(t) has its parallel

    component aligned with the grid voltage as shown in the phasor digram in Figure 3.14.

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    56/88

    Chapter 3. Controller Design 44

    Im

    ||gI

    gI

    Re

    gI

    gV

    Figure 3.14: Phasor diagram ofig and its two components

    Therefore, Equation (3.17) can be rewritten to be

    Idc=Vrmsg2vdc(t)

    Ig (3.19)

    Then, we linearize these parameters to about the nominal grid voltage Vng and nominal

    DC voltage Vndc:

    Idc=

    Vng

    2VndcIg (3.20)

    Then, the complete model of the voltage loop can be drawn and is shown in Fig-

    ure 3.15.

    A notch filter, Hn(s), has a form of Equation (3.21) is applied to the voltage loop

    to filter out the double-line frequency current ripple component idc,ripple(t) because the

    double-line frequency ripple current produces a double-line frequency ripple voltage on

    the DC-link. This is undesirable because this ripple signal would couple through thevoltage controller and cause undesirable high frequency component would appear on the

    current reference signal of the current control loop, Figure 3.16. (Note: A, B, C, D, E,

    F in the figure are constant numbers)

    Hnotch=s2 + 21ns +

    2n

    s2 + 22ns +2n(3.21)

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    57/88

    Chapter 3. Controller Design 45

    Gv(s) ig||

    ref

    Gc(s)igref ig

    n

    dc

    n

    g

    V

    V

    2Hn(s)

    dcsC

    1 idcvdc

    vdcfil

    Vdcref +-

    Current Loop

    Notch Filter

    GridSynchronizationVoltage

    Compensator

    ||||gg Ii

    Grid de-synchronization

    g

    g

    V

    v

    ||

    ||

    g

    g

    v

    V

    Figure 3.15: Voltage loop of the inverter

    Vdcn+vdc,ripple(t)

    Vdcref

    +

    -

    DC voltagecompensator

    C+Dcos(2wgt)

    Gridsychronization

    vg(t)

    ref

    gi ||igref

    A+Bcos(2wgt) Ecos(wgt)+Fcos(wgt)cos(2wgt)

    Grid currentcontrol loop

    Undesired!

    ig

    Figure 3.16: Effect of the double-line frequency ripple on the current reference signal

    wherenis twice the fundamental frequency, 1 is chosen to be 0.008 and 2is chosen

    to be 1.

    The current synchronization block in the diagram is the part that the parallel

    current reference, which is generated from the voltage controller, is converted to a grid

    synchronized sinusoidal signal which is discussed in Section 3.2.

    The current loop, Gc(s) has a form of:

    Gc(s) = Gi(s)Gf(s)

    Gi(s)Gf(s) 1 (3.22)

    where Gi(s) is the PR controller from the current loop and Gf(s) is the plant model

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    58/88

    Chapter 3. Controller Design 46

    derived in Equation (3.2).

    The gird de-synchronization block |Vg|

    Vgis used to extract the current that is equivalent

    to the parallel current reference irefg generated from the voltage controller. The output

    of this block is denoted as ig, and it equals to the peak value of the parallel component

    of the grid current Ig. This block works like an inverse d-q transform, except it is in

    a single phase system instead of a three phase system.

    3.3.2 DC Voltage Compensator

    A simple PI controller is used as the DC voltage loop compensator, which has the form

    of:

    Gv(s) =Kvp +

    Kvis

    (3.23)

    The uncompensated loop gain and the compensated loop gain of this voltage feedback

    loop is shown in Figure 3.17. A selection ofKvp = 0.1 and Kvi = 1 yields a phase margin

    of 60 in the compensated loop as shown in Figure3.17(b)

    3.4 Digital Implementation of the Controller

    A 32-bit fixed point Microchip PIC microcontroller (MCU) was used to implement the

    controller. This microcontroller is a relatively low cost choice comparing to other floating

    point microcontrollers. Although floating point calculations can be done in this PIC

    MCU, it was finally concluded that such computations consume excessive computational

    time. Therefore, fixed point calculations must be performed and trigonometry (i.e. sin

    and cos) calculations must be avoided. As a result, the digital controller was written in a

    per-unitized system using a fixed number format. All the s-domain controller functions

    are transfered into the digital domain using the bilinear transform.

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    59/88

    Chapter 3. Controller Design 47

    150

    100

    50

    0

    50

    Magnitude(dB)

    101

    102

    103

    104

    105

    106

    180

    135

    90

    45

    0

    Phase(deg)

    Bode Diagram

    Gm = Inf , Pm = 18.5 deg (at 558 rad/sec)

    Frequency (rad/sec)

    (a) Uncompensated voltage loop gain

    200

    150

    100

    50

    0

    50

    100

    150

    200

    Magnitude(dB)

    101

    100

    101

    102

    103

    104

    105

    106

    180

    135

    90

    45

    0

    Phase(deg)

    Bode DiagramGm = Inf dB (at 0 rad/sec) , Pm = 61 deg (at 173 rad/sec)

    Frequency (rad/sec)

    (b) Compensated voltage loop gain

    Figure 3.17: Bode plot of the uncompensated and compensated voltage loop gain

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    60/88

    Chapter 3. Controller Design 48

    3.4.1 Switching Frequency Consideration

    For the design of a MOSFET based inverter, the switching frequency is primarily limited

    by the switching loss and the reverse recovery loss of the body diodes. Another limiting

    factor to the switching frequency of a DC/AC inverter is the CPU performance of the

    digital controller. In our case, the PWM output compare registers have to be updated at

    the very beginning of each switching cycle. This means the inverter control computations

    have to be finished in one switching cycle. Therefore, the CPU speed and the complexity

    of the controller implementation algorithm directly limits the switching frequency of the

    inverter. Based on the experimental result, a switching frequency of 30kHz would give

    sufficient time for the CPU to finish the controller computation. This chosen switching

    frequency would also not introduce excessive losses on the MOSFET switches.

    3.4.2 Per-unitize and Fixed Number Format

    Inside the digital controller, all the system parameters such as voltages and currents

    were per-unitized to their base values, which are normally chosen to be the system rated

    values. Then, they were scaled to a fixed number format (e.g. 4.12 format) for fixed point

    calculations. For example, a voltage quantity, Vbeing expressed into a 4.12 format and

    per-unitized based on Vbase would be:

    Vp.u4.12 =V 212

    Vbase(3.24)

  • 5/22/2018 Zong Xiangdong 201111 MASC Thesis

    61/88

    Chapter 4

    PSCAD/EMTDC Simulation

    Results

    This chapter shows the PSCAD/EMTDC simulation results of the grid connected in-

    verter. The current controller and the voltage controller were simulated separately to

    validate each controller. The validation of the grid synchronizer is also shown in the

    simulation. Table 4.1 shows the power stage parameters used in the simulation.

    In the last chapter, the grid currentig(t) that is used in the control loop has a direction

    flowing from the grid to the inverter. In this chapter and Chapter 5, in order to illustrate