Report SemiFinal PDF
Report SemiFinal PDF
Report SemiFinal PDF
I. INTRODUCTION
In the new power system network, renewable energy
distributed generators are highly being used due to
environmental concern of traditional power generation system.
Distributed generation also enable to generate power with
locally available resources and the extra effort to build new
transmission and distribution network can be avoided[1].
But as the power output of many of the distributed generators
is variable due to their intermittent nature, there should be a
mechanism to make their power output usable for loads. This
can be realized through power electronic interfaces which
enable them to be able connect to a grid or loads[2].
The power electronics interface enables to control the power
injection of distributed generators. This is possible by
controlling the LC filter connected to the power electronics
interface of the distributed generators. The active and reactive
power injection of the distributed generators can be managed
by controlling the current through the LC filter. Vector control
method is important to control the active and reactive power
generation separately. There are different control methods like
non-linear (hysteresis control method) , linear control method
(PI with PWM) and deadbeat control. But PI controller is
simple and effective method to control the d- and q-axis
current of the LC filter[3].
The aim of this work is to built a prototype of grid connected
distributed generator based on three phase inverter. After some
literature reviews related to the topic, a methodology is
developed to model and implement the prototype. When the
distributed generators are connected to the grid, there are
2
is synchronizing angle,
, and
are three
phase currents and
and
are synchronous frame
currents.
is due to the zero sequence currents in three
phase measurement.
Where
Parameters
L(mH)
R(ohm)
cos
sin
sin
+ .
+
.
(2)
.
(3)
Where,
and
are the d-axis and q-axis voltage across the
filter and the load,
and
are the d- and q- axis currents
through load and filter,
is the filter inductance,
is the
system frequency,
and
are the filter and load resistance
respectively. A load of 4.7 ohm resistance is considered.
Therefore the s- domain transfer function which relates the
output currents with the input voltages can be derived to
model the plant for tuning of PI controllers. The coupling
terms are not considered in the transfer function instead they
are added as feed forward to enhance the transient response of
the system.
( )=
(4)
Where, is the gain of the plant which is 1
where
is the
values of
cos( )
= sin( )
(1)
Values
7.2
0.4
1.
2.
where
(5)
is the proportional gain and is the time constant
3
(
.
(6)
The reduced first order closed loop transfer function is look
like in the equation 7 .
.
( )=
(7)
assumed that the three phases are balanced and only two
phases of the voltage are read from the virtual grid. Therefore,
these two methods have equal performance in implementation
of grid synchronization for this specific project. But when the
three phase voltages are read for unbalanced virtual grid
system , dqPLL is better than arctan function since it has high
performance in unbalanced case[5].
1) Arctan function
The voltages are transformed from stationary abc frame to
stationary frame using the following transformation matrix.
= 0.5
=
Where
(8)
[ ]+
[ 1]
1 0.5 0.5
(12)
Where
and
are stationary frame alpha-beta
voltages and
,
and
are stationary frame three phase
voltages read from the virtual grid. Phase C of the virtual grid
voltage is obtained by using three phase balanced equation.
Therefore, the angle can be extracted using tan (
/
) and this result is converted to radian value.
(9)
(1 +
(1 +
(10)
)
Plant gain(K)
Plant time constant ( )
Continous Proportional gain(Kp)
Integrator Time constant (
)
Desired frequency(BW)
coefficient for the digital PI
coefficient
for the digital PI
1
(11)
0.196
1.411ms
12
1.412ms
267Hz
12.425
-11.575
(13)
(14)
Voltage level
12V
7.5V
0-7.5V
Input ranges
326V
10A
0-750Vdc
(15)
Where
is the input voltage from the sensors,
is DC
offset voltage used to shift the AC voltage up,
is the
output voltage,
is the feedback resistor,
and
resistors connected to the AC input voltage and DC offset
voltage respectively,
Circuit topology
Order of the filter
Cut-off frequency
Pass band gain
Corner frequency attenuation
Quality factor
Phase delay@50Hz
Butterworth, multiple
feedback, low pass filter
2
2.5KHz
1db
-3dB
0.71
1.64
6
stop. Therefore, the ADC interruption is serviced once the
conversion of all the four channels is finished. The ADC is
configured to be triggered by the PWM.
B. PWM configuration
The PWM module 1,2 and 3 of the DSC are configured
to give 3 phase complementary PWM signals.
It is configured to have the minimum dead time of 2us
for the switching transition of two switches(IGBTs) of
the power stack not to make short circuit.
The shadow register in the compare and counter sub
module of the PWM is enabled to buffer the PWM duty
cycle not to overwrite the current duty cycle.
Clock prescaler of TBCTL for ePWM module are
configured to get the possible maximum value for
TBRD register.
maximum value of TBRD register to get high resolution
in the PWM signals at 10KHz frequency is 7500.
The PWM modules are synchronized by configuring
the PWM modules as master and slave mode of
operation. ePWM module 1 is configured as master.
To get symmetrical triangular wave, the counter is
configured for up-down count mode using time base
control register(TBCTL).
Trip zone one of ePWM module is configured to
disable PWM output cycle by cycle when there is fault.
The PWM is configured to start the ADC channels to
realize synchronous sampling.
C. GPIO configuration.
GPIO0-GPIO5 are configured for PWM output .
GPIO60 and GPIO61 is configured as general
purpose input output pins for reset purpose to reset
the inverter after the fault in the inverter is cleared to
restart the power stack.
GPIO60 is configured as input pin for reset input and GPIO61
is configured as output pin for reset output. There is one
resetInverter() function which reads the GPIO60 status and
when the pin status goes low, the function will set GPIO61
pin to go high to reset the power stack (Guasch inverter).
D. Controller
The controller functions including the grid synchronization
and PI current vector controllers. It is called approximately
every 100s under ADC interrupt service function to be
executed. The function will update the PWM duty cycles after
performing the controlling algorithm. The whole control
algorithm should be executed within 100s before the next
ADC conversion starts in order to assure that the sampling is
still synchronous. But this is not a problem for F28335 DSP
since it has 150MHz speed. In the following diagram, the flow
chart of the whole software is shown.
7
filter, Load , DC power suppliers for the PCB and the DC-link
of the inverter.
To confirm the dead time, fixed PWM duty cycle is
generated before testing the controller. The inverter is
working properly without tripping or triggering the
trip zone.
The controller is tested for DC current control i.e.
keeping the synchronization angle at zero. Different
Id reference values are used to check the controller is
working for different step responses.
After this, synchronization angle is generated by
creating function in Code Composer Studio and
specifying the frequency at 50Hz. The function is
called inside the ADC interrupt service function. This
synchronization has equivalent function to
synchronization of the currents to the virtual grid.
Therefore, it is possible to study the controller
performance for different power factors.
Both current controllers(Id and Iq) are tested using
maximum voltage of 66V supplied to the DC-link of
the inverter from the DC supplier. The controller is
tested for different power factors and step responses.
It is possible to change references in real time in
Code Composer Studio. Therefore different step
responses have been applied to the controller to study
its responses. Arrays are used to store Id and Iq
responses of the controller and to plot them in
Matlab.
2) Current controllers
Different Id and Iq step references are applied to check the
controller dynamic and steady state response. It can be seen
from the step responses that the settling time is around 0.004
second as expected from the design. The response of the
system is like first order system. The steady state error is
almost zero.
8
The controller is tested for different step responses of Id and
Iq to check its performance for dynamic and steady state
response. There is some deviation from simulation results.
This is due to the delay created by the ADC, the switching
delay of IGBTs and deviation of components ( resistors ) used
to construct the PCB.