Yacine 2017
Yacine 2017
Abstract—High quality voltage and current are required when using either DSP card [5] or Dspace platform [6, 7] which
PV generator is connected to grid utility. To this, multilevel increase the cost of the PV system. The paper investigates the
inverters are very desirable to be used as connection interface. To
keep the cost of the whole system as low as possible, a cost- use of a cost-effective card, STM32F4 board, to implement
effective control device using STM32F4 discovery board is the control system without affecting much the cost of the
employed to control three-level inverter that can be used in grid- grid-tied PV system.
tied PV system. The paper develops and implements the control
strategy of simplified space vector pulse width modulation The paper is organized as follows: section II illustrates
(SVPWM) algorithm using Matlab/Simulink software. Obtained the modeling of the PV generator, section III is devoted the
experimental results depict the powerfulness of used card as well
as the high quality of the delivered power. structure of three-phase three-level NPC inverter while
section IV and V explain in details the principle of SVM
Keywords-PV system; Three-level inverter; Simplified SVM; technique with simplified algorithm. Finally, section VI
STM32F4; Implementation.
demonstrates the implementation part of the proposed system.
Conclusion is given in section V.
I. INTRODUCTION
II. PV GNERATOR
The energy demand increases with the same rate as the
The electrical equivalent circuit of PV module is
population increase as well as the technology development.
composed of a current source, a diode, a parallel connected
Besides exhausting of fossil fuels and negative effects of resistor, and a serial resistor which results in the circuit as seen
nuclear fuels, tendency of generation energy nearby location, in Fig. 1 [8, 9].
where it is consumed, to decrease the transmission losses and
improve the energy reliability has increased interest on
renewable energy sources (RESs) [1].
Where:
There are two categories into which inverters can be Ipv : PV cell output current, A
classified are two level inverters and multilevel inverters. In Vpv : PV cell output voltage, V
this paper, owing to its advantages in terms of power quality Iph : the photocurrent due to incident sunlight, A
and simplicity with respect to two-level, NPC three-level Is: The reverse saturation or leakage current of the diode, in A
inverter is retained [4]. Similar systems are implemented Vt: thermal voltage ( Vt N s KT /(aq) )
978-1-5090-4508-2/17/$31.00 ©2017
Rs, Rp,a, Ns: series resistance, shunt resistance, ideality factor difficulties, a simplified algorithm of SVM technique is
and number of series PV cells. employed to alleviate the algorithm complexity and ensure the
III. THREE-LEVEL NPC INVERTER neutral point balancing between upper and lower DC-link
capacitors [11].
The three-level NPC inverter structure is shown in
Fig 2. Each leg contains four active switches S1 to S4 with
antiparallel diodes D1 to D4. IV. SVM PRINCIPLE
The capacitors at the DC side are used to split the
Space vector modulation (SVM) is one of the preferred real-
DC input into two and provide the neutral point 0. The
time modulation techniques and is widely used for voltage
clamping diodes can be defined as the diodes connected to the
source inverters control.
neutral point, D1, D2. When switches S2 and S3 are connected,
From table 1 the three switching states [P], [O] and
the output terminal A can be taken to the neutral through one of [N] can represent the operation of the SVM technique.
the clamping diodes. The voltage applied to each of the DC Considering the operation of three lags, the inverter has 27
capacitors C1 and C2 are equals half of the total DC voltage. possible switching states. There are 24 active vectors
including 12 short vectors, 6 medium vectors and 6 long
vectors, and the remaining three are zero vectors (PPP, OOO,
NNN), which lie at the center of the hexagon as illustrated in
table 2. The area of the hexagon can be divided into six sectors
(A to F), for each has four regions (1 to 4), with 24 regions of
operation in total as shown in Fig. 3 [10].
TABLE 2. SUMMARIZE THE 27 SWITCHING STATES WITH THEIR VECTOR
MAGNITUDE.
[NOP]
TABLE 1. SWITCHING STATES FOR A THREE-PHASE THREE-LEVEL NPC
INVERTER. [ONP]
[NPP]
The three-level Inverter has five levels line-to-line voltage, [NNP]
therefor lower du/dt and harmonics compared with two-level
[PNP]
inverter that has three level line-to-line voltage. This will
reduce switching stresses across power switches. However, the
complexity of the control algorithm increases and voltage
across the capacitors must be balanced. To overcome these
978-1-5090-4508-2/17/$31.
From Fig 4 m1 and m2 can be calculated as below:
(6)
(7)
(8)
And then,
If m1, m2 and (m1 + m2) < 0.5, then Vref is in region 1.
If m1 > 0.5, then Vref is in region 4.
Figure 3. Space-vector diagram of the three-level converter
If m2 > 0.5, then Vref is in region 3.
Assuming the instantaneous voltage value of three-phase sine If m1 and m2 < 0.5 and (m1 + m2) > 0.5, then Vref is in region
wave is respectively: 2 [12].
(3) (9)
(4) Therefore;
Where
(10)
(5)
Where:
Where θ is computed to locate the sector to which Vref
belongs, therefore:
If θ is between 0° ≤ θ < 60°, then Vref will be in Sector A.
If θ is between 60° ≤ θ < 120°, then Vref will be in Sector B.
If θ is between 120° ≤ θ < 180°, then Vref will be in Sector C.
If θ is between 180° ≤ θ < 240°, then Vref will be Sector D.
If θ is between 240° ≤ θ < 300°, then Vref will be Sector E.
If θ is between 300° ≤ θ < 360°, then Vref will be Sector F.
978-1-5090-4508-2/17/$31.
Using the same procedure, the dwelling time in other regions in V. SIMPLIFIED SVM ALGORITHM
sector A can be obtained as shown in Table 3.
The main idea of the simplified algorithm is how to achieve the
Calculation Flow based only on one sector instead of six as
TABLE 3. ON TIMES IN SECTOR A.
demonstrated in Fig. 6, just by knowing the relationships in
Dwell Time calculations and arrangement for switches between
the first sector and the others as explained below [10].
TABLE 4. PWM FIRING TIME SETTING FOR EACH SWITCH OF UPPER ARMS IN
SECTOR (A).
Figure 7. Two vectors with 60o shifting in the sector A and B.
So the reference vector can be expressed in the following
form.
(11)
978-1-5090-4508-2/17/$31.
TABLE 5. RELATIONSHIPS OF VOLTAGES CONSTRUCTING THE REFERENCE
VECTORS IN SIX SECTORS.
Figure 10. (a) STM32F4 Discovery board, (b) Gates driving circuit, (c) (NPC)
inverter Power circuit.
Figure 13. Hardware set up for Three Phase Inverter (NPC) using STM32F4.
The source code of simplified algorithm has been written in
MATLAB Function blocks (Fig 11), compiled and uploaded on
the card. It generates three 50 Hz sinusoidal references, selects
the inverter sector and computes all switching duty cycles
based on the proposed algorithm; then it configures six PWM
generators to work at 5 kHz. The main results can be seen in
Fig 12. (a).
(a) (b)
Figure 14. (a) Line to neutral inverter voltage (Van), (b) Fundamental
component of (Van).
Figure 11. Embedded simulated model for Three Phase SVM Technique in
STM32F4 Discovery Kit in Waijung Software.
978-1-5090-4508-2/17/$31.
easy as it is compatible with Matlab/Simulink. As further work,
this experimental setup will be extended to integrate the PV
generator, MPPT algorithm and a filter in order to obtain the
grid-tied PV system.
REFERENCES
[1] S. Ozdemir, N. Altin, I. Sefa, Single stage three level grid interactive
MPPT inverter for PV systems, Energy Conversion and Management:
561–572 , Ankara, Turkey, 2014.
[2] S. Kalogirou, solar energy engineering: processes and systems,
Academic press Eglish, VOL.756, ID. 210125, 1st edition, 2009.
(a) (b) [3] Today Business Newspaper, types of photovoltaic systems, pp. 10
Monday 28 may 2012.
Figure 15. (a) Line to line inverter voltage (Vab), (b) The fundamental [4] A. ALMULA G. M. GEBREEL, Simulation and implimentation of
component of (Vab). tow-level and three-level inverters by MATLAB and RT-LAB
,THESIS, The Ohio State University, 2011.
A 20 V DC source was inserted to the input of the inverter, [5] F. Liu, Y. Zhou, S; Duan, J. Yin, B. Liu, F; Liu, Parameter design of a
two-current-loop controller used in a grid-connected inverter system
the line to neutral and line to line voltages are demonstrated in with LCL, IEEE Trans. on Ind. Electronics, 56 (11) 2009, 4483-4491.
Fig. 14 (a) and Fig. 15 (a) respectively. The results reflect the
[6] A. Bouafia, J. P. Gaubert, F, Krim, Predictive direct power control of
three level nature of this inverter, where the line to neutral three-phase pulse width modulation (PWM) rectifier using space-
voltage has three levels +Vdc, 0 and -Vdc, and line to line vector modulation, IEEE Trans. on Power Electronics, 25 (1) 2010,
voltage has five levels +Vdc, +Vdc/2, 0, -Vdc/2 and –Vdc. 228-236.
[7] R. Kadri, J. P. Gaubert, G. Champenois, An improved maximum
In order to see the fundamental component of the signals, a power point tracking for photovoltaic grid-connected inverter based
low pass filter is used with R=30KΩ in parallel with 100nF as on voltage-oriented control, IEEE Trans. on Ind. Electronics, 58 (1)
shown in figures Fig. 14 (b) and Fig. 15 (b). It can be noticed 2011, 66-75.
from Fig. 14 (b) the fundamental component of the line to [8] A. Kheldoun, R. Bradai, R. Boukenoui, A. Mellit, A new Golden
neutral voltage is not uniform sine wave but has injected triple Section method-based maximum power point tracking algorithm for
harmonic due to SVM operation without affecting on the photovoltaic systems, Energy Conversion and Management, 111 (1)
2016, 125–136.
inverter line to line output voltage [13].
[9] A Kheldoun, S. Djeriou, A. Kouadri, L. Refoufi, A Simple and
Accurate Maximum Power Point Tracking Algorithm for Photovoltaic
Systems, Progress in Clean Energy, 2, 2015, 721-733.
VII. CONCLUSION [10] H.Haibing, Y.Wenxi, L.Zhengyu, Design and Implementation of
Three-Level Space Vector PWM IP Core for FPGAs, VOL. 22, NO.
This work provides a comprehensive design and 6, NOVEMBER 2007.
implementation of three-level neutral-point clamped (NPC) [11] A. ZORIG, M. BELKHEIRI, S. BARKAT, A. RABHI, Control of
inverter using STM32F4. The paper addresses a very important three-level NPC inverter based grid connected PV system, pp. 1-6,
aspect of PV systems that is designing a control system without Tlemcen, Algeria, May 2015.
increasing the cost of the system. Obtained results showed that [12] S.Sünter, A.Kocalmış, Simulation of a Space Vector PWM Controller
the use of the cost-effective STM32F4 is very powerful in For a Three-Level Voltage-Fed Inverter Motor Drive, Paris, France,
IEEE Trans. on Indusrial Electronics, pp. 1915-1920, Nov.2006.
terms of fastness. Its hardware capacity allows integrating other
[13] S.Pablo, Alexis B. Rey, Luis C. Herrero and José M. Ruiz, A simpler
algorithms such as MPPT technique besides the inverter’s and faster method for SVM implementation, Aalborg, Denmark, pp. 1-
PWM algorithm. Furthermore, the hand on of STM32F4 is 9, Sept.2007.
978-1-5090-4508-2/17/$31.