1 Introduction

AC-side current control is still considered one of the most problems in power electronics such as the grid-connected single-phase ac/dc converters. The major concern is how to guarantee a high quality ac-side current with low harmonic distortion. Predictive control has been widely used in power electronics applications for its simple and intuitive concept to deal with such a problem [1, 2], in particular for current control in single-phase converters [3], inverters [4, 5], and other topologies [6,7,8]. For this issue, in this work, a predictive current control is applied for a grid-connected single-phase Active Front-End (AFE) rectifier with a load connected to the dc-bus. The predictive control is characterized by using a system model for predicting the future movements of the controlled variables until a predefined time horizon, and the selection of the optimal actuations according to an optimization criterion [9]. It has been classified into different control techniques as proposed in [10]. Deadbeat Predictive (DP) and continuous control-set Model Predictive Control (MPC) schemes are two well-known techniques in power converters application. The essence of DP and continuous control-set MPC schemes is similar while the kind of implementation is different [3, 11]. In the case of the aforementioned MPC, a cost function is defined as a criterion and the optimal modulation voltage vector is selected when the minimization of the cost function is achieved. When the choice of the voltage vector is made in order to make the error equal to zero at the end of the sample period, the predictive controller is often called deadbeat controller. This is the key definition of the DP control.

Regarding the dc-side of the ac/dc converter, a capacitive dc-bus is generally used to supply the required dc voltage level and satisfy the dc power demand. In order to properly control the dc-bus voltage, two related major issues have to be dealt with. The first one is related to the transient fluctuations of the dc-bus voltage resulting from a sudden change in the drawn active power. The second issue is related to the double-line frequency (2ω) ripples in the dc-bus voltage that are inherent in single-phase ac systems [12]. These ripples can affect the control performance since they can cause the addition of a third harmonic component h3 in the grid current during steady state operation. There are different control methods in literature to design the dc-bus voltage controllers [13] for single-phase systems that generally take into consideration only one of the two listed constraints while counseling the other [12, 14]. In this work, the dc-bus voltage is controlled using a standard PI controller that is designed so that the control objectives can be achieved. Regarding the inner-current loop, the DP-based control associated with a PWM modulator is applied where the switching frequency is constant. The optimal actuation is obtained here by forcing the predicted current to reach its reference at the end of the sample period (i.e. the controlled variable error is equal to zero) [11, 16]. Moreover, the dynamic of the current control loop is accurately defined in order to prevent interactions with the dc-bus voltage control loop. The ac/dc converter control algorithm has been implemented and experimentally validated through a prototyping platform. The latter consists of a grid-connected single-phase active front-end rectifier where a resistive load is connected in the dc-side. The paper is organized as follows: In Sect. 2 the DP-based current control is described. The section is subdivided into two parts. In the first one, the continuous-time and discreet-time models of the AFE rectifier are given. The second part is reserved for the evaluation of the current control loop dynamic. Section 3 presents the dc-bus voltage control and is subdivided into two subsections. The first one is dedicated to the modeling and analysis of the dc-bus voltage control loop. The second subsection is dedicated to the dc-bus voltage controller design. In Sect. 4 the block diagram of the developed prototyping platform is described and the obtained experimental results are presented and discussed. Finally, Sects. 5 and 6 draw discussions and conclusions of this work.

2 Model-based predictive current control

2.1 Deadbeat predictive control (DP) principle

The single-phase Active Front-End (AFE) rectifier is modeled as shown in Fig. 1. In this figure, Vg is the grid voltage, ig is the grid current, Vconv is the voltage applied by the converter in the ac side, Vdc is the dc-bus voltage, idc is the output current from the converter, iC is the capacitor current and iL is the load current. We have added an \(L\) filter with an internal resistor \(R\) to interface between the grid and the converter.

Fig. 1
figure 1

Architecture of the grid-connected single-phase AFE rectifier

The grid current dynamic is given by Eq. (1)

$$\frac{{di_{g} (t)}}{dt} = \frac{1}{L}\left( {V_{g} (t) - V_{conv} (t)} \right) - \frac{1}{{T_{i} }}i_{g} (t)$$
(1)

where Ti = L/R is the electrical time constant.

In order to track the desired reference current, the DP controller, depicted in Fig. 2, uses the system predictive model to compute, during each sampling period Ts, the optimum modulation voltage vector enabling in turns to set the controlled variable error to zero. The DP controller adopts PWM stage through which the obtained voltage is applied to generate the control signals for the AFE rectifier. This leads to have a constant switching frequency such as TPWM= Ts. So, the grid current can be predicted using the discrete-time model given by (2), which is obtained by applying to Eq. (1) the forward Euler approximation method

Fig. 2
figure 2

Deadbeat predictive current control of an AFE rectifier

$$i_{g} \left[ {k + 1} \right] = \left( {1 - \frac{{T_{PWM} }}{{T_{i} }}} \right)i_{g} \left[ k \right] + \frac{{T_{PWM} }}{L}\left( {V_{g} \left[ k \right] - V_{conv} \left[ k \right]} \right)$$
(2)

where ig[k + 1] is the predicted current at the (k + 1)th sampling period Ts, and TPWM is the PWM period such as TPWM= Ts.

In order to eliminate the current error at the (k + 1)th sampling period successfully, ig[k + 1] is defined as its reference value ig[k]*

$$i_{g} \left[ {k + 1} \right] = i_{g}^{*} \left[ k \right]$$
(3)

Therefore, by inversing (2) and substituting (3) in (2), we can obtain

$$V_{conv}^{opt} \left[ k \right] = \frac{L}{{T_{PWM} }}\left[ {\left( {1 - \frac{{T_{PWM} }}{{T_{i} }}} \right)i_{g} \left[ k \right] - i_{g}^{*} \left[ k \right]} \right] + V_{g} \left[ k \right]$$
(4)

where V optconv [k] is the optimum average voltage to be applied by the rectifier so that the grid current reaches its reference value at the end of the kth sampling period.

2.2 Evaluation of the inner control loop dynamic

In order to prevent dynamic interactions between the two AFE rectifier control loops, the bandwidth of the outer dc-bus voltage control loop should be much lower than that of the inner-current control loop (i.e. the outer control loop dynamic must be at least 10 times lower than the inner control loop dynamic). In our case, the time constant τi of the inner-current control loop is unknown. For this reason, we propose in this paragraph a theoretical method to calculate the dynamic of the predictive current control. For that, we will consider the worst case corresponding to the lowest current loop dynamic. The considered approach is explained in the following.

Based on (4) and considering a step jump of the load current from 0 (ig[k] = 0) to its maximal value (i *g [k] = I maxgm ), the optimum voltage to be applied by the power converter is calculated by

$$V_{conv}^{opt} \left[ k \right] = V_{g} \left[ k \right] - \frac{L}{{T_{PWM} }}I_{{_{gm} }}^{\hbox{max} }$$
(5)

Since the dc-bus voltage reference V *dc is equal to 200 V and supposing that the dc-bus voltage Vdc is accurately controlled, Vconv will vary within ± V *dc . Therefore, by substituting the numerical values of parameters (reported in Table 1) in (5), the optimum voltage V optconv to be applied will vary within [− 760 V, + 760 V] boundaries.

Table 1 Parameters of the studied system

To calculate the lowest inner loop dynamic, the lowest value of the voltage Vconv is applied. Then, in the case where Vg[k] = − 170 V, V optconv [k] will be equal to − 760 V which cannot be applied by the converter since the recommended lower boundary of Vconv is equal to − 200 V. Accordingly, V optconv [k] will be set to − 200 V instead of − 760 V. In such a case, the controlled grid current ig will take a time t ir (greater than the PWM period) to reach its reference value i *g . According to (5), the time spent by the measured grid current to reach its reference is equal to

$$t_{r}^{i} = \frac{L}{{V_{g} \left[ k \right] - V_{conv} \left[ k \right]}}I_{{_{gm} }}^{\hbox{max} }$$
(6)

By substituting the numerical values of parameters reported in Table 1, we obtain: t ir = 0.196 ms = 1.96TPWM. This is the largest period that can be taken by the controlled current to reach its reference value. Therefore, if the system is approximated to a first order system the time constant of the current control loop τi will be equal to 49 µs and, consequently, the time constant τV for the dc-bus voltage control loop must be at least 10 times greater than τi. So, to eliminate dynamic interactions between the control loops, the time constant of the dc-bus voltage control loop should be greater than 0.49 ms.

3 DC-bus voltage control

The purpose of this section is to describe the dc-bus voltage control loop. For that, this section was divided into two sub-sections; the first one is dedicated to the modeling and analysis of the dc-bus voltage control loop, while the second sub-section is dedicated to the controller design.

3.1 Modeling and analysis of dc-bus voltage control loop

The dc-bus current idc is equal to

$$i_{dc} = i_{C} + i_{L} = C\frac{{dV_{dc} }}{dt} + i_{L}$$
(7)

The active Pac and reactive Qac powers in the ac-side of the power converter (AFE rectifier) are expressed as follows

$$P_{ac} = \frac{1}{2}V_{gm} I_{gm} \cos (\psi )$$
(8)
$$Q_{ac} = \frac{1}{2}V_{gm} I_{gm} \sin (\psi )$$
(9)

where Vgm is the grid voltage magnitude, Igm is the grid current magnitude, and ψ is the phase shift between the grid voltage and grid current.

Generally, the grid connected ac/dc converters operate with unity power factor (cos(ψ) = 1) and, consequently, Pac is equal to 0.5VgmIgm and Qac is equal to zero. The dc-side active power Pdc is the sum of: (i) the active power PL consumed by the dc-side connected load, and (ii) the active power PC required to maintain the average value V avgdc of the dc-bus voltage equal to its reference value V *dc . The expressions of the powers Pdc, PC and PL are given by (10), (11) and (12), respectively

$$P_{dc} = V_{dc}^{avg} i_{dc}^{avg} = P_{L} + P_{C}$$
(10)
$$P_{C} = V_{dc}^{avg} i_{C}^{avg}$$
(11)
$$P_{L} = V_{dc}^{avg} i_{L}^{avg}$$
(12)

where V avgdc , i avgdc , i avgC and i avgL are the average values of the dc-bus voltage Vdc and the currents idc, iC and iL, respectively.

By neglecting the power losses in both the power converter switches and the L-filter internal resistor, the dc-side active power Pdc is approximately equal to the ac-side active power Pac. Therefore, we can deduce the relationship between the average value of the dc-bus current and the grid current magnitude as it is expressed below

$$i_{dc}^{avg} \approx 0.5\frac{{V_{gm} }}{{V_{dc}^{avg} }}I_{gm} = G.I_{gm} {\text{where }}G = 0.5\frac{{V_{gm} }}{{V_{dc}^{avg} }}$$
(13)

Figure 3a shows the block diagram of the AFE rectifier control. Supposing that the time constant of the dc-bus voltage control loop is very low compared to that of the current control loop, the simplified average model (but reasonably accurate model) of the voltage control loop is given by Fig. 3b. The PI-based dc-bus voltage controller computes the magnitude of the grid current reference I *gm , which is multiplied by the normalized signal i ng (a per unit sinusoidal signal synchronized with the grid voltage and computed by the Grid Synchronization (GS) function) to generate the grid current reference i *g .

Fig. 3
figure 3

a Block diagram of the AFE rectifier control, b block diagram of the average model of the dc-bus voltage control

As it can be seen in Fig. 3b, the dc-bus voltage control loop has two inputs: the dc-bus voltage reference V *dc and the load current iL. In the following, we will only consider the load current input, which can be considered as an external disturbance. As for the voltage reference V *dc it is supposed constant. For that case, the transfer function from the i avgL input to the V avgdc output is

$$\left. {\frac{{V_{dc}^{avg} }}{{i_{L}^{avg} }}} \right|_{{V_{dc}^{*} = 0}} = \frac{{ - \frac{1}{C}s}}{{s^{2} + \frac{{GK_{p} }}{C}s + \frac{{GK_{i} }}{C}}}$$
(14)

By identifying the characteristic equation of (14) to its canonical form (s2 + 2ξωns + ω 2n  = 0), where ωn is the natural frequency of oscillation and ξ is the damping ratio, the PI controller gains can be computed as follows

$$K_{p} = \left( {\frac{2C}{G}} \right)\text{ }\omega_{n} \xi \text{ }{\text{and}}\text{ }K_{i} = \left( {\frac{C}{G}} \right)\omega_{n}^{2}$$
(15)

According to the analysis of the dc-bus voltage fluctuations and the grid current harmonics performed in [15]: (1) the maximum dc-bus voltage fluctuation δV maxdc due to a step jump of the load current iL equal to I maxL is defined by (16), and (2) the magnitude of the third harmonic component of the grid current is expressed by (17).

$$\begin{aligned} &\delta V_{dc}^{\hbox{max} } = - \frac{{I_{L}^{\hbox{max} } e^{{ - \frac{1}{X}tg^{ - 1} \left( X \right)}} }}{{CX\omega_{n} \xi }}\sin \left( {tg^{ - 1} \left( X \right)} \right) \hfill \\ &\quad {\text{where }}X = \frac{{\sqrt {1 - \xi^{2} } }}{\xi } \hfill \\ \end{aligned}$$
(16)
$$h_{3} \left( \% \right) = \left[ {0.5\left( {\frac{{\omega_{n} }}{2\omega }} \right)^{2} \sqrt {\left( {\frac{4\omega \xi }{{\omega_{n} }}} \right)^{2} + 1} } \right] \times 100$$
(17)

3.2 DC-bus voltage controller design

Regarding the choice of the ξ value, it is set to 0.7 in order to simplify the study. From (14) and as demonstrated in [16], the response time of the dc-bus voltage control loop is approximated to

$$t_{r}^{V} = \frac{\pi }{{\omega_{n} \sqrt {1 - \xi^{2} } }}$$
(18)

In order to calculate the maximum value of ωn, t Vr must be greater than 10t ir (in other words τV ≥10 τi) [17]. So, according to (18), the maximum value of ωn should be equal ω maxn  = 2244.44 rad/s. For the selection of the Kp and Ki gains of the PI controller, the following constraints must be verified

  1. (i)

    The ωn value must be lower than ω maxn in order to prevent dynamic interactions between the two cascaded control loops;

  2. (ii)

    The dc-bus voltage fluctuation δV maxdc must be lower than 15%V *dc under transient operation;

  3. (iii)

    The magnitude of third harmonic component h3(%) must be lower than 5% during the steady state operation in order to comply with standards.

To satisfy the above mentioned constrains, the ωn value was selected equal to 34 rad/s. Therefore and according to (15), the Kp and Ki gains are respectively equal to 0.12 and 2.99. It can be easily verified that the three aforementioned criterions are verified:

  • The selected ωn value is lower than ω maxn .

  • According to (16), the dc-bus voltage fluctuations should be about 15%V *dc .

  • According to (17), the third harmonic component of the grid current is lower than 5%.

According to Table 1, the maximum value Pmax of active power consumed by the AFE rectifier is equal to Pmax = 500 W. For simulation tests, the system parameters reported in Table 1 are used. A 80Ω resistive load is suddenly connected to the dc-bus at t = 1 s. As a result, the response of the current load iL can be approximated to a step jump from 0A to V *dc /80 = 200/80 = 2.5A. In other words, a step jump from 0 W to 500 W is applied for the consumed active power. According to Eq. (16) and for the used PI controller gain (Kp= 0.12, Ki= 2.99) tuned for ωn= 34 rad/s and ξ = 0.7, the fluctuation δV maxdc of the dc-bus voltage is approximately equal to 15%V *dc  = 30 V. As regards the third harmonic component h3 and according to Eq. (17), it is approximately equal to 3.7%. Figure 4 presents the obtained simulation results. As shown in this figure and as expected from the analytical study, after the 80Ω resistive load connection (at t = 1 s), the dc-bus voltage fluctuation is approximately equal to 30 V = 15%V *dc and the obtained grid current THD is equal to 3.77%.

Fig. 4
figure 4

Results obtained for PI controller gains tuned for ξ = 0.7 and ωn= 34 rad/s a dc-bus voltage Vdc b load current iL c, d grid current ig and grid voltage Vg e grid current FFT analysis

4 Physical implementation

Figure 5 describes the used prototyping platform, which is composed of three main parts. The first part is the power part that includes:

Fig. 5
figure 5

Block diagram of the developed prototyping platform

  • An auto-transformer used to fix the magnitude Vgm of the grid voltage in the ac-side to √2.120 V = 170 V.

  • A 10mH inductor with an internal resistor equal to 0.5Ω.

  • A half-bridge power converter.

  • A capacitor for the dc-bus with a capacity equal to 1100µF.

  • A programmable resistive load set to 80Ω.

The second part is the control part. This part uses the STM32F4-Discovery digital solution for the implementation of the designed control algorithm. The STM32F4-Discovery board is based on a 168 MHz ARM Cortex-M4 microcontroller that includes several peripherals dedicated to the control of power converters such as PWM peripherals, ADC peripherals, Timers peripherals, etc. Notice that, the digital control is coded in C language and is implemented using the ARM Keil µVision IDE, which is a powerful and easy-to-use environment for embedded software development. For real time implementation, the used sampling frequency is equal to 10 kHz, which is also equal to the PWM frequency. Notice that the execution time of the control algorithm is around 23 µs.

Finally the third part is an interface part that includes:

  • Sensors boards used for the analog measurement of the grid voltage Vg, the grid current ig and the dc-bus voltage Vdc.

  • A driver board used to drive, through the PWM switching signals, the power semiconductor switches of the power converter.

The same system parameters and the same test scenario are used for experimental tests. Figure 6 presents the obtained experimental results. These results show that after the sudden connection of a 80Ω resistive load, the dc-bus voltage fluctuation is also approximately equal to 15%V *dc . The obtained grid current THD during steady state operation is around 4.8%. It can be noted that experimental results are very close to simulation results and that they comply with the analytical study.

Fig. 6
figure 6

Experimental results obtained for PI controller gains tuned for ωn= 34 rad/s and ξ = 0.7 a dc-bus voltage Vdc (100 V/div), grid current ig (14.4 A/div), and load current iL (1.8 A/div) waveforms b Grid voltage Vg (200 V/div), grid current ig (14.4 A/div), and grid voltage phase θ

5 Discussion

In the literature, most of the presented dc-bus voltage controllers for single-phase AFE rectifiers consider one or at least two main control objectives. Generally, dc-bus voltage controllers aim to reduce the dc-bus voltage fluctuations following a sudden load connection (or disconnection) to (or from) the dc-bus. Most of them do not take into account the effect of the double line frequency (2f) ripples of the measured Vdc on the grid current harmonics. The problem of the double line frequency ripples is generally treated separately. For example, some research works have designed controllers that cancelled the Vdc ripples using notch filters tuned at the double line frequency [14, 18,19,20,21]. Nonetheless, even if this method efficiently removes these ripples in the measured dc-bus voltage, it leads to a slower transient response; this is due to the introduced delay by the added digital filters. Another solution is to associate PI controller with the feedforward of the dc load (or source) current [22, 23]. This solution enables to efficiently mitigate the bus voltage fluctuations. However, it presents a major drawback consisting of increasing the dc-/ac-sides coupling of the single-phase grid-connected converters. Other research works achieved the elimination of the double line frequency dc-bus voltage ripples by deriving them to another storage element through an additional active power circuit connected to the dc-bus [12, 24,25,26,27]. Although the efficiency of this solution, it will increase the system cost and will reduce its reliability. Compared to the aforementioned related research works, the novelty of the proposed AFE controller can be summarized to the following points:

  • To prevent interaction between the internal current control loop and the external dc-bus voltage control loop, the lowest dynamic response of the internal control loop is accurately computed and the external one is designed so that its fastest dynamic response remains very low compared to that of the internal control loop.

  • The following control objectives are simultaneously considered for the design of the PI-based dc-bus voltage controller: i) The dynamic of the dc-bus voltage control loop must be very low compared to that of the current control loop; ii) The Vdc-fluctuations, caused by instantaneous and high level changes of the active power, must be minimized and iii) The grid current harmonics mainly caused by the double-line frequency ripples of the measured Vdc must be mitigated.

The obtained simulation and experimental results comply with the analytical study. Also, they confirm the effectiveness of the designed controller for single-phase AFE rectifiers.

6 Conclusion

This paper presented a control strategy of a grid-connected single-phase AFE rectifier connected to a load in the dc-side. A standard PI controller has been used in the outer dc-bus voltage control loop for generating the suitable magnitude of the active grid current reference. The latter is multiplied by the normalized signal to generate the active grid current reference, which is the input signal of the inner-current control loop. This control loop is based on a deadbeat controller.

The PI controller has been designed while taking into consideration the following constraints: (1) the bandwidth of the outer dc voltage control loop should be much lower than that of the inner-current control loop; (2) the transient fluctuations of the dc-bus voltage must be reduced following a step jump of load current; and (3) the grid current THD must be mitigated during the steady state operation. The effectiveness of the designed controller was illustrated through several simulation and experimental results.