Next Article in Journal
Dynamic Performance of Organic Rankine Cycle Driven by Fluctuant Industrial Waste Heat for Building Power Supply
Previous Article in Journal
Design of a Repetitive Control for a Three-Phase Grid-Tied Converter under Distorted Grid Voltage Conditions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An FPGA Hardware-in-the-Loop Approach for Comprehensive Analysis and Development of Grid-Connected VSI System

by
Vijay Kumar Singh
1 and
Ravi Nath Tripathi
2,*
1
Department of Electronics Engineering, Rajiv Gandhi Institute of Petroleum Technology, Jais 229305, Uttar Pradesh, India
2
Nagamori Actuator Research Center, Kyoto University of Advanced Science, Kyoto 615-8577, Japan
*
Author to whom correspondence should be addressed.
Energies 2023, 16(2), 759; https://doi.org/10.3390/en16020759
Submission received: 22 November 2022 / Revised: 24 December 2022 / Accepted: 27 December 2022 / Published: 9 January 2023

Abstract

:
Power electronic converters are used for an efficient and controlled conversion of power generated from renewable energy sources and can interface generated power to the grid. Among available power converters, voltage source inverters (VSIs) have been widely employed for grid-connected applications due to better controllability with higher efficiency. Although various conventional, as well as modern control techniques, have been developed for grid connected VSI system, there is a need to select suitable control technique based on application and control requirements. Hardware-in-the-loop (HIL) is considered as a realistic approach for the development of system and control due to the inclusion of an actual hardware system. In this paper, a HIL approach is adopted for the comprehensive analysis and development of a grid connected VSI system using a field programmable gate array (FPGA). The control techniques must deal with trade-off, based on the features and limitations. Therefore, a grid-connected VSI system is developed considering employment of two different conventional control techniques: hysteresis current control (HCC) and PI-based space vector modulation (PI-SVM), as well as finite state model predictive control (FS-MPC) as a modern control technique for investigation considering different parameters. All three control systems are developed through a digital simulator of Xilinx that is integrated with MATLAB-Simulink, while considering an FPGA based system development and testing through FPGA HIL co-simulation methodology.

1. Introduction

In recent years, energy demand has been growing at a rapid rate, because of population, technological advancement, and economic growth. The depletion of conventional or non-renewable energy sources along with environmental issues have become important matters of global concern due to the rise in energy demand. To cater for the need for increasing energy demand, a high-efficiency energy conversion system for industrial processes is essential. Furthermore, to fulfill energy demands and reduce the use of conventional energy sources, energy generation from non-conventional or renewable sources is essential. Adequate renewable sources such as Solar, Wind, Biomass, Ocean, and Geothermal, are capable of accomplishing clean and green energy without affecting the environment. Solar photovoltaic (PV) and wind are prominent among available renewable sources to generate power [1,2]. To harvest controlled power efficiently from these renewable sources, a suitable power conversion system is needed [3,4]. Further, for the efficient utilization of power generated by these sources, a grid integration is required.
Power electronic converters play a vital role in harvesting efficient power from renewable energy sources and for interconnection through a utility grid. The voltage source inverter (VSI) is the most commonly used natural interfacing device for grid-connected applications due to better controllability with higher efficiency [1,5]. In order to harvest high-quality power through VSIs interconnected to a utility grid, appropriate controllers with rapid response and fast reference tracking ability are always desired. Further, controllers need to meet the expectations of various control objectives for grid-connected VSI, such as power factor correction, by regulating the current through the grid, harmonic reduction and power flow regulation [6,7]. A general block diagram of a three-phase grid-connected VSI system is depicted in Figure 1 which can be driven by dc sources such as battery, PV or fuel cell.
Various conventional voltage, as well as current control, techniques have been studied and implemented for grid connected VSI applications. Conventional linear proportional-integral (PI) regulator-based space vector modulation (PI-SVM) and nonlinear hysteresis controller-based hysteresis current control (HCC) are well-established voltage and current control schemes used in industrial applications, respectively [8,9,10,11,12,13,14,15,16,17]. The PI-SVM technique possesses features such as switching frequency reduction, lower total harmonic distortion (THD) and better utilization of dc supply voltage with fixed switching frequency [8,10,11]. However, increased complexity is a concern due to various computations such as sector identification, switching time calculation, switching voltage vector identification and an optimum switching pattern in each sampling time. An improved PI-SVM from an implementation point of view has been proposed in [12,13] to generate switching times for inverter switches directly from the instantaneous sampled reference phase voltages. Due to the elimination of various computations involved in conventional PI-SVM, this improved technique has been considered a better scheme for experimental implementation. On the other hand, HCC is considered as a mature technique having features of accuracy, simplicity and good dynamic performance [14,15,16]. However, the variable switching frequency is the key factor of this technique. Further, switching frequency is crucial due to its dependency on system parameters and operating conditions.
Among modern control schemes, model predictive control (MPC) has become attractive to researchers for voltage as well as current control application of power electronics and drives. MPC possesses attractive features such as intuitive nature, excellent dynamic performance, functionality for the inclusion of constraints, and nonlinearities [17,18,19,20,21,22,23]. However, implementation needs fast and powerful digital signal processors (DSPs) and microprocessors due to the high computational requirements of MPC. Finite control-set MPC (FCS-MPC) or finite-state MPC (FS-MPC) is one of the categories of MPC that is based on the discrete-time model of the system and the limited number of switching states of the power converter [18,20,21,22,23]. The inherent discrete nature of the FS-MPC suits the algorithm implementation through digital platforms. Moreover, the discrete-time model of the power converter with short prediction horizon assists in reducing the online computations of the FS-MPC algorithm. Because of above mentioned features, FS-MPC has been extensively studied and applied for the various power converter and drive applications including inverters connected through the grid [24,25,26,27]. A comparison among the control schemes is depicted in Table 1 to gain an understanding of their pros and cons.
The real-time implementation of PI-SVM and FS-MPC based systems needs digital platforms because of computational requirements. On the other hand, although HCC based systems are mainly implemented through analog circuits, lack of flexibility is one of the key issues of analog solutions. Thus, digital platforms with increased performance are required for experimental system implementation. Moreover, the availability of platforms with the functionality of modeling based digital system design and field-programmable gate array (FPGA) based hardware-in-the-loop (HIL) testing eases overall system development.
FPGA has gained attraction and is considered a more appropriate solution for digital implementation due to its flexibility and parallel processing architecture which can handle multiple operations together within the specified sampling time [28,29,30,31,32,33]. Further, FPGA based system implementation makes the system compact, cost-effective and reduces execution time drastically. A hardware description language (HDL), such as Verilog or VHDL, is used to implement an FPGA controller, which needs special training in HDL programming, extensive design-phase optimization and verification. It takes a lot of work to implement FPGA-based systems using a conventional HDL programming approach. FPGA vendors have thankfully provided high-level design tools, such as high-level synthesis (HLS) and block diagram-based design toolboxes such as System Generator for DSP from Xilinx and DSP Builder from Altera to aid in the acceleration of the development process [30]. However, System Generator for DSP from Xilinx provides the additional functionality of HIL testing including the ability to generate HDL code intuitively to configure FPGA [31,34,35,36].
In this paper, a comprehensive analysis of a grid-connected VSI system is presented considering conventional linear control PI-SVM, conventional nonlinear control HCC and modern control FS-MPC techniques. The controllers are developed in a model-based design platform named System Generator for DSP, provided by Xilinx for digital implementation, which is an integrated platform with MATLAB-Simulink. Furthermore, the FPGA HIL co-simulation functionality of System Generator, a dedicated simulator platform provided by Xilinx, is utilized for one step ahead controller validation before actual experimental system implementation. The controller performances are analyzed with the help of some necessary performance parameters such as grid synchronization, transient performance and effect of different sampling.
Other sections of this paper are organized as follows: Section 2 represents the discrete-time mathematical model of the grid-connected VSI system. Section 3 deals with the design and development of system controls. The HIL co-simulation methodology for FPGA based system implementation is presented in Section 4. In Section 5, simulation results and discussion are presented with comparative analysis. Finally, appropriate conclusions are drawn in Section 6.

2. Discrete-Time Mathematical Model of System

A schematic diagram of the three-phase grid-connected VSI system in Figure 2 consists of a filter at inverter output side, three-phase grid and a dc supply to VSI. The three-phase VSI consists of 3 legs (a, b, and c) with two power switches (IGBTs) in each leg: S1S4 (leg a), S2S5 (leg b) and S3S6 (leg c). S1, S2, S3 are termed as upper switches and S2, S4, S6 lower switches.

2.1. Switching States and Voltage Vectors

Switching states of VSI are interpreted corresponding to the switching signals applied to the upper (S1, S2, S3) and lower (S4, S5, S6) switches that are complementary to each other. The switching states Sa, Sb, Sc in Table 2 denote the switching signals applied to IGBTs corresponding to three legs. The switching states S can be expressed in vector form as
S = 2 3 ( S a + a S b + a 2 S c ) , w h e r e a = e j 2 π 3
The inverter output voltages Vi are controlled by switching states and a resulting eight voltage vectors (V0~V7). Here V1V6 are active vectors and V0 & V7 are zero vectors. The voltage vectors with respect to switching states Sa, Sb and Sc, depicted in Table 3, can be formulated in complex space vectors as
V i = { 2 3 V d c e j ( i 1 ) π 3 , for   i = 1 ~ 6 0 , for   i = 0 , 7

2.2. Discrete-Time Model

The three-phase grid-connected VSI system can be described by continuous-time dynamic Equations (3)–(5) as follows:
L f d i f d t = V i r f i f V t
C f d v t d t = i f + i g
L g d i g d t = V g V t r g i g
where
Lf : filter inductance,
rf  : internal loss resistance of filter inductor,
Cf : filter capacitance,
rg  : grid resistance,
Lg : grid inductance,
if  : three-phase filter currents flowing from the inverter,
Vt : three-phase terminal voltage at point of common coupling,
ig  : three-phase grid currents.
These continuous-time relations in Equations (3)–(5) can be represented by state-space model as
{ d x ( t ) d t = A c x ( t ) + B c u ( t ) y ( t ) = C c x ( t )
where x ( t ) = [ i f V t i g ] T , y ( t ) = i f and u ( t ) = [ V i V g ] T .
The continuous-time state-space matrices Ac, Bc, and Cc are as follows:
A c = [ r f / L f 1 / L f 0 1 / C f 0 1 / C f 0 1 / L g r g / L g ] , B c = [ 1 / L f 0 0 0 0 1 / L g ] and C c = [ 1 0 0 ] .
The discrete-time state-space model from continuous-time model in Equation (6) is obtained by discretization with a sampling time Ts and the model is represented at sampling instant k as
{ x ( k + 1 ) = A d x ( k ) + B d u ( k ) y ( k ) = C d x ( k )
And,
{ A d = e A c T S B d = 0 T S e A c τ B c d τ C d = C c
where x ( k ) = [ i f ( k ) V t ( k ) i g ( k ) ] T , y ( k ) = i f ( k ) and u ( k ) = [ V i ( k ) V g ( k ) ] T .

3. Modeling of System Control

The grid-connected VSI system as represented in Figure 2 is designed considering control techniques PI-SVM, HCC and FS-MPC for comprehensive analysis. The control system is developed through model-based design in a system generator provided by Xilinx (XSG) followed by MATLAB-Simulink [34].

3.1. PI-Based Space Vector Modulation (PI-SVM)

The Carrier-Based modulation technology, which is employed in the three-phase VSI application, can be replaced by space vector modulation. Both approaches convert a reference voltage into inverter switching signals, which is how they are comparable. Eight switching states, including six active and two zero states, are produced by the three-phase VSI. These vectors combine to produce a hexagon, which may be thought of as having six sectors with span of 60° each. PI-SVM is used to generate the reference vector, which represents the three-phase sinusoidal voltage, by switching between the two nearest active vectors and the zero-vector depicted in Table 2. The block diagram of the grid-connected VSI system controlled with PI-SVM technique is presented in Figure 3. The current control of the system is realized using dq synchronous rotating frame. In order to eliminate the current errors in dq components, two PI controllers are used. These PI regulators convert the current errors into reference voltage errors (dq components) which are further transformed into abc components using inverse Park transformation (Equation (9)) and given to SVM control. Briefly stated, the PI-SVM algorithm divides the reference vector into effective vectors corresponding to the sectors, and then recombines these effective vectors to produce the actual PWM switching pattern. Therefore, because of the standard SVM method’s fundamental approach, the total calculation procedure is difficult to implement in practice. However, it is possible to recreate the real gating time without performing a partitioning or recombination operation by applying the effective voltage vector notion of the standard SVPWM in a different method. To generate switching signals by using reference phase voltages through SVM control, the required computational steps are demonstrated in a block diagram as shown in Figure 4.
These computational steps can be represented in the following four subsections [12,13].

3.1.1. Reference Time Calculation

Firstly, sampled reference phase voltages vrefa, vrefb, and vrefc of the present sampling interval are used to calculate the time equivalents of these phase voltages known as reference times Trefa, Trefb, and Trefc. The calculation of reference time Trefx (x = a,b,c) for each phase corresponding to the particular reference phase voltage is formulated in Equation (9) as
T r e f x = V r e f x ( T s V d c ) ,   w h e r e   x = a , b , c  
where Ts is the sampling time.
It can also be noted that, since vrefa + vrefb + vrefc = 0, hence, Trefa + Trefb + Trefc = 0.

3.1.2. Offset Time Computation

The offset time is required to distribute the zero voltage symmetrically during one sampling interval. To determine the effective time (Teff) to the middle of the sampling interval, the zero-voltage time (T0) is subjoined to the imaginary phase voltage times and will be symmetrically distributed at the start and end of one sample period. The offset time Toffset is determined using a straightforward three-element sorting technique. Only the maximum and minimum value among the three imaginary phase voltage times is necessary for this sorting technique. The offset time is calculated using the following equations as
{ T e f f = T m a x T m i n T 0 = T s T e f f T m i n + T o f f s e t = T 0 / 2
T o f f s e t = T 0 2 T m i n
after substituting the values of T0 and Teff in Equation (11), Toffset can be calculated, as given in Equation (12)
T o f f s e t = 0.5 T s 0.5 ( T m a x + T m i n )
where Tmax and Tmin are the maximum and minimum of reference times, respectively, computed in Equation (9).

3.1.3. Timing Calculation for Inverter Switches

The actual switching times for inverter switches can now simply be obtained with the help of reference time calculated in Equation (9) and offset time calculated in Equation (12). The switching times (OFF sequence) for upper switches of VSI (S1, S2, S3) can be obtained as follows:
T O F F g x = T r e f x + T o f f s e t ,     where   x = a , b , c
In order to generate a symmetrical switching pattern, ON switching sequence is obtained by subtracting OFF sequence from sampling time as
T O N g x = T s T O F F g x ,     where   x = a , b , c

3.1.4. Generation of Modulating Signal

A modulating signal generation scheme is used to generate PWM switching signals for VSI switches using fixed frequency triangular career. The modulating signal for each phase is obtained from switching times calculated in step 3 as
m g x = 2 ( T O F F g x T O N g x T s ) 1 ,   where   x = a , b , c

3.2. Hysteresis Current Control (HCC)

The HCC scheme is one of the most widely used current control techniques for power electronics applications and it is considered as one of the simplest and mature control schemes in industrial applications. This scheme is based on the current error between the load current and reference current. The concept of this method is to keep the error within the specified tolerance band, the hysteresis band/error band. The switching signals for inverter power switches are generated through a hysteresis controller which has a nonlinear nature. The actual current is forced to follow a sinusoidal current reference within the error band.
The block diagram of HCC for three-phase grid-connected VSI is shown in Figure 5. The reference current is generated considering only active power fed to the grid side from the inverter side. ea, eb and ec are the current errors between measured filter currents if and generated reference currents if*. The hysteresis controller used for switching signal generation has an upper hysteresis band (+HB) and lower hysteresis band (−HB). The switching signals are generated based on current error crossing the +HB and −HB. The expression for instantaneous switching frequency fsw [15,16] for the given grid-connected system can be obtained as
f s w = V d c 4 L f ( H B ) [ 1 { L f V d c ( d i f * d t V g L f ) } 2 ]
The expression of fsw in Equation (16) depends on the system parameters (Vdc, Lf) as well as rate of change of if* and HB. The maximum switching frequency fswmax can be obtained by using Equation (16) as
f s w max = V d c 4 L f ( H B )
The inversely proportional relation of the fswmax and HB for a particular system results in the varying switching frequency, corresponding to the +HB and −HB.

3.3. Finite State Model Predictive Control (FS-MPC)

FS-MPC utilizes the discrete-time model of the power converter as a predictive model which is a first step for the implementation of the FS-MPC algorithm. The predictive model provides the information about the future behavior of the predicted variables for each switching state in every sampling interval. The next step is to formulation of an optimization function (also called cost function) that is defined based on the error between the predicted variables and the desired reference. Cost function is computed in consequence of the predicted variables and, correspondingly, minimum cost function is selected in every sampling interval. Further, an optimum switching state is selected based on the minimum cost function in each sampling interval and applied to the power converter for switching operation.
A block diagram of FS-MPC for three-phase grid-connected VSI system is shown in Figure 6. The model-based implementation process depicted in Figure 7 of FS-MPC for the given system is described in following two subsections.

3.3.1. Predictive Model

The discrete-time state-space model of the gird-connected VSI system described in Equations (7) and (8) of Section 2, is used as a predictive model that computes the prediction of future variables based on αβ components of the measured parameters if(k), Vt(k), ig(k) and Vg(k) at the kth sampling interval. An expression for the prediction of the future values of the filter current ifp(k + 1) in the (k + 1)th sampling interval for each of the possible switching states of the VSI, can be reproduced using the first row elements of system matrix Ad and the first row elements of control matrix Bd in Equation (7) as
i f p ( k + 1 ) = A d 11 i f ( k ) + A d 12 V t ( k ) + A d 13 i g ( k ) + B d 11 V i ( k ) + B d 12 V g ( k )
where Ad11, Ad12, Ad13 are the first row elements of system matrix Ad. Bd11, Bd12 are the first row elements of control matrix Bd.

3.3.2. Cost Function

Based on the predicted filter current ifp(k+1), an expression of cost function J is formulated with respect to the generated reference current if*(k+1) considering real and imaginary components of filter currents as
J = | i f α * ( k + 1 ) i f α p ( k + 1 ) | + | i f β * ( k + 1 ) i f β p ( k + 1 ) |
where i* (k + 1), i* (k + 1) are the real, imaginary components of the reference current and ip(k + 1), ip(k + 1) are the real, imaginary components of the predicted filter current, respectively, at sampling instant k + 1.
The model-based design of the predictive model (Equation (18)) and the cost function(Equation (19)) are developed with the help of Xilinx blocksets available in the Simulink library, such as Constant, AddSub, Mult, Absolute, etc. A logic for the selection and application of optimum switching state is demonstrated extensively in [34].

4. HIL Simulation Methodology

HIL methodology is considered an intermediate level between the fully software-based simulation and the actual experimental system implementation for validation of controls. The verification through HIL is to reduce the possibility of system failure due to an inappropriate control system. Moreover, this functionality provides an atmosphere that can be used for wide testing conditions which are a tedious and risky task during the real experiment. Further, this functionality provides an atmosphere for wide testing conditions which are not possible during the real experiment. In FPGA based HIL co-simulation, the developed controller in hardware (FPGA) interacts with the virtual system designed in the software. In addition, it provides fast execution of complex simulations which generally take a long time for execution in software [33,34].
The process for FPGA HIL co-simulation is presented in Figure 8 with the model of the grid-connected system (VSI, filter, grid) developed in MATLAB-Simulink and the step-by-step design and modeling of controls performed in MATLAB-Simulink, digital simulator (XSG) and HIL. For a detailed description of this approach, the flowchart is presented in [34].

5. Results and Discussion

The three-phase grid-connected VSI system is developed considering the three mentioned control strategies modeled in XSG followed by MATLAB-Simulink. The grid-connected system is simulated through the HIL co-simulation approach using an FPGA board: ZedBoard Zynq evaluation and development FPGA kit.
The comparative analysis is performed among the chosen control techniques based on phase synchronization, dynamic response, sampling time (Ts) and THD in currents. The parameters considered for the grid connected VSI system are listed in Table 4 including PI controller parameters used in PI-SVM control. The optimum values of PI controller parameters (Kp and Ki) are obtained using Trial and Error Method.

5.1. Phase Synchronization

PLL is required to synchronize phases between grid voltage and grid current for feeding only active power to the grid. The performance of digitally designed PLL is required to be verified with the correct phase capturing capability. The performance of PLL is shown in Figure 9 considering phase tracking of grid phase ‘a’ with the PLL output sine signal (scaled 100 times for clear observation).
Further, the system performance is investigated only for active power feed to the grid from the inverter and the reference current is generated by taking zero reactive power component for that operation. Although, the grid current should be in the phase to the grid voltage for unity power factor operation, the direction taken by the grid current is opposite (away from the grid), as depicted in Figure 2. Hence, grid current will be 180⁰ out of phase with the grid voltage for only active power feed from the inverter side to the grid side according to the assumption. The FPGA HIL co-simulation results for grid voltage and current (phase ‘a’) are shown in Figure 10 for all three considered control techniques: PI-SVM, HCC, and FS-MPC. The grid current is scaled twice for clearer understanding.

5.2. Transient Performance

The analysis of controller performance at the transients describes the speed of the controller, that is, how fast the controller can tackle any sudden change and go to a steady state. In the case of PI-SVM, the dynamic performance depends on the linear (PI) controller parameters (modulator gain Kp, Ki) that gives a slightly sluggish response at transients. The transient response is observed considering a step change in the reference current from 15 A to 30 A at t = 0.11 s. The transient performance of PI-SVM, HCC and FS-MPC is analyzed based on the reference current tracking in Figure 11 considering αβ stationary reference frame with the step change as reference.

5.3. Effect of Sampling Time

The sampling time (Ts) is a crucial factor for the implementation of control techniques in digital platforms. Hence, the effect of a change in Ts is required to be observed for an in-depth analysis of considered control techniques. The system performance is analyzed considering different Ts.
In the case of PI-SVM, the FPGA HIL co-simulation results for filter and grid currents for Ts = 50, 25 µs are depicted in Figure 12a,b. The harmonic contents in both currents are also presented in Figure 13 considering different Ts. It is quite pertinent that the percentage THD is more for higher Ts; however, the shape of currents maintains sinusoidal behavior with three balanced phases. Moreover, for comparative analysis with other controls, a fixed switching frequency (fsw) is considered comparable to the average switching frequencies of HCC and FS-MPC.
The performance of HCC is illustrated based on the different Ts and change in hysteresis band (HB). The filter and grid currents are depicted in Figure 14a,b for HB = 2.5 A (Ts = 50 µs) and HB = 1.25 A (Ts = 25 µs), respectively. The value of HB is selected based on the limitation of maximum switching frequencies (fswmax) according to the relation given in equation (15) for the comparative analysis. The percentages THD in filter and grid currents are also presented in Figure 15 based on the variation in Ts (50, 25 µs) as well as HB (2.5, 1.25, 0.75). The results show that the performance of HCC depends on both Ts and HB. The performance can be improved by using lower Ts as well as HB. However, as HB decreases, the fswmax also increases which creates another issue related to the fswmax rating of power devices, and fswmax requirement increases the switching losses simultaneously.
In order to investigate the performance of FS-MPC and to compare with the other control techniques discussed above, HIL co-simulation is performed with different Ts (50, 25 µs). The results for filter and grid currents are depicted in Figure 16a,b for Ts = 50 µs and Ts = 25 µs, respectively, and the percentage THD in the filter and grid current is demonstrated in Figure 17 for corresponding sampling times. A significant decrement in THD is observed with lower Ts for both currents. However, in the case of FS-MPC, the fswmax is inversely proportional to Ts and it is considered as half of sampling frequency fs. Hence, the maximum switching frequency permissible to a particular power device is one of the concerns for the selection of Ts.
A comparative analysis considering the THD variation discussed above in grid current (ig) with various parameters based on the respective control technique is presented in Figure 18. The grid current THD shows a decreasing trend corresponding to decrease in Ts for all control techniques. The percentage THD is lowest in the case of FS-MPC as compared to other controls for the considered cases of Ts. However, even lower Ts is required for the similar decrement in THD based on the switching frequency considered for PI-SVM. Further, in the case of HCC, the decrement in THD is dependent on Ts, as well as HB.

6. Conclusions

In this paper, an insight into controller techniques PI-SVM, HCC, and FS-MPC considering the three-phase grid-connected VSI system is provided for digital implementation through FPGA HIL co-simulation. The controller analysis is performed based on the effect of sampling time and dynamic response: transient condition and current tracking. The sampling time influences the controller performance significantly for the constant switching frequency condition of PI-SVM, as well as the variable switching frequency condition of HCC and FS-MPC. The influence of sampling time is most dominant in the case of PI-SVM considering percentage THD in current and improved significantly for lower sampling times; however, the dynamic performance is poor due to the modulator, as compared to non-linear controllers.
On the other hand, HCC has inherent modulator characteristic and demonstrates better dynamic response compared to PI-SVM; however, the hysteresis band decides the maximum switching frequency and sampling time, which are the governing factors considering percentage THD in the current. The FS-MPC demonstrated better performance even at higher sampling time as compared to PI-SVM and HCC considering both the quality parameters: percentage THD and dynamic response. In addition, performance characteristics demonstrated at higher sampling time are comparable to the performance of PI-SVM at lower sampling time and performance of HCC at lower sampling time and smaller hysteresis band. In the case of FS-MPC, the sampling time directly governs the maximum switching frequency, therefore lower sampling time is more feasible for high-frequency switching devices.

Author Contributions

Conceptualization, V.K.S. and R.N.T.; methodology, V.K.S. and R.N.T.; software, V.K.S.; validation, V.K.S. and R.N.T.; formal analysis, V.K.S.; investigation, V.K.S. and R.N.T.; resources, R.N.T.; writing—original draft preparation, V.K.S.; writing—review and editing, V.K.S. and R.N.T.; funding acquisition, R.N.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data sharing not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Maza-Ortega, J.M.; Gomez-Exposito, A.; Barragan-Villarejo, M.; Romero-Ramos, E.; Marano-Marcolini, A. Voltage source converter-based topologies to further integrate renewable energy sources in distribution systems. IET Renew. Power Gener. 2012, 6, 435–445. [Google Scholar] [CrossRef]
  2. Blaabjerg, F.; Liserre, M.; Ma, K. Power electronics converters for wind turbine systems. IEEE Trans. Ind. Appl. 2012, 48, 708–719. [Google Scholar] [CrossRef] [Green Version]
  3. Blaabjerg, F.; Teodorescu, R.; Chen, Z.; Liserre, M. Overview of control and grid synchronization for distributed power generation. IEEE Trans. Ind. Electron. 2006, 53, 1398–1409. [Google Scholar] [CrossRef] [Green Version]
  4. Simoes, M.G.; Farret, F.A. Modeling Power Electronics and Interfacing Energy Conversion Systems; John Wiley & Sons: Hoboken, NJ, USA, 2016. [Google Scholar]
  5. Wai, R.J.; Lin, C.; Huang, Y.; Chang, Y. Design of High-Performance Stand-Alone and Grid-Connected Inverter for Distributed Generation Applications. IEEE Trans. Ind. Electron. 2013, 60, 1542–1555. [Google Scholar] [CrossRef]
  6. Twining, E.; Holmes, D.G. Grid Current Regulation of a Three-Phase Voltage Source Inverter with an LCL Input Filter. IEEE Trans. Power Electron. 2003, 18, 888–895. [Google Scholar] [CrossRef] [Green Version]
  7. Abu-Rub, H.; Malinowski, M.; Al-Haddad, K. Power Electronics for Renewable Energy Systems, Transportation, and Industrial Applications; John Wiley & Sons: Hoboken, NJ, USA, 2014. [Google Scholar]
  8. Kazmierkowski, M.P.; Krishnan, R.; Blaabjerg, F. Control in Power Electronics; Academic Press: New York, NY, USA, 2002. [Google Scholar]
  9. Baiju, M.R.; Gopakumar, K.; Somasekhar, V.T.; Mohapatra, K.K.; Umanand, L. A five-level inverter voltage space phasor generation for an open-end winding induction motor drives. IEEE Proc.-Electr. Power Appl. 2003, 150, 531–538. [Google Scholar] [CrossRef]
  10. Buso, S.; Malesani, L.; Mattavelli, P. Comparison of current control techniques for active filter applications. IEEE Trans. Ind. Electron. 1998, 45, 722–729. [Google Scholar] [CrossRef]
  11. Yang, S.; Lei, Q.; Peng, F.Z.; Qian, Z. Robust control scheme for grid interactive voltage source inverter. IEEE Trans. Ind. Electron. 2011, 158, 202–212. [Google Scholar] [CrossRef]
  12. Mohapatra, K.K.; Ouseph, P.P.; Gopakumar, K. A space-vector based PWM method using only the instantaneous amplitudes of reference phase voltages for three level inverters. EPE J. 2003, 13, 35–45. [Google Scholar]
  13. Yao, W.; Hu, H.; Lu, Z. Comparisons of space-vector modulation and carrier-based modulation of multilevel inverter. IEEE Trans. Ind. Electron. 2008, 23, 45–51. [Google Scholar] [CrossRef]
  14. Kazmierkowski, M.P.; Malesani, L. Current Control Techniques for Three-phase Voltage-Source PWM Converters: A Survey. IEEE Trans. Ind. Electron. 1998, 45, 691–703. [Google Scholar] [CrossRef]
  15. Ho, C.N.M.; Cheung, V.S.P.; Chung, H.S.H. Constant-frequency hysteresis current control of grid-connected VSI without bandwidth control. IEEE Trans. Power Electron. 2009, 24, 2484–2495. [Google Scholar] [CrossRef]
  16. Gupta, R.; Ghosh, A.; Joshi, A. Multi-band hysteresis modulation and switching characterization for sliding mode controlled cascaded multilevel Inverter. IEEE Trans. Ind. Electron. 2010, 57, 2344–2353. [Google Scholar] [CrossRef]
  17. Geyer, T. A comparison of control and modulation schemes for medium-voltage drives: Emerging predictive control concepts versus PWM-based schemes. IEEE Trans. Ind. Appl. 2011, 47, 1380–1389. [Google Scholar] [CrossRef]
  18. Rodríguez, J.; Cortes, P. Predictive Control of Power Converters and Electrical Drives, 1st ed.; Wiley-IEEE Press: New York, NY, USA, 2012. [Google Scholar]
  19. Rodríguez, J.; Pontt, J.; Silva, C.; Correa, P.; Lezana, P.; Cortés, P.; Ammann, U. Predictive current control of a voltage source inverter. IEEE Trans. Ind. Electron. 2007, 54, 495–503. [Google Scholar] [CrossRef]
  20. Rodríguez, J.; Kazmierkowski, M.P.; Espinoza, J.R.; Zanchetta, P.H.; Abu-Rub, H.; Young, H.A.; Rojas, C.A. State of the art of finite control set model predictive control in power electronics. IEEE Trans. Ind. Inform. 2013, 9, 1003–1016. [Google Scholar] [CrossRef]
  21. Kouro, S.; Perez, M.A.; Rodriguez, J.; Llor, A.M.; Young, H.A. Model Predictive Control: MPC’s Role in the Evolution of Power Electronics. IEEE Ind. Electron. Mag. 2014, 8, 16–31. [Google Scholar] [CrossRef]
  22. Vazquez, S.; Leon, J.I.; Franquelo, L.G.; Rodriguez, J.; Young, H.A.; Marquez, A.; Zanchetta, P. Model predictive control: A review of its applications in power electronics. IEEE Ind. Electron. Mag. 2015, 9, 8–21. [Google Scholar] [CrossRef]
  23. Young, H.A.; Perez, M.A.; Rodriguez, J.; Abu-Rub, H. Assessing finite-control-set model predictive control: A comparison with a linear current controller in two-level voltage source inverters. IEEE Ind. Electron. Mag. 2014, 8, 44–52. [Google Scholar] [CrossRef]
  24. Yaramasu, V.; Wu, B. Model predictive decoupled active and reactive power control for high-power grid-connected four-level diode-clamped inverters. IEEE Trans. Ind. Electron. 2014, 61, 3407–3416. [Google Scholar] [CrossRef]
  25. Calle-Prado, A.; Alepuz, S.; Bordonau, J.; Nicolas-Apruzzese, J.; Cortes, P.; Rodriguez, J. Model Predictive Current Control of Grid-Connected Neutral-Point-Clamped Converters to Meet Low-Voltage Ride-Through Requirements. IEEE Trans. Ind. Electron. 2015, 62, 1503–1514. [Google Scholar] [CrossRef]
  26. Panten, N.; Hoffmann, N.; Fuchs, F.W. Finite Control Set Model Predictive Current Control for Grid-Connected Voltage-Source Converters With LCL Filters: A Study Based on Different State Feedbacks. IEEE Trans. Power Electron. 2016, 31, 5189–5200. [Google Scholar] [CrossRef]
  27. Falkowski, P.; Sikorski, A. Finite Control Set Model Predictive Control for Grid-Connected AC–DC Converters with LCL Filter. IEEE Trans. Ind. Electron. 2018, 65, 2844–2852. [Google Scholar] [CrossRef]
  28. Ekstrom, R.; Leijon, M. FPGA Control Implementation of a Grid-Connected Current-Controlled Voltage-Source Inverter. J. Control. Sci. Eng. 2013, 2013, 713293. [Google Scholar] [CrossRef] [Green Version]
  29. Govindasamy, R.; Kalyanasundaram, R. Field programmable gate array implementation of space-vector pulse-width modulation technique for five-phase voltage source inverter. IET Power Electron. 2014, 7, 376–389. [Google Scholar]
  30. Luo, Y.; Awal, M.A.; Yu, W.; Husain, I. FPGA implementation for rapid prototyping of high performance voltage source inverters. CPSS Trans. Power Electron. Appl. 2021, 6, 320–331. [Google Scholar] [CrossRef]
  31. Asma, A.; Asma, B.R.; Mahmoud, H.; Adel, K. Efficient FPGA-based real-time implementation of an SVPWM algorithm for a delta inverter. IET Power Electron. 2018, 11, 1611–1619. [Google Scholar]
  32. Falkowski, P.; Sikorski, A. FPGA-based Model Predictive Controller for Direct Matrix Converter. IEEE Trans. Ind. Electron. 2016, 63, 4560–4570. [Google Scholar]
  33. Sanchez, P.M.; Machado, O.; Pena, E.J.B.; Rodriguez, F.J.; Meca, F.J. FPGA-Based Implementation of a Predictive Current Controller for Power Converters. IEEE Trans. Ind. Inform. 2013, 9, 1312–1321. [Google Scholar] [CrossRef]
  34. Lamo, P.; de Castro, A.; Sanchez, A.; Ruiz, G.A.; Azcondo, F.J.; Pigazo, A. Hardware-in-the-Loop and Digital Control Techniques Applied to Single-Phase PFC Converters. Electronics 2021, 10, 1563. [Google Scholar] [CrossRef]
  35. Singh, V.K.; Tripathi, R.N.; Hanamoto, T. HIL Co-simulation of Finite Set-Model Predictive Control using FPGA for Three Phase VSI System. Energies 2018, 11, 909. [Google Scholar] [CrossRef] [Green Version]
  36. Saralegui, R.; Sanchez, A.; de Castro, A. Modeling of Deadtime Events in Power Converters with Half-Bridge Modules for a Highly Accurate Hardware-in-the-Loop Fixed Point Implementation in FPGA. Appl. Sci. 2021, 11, 6490. [Google Scholar] [CrossRef]
Figure 1. Block diagram of three-phase grid-connected VSI system.
Figure 1. Block diagram of three-phase grid-connected VSI system.
Energies 16 00759 g001
Figure 2. Schematic diagram of three-phase grid-connected VSI system.
Figure 2. Schematic diagram of three-phase grid-connected VSI system.
Energies 16 00759 g002
Figure 3. Block diagram of PI-SVM for grid-connected VSI system.
Figure 3. Block diagram of PI-SVM for grid-connected VSI system.
Energies 16 00759 g003
Figure 4. Block diagram for computational steps for SVM.
Figure 4. Block diagram for computational steps for SVM.
Energies 16 00759 g004
Figure 5. Block diagram of HCC for grid connected VSI system.
Figure 5. Block diagram of HCC for grid connected VSI system.
Energies 16 00759 g005
Figure 6. Block diagram of FS-MPC for grid-connected VSI system.
Figure 6. Block diagram of FS-MPC for grid-connected VSI system.
Energies 16 00759 g006
Figure 7. Block diagram for FS-MPC implementation [35].
Figure 7. Block diagram for FS-MPC implementation [35].
Energies 16 00759 g007
Figure 8. Block diagram representing steps for FPGA HIL co-simulation.
Figure 8. Block diagram representing steps for FPGA HIL co-simulation.
Energies 16 00759 g008
Figure 9. Phase capturing of PLL.
Figure 9. Phase capturing of PLL.
Energies 16 00759 g009
Figure 10. Grid voltage and current (phase ‘a’) for PI-SVM, HCC, and FS-MPC.
Figure 10. Grid voltage and current (phase ‘a’) for PI-SVM, HCC, and FS-MPC.
Energies 16 00759 g010
Figure 11. Reference current tracking with a step change from 15 to 30 A at t = 0.11 s for PI-SVM, HCC, and FS-MPC.
Figure 11. Reference current tracking with a step change from 15 to 30 A at t = 0.11 s for PI-SVM, HCC, and FS-MPC.
Energies 16 00759 g011
Figure 12. Filter current and grid current with a step change using PI-SVM for (a) Ts = 50 µs, (b) Ts = 25 µs.
Figure 12. Filter current and grid current with a step change using PI-SVM for (a) Ts = 50 µs, (b) Ts = 25 µs.
Energies 16 00759 g012
Figure 13. Percentage THD in filter and grid current with PI-SVM for Ts = 50, 25 µs.
Figure 13. Percentage THD in filter and grid current with PI-SVM for Ts = 50, 25 µs.
Energies 16 00759 g013
Figure 14. Filter current and grid current with a step change using HCC for (a) Ts = 50 µs (HB = 2.5 A), (b) Ts = 25 µs (HB = 1.25 A).
Figure 14. Filter current and grid current with a step change using HCC for (a) Ts = 50 µs (HB = 2.5 A), (b) Ts = 25 µs (HB = 1.25 A).
Energies 16 00759 g014
Figure 15. Percentage THD in filter and grid current with HCC for Ts = 50, 25 µs and HB = 2.5, 1.25, 0.75 A.
Figure 15. Percentage THD in filter and grid current with HCC for Ts = 50, 25 µs and HB = 2.5, 1.25, 0.75 A.
Energies 16 00759 g015
Figure 16. Filter current and grid current with a step change using FS-MPC for (a) Ts = 50 µs, (b) Ts = 25 µs.
Figure 16. Filter current and grid current with a step change using FS-MPC for (a) Ts = 50 µs, (b) Ts = 25 µs.
Energies 16 00759 g016
Figure 17. Percentage THD in filter and grid current with FS-MPC for Ts = 50, 25 µs.
Figure 17. Percentage THD in filter and grid current with FS-MPC for Ts = 50, 25 µs.
Energies 16 00759 g017
Figure 18. Comparison diagram for percentage THD in grid current.
Figure 18. Comparison diagram for percentage THD in grid current.
Energies 16 00759 g018
Table 1. Advantages and Disadvantages of Control Schemes.
Table 1. Advantages and Disadvantages of Control Schemes.
AdvantagesDisadvantages
PI-SVM
  • ☑ Design with Known Bandwidth
  • ☑ Simple to Extend to Different Topologies due to Modulator
  • ☑ Constant Switching Frequency
  • ☑ Decreases Harmonic Content
  • ☑ Mature Scheme (Used in Commercial Drives)
  • ⊠ Not Easy to Adapt for Special Requirements (Constraints, Nonlinearities, etc.)
  • ⊠ Slower Dynamics due to requirement of Modulator
  • ⊠ Usually Requires Coordinate Transformation
HCC
  • ☑ Nonlinear Controller, Very Robust
  • ☑ No Modulator Required
  • ☑ Very Fast Dynamic Performance
  • ☑ Simple Design
  • ☑ Well Established and Mature Scheme
  • ⊠ Digital Implementation Requires High Sample Rate
  • ⊠ Variable Switching Frequency
  • ⊠ Creates Resonance Problems
  • ⊠ Difficulty in Extending for Different Converter Topologies
MPC
  • ☑ Nonlinear Controller
  • ☑ Modulator not Required
  • ☑ Can Include Nonlinearities and Constraints
  • ☑ Intuitive Design Based on Prediction Model and Cost Function
  • ⊠ Variable Switching Frequency
  • ⊠ High Computational Requirements
  • ⊠ High Dependency on Model Parameters
  • ⊠ Complex Design of Weighting Factors
Table 2. Switching Signals for Inverter Switches.
Table 2. Switching Signals for Inverter Switches.
Leg a, SaLeg b, SbLeg c, Sc
S1 ON, 1S2 ON, 1S3 ON, 1
S4 OFF, 0S5 OFF, 0S6 OFF, 0
S1 OFF, 0S2 OFF, 0S3 OFF, 0
S4 ON, 1S5 ON, 1S6 ON, 1
Table 3. Voltage Vectors and Switching States.
Table 3. Voltage Vectors and Switching States.
Voltage Vectors
Vi
Switching States
Sa Sb Sc
αβ Components of Voltage Vectors
VV
V00 0 000
V11 0 02Vdc/30
V20 1 0Vdc/3√3Vdc/3
V31 1 0Vdc/3√3Vdc/3
V40 0 1Vdc/3−√3Vdc/3
V51 0 1Vdc/3−√3Vdc/3
V60 1 1−2Vdc/30
V71 1 100
Table 4. System Parameters.
Table 4. System Parameters.
ParameterValueDescription
Vdc400 VSupply dc
rf0.1 ΩFilter loss resistance
Lf4 mHFilter inductance
Cf20 μFFilter capacitance
rg0.1 ΩGrid resistance
Lg1 μHGrid inductance
Vg110 V, 50 HzGrid phase voltage
Ts50, 25, 10 μsSampling time
Kp0.08Proportional gain
Ki200Integral gain
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Singh, V.K.; Tripathi, R.N. An FPGA Hardware-in-the-Loop Approach for Comprehensive Analysis and Development of Grid-Connected VSI System. Energies 2023, 16, 759. https://doi.org/10.3390/en16020759

AMA Style

Singh VK, Tripathi RN. An FPGA Hardware-in-the-Loop Approach for Comprehensive Analysis and Development of Grid-Connected VSI System. Energies. 2023; 16(2):759. https://doi.org/10.3390/en16020759

Chicago/Turabian Style

Singh, Vijay Kumar, and Ravi Nath Tripathi. 2023. "An FPGA Hardware-in-the-Loop Approach for Comprehensive Analysis and Development of Grid-Connected VSI System" Energies 16, no. 2: 759. https://doi.org/10.3390/en16020759

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop