Salimin, S 2014
Salimin, S 2014
Salimin, S 2014
PARALLEL PV INVERTERS
Doctor of Philosophy
Newcastle University
October 2014
Abstract
Abstract
This research is concerned with the problem of network power quality when grid
connected systems are used to feed the network distribution grid. A parallel connection
of photovoltaic (PV) system is the main interest of study for this research. This type of
PV system uses power electronic components such as inverter and current controller that
produce harmonics which adversely affect the power quality of the distribution network.
Development and simulation of current controller using the proportional resonance (PR)
scheme is considered to overcome the harmonic problems in single and parallel PV
inverters. This scheme eliminates specific harmonic in the low order part. The control
parameter randomisation technique is added to the scheme to produce a more efficient
current controller system. Thus, the inverter harmonic performance (inverter output
current) is improved. This concept is extended to parallel inverter based systems, where
opportunities for harmonic cancellation improve the inverter harmonic performance
further. Experimental hardware setup using TMS320F2812 is also developed to verify
the promising simulation results.
i
Acknowledgements
Acknowledgements
First and foremost, I would love to express my sincere gratitude to my supervisors, Dr.
Matthew Armstrong and Dr. Bashar Zahawi. My main supervisor, Dr. Matthew
Armstrong is the most important person that helped, guided, supported, advised, and
determined to keep giving me valuable ideas and information throughout this project.
My utmost appreciation also goes to the staffs especially from the mechanical
workshop, electrical workshop, and electronic workshop for their guidance and
support. Thank you very much to Stephen Mitchell, Stephen Robson, Jeff, Darren, and
the others! Many thanks to all my colleagues in the Power Electronics, Drives and
Machines Research Group for their friendship and help.
Without those whom I mentioned above, this PhD project will not be accomplished.
ii
Table of Contents
Table of Contents
Abstract...................................................................................................................... i
Acknowledgements......................................................................................................ii
List of Tables...............................................................................................................xv
iii
Table of Contents
iv
Table of Contents
v
Table of Contents
7.2 Experimental results with conventional PI current control techniques ......... 125
vi
Table of Contents
References .................................................................................................................164
vii
List of Figures
List of Figures
Figure 1-1: Average annual growth rates of renewable energy capacity, end 2004 to
2009[9]. ......................................................................................................................... 3
Figure 1-2: Basic concept of grid connected inverter. .................................................. 4
Figure 1-3: Centralised technology PV arrangement. ................................................... 6
Figure 1-4: Single-string technology PV arrangement. ................................................ 6
Figure 1-5: Multi-string technology PV arrangement. .................................................. 6
Figure 1-6: AC cell PV arrangement [24]. .................................................................... 7
Figure 1-7: Parallel arrangement of grid connected system.......................................... 9
Figure 2-1: The current loop of PV inverter with PR and HC. ................................... 18
Figure 2-2 Harmonic trend line of parallel inverter system using conventional control
and parameter randomization control technique [33]. ................................................ 22
Figure 3-1: Bipolar PWM switching. .......................................................................... 27
Figure 3-2: Waveforms of (a) 𝑉𝑐𝑜𝑛𝑡𝑟𝑜𝑙 > 𝑉𝑡𝑟𝑖 which turns on Gate 1; ................. 28
Figure 3-3: Unipolar PWM unit. ................................................................................. 29
Figure 3-4: Unipolar PWM switching. ....................................................................... 30
Figure 3-5: Waveforms at (a) Out1 and Out2 (b) Out3 and Out4. .............................. 31
Figure 3-6: Inverter output voltage. ............................................................................ 32
Figure 3-7: Digital control system. ............................................................................. 33
Figure 3-8: A PI current controller block diagram. .................................................... 34
Figure 3-9: A proportional resonance (PR) current controller block diagram. ........... 37
Figure 3-10: A modified PR current controller block diagram. .................................. 39
Figure 4-1: Basic arrangement of grid connected inverter system. ............................ 41
Figure 4-2: Equivalent circuit for low pass filter and the grid. ................................... 42
Figure 4-3: Block diagram of the low pass filter and grid impedance branch. ........... 44
Figure 4-4: Single update PWM with triangular carrier waveform. ........................... 48
Figure 4-5: Open loop Bode plot for PI current controller scheme shows flat response
at 50 Hz indicating no harmonic rejection at fundamental frequency. ....................... 50
Figure 4-6: Open loop Bode plot of PR current controller scheme shows high
magnitude at 50 Hz indicating good harmonic rejection at fundamental frequency. . 51
viii
List of Figures
Figure 4-7: Open loop Bode plot of PR current controller scheme when (a)
𝜔𝑐=1: wider magnitude response at 50 Hz shows less sensitive controller, and (b)
𝜔𝑐=1, 5, 20, 50: sensitivity of the controller is reduced with increasing value of 𝜔𝑐.
..................................................................................................................................... 52
Figure 4-8: Open loop Bode plot of PR+HC current controller scheme with 𝝎𝒄=10.53
Figure 4-9: Model of grid connected inverter system with PI current controller. ...... 54
Figure 4-10: Closed loop response of the system with PI current controller. (a) Bode
plot shows the attenuation of the low order harmonics, and controller resonant point
at approximately 7 kHz, and (b) Root locus confirms the stability of the closed loop
controller for the applied gains. .................................................................................. 58
Figure 4-11: Closed loop response of the system with PR current controller. (a) Bode
plot shows improved attenuation of low order harmonics, and lower impact of
resonance (now at 10 kHz), and (b) Root locus confirms the stability of the closed
loop controller for the applied gains. .......................................................................... 59
Figure 4-12: Close loop response of the system with PR+HC current controller.
(a) Bode plot shows attenuation of low order harmonics, and further improvement of
the resonant effect at 10 kHz, and (b) Root locus confirms the stability of the closed
loop controller for the applied gains. .......................................................................... 60
Figure 5-1: Simulink model of grid-connected inverter system. ................................ 64
Figure 5-2: Grid model which contains a background THD of 2.45% [44]. .............. 65
Figure 5-3: Conventional PI current controller digital Simulink model. .................... 68
Figure 5-4: Screen shot of (a) Reference current of PI controller with 20 A peak
value, (b) Inverter output current of PI controller which shows a distorted waveform,
and (c) Large magnitude error between reference current and inverter output current
of PI controller. ........................................................................................................... 69
Figure 5-5: Low order harmonic spectrum of inverter output current with PI control
(𝐾𝑃 = 0.03 , 𝐾𝐼 = 0.03) ............................................................................................ 70
Figure 5-6: Simulink model of current controller using PR technique. ...................... 71
Figure 5-7: Screen shot of (a) Reference current of PR controller with 20 A peak
value, (b) Inverter output current of PR controller which shows smoother waveform
compared to PI controller, and (c) Reduced error between reference current and
inverter output current of PR controller. ..................................................................... 72
ix
List of Figures
Figure 5-8: Low order harmonic spectrum of inverter output current with PR current
controller. .................................................................................................................... 73
Figure 5-9: Comparison in the harmonic profile of PI and PR current controllers
shows better reduction of harmonics magnitude with PR current controller. ............. 74
Figure 5-10: Simulink model of current controller using the modified PR control
technique. .................................................................................................................... 75
Figure 5-11: Screen shot of (a) Random signal generation of the modified PR
controller, and (b) The randomized proportional gain, 𝑅𝐾𝑃 signal which varies
within a set limit. ......................................................................................................... 76
Figure 5-12: Harmonic profile of inverter output current with modified PR current
controller shows better outcome compared to the conventional PR current controller.
..................................................................................................................................... 77
Figure 5-13: Parallel inverter system model. .............................................................. 78
Figure 5-14: Current error signal of (a) Inverter 1, and (b) Inverter 2, with PI current
controller which shows big magnitude errors. ............................................................ 79
Figure 5-15: Waveforms of (a) Inverter 1 output current, (b) Inverter 2 output current,
and (c) Grid current with PI controller. ....................................................................... 80
Figure 5-16: Harmonic profiles of (a) Inverter 1 output current, (b) Inverter 2 output
current, and (c) Grid current. All shows significant harmonic emissions between the
3rd and 19th harmonic orders........................................................................................ 82
Figure 5-17: Harmonic profiles of inverter 1, inverter 2, and grid current with PI
current controller which shows similar harmonic spectrum exists except for the 15th,
17th and 19th order. ...................................................................................................... 82
Figure 5-18: The error signal between reference and the actual current of ................ 83
Figure 5-19: Waveforms of (a) Inverter 1 output current, (b) Inverter 2 output current,
and (c) Grid current with PR current controller. ......................................................... 84
Figure 5-20: Harmonic profiles with the respective per unit magnitude of ................ 86
Figure 5-21: Harmonic profiles of Inverter 1, Inverter 2, and Grid current with PR
controller in one graph shows harmonics addition and cancellation occurred. .......... 86
Figure 5-22: The error signal between reference and the actual current of ................ 87
Figure 5-23: Waveforms of (a) Inverter 1 output current, (b) Inverter 2 output current,
and (c) Grid current with modified PR current controller........................................... 88
Figure 5-24: Harmonic profiles with the respective per unit magnitude of (a) Inverter
1 output current, (b) Inverter 2 output current, and (c) Grid current. ........................ 90
x
List of Figures
Figure 5-25: Harmonic profiles of inverter 1, inverter 2, and grid current with
modified PR controller shows harmonic cancellation and addition leading to a further
THD reduction compared to the PR current controller technique. ............................. 90
Figure 5-26: Current harmonic profile using PI, PR and modified PR controllers.
THD of grid current with modified PR controller shows the lowest value. ............... 91
Figure 6-1: Schematic diagram of power inverter board. ........................................... 94
Figure 6-2: Block diagram of the eZdspTM F2812 [81]. ............................................. 95
Figure 6-3: Screen shot of current output waveform. ................................................. 96
Figure 6-4: FFT of output current. .............................................................................. 96
Figure 6-5: Screen shot of the output current waveform with (a) dead time 0.00,
(b) dead time 0.01, (c) dead time 0.02, and (d) dead time 0.03. ................................. 99
Figure 6-6: Output current FFT for different dead time compensation unit. .............. 99
Figure 6-7: Output waveforms of ZCD and inverter system in phase. ..................... 101
Figure 6-8: Harmonic data of inverter 1 output current. ........................................... 101
Figure 6-9: Screen shot of (a) Inverter 1 output current, and (b) Inverter 1 current
error. .......................................................................................................................... 102
Figure 6-10: Harmonic data of inverter 2 output current using PI control. .............. 104
Figure 6-11: Harmonic spectrums of Inv 1 and Inv 2 with PI current control.......... 104
Figure 6-12: Harmonic data of inverter 1 output current using PR control. ............. 107
Figure 6-13: Screen shot of (a) output current waveform with reference 3 A peak ;
and (b) current error waveform which shows approximately 0.2 A peak. ................ 108
Figure 6-14: Harmonic data of inverter 2 output current using PR control .............. 109
Figure 6-15: Harmonic spectrums of Inv 1 and Inv 2 with PR current control. ....... 110
Figure 6-16: Compare output current waveform of two controller systems (a) Output
current from PI controller shows distortion at the top, and (b) output current from PR
controller shows smooth curve at the top. ................................................................. 111
Figure 6-17: Compare error of two controller systems (a) current error with PI
controller system is approximately 0.5 A peak; and (b) current error with PR
controller system is reduced to approximately 0.2 A peak. ...................................... 112
Figure 6-18: Compare FFT of two controller systems. ............................................. 113
Figure 6-19: Random signal generation (a) generation of random signal more
scattered around before filtering process ; and (b) random signal becomes smoother
like a waveform after filtering process...................................................................... 114
xi
List of Figures
xii
List of Figures
(c) Results of the parallel system output current. All shows strong correlation between
them with predominant harmonics appear between the 3rd and 15th harmonic....... 129
Figure 7-5: Low order harmonic spectra of (a) Inverter 1 output current with
randomised PI control; and (b) Inverter 2 output current with randomised PI control;
where difference trend lines are observed between the two inverters. ..................... 132
Figure 7-6: Harmonic spectra of parallel inverters with randomised PI current control.
(a) Results of inverter 1 output current; (b) Results of Inverter 2 output current; and
(c) Results of the parallel system output current. Different trend lines are observed.
................................................................................................................................... 133
Figure 7-7: Low order harmonic spectra of (a) Inverter 1 output current with
conventional PR control; and (b) Inverter 2 output current with conventional PI
control. Results show some degree of correlation in harmonic profile for each of the
two inverters. ............................................................................................................. 136
Figure 7-8: Low order harmonic spectra of parallel inverters with PR current control.
(a) Results of inverter 1 output current; (b) Results of Inverter 2 output current; and
(c) Results of the parallel system output current. Small cancellation and addition of
harmonics are observed at the system output current. .............................................. 137
Figure 7-9: Low order harmonic spectra of (a) Inverter 1 output current with
randomised PR control; and (b) Inverter 2 output current with randomised PR control.
Different trend line patterns indicate the reduction in the degree of correlation in the
harmonic profile. ....................................................................................................... 139
Figure 7-10: Low order harmonic spectra of parallel inverters with randomised PR
current control. (a) Results of inverter 1 output current; (b) Results of Inverter 2
output current; and (c) Results of the parallel system output current. Harmonics
magnitude reduction are observed at the parallel system output current between the
7th and 19th order. ...................................................................................................... 141
Figure A 1: Screen shot of Multisim designing tool ................................................. 147
Figure A 2: Screen shot of Ultiboard designing tool ................................................ 148
Figure B 1: Screen shot of the PCBs ......................................................................... 150
Figure C 1: Circuit diagram of the power inverter board ......................................... 151
Figure D 1: Diagram to determine GPTIMER_Freq ................................................ 152
Figure D 2: Output pin PWM1 with different duty cycles........................................ 154
Figure E 1: Signals of PWM1 and PWM2 with approximately 1.7µs dead-time..... 155
Figure F 1: CCS Software ......................................................................................... 156
xiii
List of Figures
Figure F 2: Output of PWM1 pin after the triangular waveform is compared to the
modulating signal ( ma = 0.95 ) ................................................................................ 157
Figure G 1: Waveform of output filter without load ................................................. 158
Figure G-2: Current probe ......................................................................................... 159
Figure G 3: Waveform of output filter after a resistive load is connected................159
xiv
List of Tables
List of Tables
xv
List of Abbreviations and Symbols
Abbreviations
DG Distributed Generation
PV Photovoltaic
DC Direct Current
AC Alternating Current
PWM Pulse Width Modulation
L Inductor
LC Inductor and Capacitor
LCL Inductor, Capacitor and Inductor
MPPT Maximum Power Point Tracking
RMS Root Mean Square
IEEE Institute of Electrical and Electronic Engineers (USA)
PI Proportional and Integral
PR Proportional and Resonant
HC Harmonic Compensator
DSP Digital Signal Processing
PR+HC Proportional Resonant with Harmonic Compensator
THD Total Harmonic Distortion
LV Low Voltage
UPS Uninterruptible Power Supply
WAC Weighted Average Current
PLL Phase Locked Loop
CPWM Centered Pulse Width Modulation
SHMPWM Selective Harmonic Mitigation Pulse Width Modulation
SHEPWM Selective Harmonic Elimination Pulse Width Modulation
xvi
List of Abbreviations and Symbols
xvii
List of Abbreviations and Symbols
Symbols
𝑓 Frequency
kWp KiloWatt power
𝐾𝑃 Proportional gain
𝐾𝐼 Integral gain
xviii
List of Abbreviations and Symbols
𝐼𝑔 Grid current
𝑑 Duty cycle
𝜔𝑐 Cut-off frequency
xix
Introduction
Chapter 1: Introduction
The first chapter of this thesis provides an overview on distributed generation (DG).
This is the technical area in which this work aims to make a valid contribution to
knowledge. The main advantages of DG technology are described and the recent annual
growth statistics for application of renewable energy systems is presented.
This thesis will specifically concentrate on small scale grid connected photovoltaic
(PV) systems. Therefore, the second half of the chapter provides a brief discussion on
Photovoltaic (PV) systems, highlighting the technological challenges which exist
within these systems and the opportunities for further research. The final section of this
chapter summarises the aims and objectives of this research project.
Throughout the whole of the modern era, each century has seen an increase in energy
consumption, which is intrinsically linked to the continual increase in worldwide
human population. This can be seen in Table 1-1 as proposed by R. DeGunther [1].
With the well recognised depletion of traditional fossil fuels such as coal, oil and gas,
distributed generation technologies or embedded generation is rapidly becoming a
significant and important matter worldwide. Typically, these generation systems are
connected at strategic places within the power distribution network and much closer to
the end users than conventional power stations. Based on P. Chiradeja and Y. Ma, et al
[2, 3], the key advantages of this type of electricity generation are as follows:
i- It can reduce transmission losses as the plant is installed near its application.
ii- It has satisfying power supply demand where the energy can always be
utilized whenever needed by users. For instance in the event of line outage
or scheduled interruption.
1
Introduction
Consumption
Date Population (billions)
(kWh/day)
0 ad 0.3 10.1
Distributed generation uses renewable energy sources that include solar, wind, wave,
hydro power and biomass. They convert these natural sources to usable electricity.
Often, they are of small scale, scattered and close to the loads and their control devices
[4, 5]. Renewable sources play an important role in order to reduce the environmental
pollution and thus decrease the worries of global warming and climate changes [6]. As
known by many, traditional energy sources such as petroleum, natural gas and coal are
major contributors’ to the pollution of the environment. It has been stated in literature
that:
“All fossil fuels produce carbon dioxide, a greenhouse gas when burned. When
there is insufficient air, all fossil fuels produce highly toxic carbon monoxide” [7].
2
Introduction
Figure 1-1: Average annual growth rates of renewable energy capacity, end 2004 to
2009[9].
It is estimated that the future lifespan of the Sun is approximately 4 to 5 billion years.
For this reason, it is generally assumed that the Sun represents an energy that is to all
intents and purposes, inexhaustible [10]. Furthermore, it is one of the cleanest energy
sources. With regards to grid connected systems, PV technology is generally
acknowledged to be one of the more reliable and low maintenance solutions, compared
to alternative systems such as wind turbine generators. When operating, there are
typically no moving parts which need to be replaced when broken. Instead, the PV
panels generally only require scheduled inspection and cleaning. Furthermore, PV
systems are very flexible and can be installed anywhere significant levels of sun can
reach such as rooftops of industrial, commercial and residential buildings. The
electricity can also be sold to the utility grid if extra power is generated.
3
Introduction
a) High reliability.
e) Clean energy.
Renewable energy generating systems can be readily used to supply standalone load
systems. However, there is an increasing trend to also connect PV systems to the utility
grid. In such systems, the grid receives the electrical energy generated by the PV
inverter system [11]. The basic concept of a PV grid connected inverter system is
illustrated in Figure 1-2.
4
Introduction
Based on Figure 1-2, the basic concept of grid connected inverter consists of:
5
Introduction
Then, strings of PV modules are connected in parallel to form the PV array and feed
the inverter. This is illustrated in the Figure 1-3.
6
Introduction
The last configuration is also called micro-inverter technology [25] (Figure 1-6). It is a
system which combines a PV module and an AC module inverter to feed the grid. All
of these arrangements and configurations have their own advantages and disadvantages
comprising of complexity, efficiency, reliability, and more. The key points are
summarised in Table 1-2.
7
Introduction
Table 1-2: Advantages and disadvantages of PV array configuration [22, 26, 27].
Advantages Disadvantages
8
Introduction
Power quality is defined as the voltage and current provided by the grid that can be
successfully utilized by the user without interference or interruption [30]. For good
power quality operation, it is important that the current harmonics produced at the
output of the inverter do not exceed the national Point of Common Coupling standards
[31]. The impact of these harmonics include variation in root mean square (RMS)
voltage, disturbance of electronic components and stress on insulation materials [32].
Other impacts are discussed in Chapter 2. Therefore, it is vital to reduce the harmonic
level to be under the limit as recommended in IEEE 929-2000 [31].
Parallel inverter systems are commonly used to increase the power rating of the PV
system and maximise the return of power to the network. In this system, several
individually controlled inverter units are connected to the grid via a common point of
coupling. Each inverter output voltage should be synchronised to the grid voltage and
inject unity power factor current into the network. The synchronization method of
individual inverter units, together with the interaction between closely coupled systems
can potentially increase the production of low order harmonics [33]. This is also agreed
by Cespedes M. And J. Sun [34] where it is stated that unintended interactions may
occur because each of the inverters has its own dynamic system. He also grouped the
unintended interaction into the low frequency region; not more than the fundamental
frequency, medium frequency region; between the fundamental frequency and the
9
Introduction
crossover frequency, and the high frequency region; more than the crossover
frequency. Each of them comes from different sources with its own ways of mitigation.
The main point is that the unintended interaction between the inverters may affect the
power quality of the network. Figure 1-7 shows an example arrangement of several PV
inverter systems connected in parallel with the supply grid. It can be seen that each PV
system has its own inverter and controller system.
This chapter has highlighted the types of PV inverter system which are commonly used
in practice. The need for good power quality operation has been described and the
causes and impacts of harmonic generation are stated. Even today, with modern devices
and control methods, the issue of power quality remains a problem which all
manufacturers must address. For this reason, this research aims to propose a method to
eliminate the low order harmonics production in a parallel PV inverter system
connected to the supply grid. As a result, the work primarily concentrates on the output
side (AC) of the system which consists of the DC/AC inverter, the current controller,
the low pass (LC) filter and the supply grid.
10
Introduction
This thesis consists of 8 chapters. This Chapter has discussed the background of PV
inverter system and has set out the aims and objectives of the research project. Chapter
2 presents a literature review of relevant previous work in the field of PV inverter
systems. Chapter 3 focuses on the different control methods to be applied in this
project; the conventional PI controller scheme, the PR+HC controller scheme and the
modified PR+HC controller scheme. Chapter 4 is written to model the grid connected
inverters. Chapter 5 demonstrates the simulation results when using the three controller
schemes. Chapters 6 and Chapter 7 demonstrate the experimental results when using
the three controller schemes with a stand-alone system and a grin connected system.
Finally, Chapter 8 presents the conclusion of this research project.
This chapter has described the background to distributed generation and the reasons for
its continuing popularity compared to traditional forms of fossil fuel based generation.
The concept of single and parallel PV inverter systems has been discussed.
Furthermore, relevant to this thesis, the basic causes of harmonic generation have been
set out, and the need to meet the appropriate grid connection standards has been set out.
At the end of this chapter, the aims and objectives of the research project are identified.
a) Modelling the inverter system with a PR+HC current controller. This controller
includes additional harmonic compensation terms, e.g. for the 3rd, 5th, and 7th
harmonic orders, which can reduce low order harmonics injection into the grid. In
Chapter 4, frequency domain results demonstrate the increased impedance to these
components, and the resulting power quality benefits.
11
Introduction
12
Literature Review
The most significant discussion in any grid-connected system is the current or voltage
harmonic injection into the grid. In general, harmonics are considered to be undesirable
voltage or current frequency components that can arise in an electrical system or power
network. They normally appear at frequencies which are an integer multiples of the
fundamental frequency of the system [35]. In grid connected inverter systems, the
fundamental frequency is normally 50 Hz or 60 Hz, depending on the country of
concern. The mathematical definition of a single harmonics is:
13
Literature Review
In PV grid connected system, concerns have been raised by several relevant bodies
about the injection of harmonics into the network. Impacts of harmonic currents
according to [33, 39-41] include:
a) Communication interference.
b) Heating problems that lead to over-current, insulation breakdown, cable
corrosion –due to ‘skin effects’ of copper.
c) Solid state device malfunctions.
d) Voltage distortion that will reduce reliability electrical and electronic systems.
H. Soo et al [44] stated a different view about low-order harmonics; one of four types
of harmonics injection. The paper demonstrated that the low order harmonic profile of
the inverter output current can be affected by the operating conditions of the grid
voltage, variations in the grid impedance, and the connection of other non-linear loads
to the network. IEEE 929-2000 [31] sets limitation on the level of harmonic injection
into the grid which is permissible. Table 2-1 shows the recommended individual current
harmonic limitations for general distribution systems. The current THD must also be
less than 5% of the fundamental frequency at the rated output power of the inverter. In
addition, an individual voltage distortion limit of 3% and overall voltage THD of less
than 5% is defined by IEEE 519-1992 [45].
14
Literature Review
The various types of harmonics are often being categorised as PWM or switching
harmonics [33], low-order harmonics [33], and DC current injection [46]. A. Testa et
al [47] has also demonstrated that inter-harmonics and sub-harmonics can be included
as an additional source of harmonic pollution which may need to be considered. A brief
explanation of these types of harmonic is described in the following section.
a) Low-order Harmonics
15
Literature Review
switching techniques and control methods have been proposed to specifically reduce
and eliminate low-order harmonics. They are broadly discussed in sub-section 2.3.
b) PWM/Switching Harmonics
Switching harmonics are the high order harmonics generally in kHz range. They are
generated because of the side effect of high frequency inverter switching and can be
filtered relatively easily by using a low pass filter at the inverter output. In a study by
H.Zhang et al [49], equations to calculate switching harmonic components are derived
for the purpose of minimizing the dc link capacitor. S. Ma et al [50] has proposed two
techniques as a solution for switching harmonics problem. They are the zero voltage
switching half cycle and voltage phase compensation and their effectiveness is
confirmed.
d) DC Current Injection
The last type of harmonic is DC current injection. Power electronic converters are one
of the major sources of DC current being injected into the grid. DC components can
shift the operating point of distribution transformers [54] and this is highly undesirable.
For this reason, network operators often set a limit of close to zero for the DC
component. Often, a mains frequency transformer is used to couple the inverter to the
network, and prevent any DC current components from entering the grid. [55].
16
Literature Review
Avoiding the use of an isolation transformer in PV systems is now being the trend
where the cost and weight can be reduced [56].
The following discussion is divided into three sections. In the first section, several
papers on harmonic performance improvements of a single grid-connected PV inverter
system are described. This is then followed by a review of the harmonic performance
of parallel grid-connected inverter systems. The final section is a discussion of
harmonic performance in other application areas, such as uninterruptible power supply
(UPS) and AC motor drives.
Then, in the study by Teodorescu et al [58], a new control structure was proposed to
mitigate high harmonic distortion problems which arise from the imperfect
compensation action of a grid voltage feed forward PI controller. This new structure
uses a P+Resonant (PR) controller to control the fundamental current and several
generalized integrators in a harmonic compensator (HC) for THD level reduction. The
harmonics of interest were the 3rd, 5th, and 7th components.
17
Literature Review
Figure 2-1 illustrates the block diagram of the proposed control strategy where GPR is
the PR current controller and GHC is the harmonic compensator. PR controller was
designed first without the compensator until the correct tuning of the proportional gain,
KP and resonant gain, KR is determined. This was then followed with the addition of
HC. From the paper [59], Observation from the Bode graph for PR + HC shows a peak
gain exists at the harmonics frequencies of interest where this gain cannot be found in
the PR graph. Interestingly, controller dynamic remains unchanged and this is being
the key point to compensate the selective harmonic components. Tests to compare the
spectrum for PI, PR and the proposed structure, PR + HC, were done. Results show
much improvement in the interested harmonics order and the THD level is also
decreased [59].
A different research study on the proportional resonant (PR) control system has also
been carried out by Guoqiao et al [60, 61]. In his papers, a new current feedback method
for the PR controller is proposed. In the first paper, instead of taking the inverter output
current or the grid current as the feedback, he suggests to use the weighted average
value (WAC) of the inverter output current and the grid current as the current feedback
method. In the second paper, he recommends splitting the capacitor of the LCL filter
into two parts (C1 and C2) and to take the current flowing between the two capacitors
as the feedback current for the PR controller. From the experimental results for both
18
Literature Review
proposed methods [61, 62], two conclusions are drawn. Firstly, the control system is
reduced from a third order system to a first order system; this can be proved by deriving
the transfer function solution for the system. Secondly, less phase error and lower
current THD are achieved when compared to using the inverter output current
feedback.
Leopoldo et al [64] proposed a new method to generate the switching pattern of three-
level PWM inverters. This is called selective harmonic mitigation PWM (SHMPWM).
Initially, the paper revised the selective harmonic elimination PWM (SHEPWM)
technique from previous works where the need for tuned filters is essential to minimise
uncontrolled non-eliminated harmonics (thus increasing the volume, weight and cost
of the system). Using the proposed strategy, an advance on previous methods is
achieved by considering the harmonics, THD, and local grid standards as a global
problem. The switching pattern is reformulated as a nonlinear optimization problem
and solved using a general purpose optimization heuristic algorithm. The method is
claimed to be very versatile and can be tuned to meet any grid code in the calculation
process. The study considered grid codes EN 50160 and CIGRE WG 36-05 and 15
switching angles. Results highlighted low harmonic levels when using the SHMPWM
technique, hence avoiding the use of the costly tuned filters in the system. Experiment
19
Literature Review
in order to compare the technique with previous ones that are optimal sinusoidal PWM
(OSPWM) and SHEPWM methods was carried out [65]. At first, result for SHEPWM
was studied and showed zero harmonic content up to the 43rd order but the 45th and 49th
order had important content, 8.1% and 16.9% respectively. Result was slightly different
with OSPWM method where the switching harmonic was inside the restrictive band.
Both previous methods did not comply with the harmonic grid codes limitation.
Conversely, grid codes stated earlier was fulfilled with the proposed SHMPWM
technique.
The most recent research was presented by Jevraj and Nasrudin [18]. They claimed that
there is a limitation in harmonic reduction when using a typical single-phase three level
inverter. This is because the harmonic components of output voltage are determined by
the carrier frequency and the switching functions. Therefore, in order to tackle this
limitation, a five level inverter topology is introduced for PV systems where instead of
one reference signal, the new inverter topology uses two where they took turn to be
compared with the carrier signal at one time. The idea behind this topology is to
generate five level of output voltage; +VPV, +1/2VPV, 0, -1/2VPV, -VPV; where VPV is the
voltage across the DC-DC boost converter. Furthermore, the proposed topology uses
an auxiliary circuit between the DC-DC boost converter and the inverter. Results are
20
Literature Review
compared with the results of three-level inverter system. The lower THD measurement
for the proposed inverter proved that harmonic content can be reduced as the number
of output levels increases. However, the measured PV system efficiency is low because
of the auxiliary circuit.
21
Literature Review
Figure 2-2 Harmonic trend line of parallel inverter system using conventional control
and parameter randomization control technique [33].
In order to prevent these harmonics from becoming stronger when more and more
inverters were connected in parallel, a modification of the current controller was made.
The new technique is called the current controller parameter randomization technique
where a random gain component, Rp, was added to the original proportional gain, Kp.
With this technique, results showed an uncorrelated trend lines for both individual
inverter and parallel inverter system. From Figure 2-2, although the harmonics between
the 3rd and 11th remain the dominant one, magnitude of these harmonics was reduced
on average and additional reduction was also achieved in the higher harmonics order.
This confirmed a lower THD level. However, a limitation of the method proposed can
be observed from the result shown in Figure 2-2 where a greater value can be seen in
the 3rd and 5th harmonic orders.
22
Literature Review
systems under variable line impedance but a study of low order harmonics performance
has not been carried out.
M. Jafari et al [69] has also presented a method regarding the average current sharing.
The proposed method uses a reference current which is taken from the average current
sharing centre (ACSC) and is claimed to be the most robust scheme in average current
sharing literature group. This is because it provides robust stability and performance
under filter and load parameter variations. The study begins with analysis of a single
inverter system both with linear and non-linear load and followed with the multi-
inverter systems analysis. However, evidence from hardware experimental results is
not stated for verification of simulation findings.
In a recent study, B. Geethalakshmi et al [71] has proposed a shunt active power filter
(APF) in order to compensate for the current harmonic components produced by
nonlinear loads such as current and voltage source inverter. The APF is realized by
using a 5 level H-bridge inverter. From the simulation results, based on several APF
performance verification including unbalanced supply voltage and dynamic load
variation, the proposed technique has proved to reduce the magnitude of significant
harmonics as well as the line current THD.
In her study on harmonics reduction, Najwa Mahamad et al [72] divided the harmonics
generated into three types; the positive-sequence harmonics which are of the 7th, 13th,
23
Literature Review
and 19th components, the negative-sequence harmonics which are of the 5th, 11th, and
17th components that can totalled up the THD current of the system, and lastly the zero-
sequence harmonics which are of the triplen harmonics such as the 3rd, 9th, and 15th
harmonic components and can cause overheating on the neutral wire of the three phase
power distribution system. In order to reduce the harmonics, the paper proposed an
employment of a transformer and LC filter. From the experimental result, using the
transformer alone can only reduce a small amount of harmonics current magnitude.
However, after implementing the combination of the transformer and the LC filter, the
harmonic in line current and neutral current is reduced to the standard of IEEE.
In 2008, A. Zabihinejad and J.S. Moghani [73] has proposed a new method called
Direct Injection of Random Signal (DIRS) in order to reduce the inverter output current
and voltage THD of an induction motor drive. In their study, a random signal is applied
in the control scheme and has caused a variance in the output current and voltage THD.
Results show that varying the random signal by 30% has best improved the output
voltage harmonic spectrum characteristics. In addition, the harmonic components are
also well distributed.
In this research, a “hybrid controller” is proposed where the features from promising
techniques or schemes above will be combined to produce a new control scheme
capable of minimising the low order harmonics in the parallel grid connected inverter
system. The positive features of selective harmonic compensation scheme; which can
compensate the low-order harmonics of particularly the 3rd, 5th, and 7th, and the random
signal injection; which can reduced the harmonic magnitude of the 9th to 17th orders are
used together in the current controller system for this research project in order to
produce a computationally efficient controller. So far, no research studies have been
found to apply these two methods together and use it in any inverter applications.
Therefore, the combining methods are proposed here to reduce the harmonic magnitude
of the low order harmonics spectrum between the 3rd and 19th of the grid connected
system.
24
Literature Review
From this chapter, an overview of the harmonics injection has been explained. The
definition of harmonics as well as its impacts is discussed. Besides, the four types of
harmonics that are the low order harmonics, switching harmonics, dc current injection
and inter harmonics are also mentioned in this chapter. This chapter has also discussed
a large amount of papers on previous works about the harmonics injection and the
solving methods with first; on a single grid connected inverter system and second; on
a parallel grid connected inverter system. Furthermore, a few papers about harmonics
injection from other area that grid connected inverter are also reviewed. At the end of
this chapter, the idea of the research project is clarified.
25
Methodology
Chapter 3: Methodology
26
Methodology
This technique is normally used with a half-bridge inverter where it compares a sine
wave that acts as the control wave with a carrier wave which is normally in a triangular
form. It is shown in Figure 3-1 above. The process is quite simple. Whenever the
voltage of the sine wave is bigger than the carrier wave, switch 1 will turn on and the
𝑉𝑑𝑐⁄
output will then be + 2 . But when the voltage of the sine wave is smaller than the
𝑉
carrier wave, switch 2 will turn on and the output will become − 𝑑𝑐⁄2. This process
is illustrates in Figure 3-2.
27
Methodology
(a)
(b)
(c)
Figure 3-2: Waveforms of (a) 𝑽𝒄𝒐𝒏𝒕𝒓𝒐𝒍 > 𝑽𝒕𝒓𝒊 which turns on Gate 1;
(b) 𝑽𝒄𝒐𝒏𝒕𝒓𝒐𝒍 < 𝑽𝒕𝒓𝒊 which turns on Gate 2 ; and (c) Output voltage.
28
Methodology
In this project, a unipolar PWM technique is used as the switching technique for the H-
bridge inverter. This is because this switching technique offers a higher efficiency and
higher power output than bipolar switching technique [74]. Moreover, less electro-
magnetic interference (EMI) can be achieved when using unipolar switching [75].
T.Abeyasekera [76] also mentioned two advantages of a unipolar PWM technique.
First, it has less dv/dt stress on the load as the voltage goes from 0 to +𝑉𝑑𝑐 or from 0 to
−𝑉𝑑𝑐 . Second, it has significant reduction in DC link voltage ripple thus reducing the
size of the capacitors. The model of an inverter with a unipolar switching technique is
as Figure 3-3. This PWM unit is then connected to an H-bridge inverter (see Figure
3-4). In the early stage where basic simulation is run, IGBTs with internal diodes were
used as the switching devices. For later simulations (Chapter 5) and experimental
hardware (Chapter 6 and Chapter 7) purpose, MOSFETs are used because they are
suitable for the conditions of the research; use less than 200 V DC supply, less than 1
kW system, and using 20 kHz switching frequency. 20 kHz is a typical switching
frequency for a grid connected inverter system. It is chosen because it represents a good
balance between conduction and switching losses in typical MOSFET switched
applications. Furthermore, it is beyond the audible range of humans, which is highly
desirable. Therefore, throughout this thesis, unless otherwise stated the chosen PWM
29
Methodology
switching frequency for all simulation and experimental work is 20 kHz. This system
works as described in the next page.
30
Methodology
(a)
(a)
(b)
(b)
Figure 3-5: Waveforms at (a) Out1 and Out2 (b) Out3 and Out4.
(b)
31
Methodology
Figure 3-5 are the examples of the waveforms that are being the gate signal for IGBT1,
IGBT2, IGBT3, and IGBT4. When the combination of turning on and off above is
compared, output results should be in a form of a modified sine wave with 𝑉𝑝𝑒𝑎𝑘 must
equal to 𝑉𝑑𝑐 . Therefore, to ensure the PWM technique is working in the correct way,
all the parameters involved are set as in Table 3-1 and the model is run for 0.2 s with
maximum step size in the configuration parameters being changed to 1.0x10-6. This is
to confirm the sampling rate is enough without missing any important information.
Output result agrees with the theory and is shown in Figure 3-6.
holds analogue signal at a constant value, analogue to digital converter (ADC) which
converts analogue signals to digital number and digital to analogue converter (DAC)
which converts the digital number back to an analogue signal [77]. The block diagram
of digital control system in Figure 3-7 illustrates the process.
i/p
Sampling & ZOH ADC Microprocessor DAC ZOH o/p
The process starts as soon after a signal is identified. This signal is then sampled at a
certain constant intervals periodically and held throughout the same intervals by a zero-
order hold ( ZOH ) device to form a staircase-like sample. An analogue to digital
converter is then used to convert the sample to discrete values in a finite time as
demanded by the microprocessor. The major job of microprocessor is to control the
incoming values so that it appears as nearly as demanded by the user. When the job is
done, it has to be converted back to analogue signal via a digital to analogue converter.
Again, a zero-order hold ( ZOH ) is a necessity.
33
Methodology
based control, the integral part is used. The output of the integral part is the
multiplication of a gain, 𝐾𝐼 and the summing of the previous errors to the current system
error. This is a continuous process which will stop if the system signal or the system
output value matches the desired value demanded by the user. The analogue PI transfer
function is
𝐾𝐼
𝐺𝑃𝐼 (𝑠) = 𝐾𝑃 +
𝑠
(Eq. 3-1)
𝐾𝐼
𝐺𝑃𝐼 (𝑧) = 𝐾𝑃 +
1 − 𝑧−1
(Eq. 3-2)
Figure 3-8 illustrates the PI current controller block diagram. The system actual current
is compared to the reference current and will be used in the controlling process. The
output signal after the process has been taken that is the Out1 is then used for the PWM
inverter switching.
34
Methodology
𝑠
𝐺𝑃𝑅 (𝑠) = 𝐾𝑃 + 𝐾𝑅
𝑠2 + 𝜔𝑜2
(Eq. 3-3)
By using the Tustin transformation, the analogue equation above is changed to the
𝟐 𝟏−𝒛−𝟏
z domain known as the discrete function. This is done by substituting 𝒔 with .
𝑻 𝟏+𝒛−𝟏
Based on that, Eq. 3.3 is then transformed to:
2 1 − 𝑧 −1
𝑇 1 + 𝑧 −1
𝐺𝑃𝑅 (𝑧) = 𝐾𝑃 + 𝐾𝑅
2 1 − 𝑧 −1 2
(𝑇 ) + 𝜔𝑜2
1 + 𝑧 −1
2
2 1 − 𝑧 −1 2 1 − 𝑧 −1
𝐾𝑃 [( ) + 𝜔𝑜2 ] + 𝐾𝑅 ( )
𝑇1+𝑧 −1 𝑇 1 + 𝑧 −1
𝐺𝑃𝑅 (𝑧) = 2
2 1 − 𝑧 −1
(𝑇 ) + 𝜔𝑜2
1 + 𝑧 −1
4 1 − 2𝑧 −1 + 𝑧 −2 2 2𝐾𝑅 1 − 𝑧 −1
𝐾𝑃 [( ) ( ) + 𝜔 ] +
𝑇 2 1 + 2𝑧 −1 + 𝑧 −2 0 𝑇 (1 + 𝑧 −1 )
𝐺𝑃𝑅 (𝑧) =
4 1 − 2𝑧 −1 + 𝑧 −2
( 2) ( ) + 𝜔02
𝑇 1 + 2𝑧 −1 + 𝑧 −2
4𝐾𝑃 1 − 2𝑧 −1 + 𝑧 −2 2 2𝐾𝑅 1 − 𝑧 −1
( ) ( ) + 𝐾 𝜔 +
𝑇 2 1 + 2𝑧 −1 + 𝑧 −2 𝑃 0 𝑇 (1 + 𝑧 −1 )
𝐺𝑃𝑅 (𝑧) =
4(1 − 2𝑧 −1 + 𝑧 −2 ) + 𝑇 2 𝜔02 (1 + 2𝑧 −1 + 𝑧 −2 )
𝑇 2 (1 + 2𝑧 −1 + 𝑧 −2 )
(Eq. 3-4)
In order to get a simpler transfer function, some adjustments are made to the (Eq. 3-4)
above. This is shown as in the next page.
35
Methodology
4𝐾𝑃 1 − 2𝑧 −1 + 𝑧 −2 𝑇 2 (1 + 2𝑧 −1 + 𝑧 −2 ) 2𝐾 𝑇 1 − 𝑧 −2
( 2 )( −1 −2 ) + 𝐾𝑃 𝜔02 ( 2 −1 −2 ) + 𝑅2 ( )
𝑇 1 + 2𝑧 + 𝑧 𝑇 (1 + 2𝑧 + 𝑧 ) 𝑇 1 + 2𝑧 −1 + 𝑧 −2
𝐺𝑃𝑅 (𝑧) =
4(1 − 2𝑧 −1 + 𝑧 −2 ) + 𝑇 2 𝜔02 (1 + 2𝑧 −1 + 𝑧 −2 )
𝑇 2 (1 + 2𝑧 −1 + 𝑧 −2 )
(4𝐾𝑃 + 𝐾𝑃 𝜔02 𝑇 2 + 2𝐾𝑅 𝑇) + (2𝐾𝑃 𝜔02 𝑇 2 − 8𝐾𝑃 )𝑧 −1 + (4𝐾𝑃 + 𝐾𝑃 𝜔02 𝑇 2 − 2𝐾𝑅 𝑇)𝑧 −2
=
(4 + 𝑇 2 𝜔02 ) + (2𝑇 2 𝜔02 − 8)𝑧 −1 + (4 + 𝑇 2 𝜔02 )𝑧 −2
(Eq. 3-5)
By dividing the nominator and the denominator of the transfer function in (Eq. 3-5)
2
above by (4 + 𝑇2 𝜔0 ), the discrete form becomes:
(Eq. 3-6)
𝑏𝑜 + 𝑏1 𝑧 −1 + 𝑏2 𝑧 −2
𝐺𝑃𝑅 (𝑧) =
1 + 𝑎1 𝑧 −1 + 𝑎2 𝑧 −2
(Eq. 3-7)
where
36
Methodology
2
(2𝑇2 𝜔0 − 8)
𝑎1 = 2
( 4 + 𝑇2 𝜔 0 )
𝑎2 = 1
𝐾𝑃 and 𝐾𝑅 are the proportional gain and the resonance gain, 𝑇 is the sampling time and
𝜔𝑜 is the fundamental frequency of the system in rad/sec. With the resonance part added
to the proportional controller, the steady state error of the system is nearly eliminated.
Substituting 𝑇 with 50 µs and 𝜔𝑜 with 2π x 50 Hz, the optimum proportional and
resonance gains of the PR current controller technique can be achieved by trial and
error tuning.
Figure 3-9 below shows the controller block diagram. The resulting output signal will
be used in the inverter switching process.
37
Methodology
𝑏𝑜 + 𝑏1 𝑧 −1 + 𝑏2 𝑧 −2
𝐺𝑃𝑅𝑚𝑜𝑑𝑖𝑓𝑖𝑒𝑑 (𝑧) =
1 + 𝑎1 𝑧 −1 + 𝑎2 𝑧 −2
(Eq. 3-8)
Although the transfer function above looks no different with the proportional resonance
control technique, modification is made to the 𝑏𝑜 , 𝑏1 , and 𝑏2 where;
𝑎1 and 𝑎2 remain unchanged thus the values are identical to those obtained for the
proportional resonance control method. In order to get the correct value for the
randomized proportional gain, 𝑅𝐾𝑃 , a limit need to be set for both upper and lower
value so as to maintain the stability of the output current result. This limitation is
obtained by trial and error tuning where the edge where the output current starts to
become unstable is taken as the upper and lower limit for the randomized proportional
gain, 𝑅𝐾𝑃 . With the gain keeps changing within the limitation set each time, the output
current is expected to maintain its shape and stability whilst at the same time its
harmonic spectrum will results in the reduction of the THD.
38
Methodology
This chapter describes the fundamental operating principles of a single phase H-Bridge
inverter. For this inverter topology, two PWM techniques are briefly discussed; bipolar
and unipolar switching. The literature review shows that the Unipolar PWM switching
scheme offers a number of advantages, including improved harmonic performance, less
dv/dt stress on the semiconductor switches, and a reduction in the DC link voltage
ripple which allows for a smaller DC link capacitor to be used [74] [76]. For these
reasons, in this project, unipolar switching is selected as the preferred PWM control
technique.
This chapter also introduces three control techniques that can be applied in grid
connected inverter systems. The PI controller is described, as it is one of the most
commonly understood control methods and is often used as a benchmark for assessing
research results. A review of the PR controller is also presented, as this is becoming
another popular control technique in inverter based systems. Compared to the PI
controller, the literature suggests that the PR controller can be tuned to achieve better
harmonic performance. Furthermore, it does not exhibit the steady state error
associated with PI controller when tracking an AC reference signal.
39
Methodology
40
Modelling of Grid Connected, PV Inverter System
4.1 Introduction
This chapter is written to model the closed loop system of grid-connected PV inverter
system. It begins with modelling the system impedances of the low pass filter, followed
by modelling the current controllers and the PWM. Three types of current controllers
are modelled here; the conventional PI current controller, the PR current controller, and
the PR current controller with added harmonic compensators (PR+HC). At the end, the
closed loop response is plotted, the system stability is analysed using the s-plane and
the critical part is the range of controller gains that can be varied without making the
system unstable can be determined.
Zg
Current
Controller
Figure 4-1 above shows the basic arrangement of a grid connected inverter system. In
order to model the whole system, it is divided into three parts. First, the low pass filter
is modelled using the system impedance. Second, the current controllers are modelled
and last, the PWM switching is modelled. They are discussed and explained in the next
sub-sections.
41
Modelling of Grid Connected, PV Inverter System
Ignoring the current control loop, the low pass filter consists of an inductance and
capacitance with an equivalent resistance value in series (ESR). To model the system
impedance, this will include the grid impedance at the output side of the filter thus
forming a LCL circuit arrangement as in
Figure 4-2. Next, the relation of the impedance is explained and discussed based on the
diagram.
Figure 4-2: Equivalent circuit for low pass filter and the grid.
From the figure, 𝐿𝑓 is the filter inductance, 𝐿𝑐 is the filter capacitance, 𝐿𝑔 is the grid
inductance, and the three resistance; 𝑅𝐿𝑓 , 𝑅𝐶𝑓 , and 𝑅𝑔 , are the respective ESR for the
system. The relationship in time domain between the voltage at point of common
coupling, 𝑉𝑃𝐶𝐶 , and the voltage at inverter output, 𝑉𝑋 can be expressed as:
𝑑𝐼𝑋 (𝑡)
𝑉𝑋 (𝑡) − 𝑉𝑃𝐶𝐶 (𝑡) = 𝐿𝑓 + 𝑅𝐿𝑓 𝐼𝑥 (𝑡)
𝑑𝑡
(Eq. 4-1)
(Eq. 4-2)
In order to gain the Laplace transfer function of the low pass filter induction, it has to
be represented by its output/input characteristics. Considering the equation above, the
relationship becomes:
42
Modelling of Grid Connected, PV Inverter System
𝐼𝑋 (𝑠) 1
𝐻𝐿𝑓 (𝑠) = =
𝑉𝑋 (𝑠) − 𝑉𝑃𝐶𝐶 (𝑠) 𝐿𝑓 𝑠 + 𝑅𝐿𝑓
(Eq. 4-3)
Next, the same steps are taken in order to get the Laplace transfer function for the filter
capacitance branch. Equations below derived the steps.
1
𝑉𝑃𝐶𝐶 (𝑡) = 𝑅𝐶𝑓 𝐼𝐶𝑓 (𝑡) + ∫ 𝐼𝐶𝑓 𝑑𝑡
𝐶𝑓
(Eq. 4-4)
1
𝑉𝑃𝐶𝐶 (𝑠) = 𝑅𝐶𝑓 𝐼𝐶𝑓 (𝑠) + 𝐼 (𝑠)
𝐶𝑓 𝑠 𝐶𝑓
(Eq. 4-5)
1
𝑉𝑃𝐶𝐶 (𝑠) = 𝐼𝐶𝑓 (𝑠)(𝑅𝐶𝑓 + )
𝐶𝑓 𝑠
(Eq. 4-6)
Note that the current flowing through the filter capacitance branch is the current
difference between the inverter output current, 𝐼𝑋 and the grid current, 𝐼𝑔 . Therefore,
since 𝐼𝐶𝑓 (𝑠) = 𝐼𝑋 (𝑠) − 𝐼𝑂 (𝑠), the equation above becomes
𝑅𝐶𝑓 𝐶𝑓 𝑠 + 1
𝑉𝑃𝐶𝐶 (𝑠) = (𝐼𝑋 (𝑠) − 𝐼𝑂 (𝑠))( )
𝐶𝑓 𝑠
(Eq. 4-7)
(Eq. 4-8)
For the grid impedance branch, the same steps are again used to express its Laplace
transfer function. These are described in detail as in the following equations.
43
Modelling of Grid Connected, PV Inverter System
𝑑𝐼𝑂 (𝑡)
𝑉𝑃𝐶𝐶 (𝑡) − 𝑉𝐺 (𝑡) = 𝐿𝑔 + 𝑅𝑔 𝐼𝑂 (𝑡)
𝑑𝑡
(Eq. 4-9)
(Eq. 4-10)
To obtain the Laplace transfer function for the grid impedance branch, the output/input
characteristic is:
𝐼𝑂 (𝑠) 1
𝐻𝐿𝑔 (𝑠) = =
𝑉𝑃𝐶𝐶 (𝑠) − 𝑉𝐺 (𝑠) 𝐿𝑔 𝑠 + 𝑅𝑔
(Eq. 4-11)
By combining the three transfer functions from (Eq. 4-3), (Eq. 4-8) and (Eq. 4-11), the
relationship between the input and the output of the low pass filter and the grid can be
made with the output current, 𝐼𝑂 become the output and the inverter output voltage, 𝑉𝑋
become the input. Figure 4-3 is the block diagram when the three transfer functions
from the filter inductance branch, the filter capacitance branch and the grid impedance
branch are linked together.
Figure 4-3: Block diagram of the low pass filter and grid impedance branch.
44
Modelling of Grid Connected, PV Inverter System
𝐼𝑂 (𝑠)
Based on Figure 4-3, a single Laplace transfer function of ⁄𝑉 (𝑠) can be made.
𝑋
1 𝑅𝐶𝑓 𝐶𝑓 𝑠 + 1 1
𝐼𝑂 (𝑠) = {{[(𝑉𝑋 (𝑠) − 𝑉𝑃𝐶𝐶 (𝑠)) ] − 𝐼𝑂 (𝑠)} − 𝑉𝐺 (𝑠)}
𝐿𝑓 𝑠 + 𝑅𝐿𝑓 𝐶𝑓 𝑠 𝐿𝑔 𝑠 + 𝑅𝑔
[𝑉𝑋 (𝑠) − 𝑉𝑃𝐶𝐶 (𝑠) − 𝐼𝑂 (𝑠)(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )](𝑅𝐶𝑓 𝐶𝑓 𝑠 + 1) − 𝑉𝐺 (𝑠)𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 ) 1
𝐼𝑂 (𝑠) = { }
𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 ) 𝐿𝑔 + 𝑅𝑔
𝑠
[𝑉𝑋 (𝑠) − 𝑉𝑃𝐶𝐶 (𝑠) − 𝐼𝑂 (𝑠)(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )](𝑅𝐶𝑓 𝐶𝑓 𝑠 + 1) − 𝑉𝐺 (𝑠)𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )
𝐼𝑂 (𝑠) =
𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )(𝐿𝑔 𝑠 + 𝑅𝑔 )
(Eq. 4-12)
(Eq. 4-11) can be rearranged to 𝑉𝑃𝐶𝐶 (𝑠) − 𝑉𝐺 (𝑠) = 𝐼𝑂 (𝑠)(𝐿𝑔 𝑠 + 𝑅𝑔 ). This then gives:
(Eq. 4-13)
[𝑉𝑋 (𝑠) − 𝐼𝑂 (𝑠)(𝐿𝑔 𝑠 + 𝑅𝑔 ) − 𝑉𝐺 (𝑠) − 𝐼𝑂 (𝑠)(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )](𝑅𝐶𝑓 𝐶𝑓 𝑠 + 1) − 𝑉𝐺 (𝑠)𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )
𝐼𝑂 (𝑠) =
𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )(𝐿𝑔 𝑠 + 𝑅𝑔 )
[𝑉𝑋 (𝑠) − 𝐼𝑂 (𝑠)(𝐿𝑔 𝑠 + 𝑅𝑔 ) − 𝑉𝐺 (𝑠) − 𝐼𝑂 (𝑠)(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )](𝑅𝐶𝑓 𝐶𝑓 𝑠 + 1) − 𝑉𝐺 (𝑠)𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )
1=
𝐼𝑂 (𝑠)𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )(𝐿𝑔 𝑠 + 𝑅𝑔 )
[𝑉𝑋 (𝑠) − 𝐼𝑂 (𝑠)(𝐿𝑔 𝑠 + 𝑅𝑔 ) − 𝑉𝐺 (𝑠) − 𝐼𝑂 (𝑠)(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )](𝑅𝐶𝑓 𝐶𝑓 𝑠 + 1) − 𝑉𝐺 (𝑠)𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )
0= −1
𝐼𝑂 (𝑠)𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )(𝐿𝑔 𝑠 + 𝑅𝑔 )
0
[𝑉𝑋 (𝑠) − 𝐼𝑂 (𝑠)(𝐿𝑔 𝑠 + 𝑅𝑔 ) − 𝑉𝐺 (𝑠) − 𝐼𝑂 (𝑠)(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )](𝑅𝐶𝑓 𝐶𝑓 𝑠 + 1) − 𝑉𝐺 (𝑠)𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 ) − 𝐼𝑂 (𝑠)𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )(𝐿𝑔 𝑠 + 𝑅𝑔 )
=
𝐼𝑂 (𝑠)𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )(𝐿𝑔 𝑠 + 𝑅𝑔 )
(Eq. 4-14)
45
Modelling of Grid Connected, PV Inverter System
0 = [𝑉𝑋 (𝑠) − 𝐼𝑂 (𝑠)(𝐿𝑔 𝑠 + 𝑅𝑔 ) − 𝑉𝐺 (𝑠) − 𝐼𝑂 (𝑠)(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )](𝑅𝐶𝑓 𝐶𝑓 𝑠 + 1) − 𝑉𝐺 (𝑠)𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 ) −
𝐼𝑂 (𝑠)𝐶𝑓 𝑠(𝐿𝑓 𝑠 + 𝑅𝐿𝑓 )(𝐿𝑔 𝑠 + 𝑅𝑔 )
(Eq. 4-15)
𝐼𝑂 (𝑠)[(𝐿𝑔 𝑅𝐶𝑓 𝐶𝑓 𝑠 2 + (𝐿𝑔 + 𝑅𝑔 𝑅𝐶𝑓 𝐶𝑓 )𝑠 + 𝑅𝑔 ) + (𝐿𝑓 𝑅𝐶𝑓 𝐶𝑓 𝑠 2 + (𝐿𝑓 + 𝑅𝐿𝑓 𝑅𝐶𝑓 𝐶𝑓 )𝑠 + 𝑅𝐿𝑓 )
+ 𝐶𝑓 𝑠(𝐿𝑓 𝐿𝑔 𝑠 2 + (𝐿𝑓 𝑅𝑔 + 𝑅𝐿𝑓 𝐿𝑔 )𝑠 + 𝑅𝐿𝑓 𝑅𝑔 )]
= 𝑉𝑋 (𝑠)(𝑅𝐶𝑓 𝐶𝑓 𝑠 + 1) − 𝑉𝐺 (𝑠)[𝐶𝑓 𝐿𝑓 𝑠 2 + (𝑅𝐶𝑓 𝐶𝑓 + 𝐶𝑓 𝑅𝐿 𝑓)𝑠 + 1]
(Eq. 4-16)
(Eq. 4-17)
From (Eq. 4-17), it is clearly seen that 𝐼𝑂 (𝑠) is the input and both 𝑉𝑋 (𝑠) and 𝑉𝐺 (𝑠) are
the output of the low pass filter and grid impedance branch. In order to obtain the
transfer function for the branch, the equation above is arranged to be as equation below:
𝐼𝑂 (𝑠)
𝐺𝐿𝐶𝐿 (𝑠) =
𝑉𝑋 (𝑠)(𝑅𝐶𝑓 𝐶𝑓 𝑠 + 1) − 𝑉𝐺 (𝑠)[𝐶𝑓 𝐿𝑓 𝑠 2 + (𝑅𝐶𝑓 𝐶𝑓 + 𝐶𝑓 𝑅𝐿 𝑓)𝑠 + 1]
1
=
𝐶𝑓 𝐿𝑓 𝐿𝑔 𝑠 3 + (𝐿𝑔 𝑅𝐶𝑓 𝐶𝑓 + 𝐿𝑓 𝑅𝐶𝑓 𝐶𝑓 + 𝐶𝑓 𝐿𝑓 𝑅𝑔 + 𝐶𝑓 𝑅𝐿𝑓 𝐿𝑔 )𝑠 2 + (𝐿𝑔 + 𝑅𝑔 𝑅𝐶𝑓 𝐶𝑓 + 𝐿𝑓 + 𝑅𝐿𝑓 𝑅𝐶𝑓 𝐶𝑓 + 𝐶𝑓 𝑅𝐿𝑓 𝑅𝑔 )𝑠 + 𝑅𝑔 + 𝑅𝐿𝑓
(Eq. 4-18)
46
Modelling of Grid Connected, PV Inverter System
Whilst there are benefits associated with Unipolar PWM switching, both bipolar and
unipolar PWM techniques results in the same average fundamental output voltage
regardless of the switching behaviour. For control loop analysis, it has been shown that
modelling the bipolar PWM strategy is significantly easier than that of the unipolar
technique [44]. Therefore, for the control loop analysis only, the bipolar PWM
technique is applied here. This is considered a valid “approximation” to the actual
situation, provided we are only concerned with low frequency analysis below the PWM
switching frequency (typically 20kHz); fortunately, this is the case here.
Figure 4.4 shows the single update PWM mode [79]. Here, the switching process is
updated for each duty cycle. Based on the Figure 4-4, 𝑚𝑐 (𝑡) is the output signal
generated from the current controllers, 𝑚𝑠 (𝑡) is the modulating signal and 𝑐(𝑡) is the
carrier signal. The duty cycle 𝑑, is the fraction of time, which happens each time the
modulating signal is higher than the carrier signal. This can be expressed by the value
of a single update modulating signal in a cycle, 𝑚𝑠 𝑛𝑇𝑠 , divided by the peak of the
carrier signal, 𝑐𝑝𝑘 . The sample and hold effects need also be considered in the
modelling.
47
Modelling of Grid Connected, PV Inverter System
Equations below show the expression without and with the delay effects of sample
and hold [79].
𝑚𝑠 𝑛𝑇𝑠
𝑑= , 𝑛 = 1,2,3,4, ….
𝑐𝑝𝑘
(Eq. 4-19)
𝑇𝑠
𝑚𝑐 (𝑠) 1 − 𝑠 4
𝑑=
𝑐𝑝𝑘 1 + 𝑠 𝑇𝑠
4
(Eq. 4-20)
In order to produce the output voltage of the H-bridge inverter, which goes from −𝑉𝐷𝐶
to +𝑉𝐷𝐶 , it must depend on the PWM duty cycle. This is shown in equation below. In
48
Modelling of Grid Connected, PV Inverter System
order to simplify the analysis, it should be noted here that the voltage drop of the
switches is ignored.
𝑉𝑋 (𝑠) = 2𝑑𝑉𝐷𝐶
𝑇𝑠
𝑚𝑐 (𝑠) 1 − 𝑠 4
𝑉𝑋 (𝑠) = 2𝑉
𝑐𝑝𝑘 1 + 𝑠 𝑇𝑠 𝐷𝐶
4
(Eq. 4-21)
𝑇𝑠
𝑉𝑋 (𝑠) 1 1−𝑠 4
𝐺𝑃𝑊𝑀 (𝑠) = =2 𝑉
𝑚𝑐 (𝑠) 𝑐𝑝𝑘 1 + 𝑠 𝑇𝑠 𝐷𝐶
4
(Eq. 4-22)
Chapter 3 has mentioned the transfer function for the current controllers used in this
research project. They are again expressed as below:
The Laplace transfer function for the output/input relationship of PI current controller
is;
𝑚𝑐 (𝑠) 𝐾𝑃 𝑠 + 𝐾𝐼
𝐺𝑃𝐼 (𝑠) = =
𝜀(𝑠) 𝑠
𝐾𝑃 𝑠 + 𝐾𝐼
=
𝑠
(Eq. 4-23)
𝐾𝑃 is the proportional gain and 𝐾𝐼 is the integral gain of the controller system. Figure
4-5 shows the open loop Bode plot for the respective controller system. The chosen
value used to develop the graph is 0.017 for 𝐾𝑃 and 0.035 for 𝐾𝐼 . These values are
determined by a manual tuning approach in which the PI controller is initially
49
Modelling of Grid Connected, PV Inverter System
Figure 4-5: Open loop Bode plot for PI current controller scheme shows flat response
at 50 Hz indicating no harmonic rejection at fundamental frequency.
𝑚𝑐 (𝑠) 2𝐾𝑅 𝑠
𝐺𝑃𝑅 (𝑠) = = 𝐾𝑃 + 2
𝜀(𝑠) 𝑠 + 𝜔𝑜2
𝐾𝑃 (𝑠 2 + 𝜔𝑜2 ) + 2𝐾𝑅 𝑠
=
𝑠 2 + 𝜔𝑜2
𝐾𝑃 𝑠 2 + 2𝐾𝑅 𝑠 + 𝐾𝑃 𝜔𝑜2
=
𝑠 2 + 𝜔𝑜2
(Eq. 4-24)
50
Modelling of Grid Connected, PV Inverter System
However, as the ideal equation above is hard to implement in reality because of the
round off and quantization error in digital transformation, a non ideal controller is used
where a controller cut off frequency, 𝜔𝑐 is added to the system [58]. Furthermore, an
increased 𝜔𝑐 will ensure the system stability and yield to a less sensitive controller [80].
This then makes the equation as:
𝑚𝑐 (𝑠) 2𝐾𝑅 𝜔𝑐 𝑠
𝐺𝑃𝑅 (𝑠) = = 𝐾𝑃 + 2
𝜀(𝑠) 𝑠 + 2𝜔𝑐 𝑠 + 𝜔𝑜2
(Eq. 4-25)
𝐾𝑃 is the controller proportional gain, 𝐾𝑅 is the controller resonance gain of the system
and 𝜔𝑜 on the other hand is equal to 2 times 𝜋 times the fundamental frequency which
is 315.159 rad/s.
Figure 4-6: Open loop Bode plot of PR current controller scheme shows high
magnitude at 50 Hz indicating good harmonic rejection at fundamental frequency.
The open loop Bode plot of the PR current controller without the cut off frequency 𝜔𝑐
is shown in Figure 4-6 with 0.046 and 580 for the 𝐾𝑃 and 𝐾𝑅 value respectively. Again,
51
Modelling of Grid Connected, PV Inverter System
the gain values are obtained in the simulation. Whereas the next following figure shows
the open loop Bode plot of the PR current controller with the 𝜔𝑐 added and its effect
if the value varies.
(a)
(b)
Figure 4-7: Open loop Bode plot of PR current controller scheme when
(a) 𝜔𝑐 =1: wider magnitude response at 50 Hz shows less sensitive controller,
and (b) 𝜔𝑐 =1, 5, 20, 50: sensitivity of the controller is reduced with increasing
value of 𝜔𝑐 .
52
Modelling of Grid Connected, PV Inverter System
The PR+HC scheme is the combination of the PR controller scheme but with harmonic
compensators added. This depends on the number of harmonics that one needs to use
in order to reduce the harmonics of interest. In this project, three harmonic
compensators are modelled in the simulation; the 3rd harmonic order, the 5th harmonic
order, and the 7th harmonic order. This is because these lower order harmonics are the
most dominant harmonics and difficult to reduced. Therefore, the Laplace transfer
function for the PR+HC current controller scheme with added 𝜔𝑐 is:
𝑚𝑐 (𝑠)
𝐺𝑃𝑅+𝐻𝐶 (𝑠) =
𝜀(𝑠)
(Eq. 4-26)
Figure 4-8: Open loop Bode plot of PR+HC current controller scheme with 𝝎𝒄 =10.
Based on (Eq. 4-26), 𝐾𝑃 is the proportional gain, 𝐾𝑅 is the resonant gain at fundamental
frequency, 𝐾𝑐3 is the resonant gain at three times the fundamental frequency, 𝐾𝑐5 is the
resonant gain at five times the fundamental frequency, and 𝐾𝑐7 is the resonant gain at
53
Modelling of Grid Connected, PV Inverter System
seven times the fundamental frequency. The chosen values for all the gains mentioned
are 0.046, 580, 70, 70, and 70 respectively which are obtained in the simulation earlier.
The overall open loop Bode plot for PR+HC current controller is as in Figure 4-8.
By cascading (Eq. 4-18) and (Eq. 4-22) above with the chosen current controller ((Eq.
4-23), (Eq. 4-25) or (Eq. 4-26)), the complete model of a grid connected, PV inverter
system can be developed. This is illustrated in Figure 4-9.
Figure 4-9: Model of grid connected inverter system with PI current controller.
From the figure, two input variables are observed which produce two different transfer
function responses. One is the response when 𝑉𝐺 (𝑠) is set to zero and the other one is
the response when 𝐼𝑟𝑒𝑓 (𝑠) is set to zero. The overall closed loop response of the grid
connected, single PV inverter system model is discussed further in the next sub-section.
Earlier, two input variables are observed from the model in Figure 4-9. In order to get
the overall closed loop response of the system model, each input is set to zero value for
each time to develop two transfer functions. The mathematical expressions for the grid
connected, inverter model with PI current controller are explained next.
54
Modelling of Grid Connected, PV Inverter System
When 𝑉𝐺 (𝑠) = 0;
(Eq. 4-27)
(Eq. 4-28)
By adding (Eq. 4-27) and (Eq. 4-28), the closed loop response can be obtained.
(Eq. 4-29)
𝑉𝐺 (𝑠)
𝐺𝑃𝐼 (𝑠)𝐺𝑃𝑊𝑀 (𝑠)𝐺𝑉𝑋 (𝑠)𝐺𝐿𝐶𝐿 (𝑠) − [𝐺 (𝑠)𝐺𝐿𝐶𝐿 (𝑠)]
𝐼𝑜 (𝑠) 𝐼𝑟𝑒𝑓 (𝑠) 𝑉𝐺
𝐺𝐶𝐿𝑃𝐼 (𝑠) = =
𝐼𝑟𝑒𝑓 (𝑠) 1 + 𝐺𝑃𝐼 (𝑠)𝐺𝑃𝑊𝑀 (𝑠)𝐺𝑉𝑋 (𝑠)𝐺𝐿𝐶𝐿 (𝑠)
(Eq. 4-30)
55
Modelling of Grid Connected, PV Inverter System
Using the same steps, the closed loop response for the grid connected, inverter model
with PR and PR+HC current controller can be obtained as in (Eq. 4-31) and (Eq. 4-32).
𝑉𝐺 (𝑠)
𝐺𝑃𝑅 (𝑠)𝐺𝑃𝑊𝑀 (𝑠)𝐺𝑉𝑋 (𝑠)𝐺𝐿𝐶𝐿 (𝑠) − [𝐺 (𝑠)𝐺𝐿𝐶𝐿 (𝑠)]
𝐼𝑜 (𝑠) 𝐼𝑟𝑒𝑓 (𝑠) 𝑉𝐺
𝐺𝐶𝐿𝑃𝑅 (𝑠) = =
𝐼𝑟𝑒𝑓 (𝑠) 1 + 𝐺𝑃𝑅 (𝑠)𝐺𝑃𝑊𝑀 (𝑠)𝐺𝑉𝑋 (𝑠)𝐺𝐿𝐶𝐿 (𝑠)
(Eq. 4-31)
𝑉𝐺 (𝑠)
𝐺𝑃𝑅+𝐻𝐶 (𝑠)𝐺𝑃𝑊𝑀 (𝑠)𝐺𝑉𝑋 (𝑠)𝐺𝐿𝐶𝐿 (𝑠) − [𝐺 (𝑠)𝐺𝐿𝐶𝐿 (𝑠)]
𝐼𝑜 (𝑠) 𝐼𝑟𝑒𝑓 (𝑠) 𝑉𝐺
𝐺𝐶𝐿𝑃𝑅+𝐻𝐶 (𝑠) = =
𝐼𝑟𝑒𝑓 (𝑠) 1 + 𝐺𝑃𝑅+𝐻𝐶3 (𝑠)𝐺𝑃𝑊𝑀 (𝑠)𝐺𝑉𝑋 (𝑠)𝐺𝐿𝐶𝐿 (𝑠)
(Eq. 4-32)
Table 4.1 shows the list of parameters used in the system. These values are typical of a
commercial scale single phase inverter system, and have been successfully applied in
previous work [ref Hong]. For consistency, they are applied here also for the purposes
of the Simulink simulation.
56
Modelling of Grid Connected, PV Inverter System
Parameter Value
𝑉𝐷𝐶 400 V
𝐶𝑝𝑘 2
𝑇𝑠 50 µs
𝐿𝑓 1.6 mH
𝑅𝐿𝑓 0.15 Ω
𝐶𝑓 12 µF
𝑅𝐶𝑓 0.0566 Ω
𝐿𝑔 0.05 mH
𝑅𝑔 0.1 Ω
𝑉𝑔 240√2 Vpeak
𝐼𝑟𝑒𝑓 20 A
𝐾𝑃 (PI) 0.017
𝐾𝐼 0.035
𝐾𝑅 580
The following three figures below the Bode plot of the closed loop system response
with PI, PR and PR+HC current controller together with its root locus.
57
Modelling of Grid Connected, PV Inverter System
(a)
(b)
Figure 4-10: Closed loop response of the system with PI current controller. (a) Bode
plot shows the attenuation of the low order harmonics, and controller resonant point
at approximately 7 kHz, and (b) Root locus confirms the stability of the closed loop
controller for the applied gains.
58
Modelling of Grid Connected, PV Inverter System
(a)
(b)
Figure 4-11: Closed loop response of the system with PR current controller. (a) Bode
plot shows improved attenuation of low order harmonics, and lower impact of
resonance (now at 10 kHz), and (b) Root locus confirms the stability of the closed
loop controller for the applied gains.
59
Modelling of Grid Connected, PV Inverter System
(a)
(b)
Figure 4-12: Close loop response of the system with PR+HC current controller.
(a) Bode plot shows attenuation of low order harmonics, and further improvement of
the resonant effect at 10 kHz, and (b) Root locus confirms the stability of the closed
loop controller for the applied gains.
60
Modelling of Grid Connected, PV Inverter System
4.4 Discussion
Analysis of the PI controller bode plot shows that output gain of the controller is fairly
uniform across the frequency range. For the PR controller, it is apparent that the
controller can be tuned so that the control system has low impedance to the fundamental
frequency of interest; in the case of a grid connected inverter system this is the network
frequency – typically 50/60 Hz. This is one of the reasons that PR controller are
becoming increasingly popular in distributed generation systems; it is well suited for
readily injecting mains frequency signals into the grid, whilst presenting a higher
impedance to other frequencies such as harmonics where it is preferential to minimise
these components. The PR+HC takes this one step further, This controller includes
additional harmonic compensation terms, which are tuned to specific harmonics which
are desirable to mitigate. The example in this chapter has shown a typical application,
which might be seen in a grid connected inverter system, where the HC terms are
targeted towards the low order harmonics of the system. These are particularly
troublesome in grid connected applications, since they are close to the fundamental
frequency of the system, and thus immensely difficult to remove via traditional passive
low pass filters. A typical passive low pass filter in a grid connected inverter might be
designed around a cut of frequency in the range of 500 Hz – 1500 Hz, therefore 3rd, 5th,
7th harmonic components are particularly troublesome. In the Bode of plot of the PR-
HC, it is clear that the impedance to these components has been significantly increased
(shown by the three “spikes” in the bode plot).
This chapter has explained the modelling process of a grid connected single inverter
system employing three different types of controller. The approach to the modelling
has been fully described, with full details on the development of the closed loop
Laplace transfer function of each system. Based on an example set of gains used in
each controller, it is clear to see that a robust control solution can be developed with
each method. The key attributes of each controller have been shown via the frequency
domain responses, and discussed. Whilst the PI controller produces a robust solution,
the PR controller produces a solution which is better optimised to the injection of the
fundamental frequency into the grid. Troublesome low order harmonic components can
be mitigated further by the introduction of harmonic compensation (HC) terms. Care
61
Modelling of Grid Connected, PV Inverter System
must be taken when introducing these terms, since each adds complexity to the control
structure and will require DSP resources when applied in practice.
62
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
Simulations are the assumptions of representations of the real model. Before any
experimental hardware is developed, simulations are normally done in order to test the
effectiveness of the proposed idea. Hence, the parameters used in the simulation
process will be referred to in the future when developing the experimental hardware.
In this chapter, simulations of a grid connected system are done using three control
techniques that are the PI control, PR control and the modified PR control. At first, a
single inverter system is simulated and followed by two inverter systems in parallel and
connected to the same point in the supply grid.
63
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
Figure 5-1 shows a single inverter system model. The parameters are listed in Table
5-1.
64
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
Figure 5-2 is the grid model of 240 𝑉𝑅𝑀𝑆 which contains different magnitude and phase
angle for each particular frequency of up to the 50th. In total, this will create an
approximate background THD of 2.45% in the grid supply voltage. The harmonic data
is based on experimental data acquired by a previous student in the Power Electronics,
Drives and Machines laboratory at Newcastle University [44]. This data is readily
available for simulation use by the research group.
Figure 5-2: Grid model which contains a background THD of 2.45% [44].
65
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
As there are three different digital current control methods used in this project, each is
tested independently. The first simulation uses the conventional PI current controller,
followed by the PR+HC and the modified PR+HC. The reference current is chosen to
be 20 A peak as the system is assumed to work in a perfect sunny day with 3 kW output
power. The simulation model samples the currents and voltages every 50 us. In
addition, the PWM output is updated at the same rate. This simulates the basic
operation of a real digital control system.
Such a set of conditions assumes close to full power operating conditions. Under these
circumstances, the modulation index within the PWM is set to be very high. It is well
known that the harmonic performance of grid connected inverters is typically best at
full power, and that low modulation index operation can result in in greater harmonic
distortion. This is because at low modulation indices, dead-time is a greater proportion
of the pulse width. Therefore, the impact on low order harmonic distortion is greater.
66
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
Good quality dead-time compensation can mitigate the impact of this to some extent,
but will not complete eliminate the phenomena. In a grid connected inverter PV system,
such a scenario can potentially occur when there is a prolonged period of low
irradiation. It is important to recognise, however, that such characteristics will apply
regardless of the control strategy chosen. In most of the results presented in this thesis,
a high modulation index is observed in the PWM unit, implying that the inverter is
typically operating at high/full power conditions which is typically desirable where
possible.
Figure 5-3 shows the PI controller model used in the simulation. The measured inverter
output current will be In1. It is then compared with the 𝐼𝑟𝑒𝑓 , resulting an error which is
used in the control process. The output of the current controller is then compared with
a 20 kHz triangular wave signal to generate the PWM switching pattern to control the
state of the H-Bridge power converter. Both gains; proportional gain and integral gain
are tuned using a simple a manual tuning method until the output current matches the
reference signal. Further fine tuning is then carried out to achieve an optimised current
output, with good power quality (low harmonics). In this simulation, the gains used are
0.03 for 𝐾𝑃 and 0.03 for 𝐾𝐼 . The model is run for 1.0 s. Following this, FFT analysis is
performed and the harmonic content of the output current waveform is recorded, up to
the 20th harmonic (1 kHz). Above this, the harmonics are significantly attenuated by
the low pass filter. However, the overall THD of the current waveform is also recorded
as an additional measure of power quality.
67
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
Figure 5-4 in the next page shows the screen shot of the reference current signal, the
inverter output current signal, and the observed current error signal applied to the PI
controller.
68
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
Current (A)
Time (s)
a)
Current (A)
Time (s)
b)
Current (A)
Time (s)
c)
Figure 5-4: Screen shot of (a) Reference current of PI controller with 20 A peak
value, (b) Inverter output current of PI controller which shows a distorted waveform,
and (c) Large magnitude error between reference current and inverter output current
of PI controller.
With the chosen 𝐾𝑃 and 𝐾𝐼 value, when the model is run, the error between both the
inverter output current and reference current is the smallest which is approximately
1.5 A peak. The harmonic spectrum for the inverter output current is measured using
FFT Analysis. The sample taken for the analysis is 10 cycles starting from 0.6 s to 0.8 s.
The low order harmonic data is then exported to Excel and post processed to produce
the result illustrated in Figure 5-5 .
69
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
0.8
0.7
Mag (% of fundamental)
0.6
0.5
0.4
0.3
0.2
0.1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic Number
Figure 5-5: Low order harmonic spectrum of inverter output current with PI control
(𝐾𝑃 = 0.03 , 𝐾𝐼 = 0.03)
The inverter output current shows a THD of 2.06 %, with high harmonics
appear between the 3rd and 17th order. These low order harmonics are the prominent
harmonics which are the focus to be eliminated or reduced in this research work. As
mentioned previously, higher order harmonics beyond the 20th are less severe due to
the 1 kHz cut off frequency of the low pass filter.
70
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
1
𝑐𝑜𝑛𝑠𝑡 =
4 + 𝑇 2 𝜔𝑜 2
𝑏𝑜 = (4 + 𝑇 2 𝜔𝑜 2 )𝐾𝑃 + 2𝑇𝐾𝑅
𝑏1 = (2𝑇 2 𝜔𝑜 2 + 8)𝐾𝑃
𝑏2 = (4 + 𝑇 2 𝜔𝑜 2 )𝐾𝑃 − 2𝑇𝐾𝑅
2𝑇 2 𝜔𝑜 2 − 8
𝑎1 =
4 + 𝑇 2 𝜔𝑜 2
𝑎2 = 1
The reference current, measured inverter output current and the error can be seen in
Figure 5-7. Based on the figure, the error current for the system using the PR control
71
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
technique is minimised when compared with the error current for the system using the
PI control technique (Figure 5-4). This shows an advantage of the PR control system.
Current (A)
Time (s)
a)
Current (A)
Time (s)
b)
Current (A)
Time (s)
c)
Figure 5-7: Screen shot of (a) Reference current of PR controller with 20 A peak
value, (b) Inverter output current of PR controller which shows smoother waveform
compared to PI controller, and (c) Reduced error between reference current and
inverter output current of PR controller.
72
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
0.7
0.6
Mag (% of fundamental)
0.5
0.4
0.3
0.2
0.1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
Figure 5-8: Low order harmonic spectrum of inverter output current with PR current
controller.
Figure 5-8 shows the low order harmonic spectrum of the inverter output current after
the data from FFT analysis in Simulink has been transferred to Excel. When run in the
same length time as the system using PI current controller and sample time taken for
the analysis made is also the same as the system using PI current controller, the THD
achieved is 1.80% which is a reduction of approximately 13% from using the
conventional PI control technique.
73
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
0.8
0.7
Mag (% of fundamental)
0.6
0.5
0.4
0.3
0.2
0.1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
PI (THD=2.06%) PR (THD=1.80%)
Figure 5-9 illustrates the spectrums of Figure 5-5 and Figure 5-8 when they are set in a
single bar graph. Besides the improvement in the THD, Figure 5-9 clearly shows that
the harmonics magnitude between the 3rd and the 17th harmonic orders have also been
reduced except for the 11th and 19th harmonic order. However, when observing the
magnitude of the 11th harmonic, it is not a big concern here as it is the similar range of
magnitude value that is between 0.1 and 0.2.
74
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
Figure 5-10: Simulink model of current controller using the modified PR control
technique.
75
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
Based on Figure 5-10, it can be seen that the terms 𝑏𝑜 , 𝑏1 , and 𝑏2 that are used in the
previous PR controller technique has been divided into several other fraction. The main
thing to know is that all values in the 𝑏𝑜 , 𝑏1 , and 𝑏2 terms remain unchanged except for
the proportional gain, 𝐾𝑃 . This is because, the proportional part for this novel approach,
𝑅𝐾𝑃 is tuned randomly within a set limit. As illustrated in Figure 5-10, a random
number block is used and added to the proportional gain, 𝐾𝑃 , to become a new
randomized proportional gain, 𝑅𝐾𝑃 for the controller process; a gain that varies within
𝐾𝑃 ± 0.001. The limit is chosen so that the THD as well as the harmonic spectrum of
the inverter output current is in acceptable value and shape. Similar to the system with
PR control technique, the value for 𝐾𝑃 is 0.04 and 𝐾𝑅 is 700. Below are the screen shots
of the random signal generation.
a)
b)
Figure 5-11: Screen shot of (a) Random signal generation of the modified PR
controller, and (b) The randomized proportional gain, 𝑅𝐾𝑃 signal which varies within
a set limit.
If a fixed gain is used as for the system with PR current controller, the signal for 𝐾𝑃 as
in Figure 5-11(b) is maintained at 0.04 at all times. However, with this technique, the
76
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
proportional signal is randomly varies between 0.0395 to 0.0405. Beyond this limit, the
signal of the inverter output current becomes unstable.
After the simulation of the modified control technique is run, FFT analysis of the
inverter output current is once again captured and transferred using Excel. Result can
be observed in Figure 5-12. From the figure, some addition and cancellation have
occurred to the current harmonic profile as the effect of the randomly varying
proportional gain. Most importantly, this addition and cancellation have further
reduced the grid current THD from 1.80% to 1.78%. Though it is small, it is a good
result where it clearly proves and shows that the modified PR control technique by
adjusting the proportional gain randomly within a range that has been set is one
important contribution to the knowledge and as a novel current controller for grid
connected inverters. There are no extra circuits that need to be added thus no extra
burden to the system when using this new technique.
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Conventional PR Modified PR
Figure 5-12: Harmonic profile of inverter output current with modified PR current
controller shows better outcome compared to the conventional PR current controller.
77
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
current controller and then followed by the proportional resonance (PR) current
controller and the modified proportional resonance current controller. Details of the
results are explained next.
78
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
In the following results, the simulation model is run for 1.0 s. The time domain
waveforms of the signals are captured and downloaded to a personal computer. From
this, waveforms and low order harmonic spectra of each individual inverter, and the
grid, are post processed using excel. Figure 5-14 shows the error signal between the
reference and the actual inverter current for both inverter systems. The output signals
for the inverters and the grid together with the low order harmonic profiles are
illustrated in Figure 5-15 and Figure 5-16.
(a)
(b)
Figure 5-14: Current error signal of (a) Inverter 1, and (b) Inverter 2, with PI current
controller which shows big magnitude errors.
79
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
(a)
(b)
(c)
Figure 5-15: Waveforms of (a) Inverter 1 output current, (b) Inverter 2 output current,
and (c) Grid current with PI controller.
= 20 A peak + 20 A peak
= 40 A peak
The low order harmonic magnitude for each inverter current, and overall grid current,
is measured using FFT analysis. 10 cycles are taken as a sample for the analysis,
between 0.6 s to 0.8 s. Results are shown in figure 5-16 where the harmonic profiles
show significant harmonic emissions between the 3rd and 19th order. It is also apparent
that a very similar harmonic spectrum exists in each profile.
80
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
1.2
Mag (% of fundamental)
1
0.8
0.6
0.4
0.2
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
(a)
1.2
Mag (% of fundamental)
0.8
0.6
0.4
0.2
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
(b)
81
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
1.2
Mag (% of fundamental)
1
0.8
0.6
0.4
0.2
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
(c)
Figure 5-16: Harmonic profiles of (a) Inverter 1 output current, (b) Inverter 2 output
current, and (c) Grid current. All shows significant harmonic emissions between the
3rd and 19th harmonic orders.
1.2
Mag (% of fundamental)
1
0.8
0.6
0.4
0.2
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
Figure 5-17: Harmonic profiles of inverter 1, inverter 2, and grid current with PI
current controller which shows similar harmonic spectrum exists except for the 15th,
17th and 19th order.
82
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
(a)
(b)
Figure 5-18: The error signal between reference and the actual current of
The output current waveforms for each inverter and overall grid current, together with
the low order harmonic profiles, can be seen in Figure 5-19.
83
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
(a)
(b)
(c)
Figure 5-19: Waveforms of (a) Inverter 1 output current, (b) Inverter 2 output current,
and (c) Grid current with PR current controller.
The low harmonic orders for each inverter current and grid current is again measured
using FFT analysis and 10 cycles are taken as a sample for the analysis, starting from
0.6 s to 0.8 s. The graphs are then transferred to Excel as shown in Figure 5-20.
84
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
0.8
Mag (% of fundamental) 0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
(a)
0.8
0.7
Mag (% of fundamental)
0.6
0.5
0.4
0.3
0.2
0.1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
(b)
85
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
0.8
0.7
Mag (% of fundamental)
0.6
0.5
0.4
0.3
0.2
0.1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
(c)
Figure 5-20: Harmonic profiles with the respective per unit magnitude of
(a) Inverter 1 output current, (b) Inverter 2 output current, and (c) Grid current.
0.8
0.7
Mag (% of fundamental)
0.6
0.5
0.4
0.3
0.2
0.1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
Figure 5-21: Harmonic profiles of Inverter 1, Inverter 2, and Grid current with PR
controller in one graph shows harmonics addition and cancellation occurred.
86
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
From Figure 5-21, it can be clearly seen that there is some addition as well as
cancellation of the harmonic magnitude. For instance, the 3rd and 5th harmonic order
magnitudes of inverter 1 output current are 0.34 and 0.59 respectively but the same
harmonic order magnitudes of inverter 2 output current are 0.35 and 0.58 respectively.
The effect of this controller technique can also be observed on all the low harmonic
orders. For that reason, the harmonic profile of the grid current is also affected resulting
in an improvement to the grid current THD that is 3.27%; a reduction of approximately
3.25% from the previous parallel inverters simulation when using the conventional PI
current controller.
(a)
(b)
Figure 5-22: The error signal between reference and the actual current of
87
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
The output current waveforms for each inverter, and the grid current, are shown in
Figure 5-23.
(a)
(b)
(c)
Figure 5-23: Waveforms of (a) Inverter 1 output current, (b) Inverter 2 output current,
and (c) Grid current with modified PR current controller.
The low harmonic orders for each inverter current and grid current is again measured
using FFT Analysis. 10 cycles are taken as a window for the analysis, between 0.6 s to
0.8 s. The data is then transferred to Excel, as shown in Figure 5-24.
88
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
0.8
0.7
Mag (% of fundamental)
0.6
0.5
0.4
0.3
0.2
0.1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
(a)
0.8
0.7
Mag (% of fundamental)
0.6
0.5
0.4
0.3
0.2
0.1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
(b)
89
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
0.8
0.7
Mag (% of fundamental)
0.6
0.5
0.4
0.3
0.2
0.1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
(c)
Figure 5-24: Harmonic profiles with the respective per unit magnitude of (a) Inverter
1 output current, (b) Inverter 2 output current, and (c) Grid current.
0.8
0.7
Mag (% of fundamental)
0.6
0.5
0.4
0.3
0.2
0.1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
Figure 5-25: Harmonic profiles of inverter 1, inverter 2, and grid current with
modified PR controller shows harmonic cancellation and addition leading to a further
THD reduction compared to the PR current controller technique.
The grid current THD observed is 3.03% which shows a further improvement
compared to the previous simulation when using the proportional resonance controller
90
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
technique alone. This also proves that the latter technique works even better when two
inverters are connected in parallel to the grid. This is because when a single inverter
system is run using the PR and the modified PR control technique which involves the
randomized gain in the controller system, the THD improvement observed is
approximately 1.1%. However, when two inverter systems are run in parallel using the
same techniques, the THD improvement observed is approximately 7.3%. The next
following figure compares the harmonic spectrum of the grid current when each
controller technique is applied to the parallel inverter system.
1.2
Mag (% of fundamental)
0.8
0.6
0.4
0.2
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Harmonic order
Grid PI (Thd = 3.36%) Grid PR (Thd = 3.27%) Grid Mod PR (Thd = 3.03%)
Figure 5-26: Current harmonic profile using PI, PR and modified PR controllers.
THD of grid current with modified PR controller shows the lowest value.
From Figure 5-26, it is noticed that a reduction in the overall harmonic content occurs
when using the proportional resonance and modified proportional resonance technique,
compared to using the conventional PI control technique. When a random signal is
added to the proportional gain of the PR controller, a random interaction occurs
between the inverters, resulted in a time-varying harmonic spectrum. The simulation
results provide a basis for verifying the control technique experimentally.
91
Simulations Of Grid Connected Inverter System With PI, PR, and Modified PR Controller
92
Experimental Results of Stand Alone Inverter
This chapter starts by describing the software and hardware used in this research
project. Following this, experimental results from applying the three different control
methods described in Chapter 4 to a stand-alone inverter system is shown. Finally, a
comparison of the results is presented, and conclusions are drawn.
The power inverter board uses four 100 V TO-220 case style Mosfets. The inverter
board is then connected to a low pass output filter. The schematic diagram of the power
inverter board and filter is shown in Figure 6-1.
93
Experimental Results of Stand Alone Inverter
Galvanic
Lf /2 Isolator
L
T1 T3 O
A
Cf D
VDC C2
/
C1
G
R
T2 T4 I
D
Lf /2
GATE DRIVER
&
TMS320F2812
DSP
I ref
A Texas Instruments ezDSP, TMS320F2812, processor board is used for this work.
This system has four major interface blocks; the parallel port controller interface, the
external JTAG interface, the analogue expansion interface and the I/O expansion
interface. The block diagram of the eZdspTM F2812 chip can be seen in Figure 6-2 [81].
The description of all the blocks functions are as follows:
c) Analogue expansion interface – connects to the analogue input for digital conversion
purposes.
d) I/O expansion interface – used to get the input and output signals from the DSP.
94
Experimental Results of Stand Alone Inverter
As stated in the earlier chapter, this research is concerned with two inverter systems
operating in parallel. However, before any further experiments are done, each inverter
system need to be tested with a resistive load at the output. This is also known as a
stand-alone inverter where no connection with the grid is made. Initially, one of the
inverters (Inverter 1) is tested with a conventional PI current control loop. Output
waveforms are taken from a normal oscilloscope and the FFT of the harmonic current
is taken from a power analyzer which is then transferred to Excel to get the graph. All
tests in this stand-alone mode used a 25 V DC supply with a 3 A peak current demand
and 5 Ohms resistive load at the end. In order to get the best proportional and integral
gains for the system, the software is run with different gain values each time. The
purpose is to observe which gain values can get the best output waveform with the best
total harmonic distortion (THD) value. Using trial and error method, the optimum value
for the proportional gain 𝐾𝑃 is 1.6 and the optimum value for the integral gain 𝐾𝐼 is
0.275. Figure 6-3 and Figure 6-4 are the screen shots of the current output waveform
and the respective FFT for the gains stated with the scope set to 1 A per division.
95
Experimental Results of Stand Alone Inverter
2.5
Mag (% of fundamental)
1.5
0.5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Harmonic order
PI (THD=3.186% _ I=2.993Ap)
From Figure 6-3, it can be seen that whenever the current crosses the zero line, a small
distortion occurred which is known as the PWM dead time effect. Dead time is a short
time delay that is applied in the PWM switching to avoid the switches from turning on
or off at the same time. It is discussed briefly in Appendix. The effect of dead time is
96
Experimental Results of Stand Alone Inverter
normally seen at the output waveform as can be seen above. To compensate the effect
of dead time to the output results, an adjustment in the software is made. This is done
by adding a particular value based on the dead time value used in the PWM switching.
In this project a dead time used in the PWM switching is 1.7 µs which is around 3% of
the switching time. For the purpose of the compensation, this time delay in per unit
need to be multiplied by the maximum magnitude of the modulating signal and then be
added to the current controller output. To observe the effect of the dead time
compensation to the output waveforms, a test is done with a variable dead time
compensation unit of 0.00, 0.01, 0.02, and 0.03 using the same 𝐾𝑃 and 𝐾𝐼 gain for all
tests. Below are the screen shot of the current output waveforms when each of the dead
time compensation unit is used in the test.
97
Experimental Results of Stand Alone Inverter
98
Experimental Results of Stand Alone Inverter
Figure 6-5: Screen shot of the output current waveform with (a) dead time 0.00,
(b) dead time 0.01, (c) dead time 0.02, and (d) dead time 0.03.
2.500
2.000
% of fundamental
1.500
1.000
0.500
0.000
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Harmonic order
dt comp unit 0.00 (THD=3.19%) dt comp unit 0.01 (THD=3.02%)
dt comp unit 0.02 (THD=2.89%) dt comp unit 0.03 (THD=2.9%)
Figure 6-6: Output current FFT for different dead time compensation unit.
Comparing the output waveforms shown in Figure 6-5 above, it is apparent that the
output waveform with a dead time compensation unit of 0.03 gives the best waveform
of the four. It is clearly seen when the output current reaches zero value where the
99
Experimental Results of Stand Alone Inverter
distortion is much reduced. Following the figures is the FFT of all four states in one
graph for easy comparison. The observed reduction of the distorted waveforms in
Figure 6-5 is agreed by the finding results from the FFT analysis shown. As the dead
time compensation unit is increased by 0.01, the THD of the output current can be
decreased. In addition, the 3rd and the 5th harmonic orders which is known as the hardest
order harmonics magnitude to be reduced is reduced in this case. Although the output
current THD when using the dead time compensation unit of 0.03 is slightly bigger by
0.01% than output current THD when using the dead time compensation unit of 0.02,
the 3rd as well as the 5th harmonic orders of the former are well reduced. These findings
conclude that the dead time compensation unit of 0.03 will be used in other test of PI
current controller later on.
In real life, the inverter system is connected to the supply grid to support users demand.
For that reason, the current injected from the inverter system must be in phase and
synchronised with the current in the supply grid. Moreover, in order to connect several
inverter systems in parallel to the same point in the supply grid, the same condition
must be met. This is achieved by applying a zero crossing detection (ZCD) in the
overall system. For the purpose of completing this research project, a readily available
ZCD circuit is used. This circuit consists of step down transformer (240V: 9V); to
reduce the grid voltage to a significantly lower voltage to interface with digital interface
electronics. This interface comprises of a low pass filter; to filter out noise that can
cause false reading of the ZCD, a transceiver; to create rectangular pulse, and a
comparator; to compare the filtered voltage with the DC offset. Using an oscilloscope,
the output waveform from the ZCD circuit together with the inverter output current is
observed and can be seen in Figure 6-7. This output is then interfaced to the DSP. In
this research work, each power electronic inverter under investigation is synchronised
using its own Zero Crossing Detector Unit and DSP. In this way, each inverter unit
operates fully independently as would be the case in a commercial system. For this
reason, there are no abnormal synchronisation issues created due to the experimental
setup.
100
Experimental Results of Stand Alone Inverter
Before a parallel inverter system is tested, experiments are done for each separate
inverter. In this research, Inverter system 1 is tested first and results are recorded.
4.5
4
Mag (% of fundamental)
3.5
3
2.5
2
1.5
1
0.5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
101
Experimental Results of Stand Alone Inverter
Figure 6-9 shows the screen shot of the output current and the error between the current
demand and the actual current.
(a)
(b)
Figure 6-9: Screen shot of (a) Inverter 1 output current, and (b) Inverter 1 current
error.
102
Experimental Results of Stand Alone Inverter
The software is set to have a dead time compensation unit of 0.03 and a ZCD is
connected into the system. The DC input voltage is fixed to 30 V and the resistive load
value used is approximately 5 Ohm. The power analyzer is set so that the output current
FFT analysis is done by taking an average of 16 fundamental current cycles. The
proportional gain, 𝐾𝑃 and the integral gain, 𝐾𝐼 are tuned once again to acquire the best
possible output current with the best THD. For that reason, the chosen 𝐾𝑃 and 𝐾𝐼 value
is 2 and 0.35 respectively. During the tuning process, from the observation of the
waveforms and the FFTs, a further increment as well as decrement in the proportional
gain, 𝐾𝑃 will push the waveform to instability. For the tuning of the integral part, a
further increment of the gain, 𝐾𝐼 will also push the waveform to instability whilst a
further decrement of the gain, 𝐾𝐼 will reduced the output current magnitude. Four
readings are taken and the average data is calculated and shown in Figure 6-8.
With the chosen proportional and integral gains, the THD achieved is 5.65%.
Furthermore, it can be observed from Figure 6-8 that the most dominant low order
harmonic are of the 3rd and 5th orders which are approximately 2.5% and 2% of the
fundamental value. Other than that, a problem spotted in the 2nd harmonic order.
Despite that it should be in a low magnitude value, it shows a definite high value which
in fact higher than the other harmonic orders. The reason for this is believed to be
because of the resistive load used which has some inductive value in it. At the time of
the experiments are done, this is the only type of resistor (linear resistor) that is
available in the lab. Next, the results from Inverter 2 are demonstrated, all with the
same DC input voltage and resistive load value.
With the same DC input voltage of 30V and resistive load value of 5 Ohm, a second
inverter system, Inverter 2 is tested, all using the same type and value of electronic
components. The proportional and integral gains chosen are 2 and 0.11 respectively.
Four readings are taken in the experiment of Inverter 2 stand alone system. The average
data of the harmonic spectrum is then calculated and shown in Figure 6-10.
103
Experimental Results of Stand Alone Inverter
5
4.5
Mag (% of fundamental)
4
3.5
3
2.5
2
1.5
1
0.5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
As can be seen in Figure 6-10, the output current THD observed is 5.86% with high
harmonics magnitude in the lower order. Figure 6-11 below combines the harmonic
spectrums in Figure 6-8 and Figure 6-10 in the same graph.
5
4.5
Mag (% of fundamental)
4
3.5
3
2.5
2
1.5
1
0.5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
PI inv 1 PI inv 2
Figure 6-11: Harmonic spectrums of Inv 1 and Inv 2 with PI current control.
Although theoretically the spectrum as in Figure 6-11 should resemble each other
because of the same values used for the components in both inverters, this is not the
case in the research. After much effort has been done to the experimental area; such as
104
Experimental Results of Stand Alone Inverter
shorten the wire connector, reduce noise by wrapping wires with a tape and placing the
DSP further with the inverter output point, the inequality to the output current harmonic
spectrum could not be resolved. Therefore, the only reason for that to happen is because
of the components used are physically different even though the same value of
components are used for both inverters.
The next step in this research is implementing the Proportional Resonant (PR)
controller in the inverter system. Once again, before the experiment is done with a grid
connected system, a stand-alone system with the same value of resistive load as in PI
experiments is used. It has to be noted here that the DC input voltage used and the
current demand are also the same as when experimenting with the conventional PI
current controller. For the purpose of this test, a new programming code based on the
digitized PR transfer function is added to the software. After the code is loaded and
run, two gains; the proportional gain, 𝐾𝑃 and the resonant gain, 𝐾𝑅 need to be tuned to
get the best output current waveform with the best THD possible.
There are a number of papers [80, 82, 83] mentioning that using a PR controller without
adding a cut off frequency in the system will make the system unstable. Based on a
paper by [84], after a cut-off frequency is added to the system, the analogue transfer
function becomes as follows.
2𝐾𝑅 𝜔𝑐 𝑠
𝐻𝑃𝑅 (𝑠) = 𝐾𝑃 +
𝑠2 + 2𝜔𝑐 𝑠 + 𝜔𝜊2
(Eq. 6-1)
2
2 1 − 𝑧 −1 2 1 − 𝑧 −1 2 1 − 𝑧 −1
𝐾𝑃 [(𝑇 −1 ) + 2𝜔𝑐 (𝑇 −1 ) + 𝜔𝑜2 ] + 2𝐾𝑅 𝜔𝑐 (𝑇 )
1+𝑧 1+𝑧 1 + 𝑧 −1
𝐻𝑃𝑅 (𝑧) = 2
2 1 − 𝑧 −1 2 1 − 𝑧 −1
(𝑇 −1 ) + 2𝜔𝑐 (𝑇 ) + 𝜔𝑜2
1+𝑧 1 + 𝑧 −1
105
Experimental Results of Stand Alone Inverter
4 1 − 2𝑧 −1 + 𝑧 −2 4𝜔𝑐 1 − 𝑧 −1 2 4𝐾𝑅 𝜔𝑐 1 − 𝑧 −1
𝐾𝑃 [( ) ( ) + ( ) + 𝜔 ] +
𝑇 2 1 + 2𝑧 −1 + 𝑧 −2 𝑇 1 + 𝑧 −1 0 𝑇 (1 + 𝑧 −1 )
=
4 1 − 2𝑧 −1 + 𝑧 −2 4𝜔 1 − 𝑧 −1
( 2) ( −1 −2 ) + 𝑇𝑐 ( ) + 𝜔02
𝑇 1 + 2𝑧 + 𝑧 1 + 𝑧 −1
(Eq. 6-2)
𝐻𝑃𝑅 (𝑧)
4𝐾𝑃 (1 − 2𝑧 −1 + 𝑧 −2 ) + 4𝑇𝐾𝑃 𝜔𝑐 (1 − 𝑧 −2 ) + 𝐾𝑃 𝜔𝑜2 𝑇 2 (1 + 2𝑧 −1 + 𝑧 −2 ) + 4𝑇𝐾𝑅 𝜔𝑐 (1 − 𝑧 −2 )
=
4 − 8𝑧 −1 + 4𝑧 −2 + 4𝑇𝜔𝑐 − 4𝑇𝜔𝑐 𝑧 −2 + 𝜔𝑜2 𝑇 2 + 2𝜔𝑜2 𝑇 2 𝑧 −1 + 𝜔𝑜2 𝑇 2 𝑧 −2
(Eq. 6-3)
𝐻𝑃𝑅 (𝑧)
(4𝐾𝑃 + 4𝐾𝑃 𝑇𝜔𝑐 + 𝐾𝑃 𝜔𝑜2 𝑇 2 + 4𝑇𝐾𝑅 𝜔𝑐 ) + (2𝐾𝑃 𝜔𝑜2 𝑇 2 − 8𝐾𝑃 )𝑧 −1 + (4𝐾𝑃 − 4𝐾𝑃 𝑇𝜔𝑐 + 𝐾𝑃 𝜔𝑜2 𝑇 2 − 4𝑇𝐾𝑅 𝜔𝑐 )𝑧 −2
=
(4 + 4𝑇𝜔𝑐 + 𝜔𝑜2 𝑇 2 ) + (2𝜔𝑜2 𝑇 2 − 8)𝑧 −1 + (4 − 4𝑇𝜔𝑐 + 𝜔𝑜2 𝑇 2 )𝑧 −2
(Eq. 6-4)
𝑏𝑜 + 𝑏1 𝑧 −1 + 𝑏2 𝑧 −2
𝐻𝑃𝑅 (𝑧) =
1 + 𝑎1 𝑧 −1 + 𝑎2 𝑧 −2
(Eq. 6-5)
Where;
106
Experimental Results of Stand Alone Inverter
2
(2𝑇2 𝜔0 − 8)
𝑎1 = 2
(4 + 4𝑇𝜔𝑐 + 𝑇2 𝜔0 )
2
(4 + 4𝑇𝜔𝑐 + 𝑇2 𝜔0 )
𝑎2 = 2
(4 + 4𝑇𝜔𝑐 + 𝑇2 𝜔0 )
4
3.5
Mag (% of fundamental)
3
2.5
2
1.5
1
0.5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
Similar to previous experiment with PI controller, the software is set to have a dead
time compensation unit of 0.03 and a ZCD is connected into the system. The power
107
Experimental Results of Stand Alone Inverter
analyzer is set so that the output current FFT analysis is done by taking an average of
16 fundamental current cycles.
(a)
(b)
Figure 6-13: Screen shot of (a) output current waveform with reference 3 A peak ;
and (b) current error waveform which shows approximately 0.2 A peak.
108
Experimental Results of Stand Alone Inverter
The proportional gain, 𝐾𝑃 and the integral gain, 𝐾𝑅 are tuned to acquire the best
possible output current with the best THD. For that reason, the chosen 𝐾𝑃 and 𝐾𝑅 value
is 2 and 410 respectively. During the tuning process, from the observation of the
waveforms and the harmonic data, a further increment as well as decrement in the
proportional gain, 𝐾𝑃 and the resonance gain, 𝐾𝑅 will push the waveform to instability.
Using the chosen gains, four readings are taken and the average data is calculated and
shown in Figure 6-12. It can be noticed that high harmonics appear between the 2nd to
6th orders. The reason for the high magnitude of the even harmonic numbers is similar
to the experiment when the inverter system is tested with PI control. Figure 6-13 shows
the screen shot of the output current waveform and the current error when the reference
current of 3 A peak is compared with the measured output current.
Following the testing of inverter 1 system using PR control, inverter 2 system with the
same type and parameter values is tested. The gains are tuned so that the lowest THD
is obtained. Again, it has to be noted that although inverter 2 system is of the same type
and use the same parameter values, the physical of components are different which
leads to different gains value. As a result, the proportional gain, 𝐾𝑃 and the resonant
gain, 𝐾𝑅 is 1.8 and 100 respectively.
6
Mag (% of fundamental)
5
4
3
1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
109
Experimental Results of Stand Alone Inverter
Mag (% of fundamental)
5
4
3
2
1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
PR inv 1 PR inv 2
Figure 6-15: Harmonic spectrums of Inv 1 and Inv 2 with PR current control.
Figure 6-14 illustrates the averaged harmonic data of the inverter output current after
four readings are taken from the power analyzer. As can be seen, the output current
THD obtained is 7.286%. The highest harmonics magnitude are of the 2nd and 3rd order.
Figure 6-15 combines the harmonic spectrums in Figure 6-12 and Figure 6-14 in the
same graph. Once again, the dissimilarity of the harmonic spectrum between both
inverters are due to the components that are physically different even though the same
value of components are used for both inverters.
110
Experimental Results of Stand Alone Inverter
(a)
(b)
Figure 6-16: Compare output current waveform of two controller systems (a) Output
current from PI controller shows distortion at the top, and (b) output current from PR
controller shows smooth curve at the top.
111
Experimental Results of Stand Alone Inverter
Figure 6-16 compares the output current waveform of two controller systems. Each
current errors are illustrated in Figure 6-17. From observation, the reason for that is
because the PR controller system can reduce the steady state error between the
demand and the actual current.
Y-axis (1 A per div)
(a)
Y-axis (1 A per div)
(b)
Figure 6-17: Compare error of two controller systems (a) current error with PI
controller system is approximately 0.5 A peak; and (b) current error with PR
controller system is reduced to approximately 0.2 A peak.
112
Experimental Results of Stand Alone Inverter
4.5
4
Mag (% of fundamental)
3.5
3
2.5
2
1.5
1
0.5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
PI (Thd=5.65%) PR (Thd=5.764%)
Yet, when comparing the harmonic profile of inverter 1 system with the PI and PR
controller system, the harmonics of the 5th, 7th, 9th and 11th of the PR controller system
are reduced significantly, that is between 25% to 75%, lower than the harmonics of the
PI controller system. The results thus demonstrate that the same output in the
R.Teodorescu et al [59] study as explained in Chapter 2 is achieved. This can be seen
in Figure 6-18. The same figure also shows the output current Total Harmonic
Distortion (THD) of the two controller systems. It shows an output current THD of
5.65% when using PI control and 5.764% PR control system.
The THD results show that both current control methods yield similar THD
performance. However, with respect to the lowest harmonic orders (3rd 5th 7th), the PR
controller achieves lower individual harmonic components. This is an important result.
In previous works, the lowest order harmonics are often cited as being problematic in
grid connected inverter systems. Therefore, in terms of meeting the imposed
recommendations for individual harmonics (<2% for a commercial system), the PR
controller offers some performance advantages.
Based on the objective of this research project, a random gain is used in the controller
system instead of a fixed gain value. The modified controllers are then tested and results
are described in the following section.
113
Experimental Results of Stand Alone Inverter
(a)
(b)
Figure 6-19: Random signal generation (a) generation of random signal more
scattered around before filtering process ; and (b) random signal becomes smoother
like a waveform after filtering process.
114
Experimental Results of Stand Alone Inverter
In order to improve the harmonic spectrum thus reduces the overall output current
THD, a random signal is added to the proportional and integral gain of the conventional
PI current controller. This random signal is generated using the software and is limited
to a certain range so that the output current instability is prevented by the adjusted gain,
𝑅𝑃𝐼 and 𝑅𝐾𝐼 tuning. The range of the signal is determined by testing the inverter system
with different values of gains. The maximum and minimum gain value before the
output current becomes unstable is then chosen as the random signal limit. Following
this, when the limit is added to the gains, the new randomized gains, 𝑅𝑃𝐼 and 𝑅𝐾𝐼 are
adjusted automatically while the inverter system is on test. A simple digital low pass
filter is also added after the random number generation for smooth variation signal.
This filter has a cut off frequency of approximately 560 Hz. It is observed that higher
cut off frequency will not make the random signal any smoother and lower cut off
frequency will limit the range of the random signal. The filtered random signal is then
added to the gains to form the newly randomized gains which in turn used in the current
control of the inverter system. Figure 6-19 shows the waveforms of the random signal
before and after filtering.
Two tests were carried out in order to gain the best implementation of the randomized
signal. Firstly, the test of randomized signal being added to the proportional gain to
become the randomized proportional gain, 𝑅𝐾𝑃 whilst the integral gain, 𝐾𝐼 remain fixed
and secondly, the test of randomized signal being added to the integral gain to become
the randomized integral gain, 𝑅𝐾𝐼 whilst the proportional gain, 𝐾𝑃 remain fixed. In the
first test, the randomized proportional gain, 𝑅𝐾𝑃 is set to be in a range from 1.3 to 2.7
while the integral gain is set to be fixed at 0.35. After four readings are taken from the
power analyzer which has been set to calculate the output waveform of up to 16
fundamental cycles, an average in then calculated in Excel. The harmonic spectrum is
illustrates in Figure 6-20.
115
Experimental Results of Stand Alone Inverter
4.5
4
Mag (% of fundamental)
3.5
3
2.5
2
1.5
1
0.5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
Random Kp (Thd=5.753%)
In the second test, the randomized integral gain, 𝑅𝐾𝐼 is set to be in a range from 0.2 to
0.5 while the integral gain is set to be fixed at 2. Again, four readings of harmonic data
are taken from the power analyzer and an average data value is then calculated in Excel.
The output current harmonic spectrum is illustrates in Figure 6-21.
3.5
3
Mag (% of fundamental)
2.5
2
1.5
1
0.5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
Random Ki (Thd=4.816%)
116
Experimental Results of Stand Alone Inverter
Figure 6-22 shows the comparison between the three graphs; Figure 6-8, Figure 6-20
and Figure 6-21, when inverter 1 system is tested using the conventional PI and the
randomized PI control technique.
From the graph, it can be easily compared that when random gains are applied to the
inverter 1 system, the output current harmonic spectrum is slightly changed which in
turns affected the trend of the spectrum. As a result, the THD of the output current is
also affected. As seen in Figure 6-22, implementing the randomized integral gain to the
conventional PI current technique can improve the THD of inverter 1 system. The THD
reduced from 5.65% to 4.816% which is a reduction by approximately 15%. Most
importantly, the magnitude of the lower order harmonics that is from the 2nd to the 11th
harmonic orders are mostly decreased except for the 7th and 8th orders which have a
small increment. Harmonic orders beyond the 11th show a fair reduction as well as
increment. This behaviour of having a reduction and increment in harmonic orders
magnitude is the reason of the reduced Total Harmonic Distortion (THD) of inverter 1
system when using the randomized integral gain, 𝑅𝐾𝐼 .
117
Experimental Results of Stand Alone Inverter
The same test is then performed with the second inverter, inverter 2 system. As the
value of the gains when an optimum output current of inverter 2 result is achieved are
2 and 0.11 for 𝐾𝑃 and 𝐾𝐼 respectively, the limitation for the random signal need to be
set differently. Again, this is done by setting the gains slightly higher and slightly lower
to the point before the system goes unstable. After several gain changes, it is agreed
that when 𝐾𝐼 is fixed to 0.11, the lower limit for 𝐾𝑃 is 1.6 and the upper limit is 2.4.
Whereas when 𝐾𝑃 is fixed to 2, the lower limit for 𝐾𝐼 is 0.095 and the upper limit is
0.13. Figure 6-23 and Figure 6-24 shows the averaged data values of the output current
harmonic spectrum when the randomized proportional gain, 𝑅𝐾𝑃 and the randomized
integral gain, 𝑅𝐾𝐼 is applied to the conventional PI system in the inverter 2 system.
5
4.5
Mag (% of fundamental)
4
3.5
3
2.5
2
1.5
1
0.5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
Random Kp (Thd=5.665%)
118
Experimental Results of Stand Alone Inverter
5
4.5
Mag (% of fundamental)
4
3.5
3
2.5
2
1.5
1
0.5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
Random Ki (Thd=5.82%)
Figure 6-25 shows the comparison between the three graphs; Figure 6-10, Figure 6-23
and Figure 6-24.
5
Mag (% of fundamental)
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
119
Experimental Results of Stand Alone Inverter
While different trends are achieved when random gains of PI control are applied to the
inverter 1 system, this is not the case when the same techniques are tested on inverter
2. It can be seen in Figure 6-25 that only a small changes; increment and decrement are
observed to the output current harmonic spectrum which yields to almost no changes
to the THD. There is no exact explanation to the result as above. The only reason at the
time when the test is done is because of the difference in the physical of the components
used. Because of that, further experiment to answer about the question of why results
of inverter 2 system is not similar to the results of inverter 1 system is suggested in
future.
4
3.5
Mag (% of fundamental)
3
2.5
2
1.5
1
0.5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
Random Kp (Thd=5.58%)
120
Experimental Results of Stand Alone Inverter
4.5
4
Mag (% of fundamental)
3.5
3
2.5
2
1.5
1
0.5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
Random Kr (Thd=6.048%)
4.5
4
Mag (% of fundamental)
3.5
3
2.5
2
1.5
1
0.5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
The first test is done when the resonant gain is fixed to 410 while the randomized
proportional gain limit is set to be in the range between 1.4 to 2.6. The second test is
done when the proportional gain is fixed to 2 while the randomized resonant gain limit
is set to be in the range between 370 to 450. From Figure 6-28, different trends are
observed in the harmonic spectrum of the inverter output current. The critical part to
121
Experimental Results of Stand Alone Inverter
notice is the improvement to the THD when randomized proportional gain, 𝑅𝐾𝑃 is
applied to the PR control. Although it shows a small THD reduction, it is believed that
the outcome can be improved when a higher DC voltage is used.
For the tests of inverter 2 system, the randomized proportional gain is limited between
1.4 to 2.2 whilst the randomized resonant gain is limited between 85 to 115. Again, it
has to be noted that the limitation given is based in the test when different gain values
are in the beginning to observe the stability. Figure 6-29 and Figure 6-30 shows the
individual harmonic spectrum when the randomized proportional gain, 𝑅𝐾𝑃 and the
randomized resonant gain, 𝑅𝐾𝑅 are applied to the conventional PR control technique.
6
Mag (% of fundamental)
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
Random Kp (Thd=7.08%)
122
Experimental Results of Stand Alone Inverter
Mag (% of fundamental)
5
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
Random Kr (Thd=7.02%)
6
Mag (% of fundamental)
5
4
3
2
1
0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Harmonic order
From Figure 6-31, it can be seen that increment as well as decrement of harmonics
magnitude are achieved especially to the harmonic orders between the 2nd to the 7th.
These in turn yield to the improvement in the total harmonic distortion, THD of the
inverter 2 system.
123
Experimental Results of Stand Alone Inverter
The overall of this chapter showed significant results using three different control
methods in a stand-alone system. It can be concluded here that by using a random signal
gain to the conventional controller, PI and PR, improvement in the output current THD
is achieved. From the results, it shows that using the randomized integral gain, 𝑅𝐾𝐼 in
the conventional PI controller is better than using a fix integral gain, 𝐾𝐼 alone. It also
shows that using the randomized proportional gain, 𝑅𝐾𝑃 in the conventional PR
controller is better than using a fix proportional gain, 𝐾𝑃 alone.
124
Experimental Results of Grid Connected Results
7.1 Introduction
This chapter presents results for the parallel inverter system described in Chapter 6.
The chapter is split into three sections. The first section concentrates on the
performance of the parallel inverter system when operated with a conventional PI
current controller scheme. The second section considers the performance of the parallel
inverter system when run with the random parameter controller scheme. In both
sections, the performance of each inverter unit operating as an independent grid
connected unit is initially assessed. Specifically, the harmonic profile of each inverter
is shown, and performance comparisons are made between individual inverter units.
Attention is then given to assessing the performance of each inverter when operated in
parallel. The effect of each inverters harmonic profile on the overall harmonic
performance of the parallel inverter system is then considered. Finally, the performance
of the random parameter control technique is assessed via direct comparison of results
with the conventional PI control scheme.
This sub-section concentrates on the performance of the parallel inverter system when
operated with a conventional PI current controller scheme first and followed by the
parallel system operated with a parameter randomisation of PI current controller
scheme. For each technique, a single inverter system is tested first followed by two
inverters working in parallel.
125
Experimental Results of Grid Connected Results
Idc
Power Analyzer
Lx
Ix
Vdc
Vs
Cx
Figure 7-1: Experimental H-Bridge inverter. Single inverter grid connected system
Initially, each inverter is operated independently as a single grid connected unit with a
conventional current control loop (Figure 7-1). Each inverter operates from an
independent 50 V DC bus, and is connected to a 20 V AC grid voltage. Importantly,
each inverter is synchronised to the network via its own Zero Crossing Detector Unit
and Digital Control System. In this way, each inverter unit operates fully independently
as would be the case in a commercial system and there are no abnormal synchronisation
issues created due to the experimental setup. Harmonic data is acquired through the use
of a Yokogawa power analyser. The power analyser is set up to acquire the harmonic
data over 16 fundamental current cycles, utilising a Hanning sampling window. All
harmonic and THD results presented are acquired under these conditions. Each inverter
is tuned independently via the software parameters: proportional gain, 𝐾𝑃 and integral
gain, 𝐾𝐼 , to achieve the best output current fidelity possible. Each inverter is controlled
to operate at unity power factor with respect to the grid voltage. Via the power analyser,
the harmonic spectrum of the output current is recorded for each inverter. The results
obtained represent a snap shot in time of the performance of each inverter. To evaluate
the average performance of each inverter over time, the harmonic spectrum of each
inverter is recorded at three separate intervals. From this, an averaged harmonic
spectrum may be calculated and considered to be a typical measure of inverter
performance. The averaged harmonic data is imported into Microsoft® Excel® for
126
Experimental Results of Grid Connected Results
presentation in graphical format. Conclusions are drawn from the averaged harmonic
performance of each inverter.
(a)
(b)
Figure 7-2: Low order harmonic spectra of (a) Inverter 1 output current with
conventional PI control: predominant harmonics appear between the 3rd and 15th
harmonic and (b) Inverter 2 output current with conventional PI control: predominant
harmonics appear between the 3rd and 15th harmonic.
127
Experimental Results of Grid Connected Results
over the averaged set of harmonic data. This approach is consistent with the work by
Armstrong [33], and allows for easy comparison between results. As reported by
Armstrong, the 6th order polynomial fit provides a good smooth average trend line
across the harmonic range. Lower order fits are more sensitive to individual harmonic
components [33]. The results show a strong correlation in harmonic profile for each of
the two inverters under test. The THD performance of the inverters is summarised in
Table 7-1 and indicates the average harmonic performance of each inverter when
operating independently is 5.74%.
Table 7-1: THD figures for independently operated, grid connected, inverters
using conventional PI current control
Operating Inverter THD SYSTEM OUTPUT
Inverter 1 5.82%
Inverter 2 5.65%
Single inverter average 5.74%.
Power Analyzer
L
x
Ix
Vdc
C
Vs
Id
c
L
x
Ix
Vdc
C
x
Having tuned and assessed the performance of the inverters operating independently,
the inverters are then configured to form a parallel, two inverter, grid connected system.
128
Experimental Results of Grid Connected Results
The circuit topology is shown in Figure 7-3. Current measurements are made by the
power analyser at the output of each individual inverter.
(a)
(b)
(c)
Figure 7-4: Low order harmonic spectra of parallel inverters with PI current control.
(a) Results of inverter 1 output current; (b) Results of Inverter 2 output current; and
(c) Results of the parallel system output current. All shows strong correlation between
them with predominant harmonics appear between the 3rd and 15th harmonic.
129
Experimental Results of Grid Connected Results
Table 7-2: THD Performance of Two Inverter Parallel System with conventional PI
control
For all the results presented with conventional PI current control, the same general
trend line is seen in the harmonic profile of the output current of each individual
inverter unit. In particular, the results show that the largest distortion components are
at the 3rd, 7th, 9th and 11th harmonic. When operated as a parallel inverter system, this
same harmonic trend is observed in the parallel system output current, and similar
individual harmonics dominate. With respect to THD, each inverter typically operates
with a THD around 5.5%. When operated as a parallel inverter system, a comparable
THD level is observed at the point of common coupling. This behaviour clearly
demonstrates the additive nature of the harmonics at the output from individual
inverters. It is this harmonic addition at the multiple inverter output which is
undesirable, as originally reported by Armstrong et al.
The second section of this chapter presents results for the parallel inverter system when
controlled via the randomised parameter PI control method. In order to assess the
130
Experimental Results of Grid Connected Results
performance of this proposed methodology, the same sequence of tests is carried out
as presented for the conventional PI current control method. Once again, the harmonic
performance of each inverter operating as an independent grid connected unit is
considered. This is followed by the harmonic assessment of each grid connected
inverter when operating in a parallel connected system. From this, the impact of the
randomised control scheme on the parallel inverter system output current is determined.
Once again, due to the inclusion of the controller randomisation, the harmonic
performance of each inverter varies with time. Therefore, a definitive assessment of the
randomised control strategy cannot be determined from one set of results taken at a
single instance in time. For this reason, the performance of each inverter is again
determined through averaging three sets of harmonic data. In this way, a statistical
conclusion is made possible, based on a number of experimental results taken over
time.
Figure 7-5 shows the averaged harmonic spectrum of each inverter when operated as a
single inverter system. Importantly, the harmonic profile of each inverter is now
different. This is shown through the differing trend line patterns and is in contrast to
the almost identical set of harmonic profiles observed with conventional current control
(Figure 7-2). This indicates that the random component in the current controller has
reduced the degree of correlation in the harmonic profile of each inverter. When the
inverter system is connected to the grid, the impact of the randomisation is much more
noticeable, due to the low order disturbance effect of the grid on the current control
loop. This effect was also observed by Armstrong et al [34]. It is this uncorrelated
performance which may be utilised to advantage in a parallel inverter system, since it
yields improved opportunities for harmonic cancellation at the system output. The
recorded THD at the parallel inverter system output, as measured by the power
analyser, is 5.15% (Table 7-3).
131
Experimental Results of Grid Connected Results
(a)
(b)
Figure 7-5: Low order harmonic spectra of (a) Inverter 1 output current with
randomised PI control; and (b) Inverter 2 output current with randomised PI control;
where difference trend lines are observed between the two inverters.
Table 7-3: THD Performance of Two Inverter Parallel System with conventional
control
Inverter 1 5.07%
Inverter 2 5.22%
132
Experimental Results of Grid Connected Results
(a)
(b)
(c)
Figure 7-6: Harmonic spectra of parallel inverters with randomised PI current control.
(a) Results of inverter 1 output current; (b) Results of Inverter 2 output current; and
(c) Results of the parallel system output current. Different trend lines are observed.
133
Experimental Results of Grid Connected Results
Having assessed the performance of the inverters operating independently, the inverters
are then configured to form a parallel, two inverter, grid connected system. The circuit
topology remains the same as described for the conventional PI current control scheme;
whereby current measurements are made by the power analyser at the output of each
individual inverter, and the point of common coupling. Three sets of harmonic data are
collected, and an averaged harmonic spectrum is determined for each inverter Figure
7-6. The recorded THD of each individual inverter, along with the parallel inverter
system output THD, is summarised in Table 7-4. The results show that the average
THD of the parallel system output is 4.62%.
Table 7-4: THD Performance of Two Inverter Parallel System with random
parameter control
The results presented for the random parameter PI current controller confirm that it is
possible to adjust the harmonic performance of each inverter unit. By using the random
parameter controller, the harmonic profile of each inverter unit now dynamically varies
with time. The fixed harmonic trend line observed with the conventional PI control
scheme is no longer typical of the behaviour of the system. Whilst the THD of each
inverter individual unit is still typically just over 5.3%, when operated as a parallel
inverter system a lower average THD is observed at the point of common coupling. For
a two inverter parallel system, the average THD is measured as 4.62%. This marks a
significant improvement in the net harmonic performance of the parallel inverter
system compared to the conventional PI current controller. However, as discussed by
134
Experimental Results of Grid Connected Results
Armstrong et al, there is still a significant contribution from the very low order
harmonics; 3rd to 9th, despite the introduction of the controller randomisation.
The experimental conditions in this section are identical to those presented for the PI
current controller. The only difference is the control algorithm where PR current
control is used instead of the PI current control.
Again, initially, each inverter is operated independently as a single grid connected unit
with a conventional PR current control loop (Figure 7-1). Each inverter is tuned
independently via the software parameters: proportional gain, 𝐾𝑃 and resonant gain,
𝐾𝑅 , to achieve the best output current fidelity possible. Each inverter is controlled to
operate at unity power factor with respect to the grid voltage. Via the power analyser,
the harmonic spectrum of the output current is recorded for each inverter. To evaluate
the average performance of each inverter over time, the harmonic spectrum of each
inverter is recorded at three separate intervals. Conclusions are drawn from the
averaged harmonic performance of each inverter.
135
Experimental Results of Grid Connected Results
(a)
(b)
Figure 7-7: Low order harmonic spectra of (a) Inverter 1 output current with
conventional PR control; and (b) Inverter 2 output current with conventional PI
control. Results show some degree of correlation in harmonic profile for each of the
two inverters.
Table 7-5: THD figures for independently operated, grid connected, inverters
using conventional PR current control
Operating Inverter THD SYSTEM OUTPUT
Inverter 1 4.98%
Inverter 2 4.92%
Single inverter average 4.95%.
136
Experimental Results of Grid Connected Results
(a)
(b)
(c)
Figure 7-8: Low order harmonic spectra of parallel inverters with PR current control.
(a) Results of inverter 1 output current; (b) Results of Inverter 2 output current; and
(c) Results of the parallel system output current. Small cancellation and addition of
harmonics are observed at the system output current.
137
Experimental Results of Grid Connected Results
Table 7-6: THD Performance of Two Inverter Parallel System with conventional PR
control.
Each inverter is current controlled with the same controller tuning as determined
previously during independent operation. In each case, the two applicable inverters are
set to operate at unity power factor with respect to the grid voltage. As before, three
sets of harmonic data are collected and an averaged harmonic spectrum is determined
for each inverter (Figure 7-8). The recorded THD of each individual inverter, along
with the parallel inverter system output THD is summarised in Table 7-6. The results
show that the average THD of the parallel system output is 5.06% which is better than
the average THD of the parallel system when using the conventional PI control.
For the results presented with conventional PR current control, a typical harmonic
profile exists, although it differs that observed with the conventional PI controller.
Results show that the largest distortion components are at the 3rd, 7th, 9th and 11th
harmonic, although importantly these are less of a problem. Similar characteristics are
observed when the two converters are operated in parallel, and at the point of common
coupling there are still signs of harmonic addition.
138
Experimental Results of Grid Connected Results
This sub-section presents results for the parallel inverter system when controlled via
the randomised parameter of the PR control method. Each inverter is tuned
independently via the software parameters.
(a)
(b)
Figure 7-9: Low order harmonic spectra of (a) Inverter 1 output current with
randomised PR control; and (b) Inverter 2 output current with randomised PR control.
Different trend line patterns indicate the reduction in the degree of correlation in the
harmonic profile.
Figure 7-9 shows the averaged harmonic spectrum of each inverter when operated as a
single inverter system. The results demonstrate the success of the controller
randomisation in generating differing trend line patterns, thus indicating a reduction in
the degree of correlation in the harmonic profile of each inverter. This result suggests
139
Experimental Results of Grid Connected Results
that the controller randomisation technique is well suited to a grid connected inverter
system employing a PR controller. In terms of the aims and objectives of this work,
this is a successful outcome and one of the main contributions to knowledge.
Table 7-7: THD figures for independently operated, grid connected, inverters
using randomised PR current control.
Operating Inverter THD SYSTEM OUTPUT
Inverter 1 4.98%
Inverter 2 5.12%
Single inverter average 5.05%.
Having assessed the performance of the inverters operating independently, the inverters
are again configured to form a parallel, two inverter, grid connected system. The circuit
topology remains the same as described for the conventional PI current control scheme;
whereby current measurements are made by the power analyser at the output of each
individual inverter, and the point of common coupling. Three sets of harmonic data are
collected, and an averaged harmonic spectrum is determined for each inverter Figure
7-10. The recorded THD of each individual inverter, along with the parallel inverter
system output THD, is summarised in Table 7-8. The results show that the average
THD of the parallel system output is 4.36%.
140
Experimental Results of Grid Connected Results
(a)
(b)
(c)
Figure 7-10: Low order harmonic spectra of parallel inverters with randomised PR
current control. (a) Results of inverter 1 output current; (b) Results of Inverter 2
output current; and (c) Results of the parallel system output current. Harmonics
magnitude reduction are observed at the parallel system output current between the
7th and 19th order.
141
Experimental Results of Grid Connected Results
Table 7-8: THD Performance of Two Inverter Parallel System with randomised PR
control.
The results presented for the random parameter PR current controller confirm that it is
possible to adjust the harmonic performance of each inverter unit. By using the random
parameter PR controller, the harmonic profile of each inverter unit now dynamically
varies with time in a similar way to that observed in the PI controller case. It is believed
that this is the first time that this approach has been applied to the PR controller in a
grid connected power converter system.
The THD of each inverter individual unit is still typically just under 5%, when operated
as a parallel inverter system a lower average THD is observed at the point of common
coupling. For a two inverter parallel system, the average THD is measured as 4.34%.
This marks a significant improvement over the individual inverter case. Furthermore,
it also represents a further reduction in harmonic content compared to the conventional
PI current controller approach. Whilst some caution has to be paid to the deliberately
induced random nature of the results, it is apparent that there is an improvement in the
low order harmonics around the 7th and 9th harmonic. This is an area which is difficult
to address with the PI controller approach.
Due to the randomised nature of the proposed controller, the harmonic profile tends to
become flatter once inverters are operating in parallel. This is to be expected, since
harmonic cancellation starts to take place once the randomised controller is applied.
This is in contrast to the fixed parameter controller, where the harmonics typically
reinforce due to the similar harmonic profiles.
142
Experimental Results of Grid Connected Results
be dominant, hence these are the most difficult to eradicate. Therefore, a point is likely
to be reached where increasing the number of inverters in parallel brings a diminishing
return in terms of overall harmonic performance. The point of which this happens is
presently unknown. It would require complex statistical mathematics to be applied,
which is presently beyond the scope of this work. However, it does provide scope for
potential future research work for optimising the scale of the system.
143
Conclusions
Chapter 8: Conclusions
8.1 Conclusions
This thesis has presented research into power quality improvement of grid connected
inverter systems. In grid connected system, it is vital to inject a unity power factor
current into the grid with low levels of harmonic distortion. This can be achieved with
an appropriate choice of inverter topology, PWM switching scheme, passive filter
components, and current control scheme.
This work has specifically focused on improving the low order harmonic performance
of grid connected inverters by investigating the impact of different current control
methods. In this work, three techniques have been analysed, simulated, and
experimentally validated. They are the conventional PI control technique, the
proportional resonant (PR) control technique, and a novel modified proportional
resonant control technique.
The classic PI controller is very well understood and often applied by engineers in
industry. It has been successfully applied in grid connected inverter applications, and
shown it provide good overall performance. Literature shows that many different
tuning algorithms have been applied to the PI controller. Furthermore, novel
approaches such as gain randomisation have successfully been applied to achieve better
low order harmonic performance.
Despite the general merits of the PI controller, literature also shows a move away from
this control technique in grid connected applications. It is reported that the PI controller
suffers from steady state error when tracking AC signals. Such characteristics have
been confirmed in this research by considering the PI controller error signal.
For this reason, investigators are now leaning to alternative control methods such as
the Proportional Resonant (PR) controller. It is stated that this controller does not
exhibit the same steady state error when tracking AC signals. The work carried out in
this thesis appears to agree with conclusion, since the controller error signal is
improved compared to the PI controller. From this, it appears that there are distinct
advantages to applying the PR controller.
144
Conclusions
For this reason, following the same methodology as first applied to the PI controller by
Armstrong [33], this thesis set out to test the hypothesis that the gains for the PR
controller can also be randomised with a view to improving harmonic performance of
parallel connected inverters. Whilst the performance of each individual inverter may
not necessarily be improved directly, the overall harmonic injection into the grid may
be reduced if the controllers exhibit some degree of randomisation. The author believes
that this is the first time that such a technique has been applied to the PR controller in
a grid connected inverter system.
In this work it is shown, via simulation and experimental validation that using a
modified Proportional Resonant with random proportional gain can modestly improve
the THD of the injected grid current in a parallel connected inverters system. The
degree of improvement is admittedly only small, but it is believed that better results
may have been observed with a larger number of inverters operating in parallel.
However, due to limitation of resources for the project, this work was restricted to two
inverters only. In principle more inverters operating together should present greater
opportunities for harmonic cancellation. Verification of the scheme on a larger scale
system is one of the first suggested areas for future work and investigation.
However, the important outcome from this work is knowledge that gain randomisation
will work with the PR controller in grid connected inverters has been achieved by this
work. This is important given the shift towards this type of controller in grid connected
applications.
145
Conclusions
Finally, it is worth noting that this work concentrates solely on small scale single phase
inverter systems– typically inverters designed for domestic installation (<3kW). In
theory, the controller principles investigated should be applicable to three phase
systems. However, this would require a significant amount of additional research work
to verify. A number of key points would need to be considered; the recommendations
on harmonic limits are different for larger scale inverter systems, the inverter
topologies are different, and the control algorithms are fundamentally different – for
example Space Vector Modulation techniques. Therefore, in the future, there is
potential for investigation into three phase applications.
146
Appendixes
Before a PCB is made, the schematic diagrams of the circuit are designed in the circuit
design suite called Multisim.
After all the required components have been placed on the schematic capture space,
with point and click, the designs are then transferred to another tool in the circuit design
suite called Ultiboard 10.1 as shown in the Figure A-2. This tool will allow the user to
create and design the intended PCB.
147
Appendixes
There are five PCBs that were needed to be made in this project. They are the power
inverter board, the voltage measurement board, the current measurement board, the
gate driver board, and the extension board for the processor. As mentioned in earlier
chapter, a TMS320F2812 Digital Signal Processor (DSP) is used as the processor for
this project and has been briefly discussed in Chapter 6 . The next following figures are
the pictures of the PCBs. The gate driver layout, voltage measurement layout, current
measurement layout, and interface layout for the DSP are designed by the previous lab
members. However, they are permitted to be used in this research project.
148
Appendixes
The following pictures are the experimental boards that were used in this research
project.
149
Appendixes
Figure B-1: Screen shot of the PCBs. (a) Current measurement board, (b) Voltage
measurement board, (c) Gate driver and inverter board, and (d) Extension DSP board.
150
Appendixes
Figure C-1 shows the full circuit diagram of the power inverter board that includes the
DC blocking circuit.
Galvanic
Lf /2 Isolator
L
T1 T3 O
A
Cf D
VDC C2
/
C1
G
R
T2 T4 I
D
Lf /2
GATE DRIVER
&
TMS320F2812
DSP
I ref
Figure C-1: Circuit diagram of (a) power inverter board and (b) DC blocking circuit.
The low pass filter consists of two inductors, 𝐿𝑓 , of 160 µH each and one 20 µF
capacitor, 𝐶𝑓 . Besides the filter circuit, another small circuit that consists of capacitors
and diodes is connected in series with the output filter. This acts as an isolator to prevent
the flowing of DC current to the AC side of the inverter.
151
Appendixes
The generation of PWM signals can be done using the I/O interface of the DSP. There
are two event manager modules; the Event Manager A (EVA) and Event Manager B
(EVB). Only the EVA is used in this project where it contains pins of PWM1, PWM2,
PWM3, and PWM4 and are used to drive the inverter system. The General Purpose
Timer 1 in this module has a compare register T1CMPR and is used to compare the
PWM signals with the carrier signal. The following statements explain the step by step
way of generating a PWM signal. First, the carrier signal needs to be generated. In
order to do this, the period and frequency have to be set as in equation below
𝐺𝑃𝑇𝐼𝑀𝐸𝑅_𝐹𝑟𝑒𝑞
𝑇1𝑃𝑅 =
2 𝑥 𝑃𝑊𝑀_𝐹𝑟𝑒𝑞
(Eq. D.1)
𝑇1𝑃𝑅 is the amplitude of the carrier signal, 𝑃𝑊𝑀_𝐹𝑟𝑒𝑞 used in this project was
20 kHz and the 𝐺𝑃𝑇𝐼𝑀𝐸𝑅_𝐹𝑟𝑒𝑞 depends on the determination of a few other registers
such as the HISPCP bit 2-0 and T1CON bit 10-8. Below is the adapted diagram to help
with the calculation of 𝐺𝑃𝑇𝐼𝑀𝐸𝑅_𝐹𝑟𝑒𝑞 [85].
HISPCP [2-0]
Sysclkout GPTIMER_Freq
HSPCLK
T1CON [10-8]
From the figure, it can be seen that the system clock out, Sysclkout is scaled for two
times in order to get the 𝐺𝑃𝑇𝐼𝑀𝐸𝑅_𝐹𝑟𝑒𝑞. The first scaling depends on bit 2 to bit 0 in
152
Appendixes
To get signals from the PWM pins, the compare register T1CMPR need to be loaded
to a value in the range of 0 to T1PR. This will give the duty cycles of the PWM pulses.
For instance, a pulse of 90% duty cycle can be obtained when the value of T1CMPR is
3750 times 0.9. A pulse of 70% duty cycle can be obtained when the value of T1CMPR
is 3750 times 0.7. A pulse of 50% duty cycle can be obtained when the value of
T1CMPR is T1PR times 0.5 which is half of T1PR and so on. The following figure is
the output signal from pin PWM1 which is copied from the oscilloscope images.
153
Appendixes
Figure D-2: Output pin PWM1 with (a) 90% duty cycle, (b) 50% duty cycle, and
(c) 10% duty cycle.
154
Appendixes
Appendix E Dead-time
Often, a short time delay must be applied between the turn on of one Mosfet and the
other in the same leg of the inverter. This is to ensure a complete turn off of the upper
Mosfet before the turning on the lower Mosfet. It prevents overlap current from each
other thus avoiding a shoot-through fault. Shoot-through occurs when both Mosfets are
in the on position at one same particular time. Therefore, a dead-time is introduced. In
order to set the time, the DBTCONA registers have to be properly setup. For simplicity,
below shows the calculation of the dead-time.
Dead-time = p x m x HSPCLK
(Eq. E.1)
where p will depend on bit 4 to bit 2 of DBTCONA registers and m will depend on bit
11 to bit 8 of DBTCONA registers. Previously, it is known that HSPCLK is equal to
150 MHz which will be 6 ns when it is converted to time. Based on the dead-time
formula stated above, a dead-time of approximately 1.7 µs can be set if bit 11 to bit 8
of DBTCONA registers is set to 1000, which is 8 in decimal value, and bit 4 to bit 2 of
DBTCONA registers is set to 110, which gives p of 32. Output of the PWM pins are
shown in Figure E-1.
1.7 µs
Figure E-1: Signals of PWM1 and PWM2 with approximately 1.7 µs dead-time.
155
Appendixes
This software is the development software tool for this project. Here, the user can write
codes, edit, and debug. Figure below shows the screen shot of the software.
After a project has been created and source files have been added, they need to be
linked together before the program can be loaded to the DSP. The DSP must be
connected as a ‘target’ in order to run the program. This software has a window called
the ‘Watch Window’ to watch the program’s variables. There is a tutorial supplied with
the software to get a better understanding from creating to compiling a project. Figure
F-1 is the C programming code that is written in this software and used to generate the
PWM signals. In order to generate PWM signals, a modulating signal has to be created.
This modulating signal is a sine waveform and it has already been written into the
DSP`s memory originally. For the purpose of this research project, the tasks are; to get
a 50 Hz signal with a sampling rate of 20 kHz and to ensure that the peak to peak of
the sine waveform will not equal to or more than 3750, which is the peak value of the
triangular signal. Therefore, in order to change the sampling rate to 20 kHz or 50 µs,
156
Appendixes
and to create a 50 Hz sine wave, the table step size need to be increased to 150. This
works as follows;
iii- equation above means that it must have 400 steps from table size 0 to table
size 60000.
iv- that works out to 150 table size increment for each step.
It is known that the amplitude of the original sine wave is 1875. It oscillates between
+1875 to -1875. However the triangular waveform is between the values of 0 to 3750.
In order to get the PWM signals with modulating amplitude, 𝑚𝑎 not equal to or more
than 1, the modulating signal or the sine wave need to be in the same range as the
triangular waveform. To achieve that, a modulating amplitude, 𝑚𝑎 of 0.95 is set. An
offset of 1875 must then be added to the amplitude of the original sine wave and it is
then multiplied by the 𝑚𝑎. A limit is set to ensure that the sine wave will not go beyond
that value. This makes the sine wave oscillates between values of 188 to 3562.
For a unipolar PWM to be generated, two modulating signals of 180° phase difference
from one to another have to be compared with the triangular signal. This is done by
setting the CMPR1 register to the first modulating signal and setting the CMPR2
register to the inversion of the first modulating signal. Figure F-2 shows an example of
the output of PWM1 pin.
Figure F-2: Output of PWM1 pin after the triangular waveform is compared to the
modulating signal (𝒎𝒂 = 0.95 ).
157
Appendixes
Before a close loop with any controller system is applied, the power inverter board is
tested. A small DC power supply of 10 V is fed to the inverter system and the signals
from the PWM pins are connected to the gate driver board to switch the Mosfets.
Without connecting a load at the output, the voltage of the output filter is observed on
the oscilloscope. It can be seen in Figure G-1 that the amplitude of the waveform is
approximately 10 V, which is to be expected. This confirms that the power inverter
board connections are correct and can be used for further tests.
158
Appendixes
From Figure G-1 and Figure G-3, it is clearly seen that the latter has some distortion
on the line and magnitude is reduced. This distortion occurred as a result from using
dead time in the PWM switching. As for the magnitude reduction, it is expected from
the beginning because of the voltage drop.
159
Appendixes
Gain Adjustment
Aiming that this research project will not give an output current of more than 15 A
peak, the gain at the current sensor measurement board has to be adjusted corresponds
with the Analogue to Digital (ADC) channel of the DSP board. This is done by
connecting the current sensor board with a DC supply voltage and a fixed resistive load
at the end where in this case, a load of 2 Ohms is used. Several tests are done with
different DC voltages. For example, a DC voltage of 3 V will give a current of 1.5 A
and should therefore give a 1 V output at the end of the sensor board. In order to get
the 1 V output, the gain in the sensor board need to be adjusted. Following that, with
the adjusted gain, the DC supply voltage is increased to 6 V in order to give the output
current of 3 A. The voltage at the output of the sensor board is then measured and it
must be confirmed to give the value of 2 V. Same step is repeated with this time a DC
supply voltage of 9 V. When the measured output voltage of the sensor board is 3 V,
the current sensor board is ready to be used for this project.
Accuracy
160
Appendixes
𝑉𝐹𝑆𝑅
𝑄𝑣 =
2𝑁 − 1
(Eq. H.1)
20
=
214−1
= 1.2 𝑚𝑉
Earlier, it is known that 1 V output measured from the current sensor is equal to 1.5 A
current from the input. Equation above means that there need to be a change of at least
1.2 mV or 0.012 mA in the input for the output to change. This shows that the resolution
of the ADC is very high, accurate, and very acceptable to be used for this research
project.
161
References
References:
162
References
163
References
[24] Z. Zhe et al, "An optimal control method for grid-connected photovoltaic
micro-inverter to improve the efficiency at light-load condition," in Energy
Conversion Congress and Exposition (ECCE), 2011 IEEE, 2011, pp. 219-224.
[25] M. Johns, et al. Grid-Connected Solar Electronics. [Contemporary Energy
Issues].
[26] K. Jung-Min et al, "Grid-Connected Photovoltaic Multistring PCS With PV
Current Variation Reduction Control," Industrial Electronics, IEEE
Transactions on, vol. 56, pp. 4381-4388, 2009.
[27] R. H. Wills et al, "The AC photovoltaic module," in Photovoltaic Specialists
Conference, 1996., Conference Record of the Twenty Fifth IEEE, 1996, pp.
1231-1234.
[28] K. S.K. et al, "Power Quality in Grid connected Renewable Energy Systems:
Role of Custom Power Devices," International Conference on Renewable
Energies and Power Quality (ICREPQ'10), 2010.
[29] M. Calais et al, "Inverters for single-phase grid connected photovoltaic
systems-an overview," in Power Electronics Specialists Conference, 2002. pesc
02. 2002 IEEE 33rd Annual, 2002, pp. 1995-2000.
[30] G. T. Heydt, "Electric power quality: a tutorial introduction," Computer
Applications in Power, IEEE, vol. 11, pp. 15-19, 1998.
[31] "IEEE Recommended Practice for Utility Interface of Photovoltaic (PV)
Systems," IEEE Std 929-2000, 2000.
[32] E. Caamano et al, "State-of -the-art on dispersed PV power generation:
Publications review on the impacts of PV distributed generation and electricity
networks," Intelligent Energy Europe 2007-07-23 2007.
[33] M. Armstrong et al, "Low order harmonic cancellation in a grid connected
multiple inverter system via current control parameter randomization," IEEE
Transactions on Power Electronics, vol. 20, pp. 885-892, 2005.
[34] M. Cespedes and J. Sun, "Renewable Energy Systems Instability Involving
Grid-Parallel Inverters," in Applied Power Electronics Conference and
Exposition, 2009. APEC 2009. Twenty-Fourth Annual IEEE, 2009, pp. 1971-
1977.
[35] George J. Wakileh (2010). "Power Systems Harmonics: Fundamentals,
Analysis and Filter Design". Springer. ISBN 9783642075933.
164
References
165
References
166
References
167
References
[69] M. Jafari et al, "Robust controller design for parallel multi-inverter systems-
synthesis," in Power and Energy Conference, 2008. PECon 2008. IEEE 2nd
International, 2008, pp. 619-624.
[70] M. Khodsuz and A. Sheikholeslami, "Voltage regulation and harmonic
compensation in stand-alone inverter-based distributed generation using non-
sinusoidal hysteresis voltage control," in Power Electronics and Intelligent
Transportation System (PEITS), 2009 2nd International Conference on, 2009,
pp. 44-49.
[71] B. Geethalakshmi et al, "Harmonic compensation using multilevel inverter
based shunt active power filter," in Power Electronics, Drives and Energy
Systems (PEDES) & 2010 Power India, 2010 Joint International Conference
on, 2010, pp. 1-6.
[72] N. Mahamad et al, "Application of LC filter in harmonics reduction," in Power
and Energy Conference, 2004. PECon 2004. Proceedings. National, 2004, pp.
268-271.
[73] A. Zabihinejad and J. S. Moghani, "Implementation of a novel vector-
controlled drive by Direct Injection of Random Signal," in Vehicle Power and
Propulsion Conference, 2008. VPPC '08. IEEE, 2008, pp. 1-5.
[74] L. Bowtell and A. Ahfock, "Comparison between unipolar and bipolar single
phase gridconnected inverters for PV applications," in Power Engineering
Conference, 2007. AUPEC 2007. Australasian Universities, 2007, pp. 1-5.
[75] R. Sharma and J. A. R. Ball, "Unipolar switched inverter low-frequency
harmonics caused by switching delay," Power Electronics, IET, vol. 2, pp. 508-
516, 2009.
[76] T. Abeyasekera, "Improvements to grid connected photovoltaic inverters,"
Newcastle University, Newcastle upon Tyne, 2005.
[77] J. D. P. Gene F. Franklin, Michael L. Workman (1997). "Digital Control of
Dynamic Systems". ISBN 9780201820546.
[78] R. Teodorescu et al, "Proportional-resonant controllers and filters for grid-
connected voltage-source converters," Electric Power Applications, IEE
Proceedings vol. 153, pp. 750-762, 2006.
[79] S. Buso and P. Mattavelli (2006). "Digital Control in Power Electronics".
Morgan & Claypool Publishers. ISBN 9781598291124.
168
References
169