FULLTEXT01
FULLTEXT01
FULLTEXT01
Examensarbete 30 hp
Maj 2019
Henrik Lindblom
Hemsida:
http://www.teknat.uu.se/student
1 Introduction 1
1.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Report structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Theory 3
2.1 Voltage source converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 Space vectors and reference frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2.1 Clarke transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.2 Park transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Phase-locked loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.4 dq-current control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.4.1 DC voltage control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.5 Bipolar SPWM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4 LabView implementation 19
4.1 Measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.2 Bipolar SPWM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.3 PLL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.4 abc to dq transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.5 Current control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.5.1 id and iq current control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.5.2 DC voltage control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.6 dq to abc transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.7 Converter safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
4.8 Real Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5 Results 29
5.1 Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
5.2 id and iq current control test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.3 DC voltage control test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Bibliography 35
Introduction
1.1 Background
The grid stability and reliability is facing new challenges as the emerging number of grid-connected
intermittent renewable sources to the grid increases. Renewable resources often have an intermit-
tent nature that can affect voltage and frequency fluctuation that varies with weather condition.
Thus, the electric grid cannot rely only on renewable resources unless there is a huge capacity
of electric storage or fast-response dispatchable sources such as hydro power with a dam or gas
turbine.
Power electronics such as the Insulated gate bipolar junction transistor IGBT is considered to be
one of the key technologies when introducing renewable energy sources. Converters built on this is
what allows for efficient integration of renewable energy sources into the grid. They are the core for
voltage-source-converter-high-voltage direct current (VSC-HVDC) transmission technology and it
overcomes the limitations of long distance AC transmission [1].
The VSC is inherently bi-directional in its power flow, meaning that the transmission permits active
and reactive power flow in either direction. It can be controlled to generate or absorb reactive
power independently of the active power flow. There are several applications where the VSC-
HVDC transmission technology can be utilized such as, supply of power to isolated areas without
generating resources, interconnection of two or more asynchronous AC networks and linking remote
offshore wind-power plants to the mainland networks [2].
1.2 Objectives
A three-phase bi-directional AC-DC converter will be designed and constructed with rated IGBT
modules at 1200V and 150A. The constructed converter will be tested and its control will be
implemented in LabVIEW’s FPGA enviroment using a compactRIO. The aim is to build a student
laboratory test setup with said converter, this includes
• Literature survey. The literature survey includes a general description of HVDC technology.
• Construction and testing of the converter. Once built, the converter will be tested both in
rectification mode and in inverter mode.
• Control of the converter. The converter is controlled by a CompactRIO which is setup in the
LabVIEW FPGA environment.
1
Uppsala University 2018 CHAPTER 1
1.3 Limitations
This master thesis focuses on the design, construction and control of a three-phase bi-directional
AC-DC converter. The technical aspect of connecting this to the grid is discussed and the theory
revolves around it. However in this thesis the converter will not be connected to the grid but only
tested with a resistive load both for rectifying mode and inverting mode.
The converter control will be used in student laboratories and in the future it will be connected
with another converter to form a HVDC-link. This thesis lays the ground for this implementation
with the control programming being able to control two converters at the same time.
2
Chapter 2
Theory
This chapter gives an introduction to the voltage source converter and covers the mathematical
model of the converter, reference frame transformation and control in the dq-reference frame.
VDC /2
VDC
2
ia vta
vtb
0
ib vtc
ia
VDC
−VDC /2
It is called 2-level since the AC sides of the converter can assume two voltage levels, VDC
and −VDC . The converter can supply a bidirectional power flow between the DC-side and the
three-phase AC system [4].
The converter is controlled with pulse width modulation (PWM) as switching strategy. From
this and [4] p. 120 it can be derived that the AC-side terminal voltages of the ideal converter is.
3
Uppsala University 2018 CHAPTER 2
VDC
Vta = ma (t)
2
VDC
Vtb = mb (t) (2.1)
2
VDC
Vtc = mc (t)
2
where m(t) is a three-phase balanced modulation signal. With this it is possible to control
active and reactive power flow of the converter. This will be further explained in chapter 2.4.
Figure 2.2 shows the VSC converter connected to the grid and a DC source. It also shows
the current controlled real/reactive power controller. The control is preformed in the dq-frame.
With this configuration the converter can regulate the power flow with simple PI controllers as
compensators.
Seven measurements are needed for the control, phase voltages, phase currents and the DC
voltage. It is also good to monitor the DC current. These are then transformed into the dq-frame
and fed into the compensators which either regulates the currents id and iq or VDC to a reference
value. The compensator then returns the modulation signals in dq-frame. The chosen PWM
strategy takes the signals and output the switching pulses for the IGBTs.
va R L vta
ia iDC
vb
ib
R L vtb VDC
CDC
vc R L vtc
ic
PW M
abc abc
θ θ
PLL
dq dq
vd vq id iq md mq
VDC,ref VDC
Compensators in dq − f rame
id,ref iq,ref
If the AC system is assumed to be ideal with a balanced sinusoidal three-phase source which
has a constant frequency, the dynamics from of figure 2.2 can be described by
dia
L = vta − va − Ria
dt
dib
L = vtb − vb − Rib (2.2)
dt
dic
L = vtc − vc − Ric
dt
depending on the control strategy, the VSC can be used as either a real-/reactive power con-
troller or a DC voltage controller [4].
4
Uppsala University 2018 CHAPTER 2
va (t) = V̂ cos(ωt + θ0 )
2π
vb (t) = V̂ cos(ωt + θ0 − ) (2.3)
3
4π
vc (t) = V̂ cos(ωt + θ0 − )
3
If the quantities are voltages then va,b,c are phase voltages and V̂ are the peak values. θ0 is the
initial phase angle. The phases time-response can be seen in figure 2.3 A. This system can in turn
be described by a space vector which is a complex function of time. In polar form it is given by
2 2π 4π
(va (t) + ej 3 vb (t) + ej 3 vc (t))
~v (t) = (2.4)
3
This vector is presented in figure 2.4. The zero-sequence component can normally be disregarded
and therefore it is possible to reduce the three-phase system to a equivalent two-phase system that
has a 90◦ phase-shift [1]. This transformation is called the Clarke transformation [5]. It is also
known as the αβ-frame. If the αβ-frame is then rotated around an angle θ a DC-valued signal is
obtained as seen in figure 2.3 C. This transformation is called the park transformation [6] and it
simplifies the analysis and control of the system.
A B C
1 1
1
0.8 0.8
0.6 0.6
0.8
0.4 0.4
-0.4 -0.4
0.2
-0.6 -0.6
-0.8 -0.8
0
-1 -1
0 0.01 0.02 0.03 0.04 0 0.01 0.02 0.03 0.04 0 0.01 0.02 0.03 0.04
Time [S] Time [S] Time [S]
Figure 2.3: Time response for A) abc reference frame. B) αβ reference frame. C) dq reference frame.
5
Uppsala University 2018 CHAPTER 2
1 − 13 − 31
vα √ √ va
vβ = 2 0
3 3 v (2.6)
2 − 2 b
3
v0 1 1 1 vc
2 2 2
In a balanced system where va + cb + vc = 0 and thus v0 = 0. This transformation preserves the
amplitudes of the variables. If a scaling constant K is introducedq
it is possible to get rms-value
scaling and power-invariant scaling by selecting K = √12 and K = 23 , respectively [1].
The abc-frame can also be represented in terms of αβ. The inverse transform is given by
1 0 1
va √ vα
3
1
vb = − 1
vβ (2.7)
2 2
vc √ v0
− 21 − 23 1
6
Uppsala University 2018 CHAPTER 2
cos(θ(t)) sin(θ(t)) 0
vd vα
vq = −sin(θ(t)) cos(θ(t)) 1 vβ (2.9)
v0 v0
0 0 1
The inverse transform is obtained when rotation of the dq-frame is canceled out. This is done by
multiplying both sides with ejθ(t) and thus changing to rotation direction to clockwise
vα + jvβ = (vd + vq )ejθ(t) (2.10)
The matrix relations can then be written as
cos(θ(t)) −sin(θ(t)) 0
vα vd
vβ = sin(θ(t)) cos(θ(t)) 0
vq (2.11)
v0 v0
0 0 1
In time domain a balanced three phase systems total instantaneous power can be described by
P (t) = va (t)ia (t) + vb (t)ib (t) + vc (t)ic (t) and in [4] the instantaneous complex power is derived to
be
3
S(t) = P (t) + jQ(t) = ~v (t)~i∗ (t) (2.12)
2
Where * denotes the complex conjugate. From 2.10 we get that ~v = (vd + vq )ej θ(t) and ~i∗ =
(id + iq )e− jθ(t) The instantaneous complex is then represented in the dq-frame and is formulated
as
3
P = [vd id + vq iq ]
2 (2.13)
3
Q = [−vd iq + vq id ]
2
It can be observed that if vq = 0 the real and reactive power are proportional to id and iq ,
respectively. This allows for full control of the power flow and is very usable in a three phase VSC
system.
vd = V̂ cos(ωt + θ0 − θ(t))
(2.15)
vq = V̂ sin(ωt + θ0 − θ(t))
By choosing θ(t) = ωt + θ0 the desired result of keeping vq = 0 is obtained. There are several
different PLL methods available, but synchronous reference frame phase-locked loop, SRF-PLL is
the standard configuration in three phase PLL applications [7]. This was also the one used in this
project. Figure 2.5 shows the block diagram of the SRF-PLL.
vα vd
va a α α d ω
vb b
Δωg ωg
vβ vq
vc c β β q
PI ∫
θ
7
Uppsala University 2018 CHAPTER 2
The input signal vq is fed into the PI controller which outputs the angular frequency deviation
∆ω. ω = 2πf is then added to this which is finally integrated into θ. As it can be observed in
figure 2.5 and in [1] page 194. θ can be formulated by.
Z Z
θ = ωg dt = ωt + ∆ωg dt (2.16)
did
L = Lωiq − Rid + vtd − vd
dt (2.17)
diq
L = −Lωid − Riq + vtq − vq
dt
Where vtd and vtq are equation 2.1 in dq-reference frame. Due to the presence of Lω the
dynamics of id and iq are coupled [4] p 219. To decouple the dynamics we can write
2
md = (ud − Lωiq + vd )
VDC
(2.18)
2
mq = (uq + Lωid + vq )
VDC
Two new terms are introduced, ud and uq these are two new control inputs. Figure 2.6 shows
the block diagram implementation of equation 2.18. From 2.17, 2.1 in dq-frame and 2.18 the
following can be deduced
did
L = −Rid + ud
dt (2.19)
did
L = −Riq + uq
dt
These equation describes two first-order, linear systems. Based on them id and iq can be
controlled by ud and uq which can be outputs from a simple PI compensator. In short, they can
be dimensioned by [4] p.221
kp = L/τi
(2.20)
ki = R/τi
Where the time constant τi is a design choice.
vd
ud
id,ref
PI md
id ωL
VDC
2
iq ωL
iq,ref
PI mq
uq
vq
8
Uppsala University 2018 CHAPTER 2
V
2
DCref
PI id,ref
2
V
DC
Figure 2.8 shows how the pulses are generated for one leg of the converter. The carrier and
reference signal are compared and the switching for the transistor are determined by
9
Uppsala University 2018 CHAPTER 2
1
Refrence
0.5 Carrier
-0.5
-1
0 2 4 6 8 10 12 14 16 18 20
Time [mS]
0.5
0
0 2 4 6 8 10 12 14 16 18 20
Time [mS]
10
Chapter 3
In this thesis a bidirectional converter was built. It is a copy of an already existing converter made
in a previous project. These two are eventually to be connected together to form a HVDC-link.
They are designed with a rated DC voltage of 900V. Some of the parts of it needed to be custom
made. These are the metal sheets that connects all the terminals in the converter and the sheet
that the capacitors are standing on as seen in figure 3.1. The dimensions was measured from the
already existing converter and then and drawn in CAD.
The converter consists of the following main parts: 3x IGBT modules, heat sink, 3x gate drivers,
2x DC capacitors, 2x bleeding resistors and 3x snubber capacitors. The following chapter describes
the function and design choices of the parts.
11
Uppsala University 2018 CHAPTER 3
C1 E2
C2E1
G1 E1 G2 E2
The primary side has 8 pins and the secondary side has two 5 pin connectors as seen in figure
3.3. The secondary side connects to one IGBT each in the IGBT module. In total three driver
cores was used in the converter, one for each leg. The following chapters describes the circuitry
design and component sizing.
12
Uppsala University 2018 CHAPTER 3
• GND - Ground
Where INA and INB are the gate signals to the IGBTs. They work on a wide range of voltages,
in fact the whole logic-level range between 3.3V and 15V and are triggered on at any edge of a
signal.
Since the 2SC0108T drive core has very fast signal propagation delays of typically < 90ns [12]
it is recommended to add additional RC filters to avoid false gate switching. It is however not
recommended to directly add the filter to the inputs as the jitter of the propagation delay may
increase considerably. A Schmitt trigger can be added to solve this problem. The recommended
circuit diagram without the RC-filter can be seen in figure 3.4.
In our design the CD40106B CMOS Hex Schmitt trigger inverter [13] was used. It consists of
six Schmitt trigger inputs with an inverter on each output. Its typical hysteresis voltage VH , is
3.5 V when the supply voltage is VDD = 15 V. The upper and lower voltage threshold VT H,high
and VT H,low is then approximately 9 V and 5.5 V, respectively. The minimum voltage suppression
time at turn-on and turn-off can then be estimated by
VDD
Tmin,on = RC · ln( )
VDD − VT H,high
(3.1)
VDD
Tmin,of f = RC · ln( )
VT H,low
In our case the total resistor and capacitor value for the filter is R = 3 kΩ and C = 100 pF
which results in a minimum voltage suppression for turn-on at Tmin,on = 280 ns and a turn-off at
Tmin,of f = 300ns. Figure 3.5 shows the input part of the primary side schematic.
It has a protective circuit consisting of a current limiting resistor and shottky clipping diodes.
This protects the core from over voltages and short circuits. Since the Schmitt trigger inverts the
input signal it goes through it twice to get the correct value. The full schematic of the low voltage
side schematic can be seen in appendix A.
13
Uppsala University 2018 CHAPTER 3
Figure 3.5: Schematic for input signal. With Protection and short pulse rejection. Designed by P.
Nordström and S. Apelfröjd at Uppsala Universitet.
The status outputs, SO1 and S02 are normally high. When a under voltage is detected on
the primary side, both status outputs are pulled to low and are reset when the under voltage
disappears. A supply under voltage or short-circuit of IGBT module on the secondary side is
transmitted to the corresponding status output and reset after the blocking time Tb has elapsed
[11]. In the circuit used in this application both status outputs are connected to a common fault
signal. The blocking time Tb is selected by a resistor connected to the Tb pin on the primary side.
The time value in milliseconds is given by
Tb = Rb − 51 (3.2)
where Rb is given in kilo ohms and in this design it was set to Rb = 82kΩ which result in a blocking
time of Tb = 31µs.
14
Uppsala University 2018 CHAPTER 3
15V
InA
0V
15V
InB
0V
15V
G1
-8V
15V
G2
-8V
The dead time is also set by the resistor Td and the time delay is given by,
Rm − 56.4
Td = (3.3)
33
Where Td is given in microseconds and Rm in kilo ohms. A resistor with the value Rm = 140kΩ
results in a blocking time of Td = 2.53µs.
VEx must be directly connected to the IGBT emitter terminal as seen in figure 3.7. The ref-
erence terminal, REFx sets the threshold for short-circuit and overcurrent protection by placing
a resistor Rth between REFx and VEx. The reference terminal, REFx has a constant current of
150µA and thus a reference voltage can then easily be dimensioned with a resistor. The recom-
mended resistor value of Rth = 68kΩ was chosen. This will protect against short-circuit but not
necessarily overcurrent. It is recommended to realize that protection in the controller design [11].
Inside the driver core there is a comparator circuit that triggers status outputs SOx on the
primary side if the the collector-Emitter saturation voltage, Vce,sat is higher than the voltage on
REFx. The blocking time, Tb immediately starts when a fault is detected.
15
Uppsala University 2018 CHAPTER 3
Since VCEx is connected to the DC rail the current must be limited and not exceed 1mA. The
maximum DC voltage for this converter is set to 900V and a series of three resistor with the total
value RCEx = 780Ω was selected.
When the IGBT is in an off-state the capacitor Cax is precharged/discharged, via internal
transistors, to the negative supply voltage which is -8V referred to VEx. During this time a
current flows through the RCEx resistor network and the diode D11 to the GHx terminal.
During the turn-on of the IGBT the capacitor, Cax is charged to the IGBT saturation voltage
which approximately is Vce,sat = 2.0V. During this charging time the monitor circuit is inactive.
The charging time depends on the DC rail voltage, value of Rax and the capacitor value. From
the application manual [11] the following values was selected, R120kΩ and Cax = 22pF which gives
an typical response time of 6.5µs if VDC > 550V.
Figure 3.8 shows the implementation of the monitoring circuitry and is located on the same
board as in figure 3.5 as they need to be close to the driver core. The 22k resistor is used to provide
a low-impedance path from the IGBT gate to the emitter even if the driver is not supplied with
power [11].
Figure 3.8: Secondary side monitoring circuit. Designed by P. Nordström and S. Apelfröjd at Uppsala
Universitet.
16
Uppsala University 2018 CHAPTER 3
Figure 3.9: Secondary side monitoring circuit. Designed by S. Apelfröjd at Uppsala Universitet.
For 1200V IGBTs with DC-link voltages up to 800V it is recommended to have six 150V TVS
diodes where at least one is bidirectional [11]. Five SMBJ154A-TR and one SMP100MC-160 TVS
diode was chosen and should give good clamping results. It is possible to improve the clamping
performance by reducing Rg,of f .
The gate resistors for turn-on and turn-off are separated to set them independently. The
smallest resistor value allowed is 2Ω [15]. Three 21.5Ω in parallel was chosen which gives a total
of Rg,on,of f = 7.17Ω for both turn-on and turn-off resistor.
D5x is a transient voltage suppressor device that protects against high gate-emitter voltages in
the IGBT short-circuit condition.
3.3 DC capacitor
The DC capacitors used are two electrolytic capacitors. The rated voltage is 450V with a capaci-
tance of 3300µF. Connected in series they have a rated voltage of 900V. The bleeding resistors are
there to discharge the electric energy stored in the capacitors when the converter is turned off, for
safety reasons. The resistors have a value of 18kΩ and a power rating of 10W.
Figure 3.10 shows how the capacitors are connected in the converter and is viewed from same
angle as the left figure in fig 3.1. The converter has three layers of metal sheets with a insulating
material between them. The top layer is the positive terminal on the DC side of the converter
and is connected to the top collectors of the IGBT modules and the positive terminal on one of
the capacitors. The bottom layer is the negative terminal on the DC side and is connected to
the bottom emittors of the IGBT modules and the negative side on one the other capacitor. The
middle layer connects the other two layers via the remaining terminals of the capacitors.
17
Uppsala University 2018 CHAPTER 3
Figure 3.10: Illustration of how the DC capacitors are connected and a equivalent circuit.
18
Chapter 4
LabView implementation
The control of the converter is done through LabVIEW which is a visual programming language
from National Instruments and their compact real-time embedded industrial controller (cRIO).
This consists of a real time (RT) microprocessor controller and I/O FPGA modules [16][17]. The
setup consited of cRIO-9066 as controller, NI-9401 module for digital I/O and NI-9206 as voltage
analog input.
Figure 4.1 shows the user interface the user sees. The graphs to the left shows the measurements
when in DC voltage control mode and the right shows it when in active-/reactive-mode. In the
middle there is a visual representation of a HVDC-link and a block diagram of the control strategy
along with RMS-values of the grid voltages and currents. Finally at the bottom the reference
values are set along with the abillity to tune the PI controllers.
4.1 Measurements
The measurement system used in this project comes a from previous student thesis. It measures
voltages through differential measurements and for the current it uses a current transducer. There
is a switch where you can choose between the wire running through the current transducer one or
six times. There are two boxes in total labeled ”box A” and ”box B” [18].
In this project it is important that the rectifier measurements are connected to box A and the
inverter measurements are connected to box B. The voltage and current measurements of phase
a,b and c must also be connected to the U1-U3 and I1-I3 terminals, respectively as seen in figure
4.3. The DC bus measurements must always be connected to the U0 and I0 terminals of box A.
19
Uppsala University 2018 CHAPTER 4
In the FPGA there is a ”Data acquisition and calibration” loop that runs at 4 kHz. It retrieves
the measurements from the cRIO NI 9205 pins according to table 4.1. These are represented by
the pink boxes as seen in figure 4.3. The measurements has a voltage range of ±10V so the values
needs to be scaled to the correct value. A sub VI implements a linear function, y = kx + m which
allows for scaling and offsetting for all the channels. It can also invert the values. they are then
put into two arrays, one for voltages and the other for currents.
20
Uppsala University 2018 CHAPTER 4
The function of the triangle wave generation subVI is relatively simple. An increment value is
fed into the subVI. In every loop cycle it is added to the previous value and checked if it is in the
range of ±1. If this is true it just continuous like the previous loop. If it is false the function checks
if the accumulated value is < 0 if that is true nothing happens to the input increment value. If it
is false it means that signal is at its top peak and thus the increment value is negated. In short,
first it checks if it is in range. If not it checks if it is on its top peak or bottom peak. This means
that the increment value sets the frequency and its function is given by
The carrier signal is then compared to either the rectifier reference signals or inverter reference
signals depending on which mode is selected. There will only be an output if the converter is
enabled.
The purple boxes in figure 4.5 are connected to the NI 9401 which is a digital module. The top
three are INA for each gate driver and the bottom three is INB as described in chapter 3.2.2
21
Uppsala University 2018 CHAPTER 4
4.3 PLL
There is a express VI in the LabVIEW FPGA environment that implements the SRF-PLL discussed
in chapter 2.3. The outputs for the phase are given in pi radians which is a value in radians divided
by pi. This uses fewer resources than radians [20]. The express VI seen in figure 4.6 uses the
following inputs and outputs.
Table 4.2: The inputs and Outputs used in the 3-phase PLL express VI
For a three phase signal with an amplitude of A the tuning is done as follows: Kp , Ki , KA =
12 200 200
A, A , A .
The while loop in figure 4.6 is for box A i.e the rectifier. It takes the phase voltage measurements
and puts them into the PLL which output the phase, θ in pi radians. It also has a feed forward
control, this was however set to zero for the tests. The sinus and cosinus is the directly calculated
for the phase, θ. This saves resources on the FPGA. This loop also runs at 4KHz.
22
Uppsala University 2018 CHAPTER 4
The subVI in figure 4.8 implements the Clarke transform given in equation 2.6. It does it in a
resourceful way by minimizing the use of multiplications which are resource demanding.
The subVI in figure 4.9 implements the Park transform given in equation 2.9. It also does
it in a resourceful way by taking the already calculated values for Sin(θ) and Cos(θ) instead of
calculating it again every time.
23
Uppsala University 2018 CHAPTER 4
Figure 4.10: Data from FPGA and current control for the inverter.
The PI compensator used is designed to use as few resources on the FPGA as possible. It
does not however have a anti-windup mechanism so the controller runs the risk of running out of
control. The subVI for the PI compensator is shown in figure 4.11. The control is placed in a for
loop that runs once for each compensator.
24
Uppsala University 2018 CHAPTER 4
Figure 4.13 is the same as the id and iq current control with the addition of the DC voltage
compensator described in chapter 2.4.1. It utilizes a saturation block limiting the maximum id,ref
along with a anti-windup. The other two compensator also has a saturation block that limits the
modulation signals to stay within ± VDC
2 [8].
The modulation signals are then fed back into the FPGA. Putting the controller on the RT
instead of the FPGA is not the optimal solution as the FPGA runs at a faster clock speed and is
better at timing/syncing [16].
25
Uppsala University 2018 CHAPTER 4
The subVI in figure 4.15 implements the inverse Park transform given in equation 2.11.
The subVI in figure 4.16 implements the inverse Clarke transform given in equation 2.7. It does
it in a resourceful way by minimizing the use of multiplications which are resource demanding.
26
Uppsala University 2018 CHAPTER 4
This is a relatively simple safety feature and should not be fully relied on. The capacitors can
hold a lot of charge and there are a lot of exposed areas where a person can be struck and in worst
case be killed by an electric shock. There are bleeding resistors in place which dissipates the charge
in the capacitor so they don’t pose as a threat when it is turned off.
Like with any electrical equipment, the converters should always be approached with caution.
27
Uppsala University 2018 CHAPTER 4
The consumer loop in figure 4.19 takes this data and does RMS calculations for the grid
measurements. It also displays the data on graphs on the front panel as seen in figure 4.1.
28
Chapter 5
Results
This section presents the testing of the bidirectional converter in DC voltage control and id and
iq current control over a resistive load. The tests were conducted in a lab environment where they
also will be used in course laboratory work.
5.1 Setup
The setup used for testing is shown in figure 5.1. The voltage supply in the bottom left of the
picture and can supply both a variable DC voltage and three phase AC voltage along with fixed
voltages. It is connected to the grid via a transformer that brings down the line-to-line voltage
from 400V to 230V. The voltage supply is also equipped with breakers up to 10A.
Depending on the selection of controller type, DC voltage control or active-/reactive power
control it is connected to three phase AC supply or DC supply, respectively. The measurement
boxes are then connected to the voltage supply for measurements. Again, box A or box B is used
depending on the type of controller used as mentioned in chapter 4.1. From the box it is connected
to the line inductor, L. This is labeled as a ”load inductor” and has a variety of configurations.
Attempts to estimate the inductance were made and are shown in table 5.1. The line inductor is
connected to the AC side of the converter.
Since the tests in this project never connected to the grid, a resistive load was used for testing
purposes. It is located in the center of figure 5.1, the load is a variable three phase resistive load. To
the far right is the computer on which the user interface is displayed. The computer is connected
to the compactRIO via ethernet.
item rating
VDC 0-220V
Vl−l 0-230V
L 0.072-0.8H
Rload 0-300Ω
29
Uppsala University 2018 CHAPTER 5
A DC voltage was connected to the converter which in turn was connected to a load. Since the
converter is not connected to the grid a simulated three-phase grid was implemented into the
FPGA that the PLL could track. This may effect the results since there is no real grid for the
converter to relate to.
Table 5.1 shows the parameters for the testing results in figure 5.3. Where VDC and IDC is the
supply voltage and vrms and vrms is the load voltage and load current, respectively. From this we
get that the input power is 93.6W and the output power is 88.2W which results in a 94% efficiency
for this test. Figure 5.2 shows the converter voltage at one of its AC output terminal.
50
40
30
20
10
[V]
-10
-20
-30
-40
-50
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
Time [S]
30
Uppsala University 2018 CHAPTER 5
Figure 5.3 shows the plots from the test with id = 2 and iq = 0 in steady state and they are; a)
is the load voltage and as it can be seen there is a lot disturbances which will manifest themselves
through out the control. b) shows the load current, the peak is at 2A which is the reference id
current since the amplitude variant of the reference frame transform is used. c) Shows the load
voltages in dq-frame and the disturbances from a) are visible, there are high fluctuations of about
±6V for both Vd and Vq . d) shows the load currents in dq-frame and it has the desired outputs
from the reference values. e) Is the PLL and it tracks the simulated three-phase system. It can
be observed that phase a (blue) in a) is at its peak when θ is zero. f) Shows the three modulation
signals and they are not over modulated. They do however jump to zero at times. It is unclear
where this is introduced into the system. It can be due to the programming of the simulated grid.
40 2.5
2
30
1.5
20
1
Load voltage[V]
Load current[V]
10
0.5
0 0
-0.5
-10
-1
-20
-1.5
-30
-2
-40 -2.5
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time [S] Time [S]
(a) (b)
40 2.5
35
2
30
25
1.5
20
Vd & Vq
Id & Iq
15 1
10
0.5
5
0
0
-5
-10 -0.5
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time [S] Time [S]
(c) (d)
1
1
0.8
0.8
0.6
0.6
0.4 0.4
ma. mb and mc
0.2 0.2
Theta
0 0
-0.2 -0.2
-0.4
-0.4
-0.6
-0.6
-0.8
-0.8
-1
-1
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time [S] Time [S]
(e) (f)
Figure 5.3: a) load voltage b) load current c) Vd Vq d) Id Iq e) Theta from PLL f) modulation
signals ma mb mc .
31
Uppsala University 2018 CHAPTER 5
Figure 5.4 shows when a step response test was conducted with id going from 1A to 2A and
iq = 0. As it can be seen when the step is initialized at 3s the power drops to about 20W and is
then in steady state right after 4s. Although the controller is responsive there is large disturbances
in the power.
120
100
80
P [W]
60
40
20
0
0 0.5 1 1.5 2 2.5 3 3.5 4
Time [S]
item rating
VDC 50V
IDC 0.15A
vrms 23V
irms 0.15A
L 0.28H
Rload 300Ω
VDCef 90
kp 240 and 0.004
ki 3 and 0.003
Figure 5.5 shows the DC voltage at 90V and in steady state with the parameters from table 5.3.
With this setup it was possible to comfortably boost the DC voltage up to 240V. After that it had
problems keeping the voltage steady and current draw started to get to high for the equipment.
Figure 5.6 shows the plots from the test and they are; a) is the grid voltage and as it can be seen
there is some disturbances introduced when the converter is turned on. b) shows the grid current,
it is in phase with the grid voltage which means that only real power is absorbed from the grid.
c) shows the grid voltages in dq-frame. The average is taken on Vd so the value presented is very
consistent while Vq has more disturbances but is at zero which means that the PLL is working
correctly. d) Is the grid current in dq-frame and it shows iq at zero which grants unity power
factor. e) Is the PLL which tracks the grid. It can be observed that phase a (blue) in a) is at its
peak when θ is zero. f) Shows the modulation signals and they are not over modulated.
32
Uppsala University 2018 CHAPTER 5
95
94
93
92
91
Vdc
90
89
88
87
86
85
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time [S]
40 0.8
30 0.6
20 0.4
Grid voltage [V]
0 0
-10 -0.2
-20 -0.4
-30 -0.6
-40 -0.8
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time [S] Time [S]
(a) (b)
35 0.7
30 0.6
25 0.5
20 0.4
Vd & Vq
Id & Iq
15 0.3
10 0.2
5 0.1
0 0
-5 -0.1
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time [S] Time [S]
(c) (d)
1 0.8
0.8
0.6
0.6
0.4
0.4
ma, mb and mc
0.2
0.2
Theta
0 0
-0.2
-0.2
-0.4
-0.4
-0.6
-0.6
-0.8
-1 -0.8
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time [S] Time [S]
(e) (f)
Figure 5.6: a) grid voltage b) grid current c) Vd and Id d) id and iq e) PLL f) modulation signals
ma , mb and mc .
33
Uppsala University 2018 CHAPTER 5
Figure 5.7 shows when the converter starts up. In the beginning it acts as a passive rectifier
and is stable at 50V. When it starts the voltage quickly drops to zero and then rises and overshoots
with about 50V to 140V until it settles at the desired 90V. The whole start up sequence takes
about 13 seconds.
150
100
Vdc
50
0
0 2 4 6 8 10 12
Time [S]
34
Chapter 6
In this thesis, a two level bidirectional VSC for a laboratory test setup was designed and built. A
control system was also developed to enable the control of active-/reactive power flow along with
a DC voltage control.
The converter was tested both in inverter and rectifier mode connected to a resistive load.
Start-up sequences and power flow step changes was also analyzed with promesing results.
Some conclusions that can be drawn from the design and construction, programming of the control
system and the testing, are the following
• The converter constructed was a copy of an already existing and functioning converter. The
behaviour of the two was found to be similar. Tests showed that the converter was working
according to the wanted specifications and thus, it can be used for laboratory use.
• Using the compactRIO and LabVIEW offers a reliable and convenient method when mea-
suring and processing data. The responsiveness of the control might be affected depending
on if it placed on the FPGA or the real time microprocessor.
• The converter is able to work as an inverter and regulate the current flow to resistive load
using a simulated grid. A lot of harmonics is introduced to the AC load voltage and there
are large fluctuations in the load power.
• The converter is also able to function as an rectifier and regulate the DC voltage over an
resistive load. It has the ability to boost the voltage DC voltage several magnitudes but is
limited when trying to deliver a larger effect. The start up of the converter delivers a large
voltage spike.
There is a wide range of other uses for a VSC converter and for the existing system there is
room for great improvements. Some suggested future works are the following.
• Improve the control and connect the converter to the grid to fully test the ability of controlling
the active-/reactive power flow.
• Connect two converters back-to-back and thus forming a HVDC-link and connect them to
the grid.
• Develop a laboratory test for students where they can observer the behaviour of the converter
when changing parameters such as, PI controller constants, carrier frequency, DC voltages,
etc.
35
Bibliography
[1] K. Sharifabadi et al. Design, Control, and Application of Modular Multilevel Converters for
HVDC Transmission Systems. Wiley - IEEE. Wiley, 2016. isbn: 9781118851562.
[2] J. Arrillaga, Y.H. Liu, and N.R. Watson. Flexible Power Transmission: The HVDC Options.
Wiley, 2007. isbn: 9780470511855. url: https : / / books . google . se / books ? id = 3LZ -
284jCf4C.
[3] Markus Gabrysch. Lecture slides. Inverter Design with Applications. The Faculty Board of
Science and Technology Uppsala University. 2017.
[4] Amirnaser Yazdani and Reza Iravani. Voltage-sourced converters in power systems: modeling,
control, and applications. John Wiley & Sons, 2010.
[5] W. C. Duesterhoeft, M. W. Schulz, and E. Clarke. “Determination of Instantaneous Currents
and Voltages by Means of Alpha, Beta, and Zero Components”. In: Transactions of the
American Institute of Electrical Engineers 70.2 (July 1951), pp. 1248–1255. issn: 0096-3860.
doi: 10.1109/T-AIEE.1951.5060554.
[6] R. H. Park. “Two-reaction theory of synchronous machines generalized method of analysis-
part I”. In: Transactions of the American Institute of Electrical Engineers 48.3 (July 1929),
pp. 716–727. issn: 0096-3860. doi: 10.1109/T-AIEE.1929.5055275.
[7] S. Golestan, J. M. Guerrero, and J. C. Vasquez. “Three-Phase PLLs: A Review of Recent
Advances”. In: IEEE Transactions on Power Electronics 32.3 (Mar. 2017), pp. 1894–1907.
issn: 0885-8993. doi: 10.1109/TPEL.2016.2565642.
[8] OTTERSTEN ROLF. On Control of Back-to-Back converters and Sensorless Induction Ma-
chine Drives. PhD Thesis, Department of Electric Power Engineering, Chalmers University
of Technology, Göteborg, Sweden. 2003.
[9] Sylvain LECHAT SANJUAN. Voltage Oriented Control of Three-Phase Boost PWM Con-
verters. Department of Electric Power Engineering, Chalmers University of Technology,
Göteborg, Sweden. 2010.
[10] Fuji Electric Device Technology Co. 93193.pdf. http://www.farnell.com/datasheets/
93193.pdf. 2005.
[11] Power Integrations Switzerland GmBH. 2SC0108T Preliminary Description and Application
Manual. Jan. 2018.
[12] Power Integrations Switzerland GmBH. Application with SCALETM -2 and SCALETM -2+
Gate Driver Cores. Apr. 2016.
[13] CD40106B CMOS Hex Schmitt-Triggers Inverters datasheet (Rev. F). http://www.ti.com/
lit/ds/symlink/cd40106b.pdf. Mar. 2017.
[14] Inc Littelfuse. littelfuse tvs diode protection for vfds igbt inverters.pdf. https://www.littelfuse.
com/ ~ /media/electronics/application_notes/littelfuse_tvs_diode_protection_
for_vfds_igbt_inverters.pdf. 2016.
[15] Power Integrations Switzerland GmBH. 2SC0108T2F1(C)-17 Data Sheet. https://gate-
driver.power.com/sites/default/files/product_document/data_sheet/2SC0108T2F1-
17.pdf. 2018.
[16] National instruments. NI LabVIEW Real-Time and FPGA - National Instruments. ftp :
//ftp.ni.com/pub/branches/uk/handson_followup/handson_tasters.
36
Uppsala University 2018 CHAPTER
37
MMXIII Version 4 Rev.2013-10
PinHead IN PinHead HighSide and LowSide Driver Settings
Id Pin Type Info
Direct Mode - Connect Mode-1 and Mode-2
VCC 3, 4, 5 Supply 15V 1W
Appendix A
GND 1,5,6,9 Supply Ground Complimentary Mode - Connect Mode-3 and Mode-4 (Recommended)
INA 2 Controller Driver signal, 15V 5mA
INB 10 Controller Driver signal, 15V 5mA
DF 8 Indicator Error out, 15V (Default Low)
Supply Input with surge protection and small buffer Driver De-coupling
+15V +15V
14
D1
VDD
C2 C7 C3 C4
R7
IC1P
CD
VSS
7
LED1
GND GND
CM
+15V
GND
CORE HIGHSIDE
VCE2
RA1 10 9
RM LV HV VCE2 VCE Rvce
R9
Error out - NOT(SO1 OR SO2) (Normal Low) MOD 8 7
MOD
38
1 2 6 5
3 4 REF2
RTH1 4 3
REF
GND
40106D REF2
+15V
5 6 2 1
+15V
GND
7 8 12 13 T1 SO1
SO1
D11
+15V
9 10 BC847 GL2 GL Goff
GL2
IC1F High Side Driver HV
IN ERROR_OUT_SO1_OR_SO2
TOP SIDE
SO2 VE2 VE
22K_1
R8 SO2 VE2
CA1
VE
GH2 GH Gon
RB GH2
GND TB
TB
Inputs with protection and short pulse rejection
GND
IC1D IC1E
R4 R5 9 8 11 10 INB LOWSIDE
Top Side INB RA2
VCE1 VCE Rvce 10 9
VCE1
C5 40106D 40106D 8 7
D7 6 5
R6
VCC REF1
RTH2 4 3
VCC REF1 REF
GND
+15V
+15V
2 1
D12
GND GND
IC1A IC1B GL1 GL Goff
R1 R2 GL1
Bottom Side 1 2 3 4 INA
INA
C1 40106D 40106D VE1 VE
22K_2
VE1
BOTTOM SIDE
D6 CA2
R3
Low Side Driver HV
GND VE
GND
GND
+15V
GH1 GH Gon
GND
GH1
GND GND
2SC0108T
Low voltage side schematic
MMXIII
2013-10-23
IGBT Driver
UU - Elektricitetslära
P. Norström
S.Apelfröjd
D52
E_HS1
E_HS
X1-9 SV3
S2 10 9
X1-7
GND
ERROR 8 7
X1-6 X1-3
GND GND
B 6 5 B
X1-5 RVCE1-1 RVCE1-2 RVCE1-3
GND
4 3
X1-4 2 1
S1
VCCVCC
X1-2 RG_OFF1-3
GND
X1-1 RG_OFF1-2 D31-1 D31-2 D31-3 D41-1 D41-2 D41-3
VCC
LOWSIDE
10 9 C1
RG_OFF1-1 C_LS
8 7
6
39
5 E_IGBT1
4 3 G_OFF1
2 1 G_ON1
RG_ON1-1
RG_ON1-3
RG_ON1-2 G_LS
C C
D51
VCC VCC VCC E_LS
R1
5
IC1
3
NTC 1
X1-8
C1 1 C2 4
2 OPA642N
2
D D
GND MMXIII
GND GND 2013-10-23
Driver_Mount
S.Apelfröjd
1 2 3 4 5 6