DQ Transform Based Current Controller For Single-Phase Grid Connected Inverter
DQ Transform Based Current Controller For Single-Phase Grid Connected Inverter
DQ Transform Based Current Controller For Single-Phase Grid Connected Inverter
Abstract— In this paper, the design and simulation of a into the grid without violating the related rules and
current controller for a grid connected inverter is regulations [7].
implemented by using the synchronous reference frame Even though, large scale wind and solar farms use three
conversion. The active power and the reactive power phase inverters to produce AC power output, in most other
outputs of the inverter are controlled in the dq cases where the generation capacities are limited to few
reference frame with the use of Proportional-Integral kilowatts, similar to the case of domestic rooftop solar PV,
(PI) controllers. The measured grid current and grid a single phase inverter is required to interface the solar PV
voltage are used to generate an orthogonal signal pair power to the grid. In addition to that there are cases where
with the use of Second Order Generalized Integrator the three phase inverter control schemes are unable to
with Phase-Locked Loop (SOGI PLL). According to the produce sinusoidal grid currents due to the unbalancing of
available standards for grid connected inverters, the the three phase systems under faulty conditions, Due to
unity power factor operation of the inverter is essential. these reasons, the investigation of single phase inverters
In our design this is achieved by maintaining the and their controllers is really important.
reactive power reference of the controller at zero steady
state value. The injected grid current is forced to be in When the inverter is operating in standalone mode, we
phase with the grid voltage with the use of PLL. Also, a can use Open loop voltage feed forward controlling
third order LCL output filter design is proposed in this technique [2] to maintain the magnitude of the inverter
paper to filter out the switching harmonics. The Matlab output voltage at a desired tolerance band. But in the case
simulation results of the grid connected inverter are of grid tied inverter systems, as the inverter is subjected to
also included in this paper. many external disturbances from the grid, a more dynamic
control system is required to minimize the total harmonic
distortion of the injected grid current.
Keywords—Voltage Source Inverter, LCL filter, phase locked
loop, orthogonal signal generation.
The use of linear time-invariant theory to control AC
signals will result in a non-zero steady state error which is
known as the “following error” [2]. The way that we can
reduce this following error is by operating the power
I. INTRODUCTION
converter at a very high switching frequency which would
With the emergence of distributed generation systems result in poor efficiency due to high switching losses [1].
which can be used instead of centralized power stations, the
energy sector is experiencing a rapid evolution with In order to address the issue of following error,
advantages such as reduced transmission cost, greater Synchronous Reference Frame Theory (dq) is
energy security due to the availability of diversified implemented. By the use of this theory, the AC signals are
renewable energy resources and reduced fossil fuel transformed into DC quantities represented in the
burning. Due to the fact that the available new renewable synchronous rotating frame. It is also worth mentioning
sources are inherently intermittent in nature, power that dq transformation is not directly applicable to single
electronic converters are required to maximize the energy phase system. But as a solution, we can generate an
harnessed from these sources. And also, mainly in solar and orthogonal signal which will be having a phase difference
wind energy sector, the produced electrical power will not of 90 degrees with the initial single phase AC signal. And
be compatible for direct interfacing with the existing power by using these two quantities we can obtain the dq
grid. Therefore the use of power electronic converters to
transformation for the single phase case as well.
interface these energy sources to the grid is a necessity.
Inverters play a major role when connecting DC batteries, This paper describes the steps of designing and
Solar panels, fuel cells and variable speed wind turbines to simulating a single phase inverter with dq reference frame
the grid. The inverter and the related power electronic active and reactive power controlling.
equipment should be capable of harnessing maximum
energy out of these renewables, and transferring that energy
II. UNIPOLAR PWM INVERTER
In order to implement unipolar pulse width modulation,
two sinusoidal reference signals are required with the same
Fig.1: reference sine and inverted sine wave along with the triangular
carrier waveform III. DESIGN OF THE OUTPUT LCL FILTER
These two PWM signals are given to the upper left and When designing an inverter, inclusion of a filter circuit
upper right switches of the full bridge while their is essential so that it filters out the high frequency switching
complements are given to the lower left and lower right harmonics from the inverter output voltage waveform and
switches respectively. There is one important thing to the current injected to the grid to maintain low total
notice that both switches on a single leg will not be harmonic distortion according to the accepted standards
switched ON at the same time. If happened so, there will be [4]. Filter is the interface between the inverter and the grid.
a short circuit path across the DC voltage source and hence We can identify several basic types of filters such as L filter
can damage the switches due to overcurrent. Due to the with a single inductor, LC filter with a combination of an
possible commutation effects of the insulated gate bipolar inductor and a capacitor and a LCL filter which contains
transistors (IGBT’s), switching needs to be modified in two inductors and a capacitor.
order to provide a dead band time between the switching on
and off the switches which are on the same leg [3]. Among these filters, the LCL filter is considered as the
most suitable type of filter when considering the better
attenuation of the switching frequency harmonics and
providing better decoupling capability between the grid
impedance and the filter output current [2].
Fig.2: Simulink model for the unipolar PWM full bridge inverter
33
Here ∆ = change in current flowing through L1 during IV. SYNCHRONOUS D-Q REFERENCE FRAME
its steady state operation. is the input DC link voltage. The main problem when using proportional-integral
represents the switching time for the IGBT’s. is the (PI) controllers in order to control time varying signals such
modulation index and is the fundamental angular as sinusoidal currents and voltages is that the controller
frequency of the output voltage. cannot reach zero steady state error [5]. Therefore to avoid
Vin Tsw this problem, synchronous reference frame can be used to
∆i( )= (2) represent the time varying signals as dc signals. The logic
2L1 behind this is, a phasor which is rotating at an angular
Equation (2) can be obtained when the angle in (1) velocity ω will seem to be stationary relative to a reference
becomes, phasor who is rotating at the same angular velocity ω in the
same direction.
1
ω0 t=θ=sin-1 ( 2M ) (3) A. Transformation from three-Phase natural frame to the
r
Stationary Reference Frame
Therefore, the minimum L1 value which should be This transformation, which is also known as Clarke
there to limit the current ripple below a specific ∆i(max) can transformation is carried out for time varying three phase
be obtained from (4). signals in order to represent them using two orthogonal
Vin Tsw vectors in a stationary reference frame. The transformation
L1= (4) matrix which converts a balanced three phase system into a
8∆i(max)
two phase system is given by [8],
A. Filter capacitor design -1 -1 Xa
Capacitor of the LCL filter is used to filter out high Xα 2 1 2 2
Xb
frequency switching components of the inverter output Xβ = 3 √3 -√3
(8)
0 2 2 Xc
waveform. Hence the capacitor needs to act as a low pass
filter. But the introduction of capacitor will establish a Here Xa ,Xb ,Xc represents any three phase vectors and
reactive power consumption for the inverter. This reactive Xα ,Xβ the respective orthogonal vectors in the stationary
power requirement causes the reduction of the overall
reference frame.
output power factor and hence results in larger currents
through the IGBTs and L1 inductor. Therefore, in order to As this can be implemented easily for three phase
limit the reactive power consumption, maximum allowable system, the problem comes in when implementing this for
value for the capacitor can be obtained as follows. a single phase system. The solution for this problem is
Q0 generating a factious orthogonal signal (i.e. Xβ ) from the
C= (5) originally available time varying signal on the single phase
ω0 V2g
system. The orthogonal signal generation (OSG) for this
Here Q0 is the reactive power introduced by the case can be implemented in several ways such as transport
delay method, second order generalized integrator (SOGI)
capacitor and Vg is the grid voltage. Usually Q0 is kept
[4]. Here we are using the SOGI method.
below 5% of the rated output power of the inverter.
B. Stationary Reference Frame to the Synchronous
B. Design of grid side inductor L2 Reference Frame
Transfer function of the LCL filter in the s-domain can Even though the three phase signal can be converted
be expressed as follows [1]. into two phases which are in quadrature with each other,
i (s) 1
these two signals are still rotating at an angular frequency
GLCL (s)= Vn =L 3 +(L +L )s (6) of similar to the initial three phase vectors. Still PI
(s) L Cs
n 1 1 1 1
controllers cannot be applied to these signals as they will
L2 should be designed to minimize the THD and not produce zero steady state error. Hence αβ→dq
harmonic currents within the limits defined by the IEEE transformation is carried out in the following manner. The
standards. The minimum value of the L2 can be obtained dq transformation matrix is given by (9).
from (7). Xd cos θ sin θ Xα
1 |Vinv (jωn )| Xq = - sin θ cos θ Xβ (9)
L2 = L (L2 + ) (7)
1C -1 ωn μn I2
As the reference frames in dq are rotating at the same
In doing this calculation first we should obtain the angular frequency as the input αβ signals, there will be no
frequency spectrum of the inverter output voltage relative movement between the vectors and the references,
( ( )) . The dominant harmonic and the respective therefore those vectors will be seen as DC quantities and
harmonic angular frequency ( ) needs to be obtained hence PI controllers can be used successfully to control
from that spectrum. these signals. The following Simulink block was used to
implement the orthogonal signal generation for the single
Here is the expected harmonic proportion of the phase case of synchronous frame transformation. This
output current of the filter. | ( )| is the RMS value of block is based on the SOGI technique of orthogonal signal
the inverter output voltage. represents the RMS value of generation.
the injected current to the grid through the grid side
inductor. In addition, represents the angular frequency
of the dominant harmonic present in the inverter output
voltage frequency spectrum [2].
34
can be compared with a triangular carrier waveform to
generate the IGBT switching PWM signals to produce the
required inverter output voltage waveform.
The controlling is carried out in dq reference frame as
stated above to avoid the occurrence of non-zero steady
state error. But for the dq frame transformed signals to be
maintained in synchronism with the grid, a phase locked
loop (PLL) is implemented to track the phase of the grid
voltage continuously. The phase (ωt) of the grid voltage
which is obtained by the PLL is also required to implement
the dq transformation and inverse transformation.
Fig.5: Simulink model for OSG
VI. CURRENT CONTROL LOOP
The purpose of the current control loop is to generate a
reference voltage waveform for the inverter to achieve the
required power demands given by the outer power control
loop. By applying the Kirchhoff’s laws for the following
circuit we get (10).
35
L
did
+Rid =V*d1 (15) inverter, grid voltage upper and lower limits are used to
dt detect under and over voltages conditions and to disconnect
L
diq
+Riq =V*q1 (16) the inverter from the grid.
dt
36
accuracy in the active power and reactive power control of
the inverter. But in case of grid disturbances such as over
and under voltages, frequency variations, the use of passive
islanding detection methods by voltage and frequency
variation depicted sluggish responses in disconnecting the
inverter from the grid. The future plan will be to develop a
hybrid islanding detection scheme with the use of available
phase locked loop (PLL) and final objective is to develop
an inverter hardware setup to verify the successful active
and reactive power control through the use of dq reference
frame and PI controlling.
ACKNOWLEDGMENT
The authors gratefully acknowledge the support
provided by the Senate Research Council, University of
Moratuwa (SRC/LT/2017/06).
REFERENCES
[1] N. Mohan, M. Underland, and W. Robbins, Power Electronics. Tata
McGraw-Hill, 1995.
[2] X. Ruan, X. Wang, D. Pan, D. Yang, W. Li, and C. Bao, Control
Techniques for LCL-Type Grid-Connected Inverters. Springer
Singapore, 2018.
[3] A. Namboodiri, H. S. Wani, "Unipolar and bipolar PWM inverter",
International Journal for Scientific Research and Development, vol.
1, no. 7, pp. 237-243, 2015.
[4] R. Teodorescu, M. Liserre, P. Rodriguez, Grid Converters for
Photovoltaic and Wind Power Systems, IEEE-Wiley, 2011.
[5] R. Teodorescu, F. Blaabjerg, M. Liserre, and P. C. Loh,
“Proportional-resonant controllers and filters for grid-connected
voltage-source converters,” IEE Proceedings - Electric Power
Applications, 2006, 153, (5), p. 750-762,
[6] J. Sedo and S. Kascak, “Control of single-phase grid connected
inverter system,” in ELEKTRO 2016 - 11th International
Conference, Proceedings, 2016, pp. 207–212.
[7] F. Blaabjerg, R. Teodorescu, M. Liserre, and A. V. Timbus,
“Overview of control and grid synchronization for distributed power
generation systems,” IEEE Trans. Ind. Electron., vol. 53, no. 5, pp.
1398–1409, 2006.
[8] H. Akagi, Y. Kanazawa, and A. Nabae, “Instantaneous Reactive
Power Compensators Comprising Switching Devices without
Energy Storage Components,” IEEE Trans. Ind. Appl., vol. IA-20,
no. 3, pp. 625–630, 1984.
[9] A. Awasthi, K. Venkitusamy, R. Selvamuthukumaran, S.
Padmanaban, P. Siano and A. H. Ertas, "Dual mode control of
inverter to integrate solar-wind hybrid fed DC-grid with distributed
AC grid," 2016 IEEE 16th International Conference on Environment
and Electrical Engineering (EEEIC), Florence, 2016, pp. 1-6.
[10] Z. Chunjiang, L. Wei, S. Guocheng and W. Weiyang, "A Novel
Active Islanding Detection Method of Grid-connected Photovoltaic
Inverters Based on Current-Disturbing," 2006 CES/IEEE 5th
International Power Electronics and Motion Control Conference,
Shanghai, 2006, pp. 1-4.
[11] R. Teodorescu, F. Blaabjerg, M. Liserre and P. C. Loh,
"Proportional-resonant controllers and filters for grid-connected
voltage-source converters," in IEE Proceedings - Electric Power
Applications, vol. 153, no. 5, pp. 750-762, September 2006..
37