Keywords

1 Introduction

Nowadays, electrical energy is indispensable for the execution of many tasks. With their increasing relevance, power electronics converters have become the focus of research to improve their performance and applicability. Power electronics converters can be grouped into four categories: DC-DC, DC-AC, AC-DC and AC-AC [1]. Within each category there are several topologies aimed at the most varied applications related to the production, transport and distribution of electrical energy (transformers, power generation systems, power grid interfaces for alternative energy resources such as solar photovoltaic panels, wind turbines and energy storage systems) [2, 3], industry (motor drive systems) [4], household activities (air conditioners, computers, electric vehicle chargers) [5] among others.

Regarding the DC-AC power converters, these can be classified according to their power supply, being divided into two large groups: voltage source inverter (VSI) and current source inverter (CSI) [6].

The VSI are the most used. Through the control algorithm it is possible to adjust the output amplitude and frequency. The VSI are used in various applications such as AC motor adjustable speed drives or interfacing energy production systems from renewable sources with the power grid [7].

Although it is widely used, there is a gap in the literature in explaining and comparing control algorithms for VSI. The schematic in Fig. 1 (a) shows the voltage-controlled VSI used in this study where the converter generates the sinusoidal voltage system responsible for feeding a set of loads islanded from the power grid. The Fig. 1 (b) shows the block diagram of the current-controlled VSI assembly used in this work, where it is responsible for injecting energy into the power grid.

Fig. 1.
figure 1

Block diagram of the VSI applications using: (a) voltage-control; (b) current-control.

In this paper, three control algorithms for VSI are described and implemented: Proportional Integral (PI), Proportional Resonant (PR) and Model Predictive (MP). The objective of the paper is to compare the performance of these three algorithms in current-control and voltage-control modes.

This document is organized into five sections, as follows: Sect. 1 provides an introduction to the subject; Sect. 2 describes the VSI topology and its applications; in Sect. 3 the three control algorithms used, the PI, PR and MP, are described; in Sect. 4 the simulation results for the VSI controlled by voltage and current are presented; and, finally, in Sect. 5, the main conclusions and some ideas for future work are presented.

2 VSI Converter Topologies

The diagram of a VSI with three legs and four wires is represented in Fig. 2. This VSI requires a DC-Link division to generate a midpoint. The main advantage of this topology is the fact that this converter can control the voltage of each phase in relation to the neutral point. With its connection to the system neutral, a return path for the neutral current is created, which is an asset in unbalanced systems or for compensating power quality (PQ) problems. For its correct operation, it is necessary to ensure that the voltages VDC1 and VDC2 have similar values.

Fig. 2.
figure 2

VSI with 3 legs and 4 wires with a split capacitor in the DC-Link.

Since this type of converter is bidirectional (it can transfer energy from the DC side to the AC side or from the AC side to the DC side), its use is quite wide. In [8] is a study of the application of a 3-leg 4-wire VSI with split capacitor in the charging of an electric vehicle was presented.

In [9] the author used a 3 leg and 3 wire VSI as a shunt active filter in order to compensate the current harmonics in a three-phase power grid system. The author was able to significantly reduce the Total Harmonic Distortion (THD%) of the currents on the power grid side.

This converter is widely used in renewable energy applications. In [10] is used to inject the energy produced by an array of PV modules into the power grid. In [11] the author used a VSI topology for a wind power system based on a six-phase permanent magnet synchronous generator with fixed switching frequency.

Another application of the VSI is in motor control. In [12] a VSI based on Silicon Carbide Metal Oxide Semiconductor Field Effect Transistor (SiC MOSFET) was developed in order to feed a squirrel cage induction motor controlled using a constant V/f (it is an induction motor control method which ensures the output voltage proportional with the frequency) control achieving good results under different motor operating conditions.

3 Voltage and Current Control Techniques

In this topic the different control algorithms implemented for the comparative study are presented and analyzed. For each one of them, a block diagram of its constitution or the mathematical equation for its implementation is presented.

3.1 Proportional Integral (PI) Control

The PI voltage control technique is based on the calculation of the error, verror, between the reference voltage, vref, and the converter output voltage, vout. The error resulting from this operation is multiplied by a proportional gain, KP, and an integral gain, KI. The resulting variable, vcontrol, is used to synthesize the command signals of the semiconductors to be controlled. In Fig. 3 the block diagram of the PI voltage control algorithm is represented. For the current control, the diagram is similar, replacing the voltage signals with their respective current signals.

Fig. 3.
figure 3

Block diagram of the PI voltage-control algorithm.

In [13] a modified PI control was applied to a brushless DC motor (BLDC) with the objective of contributing to the application of this type of motor in electric vehicles.

3.2 Proportional Resonant (PR) Control

In Fig. 4 the diagram of the PR controller is represented. This control algorithm uses the error, verror, between the reference signal, vref, and the synthesized signal, vout, as inputs. The resulting value verror is multiplied by a resonant gain, KS, that will be the input from a second order generalized integrator (SOGI) [14]. Its output is added to the error multiplied by a proportional gain, KP, resulting in the signal that will be the input to the sinusoidal pulse width modulation (SPWM) technique, vcontrol. The ω0 constant represents the fundamental frequency of the signal to be synthesized. For 50 Hz applications, this value is approximately 314 rad/s (\(2 \pi f\)). For the current control, the diagram is similar, replacing the voltage signals with their respective current signals.

Fig. 4.
figure 4

Block diagram of the PR control algorithm.

In the literature there are some applications of this algorithm. For example, in [15] this algorithm was applied to a shunt active power filter used in unbalanced systems. The results prove its good operation for compensation of harmonics and neutral currents. In [16] PR control was applied to an inverter in order to inject the energy produced by a photovoltaic module into the power grid.

3.3 Model Predictive (MP) Control

The MP control technique is based on the electrical model of the system to predict the future behavior of the variables to be controlled, taking advantage of the finite number of possible switching states for a static energy converter (such as the VSI) [17]. In the literature there are several predictive controls [18,19,20].

This control algorithm has the advantage of having no gains in its closed loop, depending only on the constituent elements of the system and the quality of the electrical model used. This allows the control system to have a good response to the unpredictability of the loads that can be connected to the system [17].

In this work the control algorithm described below was used. The explanation is oriented towards a single-phase VSI since, for the case of a three-phase converter, it is only necessary to replicate the control for the remaining phases of the system. In Fig. 5 is the electrical representation of a grid connected single-phase VSI.

Fig. 5.
figure 5

Electrical diagram of a single-phase inverter connected to the power grid.

Considering the model presented in Fig. 5 and applying Kirchhoff’s voltage laws, it is possible to deduce the Eq. (1). The converter output voltage (vconv) results from the sum of the voltage at the inductor terminals (vL) and the power grid voltage (vgrid). This model assumes that the inductor internal resistance is very small and can be neglected.

$$ v_{conv} = v_{grid} + v_L $$
(1)

Using an equation characteristic of the voltage in an inductor, vL, it is possible to obtain the Eq. (2).

$$ v_{conv} = v_{grid} + L\frac{{di_{conv} \left( t \right)}}{dt} $$
(2)

This control is applied in closed-loop. The error current (ierror) is calculated from the subtraction of the converter output current (iconv) and the reference current (iref), as represented in (3).

$$ i_{error} = i_{ref} - i_{conv} $$
(3)

By updating the Eq. (2) of the electrical model of the system with the Eq. (3) of the reference current, it is possible to obtain the Eq. (4)

$$ v_{conv} = v_{grid} - L\frac{{di_{error} \left( t \right)}}{dt} + L\frac{{di_{ref} \left( t \right)}}{dt} $$
(4)

To cancel the current error (ierror), the controller must allow the converter to generate a voltage that, when applied to the inductor, causes a current with equal amplitude but in phase opposition to the calculated in the Eq. (3). So, it is possible to obtain the Eq. (5).

$$ v_{Conv} = v_{grid} + L\frac{{di_{error} \left( t \right)}}{dt} + L\frac{{di_{ref} \left( t \right)}}{dt} $$
(5)

Microcontrollers cannot work in the continuous domain. They have a minimum time between samples which makes them discrete domain devices. Converting Eq. (5) to the discrete domain, it was obtained Eq. (6), where Ta is the acquisition period.

$$ v_{conv} \left[ k \right] = v_{grid} \left[ k \right] + \frac{L}{T_a }\left( {2 i_{ref} \left[ k \right] - i_{ref} \left[ {k - 1} \right] - i_{conv} \left[ k \right]} \right) $$
(6)

The same principle and equations can be applicate to the voltage-controlled MP by replacing the reference and produced currents by the reference and produced voltages.

4 Simulation Results

This chapter presents the simulations carried out in this work. These are divided into two subchapters: voltage-controlled VSI and current-controlled VSI. In the simulations performed for this paper, equal parameters were used to make a fair comparison between algorithms. Table 1 shows the general parameters used in these simulations.

Table 1. General parameters of the simulations.

4.1 Voltage Controlled VSI

In the presented simulation, the VSI is controlled by voltage. A group of loads has been added, as shown in Fig. 6. A configuration in star of 3 resistive loads of 50 Ω each was used. Regarding the nonlinear load, it was used a three-phase full-bridge diode rectifier with a RC load. The capacitor used was 500 µF and the resistor has the value of 200 Ω. An LC filter was placed at the output of the converter, where the inductor is 5 mH, the capacitor is 30 µF and the resistor is 2.2 Ω.

Fig. 6.
figure 6

Electrical diagram of the circuit used for the voltage-controlled VSI study.

During this study are used different voltage control algorithms applied to the VSI. The objective is to see the different behaviors of the different controls with linear loads and nonlinear loads connected to the system. The control algorithms used in this simulation are the PI, PR and MP. The simulation conditions are the same for the three voltage control algorithm under study. In this simulation, the linear load is connected at 0.2 s and at 0.25 s the nonlinear load is added until the end of the simulation time. For the nonlinear load is used a pre-charge circuit to charge the capacitor in such a way as not to cause disturbances in the system at its connection.

PI Voltage Control Algorithm

The first control algorithm implemented was PI. The simulation starts with the linear load connected to the electrical system and after 0.25 s a nonlinear load is added. From that time the system is powering the linear load and the nonlinear load. With this simulation, it is intended to verify the differences in the behavior of the voltage control algorithm with the two different loads and seeing the behavior of the control when the load addiction occurs. In Fig. 7 are presented the results of this simulation with the linear and nonlinear loads. These results are obtained using a \(K_p\) of 130 and a \(K_i\) of 5.

Fig. 7.
figure 7

VSI output voltages and load currents with PI voltage control algorithm.

Analyzing the obtained results, it is possible to conclude that the PI control algorithm works correctly not only with a linear load but also with a nonlinear load. The voltage THD increased a little bit with a nonlinear load comparing with the results obtained with the linear load. In Table 2 is presented the THD% voltage results during this simulation.

Table 2. PI voltage control algorithm THD% comparison using different loads.

PR Voltage Control Algorithm

The second control algorithm implemented was PR. The simulation starts with the linear load connected to the system and after 0.25 s the load addiction occurs, becoming the linear load and the nonlinear load connected to the system. In Fig. 8 are presented the results of this simulation with the linear and nonlinear loads. These results are obtained using a \(K_p\) of 200 and a \(K_s\) of 1000.

Fig. 8.
figure 8

VSI output voltages and load currents with PR voltage control algorithm.

Analyzing the obtained results, it is possible to conclude that the PR voltage control algorithm works correctly with a linear load as well as with a nonlinear load on the system. The THD% voltage results are presented in Table 3.

Table 3. PR voltage control THD% comparison using different loads.

The THD% voltage increased when the nonlinear load is connected to the system comparing with the results with a linear load. Although, the THD% results are very satisfactory for both loads. Comparing this control to the results obtained for the PI control, they are very similar, but the THD% results are a little higher for the PI control.

MP Voltage Control Algorithm

The last voltage control algorithm implemented was the MP. As for the PI and for PR voltage control algorithms, the simulation for testing MP voltage control algorithms use a linear load and a nonlinear load. The loads have the same values as used for the other control under study. Also, at 0.25 s it is added the nonlinear load to the linear load previously used. In Fig. 9 are presented the results of this simulation with the linear and nonlinear loads using the MP voltage control algorithm for VSI.

Fig. 9.
figure 9

VSI output voltages and load currents with MP voltage control algorithm.

Analyzing the results it was possible to validate the MP voltage control algorithm for the VSI to produce three-phase sinusoidal voltages. In terms of THD% results, in Table 4, is possible to conclude the increasing values with linear load to nonlinear load. Comparing these THD% voltage results with the values obtained for the other two controls, the MP voltage control algorithm presents the higher values. Although, the THD% results are very satisfactory.

Table 4. MP voltage control THD% comparison using different loads.

4.2 Current Controlled VSI

For the simulation of current control algorithms, the electrical schematic is presented in Fig. 10. The component values are the same as those used in the previous section. In this, the VSI is responsible for injecting energy into a three-phase 400 V/50 Hz power grid from its DC-Link (in this case using DC energy sources).

The simulation conditions are the same for all the three algorithms under study. A perturbation was caused (the reference current increases to double) to verify the response of each of the current control algorithms. Variation of current in a system is quite common as for example as the resulting from the solar radiation or wind speed change in a renewable energy application.

Fig. 10.
figure 10

Electrical diagram of the circuit that integrates the current-controlled VSI.

PI Current Control Algorithm

In Fig. 11 are represented the results obtained with the application of the PI algorithm to current control. As can be seen, the PI current control algorithm causes a current spike when the references change. This spike is approximately 17 A (considering peak values) and it is evidenced in phase B because it is the phase in which the current takes the highest value at the time of the references change. These results are obtained using a \(K_p\) of 100 and a \(K_i\) of 15.

Fig. 11.
figure 11

Power grid voltages and VSI currents with PI current control algorithm.

Analyzing the results, it is possible to validate the PI current control algorithm for the VSI to inject energy into the power grid. In terms of THD% results, in Table 5, is possible to conclude the decreasing values with the increase of the current reference because the impact of switching noise is less with higher amplitude.

Table 5. PI current control THD% comparison using different reference amplitudes.

PR Current Control Algorithm

The simulation results for the PR current control algorithm are shown in Fig. 12. Like the previous algorithm, it occurs a current spike in the references change. In this case, this phenomenon has an amplitude of 9 A. These results are obtained using a \(K_p\) of 120 and a \(K_s\) of 800.

Fig. 12.
figure 12

Power grid voltages and VSI currents with PR current control algorithm.

This control produced similar results to the PI current control algorithm. The THD% results are similar, with the same behavior as in the previous control, as it can be seen in Table 6.

Table 6. PR current control THD% comparison using different reference amplitudes.

MP Current Control Algorithm

The Fig. 13 shows the simulation results obtained by applying the MP current control algorithm. This algorithm does not cause current spikes during the references change transient, resulting in a smoother behavior.

Fig. 13.
figure 13

Power grid voltages and VSI currents with MP current control algorithm.

In terms of results, the MP control algorithm has the most advantages over previous current control algorithms. It has a lower THD, being able to synthesize currents with less than 1% THD% with a 50 A reference, as shown in Table 7.

The PI and PR voltage control algorithms present a problem. If the gains are static, variations in the reference can cause current peaks. The predictive algorithm does not have this disadvantage. However, the application of this algorithm is more complicated than the others since, in a real system, the components that constitute a converter are not ideals, making obtaining an accurate electrical model of the system a difficult process.

Table 7. MP current control THD% comparison using different reference amplitudes.

4.3 Comparative Analyses

Table 8 shows the comparison between the three control algorithms in voltage control. In terms of harmonic distortion, the algorithms are quite similar, with the PR showing slightly better results. Regarding the difficulty of implementation, the PI and PR algorithms are similar, with the MP being slightly more complex due to obtaining the system model.

Table 8. Comparison between the results of control algorithms in voltage control.

Table 9 shows the comparison of the results of the application of the three algorithms in current control. The implementation difficulty is like the in the voltage control. In terms of THD% the MP control gives slightly better results. Furthermore, this algorithm does not cause current spikes, unlike PI and PR. The PI is the one with the largest current spike of 17 A.

Table 9. Comparison between the results of control algorithms in current control.

5 Conclusions

This paper compared the performance of three control algorithms for voltage source inverter (VSI). The Proportional Integral (PI), Proportional Resonant (PR) and the Model Predictive (MP) control algorithms were applied for voltage control and current control. As demonstrated in the simulations, all algorithms show good results in terms of Total Harmonic Distortion (THD%), and as expected, the THD% decreases with increasing current amplitude.

In the voltage controlled, the PR control algorithm gives slightly better results in terms of THD%. The implementation difficulty is similar for PI and PR control, the MP being slightly more difficult to implement.

In the current control, the PI and PR algorithms show very similar results, and since they have static gains, they cause an overcurrent transient in the current references change because the error is too high at this instant. The MP algorithm shows better results with respect to the transient. It also has a lower THD% in the current control. Nevertheless, it should be noted that this algorithm only works well with a good model of the electrical system, which, depending on the case, can be difficult to obtain. As future work it is planned to validate experimentally the three control algorithms to have a better perception of their behavior in real application in comparison with the simulation results.