1. Introduction
The adoption of microgrids is increasing globally, driven by their capacity to integrate decentralized renewable energy generation and operate autonomously from the conventional AC grid. Microgrids have the capability to incorporate distributed renewable generation sources like solar panels or wind turbines, along with community energy storage devices typically in the form of battery banks, enabling the microgrid disconnection from the national grid. Moreover, microgrids are designed to autonomously address local power issues, thereby ensuring reliable power supply [
1,
2,
3].
Electricity consumption is experiencing ongoing global growth, and it is projected to persist in the coming years due to industrial and human activities, the increasing adoption of electric vehicles (EVs), and the drive toward decarbonizing the energy sector. Consequently, there has been a significant push to adopt distributed energy sources, with a particular emphasis on those derived from renewable energies [
4,
5].
Microgrids can operate only in AC or in DC or they may contain both AC and DC subsystems (hybrid). Power converters play a crucial role in connecting AC sources to DC microgrids or DC sources to DC microgrids. In the case of hybrid microgrids, converters may also be employed to facilitate the interconnection of storage systems, which may include batteries or fuel cells.
With the inclusion of DC power sources like PV panels, fuel cells, and EV batteries capable of supplying power to the grid through Vehicle-to-Grid (V2G) technology, as well as the existence of DC loads, the concept of hybrid microgrids combining AC and DC components has gained significant attention. As AC power networks have matured considerably, hybrid AC/DC microgrids that accommodate both AC and DC loads and sources are now seen as the most promising systems for efficient distribution and transportation of electrical energy [
6].
The growing adoption of EVs in recent years suggests the potential utilization of their storage batteries for power/frequency control in microgrids. EV batteries, equipped with bi-directional power converters and controllers, can be viewed as mobile storage units capable of fast-charging other EVs with immediate high-power energy requirements. Additionally, they can enhance the performance of specific micro-regions within the microgrid [
7,
8].
Electronic power conversion within microgrids often encompasses power in the order of multiple megawatts, with voltages reaching kilovolt levels. In this context, multilevel converters emerge as a suitable solution for microgrids.
Besides energy conversion, the main role of converters integrated with microgrids is to uphold the quality of electrical power and to regulate the DC voltage, aiding photovoltaic (PV) panels to follow the maximum power point tracking (MPPT) voltage. When operating as a source on the AC side, converters work toward minimizing harmonic distortion. Conversely, when connected to a load on the DC side, they are responsible for regulating the level of DC voltage. In most unbalanced systems, voltage compensation is typically achieved through the utilization of active power filters [
9,
10,
11].
The regulation of power/frequency and voltage/frequency in microgrids with distributed inverter-based generators is commonly achieved through the implementation of the droop control method. This method generally performs effectively in reactive power regulation [
12,
13,
14,
15] and can be of benefit if converter level controllers are fast and stable, ensuring low distortion AC waveforms and DC tracking capability.
Multiple topologies of multilevel converters exist, including the neutral point clamped (NPC) [
16], flying-capacitors [
17], and cascaded multicell with isolated DC sources [
18]. Several modulation and linear control strategies have been devised for multilevel converters, such as sinusoidal pulse width modulation (SPWM) and space vector modulation (SVM), coupled to linear proportional integral (PI) controllers.
Coping with the nonlinearity and unpredictable disturbances in multilevel converters presents notable challenges in their control. To address these challenges effectively, the implementation of nonlinear controllers capable of handling unknown disturbances such as sliding mode and predictive control [
19,
20,
21,
22,
23,
24,
25,
26] emerged as first solutions, despite sliding mode chattering and power quality requirements needing high processing speeds for predictive control [
26].
Multilevel converters enable operation at voltages and power levels of demanding microgrids and are also capable of power quality enhancement in microgrids [
26,
27,
28,
29,
30] despite needing fast digital processors. To mitigate this issue, the backstepping technique stands out as a powerful tool for developing controllers that are both robust and stable [
30,
31,
32,
33,
34,
35]. By employing virtual control quantities and designing controllers for intermediate variables, backstepping enables a systematic approach, where the focus initially lies on the output and then progressively moves recursively towards the control input.
Backstepping controllers have several advantages due to their direct relationship with converter nonlinear dynamics and their ability to identify the control laws and the essential quantities to be measured or estimated. Furthermore, the backstepping approach is based on positive definite functions that have been chosen to ensure system stability and robustness [
35,
36,
37,
38,
39,
40,
41,
42,
43]. Recently, the authors of [
44] presented a method to combine backstepping and integral sliding mode to control grid-tied parallel connected inverters. In comparison to predictive controllers, backstepping requires less computational power [
36,
44] and maintains constant switching frequencies, all while preserving the response speed and robustness exhibited by predictive controllers [
21,
26,
45,
46]. Furthermore, predictive controllers for NPC converters necessitate extremely fast processors, whereas traditionally designed backstepping controllers [
36] may necessitate extremely high switching rates, overloading PWM modulators (more than one commutation per switching period, leading to increased non-constant switching frequencies).
To address the aforementioned issues, this paper proposes two modified backstepping control algorithms to give the bidirectional NPC converter bridging the DC and AC parts of a microgrid the capabilities of regulating the DC voltage, the AC currents, and the reactive power, while balancing the NPC internal bipolar voltages. The obtained modified averaged backstepping controller and the AC and DC separated dynamics backstepping controller both regulate the converter DC voltage tightly, control the AC currents ensuring very low total harmonic distortion (THD), and maintain the bipolar voltage balance of the NPC internal capacitors, using an industry-proven fixed frequency carrier-based SPWM technique.
This paper presents in
Section 2 the
dq coordinate model of the multilevel converter interfacing the AC grid to the DC microgrid. Two modified backstepping controllers are derived from the NPC converter dynamics model to control the DC voltage, AC current, and balance the capacitor voltages by regulating the SPWM carrier offset. The first modified backstepping controller assumes the control action takes the average value in steady state for the next backstep. The second modification adds the assumption of decoupled (independent) AC and DC dynamics.
Section 3 outlines results obtained from simulation using MATLAB/Simulink and from a reduced-scale laboratory prototype. Results cover steady-state, transient performance, THD, DC voltage tracking errors, and the comparison to standard linear control based on SPWM coupled to PI controllers.
Section 4 summarizes the main findings and conclusions.
2. Microgrid NPC Converter Model and Controllers
The multilevel NPC converter is connected to a DC grid, with loads and DC renewable sources, while interfacing the AC microgrid, as depicted in
Figure 1.
The NPC converter currents , , and are AC three-phase currents, flowing into the AC microgrid, with voltages , , and , through coupling inductors L, with loss resistors, R. The NPC converter DC part has two capacitors, and , with voltages and , respectively, which should be kept approximately constant at /2. The DC grid voltage is and the NPC DC current flows into the DC grid.
2.1. Microgrid-Connected NPC Converter Model
Supposing ideal semiconductors, the dynamics of the NPC converter can be written considering that each NPC converter
k leg (
k, ∈ {1, 2, 3}) has four switches. Assuming that when switch
is closed, its state is written as
= 1, otherwise when switch
is open
= 0, while
= 1
and
= 1
. Each
k leg outputs three voltages (states), defined by a variable
, dependent on the leg switches states.
The averaged switching model of the NPC converter can be obtained, assuming
=
=
and applying Kirchhoff laws, Clark–Concordia, and Park transforms to
Figure 1 circuit equations, while assuming the microgrid has nearly balanced DC voltages
≈
and DC currents, together with nil zero sequence AC currents. State variables chosen for the NPC dynamic model in Equation (2) are the balanced AC currents in
dq coordinates,
and
, while the DC voltages are represented by
, as the sum of the two
,
capacitor voltages (
=
+
), and by
as the difference or unbalance between the two capacitor voltages
=
:
where
and
are, respectively, the direct and quadrature components of the Park transform of the converter AC currents
,
, and
,
ω is the angular frequency of the microgrid. The Park transform components of the averaged values
Γ1,
Γ2, and
Γ3, during one switching period of the semiconductor states,
, and
are
,
, and
, while
,
are the direct and quadrature voltages of balanced AC voltages of the microgrid. The quantities
,
(given in Equations (3) and (4), respectively) are received (
Appendix A) starting from the switching period averaged values
Γ1,
Γ2, and
Γ3, and considering their small signal responses to a
, offset added to the SPWM carrier, as
Γ1 +
,
Γ2 +
, and
Γ3 +
, while applying the Clark–Concordia and Park transforms. The
offset is the control input to balance the two capacitor voltages (to track
= 0).
As seen in Equation (2), the dynamics of and are characterized by cross-coupling and non-linearity. However, they can be controlled individually by and , respectively. As usually is small compared to , the DC voltage depends mainly on . Therefore, must be used to control , while may control the power factor (or the reactive power). The capacitor voltage balance error control input in Equation (2) has negative gains, /C and /C regarding the and currents, respectively.
2.2. Block Diagram of the Microgrid Backstepping Controllers
Due to battery storage or renewable resources, power transfer must be bidirectional between DC and AC microgrid sides. Therefore, backstepping DC voltage controllers that ensure AC sinusoidal line currents at a given power factor (
Figure 2) are designed. They generate the modulation waveforms of a 3-phase 3-level SPWM modulator using two triangular-shaped carriers with adjustable offset
.
In the block diagram of the microgrid converter, the DC voltage is measured and compared to the reference value . The application of the backstepping method to the voltage dynamics in Equation (2) results in the controller, which calculates the virtual value of the current, . The AC currents are measured and the Park transform is applied. These currents in dq, , and are compared with their magnitudes, and =/, where is the reactive power value. The application of the backstepping control method results in the command quantities of the converter legs, and , which are then converted into quantities in 123, , , and . The backstepping control method is also applied to the voltage error of the capacitors to calculate the offset , which is added to the command quantities, , , and , to balance the voltage of the capacitors.
2.3. Design of Microgrid Backstepping Controllers
2.3.1. Modified Backstepping Control of the Microgrid DC Voltage
To control the bidirectional DC/AC microgrid NPC converter interface, the backstepping approach starts from the DC side total voltage
=
+
. Define the
voltage tracking error,
, relative to its reference value
, as:
A feedback controlled variable
x is asymptotically stable if there is a Lyapunov positive definite candidate function
V(
x) obeying (1)
V(
x = 0) = 0; (2)
V(
x ≠ 0) > 0; (3)
V(|
x|→∞)→∞; (4)
. Hence, the system stability condition is
[
33]. Therefore, consider the
variable and select a positive definite function,
, as follows:
where the
function obeys the previous conditions. For stability, the time derivative of
must be negative. This can be accomplished if
is enforced to equal
, where
is a positive definite constant:
Replace
from Equation (5) in the term
d/
dt of Equation (7) and use
d/
dt from Equation (2), to receive the control action that enforces the dynamics in Equation (7), called virtual control action
in Equation (8). The direct current
is supposed to track the virtual control action
value to enforce stability.
The virtual current
depends on the available control input
(
≠ 0). To enforce the current
to track the virtual control value
, backstep recursively by defining the tracking error
of the
current as:
Consider a composite positive definite function,
, as:
where the time derivative of
must be negative to ensure stability, a condition that can be written as:
where
,
are positive definite constants. From Equation (8), the term
⁄
of Equation (11) would contain the time derivative of the control input
as
⁄
=
(
⁄
)(
⁄
). This means the control input
would be found integrating its time derivative [
36]. This time derivative contains high frequency harmonics which strongly affect the THD of the 3-phase currents [
37]. Therefore, knowing that in three-phase systems,
dq variables are nearly constant in each operating regime, this paper proposes a modified averaged backstepping method. It supposes a conservative converter (
R ≈ 0) and neglecting the inductor voltage drop at the fundamental frequency
≪ (
/2 −
), from
⁄
in Equation (2), the
average value (
) defined in steady state (
⁄
= 0), is obtained by solving the resulting identity,
for
, giving
/
. This value replaces
in Equation (8) to give a virtual control current
not disturbed by high frequency harmonics:
Replacing in Equation (11)
and
from Equations (5) and (9), respectively, and using the
current dynamics
⁄
and the
voltage dynamics
⁄
, both from Equation (2), after some simplifications, the control component,
, for the averaged backstepping is obtained (
Appendix B):
The term
/
C is often negligible. Nevertheless, it can be estimated using the previous value of
and
. The control law
will be applied to a SPWM modulator trough the inverse Park transform (
Figure 2).
2.3.2. Control of the Reactive Power Injected in the AC Microgrid
The control of the reactive power can be performed indirectly by regulating the quadrature current component
. Define the tracking error
:
where
is the
current reference value related to the reactive power
(
=
/
,
= 0 if unity power factor is sought), choosing a positive definite function,
, given in Equation (15).
Computing the time derivative of
, and forcing it to be negative, using a positive definite constant
, the stability criterion is guaranteed:
Replacing
in Equation (16) using Equation (14) and the
current dynamics
⁄
from Equation (2), the control component,
, is obtained:
where the control action
will be fed to the aforementioned inverse Park transform and applied to the SPWM modulator (
Figure 2).
2.3.3. Balancing the DC Capacitor ,
Voltages
The multilevel converter DC side capacitor voltages
,
may drift from the midpoint value due to converter asymmetries in the semiconductors, voltage vector selection, or usage of the DC microgrid in a bipolar connection. To zero the unbalance value
=
, a control input was created by adding the offset
, in the triangular SPWM modulator (
Figure 2). The resulting
⁄
dynamics (2) contains negative gains, regarding the
and
currents.
Select a positive definite function,
, for the unbalance
:
To ensure stability, enforce the time derivative of
to be negative, using a positive definite constant
:
Then, replace in Equation (19) the
⁄
term using Equation (2), where
equals its reference value
, to receive the control law (
Appendix C) for this offset (
Figure 2):
2.4. DC Microgrid Voltage Backstepping Control Assuming Separated AC and DC Dynamics
The DC microgrid voltage
should be as constant as possible, while the AC current components
and
represent nearly sinusoidal AC currents with 50 Hz frequency. Therefore, inductive and capacitive components should be designed to allow the AC current with much faster dynamics regarding DC voltage dynamics. Consequently, in the AC current control, the much slower DC voltage dynamics can be neglected. This assumption enables simplifying the control law
. Therefore, the separated dynamics backstepping process is similar to
Section 2.3.1, except that the positive definite function,
(Equation (10)), used for the current
to track the virtual control value
, is replaced by
that considers only the tracking error
:
For stability, the time derivative of
is made negative using a positive definite constant
:
Replacing in Equation (22) the
by Equation (9) and the
dynamics from
⁄
in Equation (2), the separated dynamics control law is
:
where comparing
in Equation (23) to
in Equation (13), the only difference is the absence in Equation (23) of the DC voltage error,
, because the slow DC dynamics do not interfere with the faster AC current dynamics.
3. Microgrid Simulation and Experimental Results
This section presents the simulation and experimental results of the AC DC microgrid interface. The simulations were conducted implementing the microgrid model in the Power System Toolbox of MATLAB/Simulink, together with the controllers derived through the averaged and the separated dynamics backstepping methods. A low-power laboratory prototype of the multilevel NPC converter (
Figure 1) was built to evaluate the performance of a scaled-down microgrid controlled by backstepping controllers. Digital processors are used to implement the averaged dynamics (
from Equation (12),
from Equation (13)) and the separated dynamics (
from Equation (12),
from Equation (23)) backstepping controllers, together with the offset triangular carrier modulators at a sampling time
ts of 28 μs. This sampling time is suitable for 50 to 60 Hz AC grid frequency
f and NPC converters switching around 4 kHz compatible with MW AC microgrids.
Simulations and experiments were conducted in both steady-state and transient conditions, with distributed loads or power sources on the DC side. A comparison between the simulation and experimental performance of the modified backstepping controllers is performed to assess the performance of the averaged and the separated dynamics controllers. The parameters and corresponding values used in the simulations and experimental results are shown in
Table 1.
3.1. DC/AC Microgrid Steady-State Simulation and Experimental Results
Steady-state microgrid results are shown under constant DC voltage and constant load.
Figure 3a shows the DC voltage simulation value (120 V) of the microgrid using either the averaged or the separated dynamics backstepping control methods. The simulation results of both backstepping DC voltage controllers are virtually identical, showing that, in steady-state conditions, both controllers effectively regulate the DC voltage with measured steady-state stationary
error around 0.5 V (<0.5%). This supports the validity of the separated dynamics assumption. In the laboratory prototype, the results of DC voltage regulation in
Figure 4a show the same value (120 V) as the simulation results, although some high frequency noise is apparent.
Experimental results of balancing the DC capacitor
,
voltages are shown in
Figure 4b, indicating that the backstepping algorithm that controls the SPWM carrier offset effectively balances the capacitor voltages (DC error below 0.5%). Similar simulation results were obtained (
Figure 3b) using both the averaged and the separated backstepping methods.
Simulation results in
Figure 5 show the AC currents obtained using either the averaged dynamics (
from Equation (12),
from Equation (13)) or the separated dynamics (
from Equation (12),
from Equation (23)) backstepping controllers. Offsets were added to each current to clearly show every single AC current. Currents are sinusoidal, balanced, with very low THD (simulations 1.6% (MATLAB/Simulink), and experimental 1.7% (Fluke 435)). These results further confirm the effectiveness of the averaged dynamics and the validity of the separated dynamics assumption. Experimental tests confirm the values in the simulations (
Figure 5b). The experimental AC current,
, THD was obtained from the class A power quality analyzer Fluke 435 to a csv file, whose harmonics are represented in
Figure 6b.
Figure 6a shows experimental results of AC current
i1 and AC voltage
, in steady state, with DC passive loads and renewable energy injection, with near unity power factor (
= 0). Voltage
and current
are in phase meaning DC power is being injected in the AC microgrid (
Figure 1) at unity power factor.
These steady-state results indicate that the averaged backstepping control is able to control the DC voltage, to balance the capacitor voltages
,
, to enforce almost sinusoidal AC currents with THD < 1.7%. The modified backstepping-controlled converter is bidirectional, as now, power is flowing into the AC grid (see
Figure 1). Simulation results are similar to the experimental results. The separated dynamics backstepping controller presents also similar results, indicating AC and DC dynamics separation.
3.2. DC/AC Microgrid Simulation and Experimental Results in Transient Operation
The microgrid DC voltage applied to loads or distributed power sources may require regulation to suit the load needs, the renewable distributed power sources, or microgrid stability requirements. Results of transient microgrid operation are displayed for DC voltage varying set-points and for DC current variations.
When the DC reference voltage
steps up from the lower operating value (100 V) to the upper operating value (120 V) at time
t = 0.5 s, the simulated DC voltage
transient behavior, using the averaged backstepping controller, is displayed in
Figure 7a. The response time is found to be nearly 15 ms. Using the separate dynamics controller, the results are nearly the same, with the absence in Equation (23) of the DC voltage error,
, having very little effect. For performance comparison purposes,
Figure 7b shows the results of standard linear control based on SPWM, coupled to PI controllers, which has a response time of approximately 45 ms and some overshoot.
Figure 8a shows the simulated AC current behavior regarding the above
step. The AC currents increase while the phase is conserved (rectifier operation) and present a rise time in the 1 ms range, in response to the increased power in the DC load. In the transient operation, the results do not show visible differences either using the averaged or the separated dynamics backstepping methods. This shows that the backstepping controllers can be designed using a fast inner loop current controller and a slow external loop DC voltage controller, which provides the values of the reference currents for the inner loop, as it is usually conducted when using linear PI controllers. The results for standard linear current control based on SPWM, coupled to PI controllers, as shown in
Figure 8b, show that at the time (0.5 s) of the reference voltage variation
, the controller response is slower regarding the averaged backstepping controller, leading to the
voltage slower response.
Simulation and experimental tests were conducted to evaluate the performance of the modified backstepping controllers to balance the DC capacitor
,
voltages in transient operation.
Figure 9b shows that the capacitor voltages are balanced, when the reference DC voltage was changed from 120 V to 100 V. The DC voltage
transition time is approximately 75 ms. The fall time is longer than the rise time (
Figure 7 and
Figure 9), as the AC currents in
Figure 9a show a fast phase reversal, transferring the DC capacitor’s excess energy to the AC microgrid (inverter operation), correlated to the DC voltage decreasing ratio. As the
voltage nears the new reference value, the currents rise again and change phase to transfer power to the DC grid (rectifier operation).
The experimental results of
Figure 10 illustrate the response of separated dynamics backstepping controllers when DC loads change, leading to disturbances in the
current. The
voltage and the AC currents,
,
, and
, are shown subjected to a step change in the
current from 1.2 A to 2.4 A. The steep DC current increase causes a slight decrease (sag) of the
voltage (
Figure 10a) followed by a slow increase in
, as the separated dynamics backstepping controller tries to track the input reference.
Figure 10b illustrates the NPC converter behavior when subjected to a negative step disturbance in the
current. The negative step current change increases momentarily the
voltage (small swell), while the separated dynamics backstepping controller slowly tracks its reference. Results obtained using the averaged backstepping controller did not show improved performance, despite the presence of the DC voltage error,
, in Equation (13).
The averaged backstepping controller and the separated dynamics backstepping controller show an adequate regulation of DC voltage, capacitor voltage balance, AC current’s THD, and reactive power control at = 0.
The microgrid DC voltage regulation can aid the power transfer of microgrid renewable energy sources, such as PV panels, energy storage batteries, and fuel cells, as both modified backstepping controllers are able to track the DC microgrid best reference voltage.
4. Conclusions
This paper presented a new method for obtaining backstepping controllers for multilevel NPC converters interconnecting AC to DC microgrids. The averaged backstepping controller is free from high-frequency harmonics, outputs very low total harmonic distortion (THD < 1.7%) AC currents, and very small steady-state DC errors (<0.5%). It also balances the two DC capacitor voltages, regulates the power factor, and shows bidirectional power transfer capability. The separated dynamics backstepping controller has virtually the same performance while needing less system information, as the DC voltage tracking error is not needed to generate the SPWM modulating waveform. The separated dynamics backstepping controller performance shows that, for NPC converters, backstepping controllers can be designed using a fast inner loop current controller and a slow external loop DC voltage controller.
To serve as the basis for the design of the backstepping controllers, a suitable NPC dynamic model was devised considering, as state variables, the AC currents in dq coordinates, the DC total voltage, and the unbalance voltage between the two capacitors.
The simulation and experimental results confirm that the AC currents exhibit sinusoidal behavior and track their reference values; the power factor is controllable using the q current component, while the total DC capacitor voltage is controlled using the d current component and tracks the reference value. To balance the DC capacitor voltages, an offset was added to the SPWM carriers. The converter is stable and bidirectional, able to regulate the DC voltage and convert energy from storage systems or DC renewable energy sources. The modified backstepping control algorithms are stable and cope with non-modeled disturbances, such as the DC current and typical component tolerances, which confirms the validity of using the control quantity steady-state averaged value for the backstepping design. The AC current’s fast response and the DC voltage response times also indicate the validity of the assumption of using separated AC and DC dynamics.