1. Introduction
A DC microgrid can be defined as a power system formed by renewable energy sources (RESs), energy storage devices (ESDs), loads connected to a DC bus (see
Figure 1), and a control system that manages the energy resources to supply the loads [
1]. The RESs use the local resources to generate the power required by the loads. The power produced by some RESs can be imposed by the control system (e.g., fuel cells and hydro); while the power produced by other sources depends on the environmental conditions, like photovoltaic (PV) generators and wind turbines. Moreover, the loads vary over time since they depend on the specific application. Therefore, in a microgrid, it is common to have power unbalances between the RES and the loads.
Such power unbalances are compensated by regulating the DC bus voltage using one (or more) ESD and a charging/discharging system [
1]. On the one hand, when the load exceeds the generation, the DC bus voltage tends to decrease; then, the ESD is discharged to balance generation and load, as consequence, the DC bus voltage increases and returns to its reference value. On the other hand, the DC bus voltage tends to increase when the generation exceeds the load; in that case, the ESD is charged to guarantee the power balance and return the DC bus voltage to its nominal value. Finally, when generation and load are equal, the ESD does not supply or absorb power (stand-by). Moreover, it is worth noting that the DC bus voltage regulation is important in a microgrid to provide safe operating conditions for the loads since most of the RESs work as current sources assuming a regulated DC bus voltage.
An ESD charging/discharging system is typically formed by a storage device, a bidirectional power converter, and a control system. The DC bus voltage (
) is usually greater than the battery voltage (
); hence, bidirectional step-up converters like Boost [
2,
3,
4] or Buck-Boost [
5,
6] are commonly used. Considering that these converters have limited voltage gains, a typical value of
is 12 V [
7,
8,
9], and the values of
in microgrid applications vary in wide range, but are significantly greater than
(e.g., 48 V [
10,
11,
12], 200 V [
13]), or higher [
14]; then, multiple batteries are connected in series and parallel to reach the required voltage and storage capacity levels, respectively. Those batteries have different electrical characteristics due to manufacturing imperfections, uniform aging, and continuous charging/discharging cycles; these differences produce excessive heat and accelerated degradation of the batteries [
15]. That is why there is a necessity for battery balancing systems [
15,
16] or charging/discharging systems implemented with high-gain power converters to connect each battery, or arrays of parallel batteries, directly to the DC bus. Such a charging/discharging system would avoid the necessity of a balancing system providing some advantages like a high ESDs modularity, and the connection of batteries with several technologies and electrical characteristics. Moreover, this charging/discharging system would permit a simple connection and disconnection of batteries to adjust the storage capacity and the use of second-life batteries coming from applications like electric vehicles.
A bidirectional flyback converter is a feasible option to implement such an ESD charging/discharging system since it provides galvanic isolation between the ESD and the DC bus, it has a simple structure, and it can provide high voltage gains. One disadvantage of the flyback converter is its discontinuous input current, which produces significant ripples in the battery current reducing its life cycle [
17,
18]. This disadvantage is shared by other charging/discharging systems based on Buck, Buck-Boost, or Zeta converters and has been mitigated by connecting a capacitor in parallel to the battery. Such a capacitor does not affect the dynamic response of the charging/discharging system and absorbs the high frequency components of the battery current [
19,
20].
A state-of-the-art in this topic shows that the flyback converter has been used to implement battery charging systems for generic applications [
21,
22], electric vehicles [
23,
24,
25,
26], phones [
27], PV systems [
28,
29], and microgrids [
6]. Additionally, the flyback converter has also been used for other applications involving batteries like power supply of DC motors [
19,
30], LED drivers [
20], and rectifiers [
31]. Nevertheless, the authors have not found up to now any ESD charging/discharging system with a flyback converter to regulate the voltage in a DC bus.
The design of the flyback converter and the control strategy is necessary to obtain the desired performance of the charging/discharging system. In the literature, it is possible to find different design procedures and equations to determine the flyback magnetizing inductance (
), output capacitance (
, and transformer’s turns ratio (
n) for battery charging or discharging systems. In [
21,
30,
32], the authors introduce procedures and equations to determine
and
n, as well as other elements for the snubber circuit [
21] and additional characteristics of the high-frequency transformer (HFT) [
32]. An interesting aspect of the procedure presented in [
21] is that it includes the calculation of three parameters required by the proposed controller (peak current mode controller with exponential compensation ramp). However, those procedures do not include the design of
[
21,
30,
32] and the controllers do not regulate the DC bus voltage [
21], are not clearly explained [
30], or are not included [
32].
Other papers provide equations to size the elements of flyback converters used in battery charging applications. In [
25,
31], the authors provide equations to determine
,
n, and
for step-down flyback converters for a rectifier [
31] and an electric vehicle charger. While in [
27,
28] the authors provide additional equations to determine more characteristics of the snubber circuit elements [
27] and the HFT [
28] for a phone battery charger [
27] and a PV-based uninterruptible power supply [
28]. Moreover, other papers are focused on the design of the flyback HFT for a LED illumination system [
20] or on providing equations to calculate just
[
24,
33] or
and
[
19,
26] for flyback-based battery charging applications.
Regarding the controllers proposed in the literature for battery charging systems that use flyback converters, most of the papers use linear controllers, while others use specialized controllers (like peak current control [
21,
34] or fuzzy controller [
23]) or do not include a control structure [
22,
29,
31,
32,
33,
35]. A cascade controller is used in [
24,
25,
26], where the outer loop is a PI controller to regulate
, and the inner loop is a PI that tracks a reference of the battery current (
). In [
24], both PIs are tuned by using frequency response to guarantee a desired phase margin and crossover frequency; while the other two papers do not include a design procedure for the PIs [
26] or do not provide clear information of the controller structure [
25]. Some authors use one PI [
6,
20,
27] or one two-poles two-zeros compensator [
19,
30] to regulate the flyback output voltage. On the one hand, the PI controller proposed in [
27] is tuned by trial and error using different values of the proportional and integral gains; whereas the PIs introduced in [
6,
20] do not include a design procedure. On the other hand, the compensators introduced in [
19,
30] use frequency response to tune the controller parameters; nonetheless [
30], they do not provide details about the controller design criteria.
From the literature review, the authors identified that there is not a flyback-based battery charging/discharging system to regulate the voltage of a DC bus. However, it is possible to find different battery charging or discharging systems for different applications that illustrate the feasibility of using flyback converters as a power interface for batteries. Moreover, some flyback-based battery interfaces propose design procedures of the main converter components like , , and n. Nevertheless, those procedures consider a single operating point of the converter, a single operating mode (i.e., charging or discharging), and do not consider the effect of the flyback parameters on the closed-loop system stability. As consequence, the design of the controller and flyback converter are two independent procedures, which may restrict the stability regions of the system. Additionally, linear converters are the most widely used approach for flyback-based charging or discharging systems. These controllers are designed using linearized models on a particular operating point; therefore, they cannot guarantee the system stability for any operating condition and mode (i.e., charging, discharging, and stand-by).
This paper proposes a flyback-based DC bus voltage regulation system and a co-design procedure of the flyback converter and its control system, where the last is implemented with an adaptive Sliding-Mode Controller (SMC). This paper has three main contributions: (1) a DC bus voltage regulation system that provides high voltage gain and galvanic isolation, which allows the direct connection of a battery to a DC bus and the protection of the battery from faults in the DC bus; (2) an adaptive SMC that guarantees the system stability in any operating condition and mode (i.e., charging, discharging, or stand-by); (3) a detailed co-design procedure of the flyback parameters ( , , and n) and the SMC parameters considering the system stability.
The paper begins with the modeling of the proposed charging/discharging system (
Section 2) followed by the stability analysis of the proposed Sliding-Mode Controller (SMC) (
Section 3), which considers the voltage at
, the current through
, the DC bus current, and two constants (
and
). Then, the paper introduces the implementation of the proposed SMC along with the analysis of the maximum switching frequency and the dynamic calculation of
(
Section 4). Later, the paper presents the co-design procedure to determine the HFT parameters (
and
n),
, and
, to guarantee the system stability (
Section 5). Finally, simulation results validate the proposed procedure and illustrate the dynamic and static performance of the proposed charging/discharging system under different operating conditions (
Section 6) and the conclusions close the paper (
Section 7).
2. Proposed Charger/Discharger
The proposed charger/discharger circuit is based on a bidirectional flyback converter; thus, the classical output diode must be replaced by a second Mosfet.
Figure 2 presents the proposed circuit, where Mosfet
replaces the output diode of the unidirectional Flyback converter, while Mosfet
is in the same position for both unidirectional and bidirectional topologies.
The flyback converter includes a HFT, which provides galvanic isolation and a high voltage conversion ratio. In the circuit of
Figure 2, the HFT is highlighted in green color, and it is modeled accounting for both the magnetizing
and leakage
inductances [
35,
36]. The magnetizing inductance is modeled at the primary side, which allows analyzing the effect of the primary control signal
u on the circuit. Instead, the leakage inductance is modeled at the secondary side, which enables the analysis of the dynamic behavior of the DC bus voltage
. The HFT is modeled, without loss of generality, with a turn ratio
, but any other relation can be adopted.
In this bidirectional circuit, the primary control signal
u activates/deactivates the Mosfet
at the primary side of the HFT, while the complementary control signal
activates/deactivates the Mosfet
at the secondary side of the HFT. The circuital model of the battery charger, depicted in
Figure 2, models the interaction between sources and loads connected to the DC bus as a single bus current
, which is the result of subtracting the sources and loads currents, i.e.,
using the nomenclature of
Figure 1. In addition, the DC bus capacitance is modeled with the
capacitor, which collects the output capacitances of the sources and the input capacitances of the loads connected to the bus.
The charger/discharger proposed in
Figure 2 also includes a control system aimed at regulating the bus voltage
, which is needed to provide a safe operating condition to both sources and loads. Such a control system is designed using the sliding-mode control (SMC) theory, and its analysis and stability are studied in the following section. The outputs of the SMC are the converter control signals
u and
, thus no PWM is required.
Figure 2 also describes the measurements needed by the SMC: current of both the primary
and secondary
sides of the HFT, battery voltage
, DC bus voltage
, and current
. Since both battery and DC bus are isolated by the HFT, a single ground reference is not present, instead the battery and DC bus voltages are measured using differential voltage sensors
and
, respectively. From the circuit it is also noted that the battery current is equal to the current at the primary side of the HFT, thus
. Finally, the SMC receives the reference value
of the DC bus voltage.
2.1. Switched Model
The mathematical model of the charger/discharger is obtained by studying the differential equations governing the converter for the two possible conditions of the control signal u, which are reported as follows:
When
(
) Mosfet
is ON and Mosfet
is OFF, which imposes the following differential equations on the magnetizing inductance current
and bus voltage
:
When
(
) Mosfet
is OFF and Mosfet
is ON. For this analysis the effect of both the leakage
inductance and bus voltage is calculated at the primary side of the HFT, while the effect of the magnetizing inductance is calculated at the secondary side of the HFT:
Combining the previous differential equations leads to the following switched model:
Moreover, the leakage inductor current
, and the currents
and
presented in
Figure 2, are:
2.2. Averaged Model
The averaged model is obtained by averaging the previous equations within the switching period
. Such a procedure is performed by replacing the binary control signal
u by its averaged value, which corresponds to the converter duty cycle:
Then, the averaged model of the charger/discharger is the following one:
Moreover, the averaged leakage inductor current
and
current are:
2.3. Steady-State Model
The steady-state relations between the previous physical variables are obtained by considering the averaged differential equations equal to zero, which leads to:
Other important expressions needed for the converter design are the voltage and current ripple magnitudes. In this work, the design will be focused on the current ripple at the magnetizing inductance and the voltage ripple at the bus voltage, since the first one affects the transformer rating and the second one is defined by the requirements of the devices connected to the bus. The ripple at the magnetizing inductance is calculated from (
1), which forces the increment of
during
seconds (when
); thus, the current ripple in
, around the steady-state value given in (
15), is given in (
17). In such an expression,
is the switching frequency.
Similarly, the voltage ripple in
, around the steady-state value defined by (
16), is calculated from (
2) as given in (
18).
5. Design Procedure and Application Example
This section provides a summary of the design procedure for both the charger/discharger circuit and SMC parameters. Moreover, the design procedure is illustrated using an application example based on realistic conditions.
The first step of the design process is to define the design requirements.
Table 1 reports the requirements adopted for illustrating the design process, where a standard 12 [V] volt battery must be connected to a 48 [V] bus, which is used in DC microgrids [
10,
11,
12]. The battery charger/discharger must be designed to provide or absorb a maximum of 1 [A], with a maximum slew-rate (current derivative) of 50 [A/ms], which could completely charge (SOC = 100%) a EnerSys NP0.8-12-ND [
41] lead-acid battery (12 V–0.8 Ah) in 48 min, or charge/discharge the 10% of the SOC in 4.8 min.
The sources and loads require a maximum voltage ripple of for a correct operation, and those devices could be damaged for voltage perturbations higher than , which could be triggered by the highest current perturbation possible, i.e., a step from the maximum current (1 [A]) to the minimum current ( [A]) or vice versa, thus ±2 [A]; moreover, the bus voltage must exhibit a settling time lower than 1 [ms]. Since the ripple in the magnetizing current defines the peak values of the currents at both primary and secondary sides of the HFT, that peak ripple was limited to 5 [A]. Finally, the maximum switching frequency achievable with the adopted Mosfets is 30 [kHz], but any switching frequency below that value is acceptable.
5.1. Selection of the HFT
The second step is to select the HFT.
Figure 5 shows the effect of
and
n values on both
and
magnitudes. Such a figure was constructed using expressions (
16), (
17), (
33) and (
44) with the parameters in
Table 1; the figure shows that reducing
increases, exponentially, the current ripple; while the switching frequency depends on both the ripple and inductance magnitudes. Decreasing the turn ratio
n affects, in a similar way, both the current ripple and switching frequency. Thus, decreasing at the same time both the inductance and turn-ratio is not a suitable option; instead, increasing both
and
n enables to select small ripples and low switching frequencies, but the HFT becomes bulkier, heavier, and more expensive.
The previous figure is useful to design a custom HFT since such an analysis enables to fine-tune both the turn-ratio and magnetizing inductance. However, construct an HFT is not a trivial task since specialized equipment is needed, e.g., a frequency analyzer. Therefore, using a commercial HFT is a simpler alternative; for example,
Table 2 reports the characteristics of four commercial HFT designed for dc/dc applications. The turn-ratio of those HFT can be used to extract sections of
Figure 5 to evaluate the current ripple and switching frequency imposed by those transformers.
Figure 6 shows the effect of
on both
and
for the turn-ratio values of the HFT reported in
Table 2, where a wide range of turn-ratios are available; i.e., from
to
. The figure shows that XFRMS (
) and Vitec (
) HFT are able to provide both
[A] and
[kHz], operating near the limit of the feasibility zone due to the
and
values of those HFT, which are reported in
Table 2. However, the Pulse (
) HFT will provide a switching frequency under 20 [kHz], which is not desirable since that frequency is in the range of the audible noise. A similar, but much worst condition is achiever with the Nascent (
) HFT, which will provide a switching frequency under 5 [kHz].
Another important analysis needed to define the HFT concerns the range of duty cycle available for the SMC: the average duty cycle of the flyback converter must not be near the saturation, otherwise the duty cycle could be saturated when the SMC acts to compensate a perturbation; therefore, it is desirable to have a duty cycle margin for the SMC operation. In this example, a margin of 30% is selected, thus the average duty cycle must be between 30% and 70%; such a value can be modified depending on the load profile. The average duty cycle achieved with the HFT of
Table 2 was calculated from expressions (
6), (
15), and (
16), and it is summarized in
Figure 7. This analysis shows that XFRMS (
) and Pulse (
) transformers require an average duty cycle of 74% and 25%, respectively, thus those HFT are out of the desired duty cycle range. Instead, the Vitec (
) and Nascent (
) HFT are inside the desired duty cycle range with average duty cycles of 42.5% and 33.3%, respectively; however, the Vitec (
) HFT provides a better duty cycle range since its average duty cycle is near to the 50%. Finally, the only HFT in
Table 2 providing an acceptable switching frequency and duty cycle range is the Vitec (
), thus such a transformer is selected to design the charger/discharger.
The final calculation of this subsection concerns the hysteresis band limit, which is obtained from expression (
44) using the inductances of the selected HFT, which results in
[A].
5.2. Selection of the Bus Capacitance
The third step is to design the bus capacitance to fulfill both the maximum ripple
and the maximum perturbation of the DC bus voltage
. Therefore, expressions (
16), (
18), (
44), and (
49) are used to analyze the
and
values for different bus capacitances, and those results are synthesized in
Figure 8.
The previous figure shows that any capacitor higher than 48.85 F, which is the minimum acceptable, fulfills both the maximum ripple and maximum perturbation of the DC bus voltage. From the figure, it is evident that such a limit value fulfills the maximum , and provides a much smaller ripple . Finally, the bus capacitor is selected as the near commercial value = 50 [F], which provides and , thus fulfilling both maximum ripple and maximum perturbation of the DC bus voltage.
5.3. Calculation of
The fourth step is to calculate the
parameter of the SMC using expression (
36), which must fulfill the stability conditions given in (
24), (
29), and (
30).
Figure 9 shows the
values for different settling times and bus capacitances, taking into account that such
values fulfill the stability conditions. Finally, in that figure are highlighted the
[
F] value selected in the previous subsection, and the maximum settling time
[ms], which results in the
[A/V] value. Since the selected condition
is within the feasibility zone defined by the stability conditions,
[A/V] ensures both global stability of the SMC and the desired settling time
ms for the bus voltage.
Finally, the fourth step described in this section enables to design a stable battery charger/discharger, based on the flyback topology, fulfilling the conditions required to ensure a safe operation for both sources and loads connected to a DC bus.
6. Simulation Results
This section presents circuital simulations of the proposed battery charger/discharger, which validate the design procedure developed in the previous sections.
Figure 10 shows the circuital implementation of the battery charger/discharger in the power electronics simulator PSIM, where the flyback converter follows the same circuital structure described in the theoretical circuit of
Figure 2, including the voltage sensors for
and
, and the current sensors for
,
and
.
The circuital implementation also includes the implementation of the adaptive sliding-mode controller described in
Figure 3, where can be observed the dynamic calculation of
. Such SMC implementation is defined by the hysteresis band limit
using two voltage sources, but such a limit could be also imposed using zener diodes, requiring a single power source for polarization. The addition/subtraction and gain functions can be implemented using operational amplifiers, while the multiplication and division functions can be implemented with integrated circuits. Moreover, the S-R flip-flop produces the main
u and complementary
control signals, which are observed in the circuital implementation of
Figure 10. Finally, the simulation uses a current source to produce the dc current profile in the bus, which could produce three possible states: discharge the battery (
), charge the battery (
), and battery in stand-by (
); thus, the SMC must be able to regulate the charger/discharger in those operating conditions.
6.1. Performance Evaluation
The first test, reported in
Figure 11, evaluates the correct operation of the charger/discharger concerning the ripple limits. Thus, the charger/discharger was set in the operating conditions defined for the design process (
Table 1), with a bus current
= 1 [A] and a reference
= 48 [V], which produces a duty cycle
, a switching frequency
= 25.3 [kHz] and
[A/V]. Therefore, the steady-state duty cycle is inside the acceptable range defined in
Figure 7, and the switching frequency is lower than the maximum limit
= 30 [kHz] defined in
Table 1. The simulation reports a DC voltage ripple
(top waveforms), which is lower than the maximum acceptable ripple of
; this is expected since the bus capacitor was defined as higher than the minimum limit reported in
Figure 8. In addition, the current ripple in
is equal to the design value
[A] imposed in
Table 1 (second waveforms), this is expected since the magnetizing inductance of the selected Vitec HFT imposes that
value as observed in
Figure 6b. The simulation also confirms the stability of the SMC (third waveforms), since the switching function
is always trapped inside the hysteresis band
, where
[A] was calculated at the end of
Section 5.1. Finally, the control signal
u is depicted at the bottom of the figure, which confirms the control law:
imposes a positive switching function derivative (
increases), and
imposes a negative switching function derivative (
decreases).
The second test is performed to evaluate the reachability of the surface starting from outside of the hysteresis band.
Figure 12 shows a first simulation in which the switching function starts above the hysteresis band (
), where the SMC follows the practical control law reported in (
41): when
the control signal is set to 0 (
), which imposes a negative derivative on the switching function (
), forcing
to enter in the hysteresis band
, keeping the switching function trapped into that band, which ensures global stability. A second simulation shows a similar behavior, but with the switching function starting below the hysteresis band (
). In this case, the control signal is set to 1 (
) to impose a positive derivative on the switching function (
), forcing
to enter in the hysteresis band, also keeping the switching function trapped into that band; this is in agreement with the SMC control law (
41). Therefore, the simulations of
Figure 12 confirm that the designed SMC fulfills the reachability conditions, since the charger/discharger is always controlled to enter into the sliding surface from any operation condition outside the surface, thus the system is always driven to stability.
The third test is designed to evaluate the response of the charger/discharger to current derivatives on the DC bus surpassing the limit defined in
Table 1. This condition can occur when a load connected to the bus experiments a failure leading to a short-circuit, thus requesting a large current step to the bus. Similarly, if a source experiments a sudden failure, thus will produce a step in current requested by the loads to the battery, since the current provided by the sources will be instantaneously reduced.
Figure 13 presents a first simulation (left) in which the bus current changes with the design limit
[A/ms], thus the switching function remains inside the hysteresis band. This confirms that the SMC parameters fulfill both the transversality and reachability conditions imposed in (
24), (
29), and (
30), which provide both global stability and the desired bus voltage performance. The second simulation (right) considers a bus current perturbation with almost infinite derivative (step change), thus
[A/ms], which forces the switching function to leave the hysteresis band. However, since that high current derivative disappears when the perturbation ends, the reachability of the SMC forces the system to enter the hysteresis band, ensuring again global stability. Therefore, the proposed charger/discharger and SMC could support even step-like perturbations in the DC bus current, since the reachability conditions will force the system into stability as demonstrated in the previous and these tests, i.e., simulations reported in
Figure 12 and
Figure 13.
The fourth test evaluates the performance of the charger/discharger in compensating the bus voltage after a step-current occurs in the DC bus. The results of this test are reported in
Figure 14, where the maximum instantaneous current perturbation of 2 [A], defined in
Table 1, is considered. Since the bus capacitor was designed under the minimum
capacitor reported in
Figure 8, the maximum voltage deviation achieved with the designed charger/discharger is lower than the limit defined in
Table 1 (3.5%), achieving
%. Thus, the designed charger/discharger ensures a safe bus voltage to the devices connected to the bus, even under an extreme step-like perturbation on the bus current. This satisfactory behavior is achieved due to the dynamic change of the
parameter, which enables the SMC to adapt the sliding surface to the instantaneous operation conditions of the system. Finally, the simulation also confirms that the settling time
[mA] for the bus voltage, imposed in
Table 1, is achieved; this precise behavior is caused by the exact calculation of
[A/V] performed in
Figure 9, which takes into account the
= 50 [
F] value adopted for the implementation. In conclusion, this test confirms the correctness of the closed-loop dynamics reported in expression (
35), and the accurate calculation of
using expression (
36) and
Figure 9.
The last test is designed to evaluate the charger/discharger behavior in the three possible operating states: battery discharge (
), battery charge (
), and battery in stand-by (
). Moreover, the test also evaluates the performance of the system for the transition between those operation states, which is a realistic condition since the power flow requested to the battery could suddenly change depending on the operation of both sources and loads. The results of this test are presented in
Figure 15, where the DC bus current changes from 1 [A] (battery discharge), to 0 [A] (battery in stand-by) to
[A] (battery charge). Since the perturbations have a 1 [A] amplitude, which is half of the perturbation evaluated in the previous test, the deviation of the DC bus voltage is much smaller, thus a safe operation is provided to the devices connected to the bus. Moreover, the simulation also reports the duty cycle, which is never saturated; therefore, the equivalent control condition (
31)–(
32) is always fulfilled and the system has global stability for all the operating conditions. Similarly, the switching frequency is always lower than the maximum limit (
44), defined in
Table 1, which confirms the correctness of the HFT selection reported in
Figure 6b. In conclusion, this last test demonstrates the ability of the proposed charger/discharger to operate in all the possible conditions of the battery, providing global stability within those states and in the transitions between the states.
Summarizing, the five tests performed to the proposed charger/discharger verify the global stability of the system, the correct design of the circuit and controller parameters, the satisfactory regulation of the bus voltage, and the correct operation of the system for charging, discharging, and stand-by conditions. Therefore, it is confirmed that this solution will provide safe conditions to the devices connected to the DC bus, which is the main objective of a battery charger/discharger in a microgrid.
6.2. Comparison with a Classical Control System
An additional evaluation was carried out by contrasting the performance of the proposed SMC with a classical solution based on PI controllers. The first step to design this classical controller solution is to obtain a linearized model depending on the duty cycle
d of the converter. This process starts with the averaged model presented in
Section 2.2, which is evaluated at the steady-state conditions defined in
Section 2.3 using the values given in
Table 1 and
Table 2 (Vitec HFT). The resulting linear model is given in expressions (
50) and (
51), which describe the small-signal models of both the bus voltage and magnetizing current depending on the duty cycle.
Analyzing the small-signal model of the bus voltage, given in (
50), shows that the system exhibits a non-minimum phase behavior due to the positive zero of the transfer function, thus it will be almost impossible to regulate the bus voltage with a single PI controller. This type of system is commonly controlled using a cascade structure [
24,
26], where an inner controller regulates another state variable to reduce the order of the system. In this case, the other state variable available is the magnetizing current, which small-signal model (
51) has a negative zero, thus it has a minimum phase behavior that can be regulated with a single PI controller. Then, the current control loop reported in (
52) was designed, using the pole-placement technique [
46], to provide a settling time of the magnetizing current (
) equal to
ms and a closed-loop bandwidth of 8 kHz, which is below the switching frequency imposed by the PWM driving the Mosfets (
kHz).
Since the settling time of
is five times smaller than the settling time defined in
Table 1 for the bus voltage (
ms), the cascade voltage controller is designed by considering a correct control of the magnetizing current, thus
where
is the small-signal reference for the magnetizing current. Therefore, the dc bus voltage model is simplified by assuming
to obtain the reduced-order model reported in (
53), which describes the behavior of the bus voltage to changes on the magnetizing current. Finally, a voltage control loop is designed to provide the current reference
to the current control loop; such a voltage control loop, reported in (
54), was designed using the pole-placement technique to provide the desired settling time and maximum voltage deviation defined in
Table 1.
The output of the inner (current) control loop is the duty cycle, thus a PWM is used to impose that duty cycle to the Mosfets with a fixed switching frequency
kHz.
Figure 16 presents the comparison between the performance of the proposed SMC solution and the classical cascade PI structure presented in this subsection. The main perturbation of the charger/discharger is the bus current which exhibits changes with the amplitude defined in
Table 1: it is observed that the proposed SMC ensures both the desired settling time and maximum voltage deviation, while the PI structure only fulfills the settling time since the voltage deviation is higher than the limit
. Despite the PI structure was designed to ensure the desired voltage deviation, the change in the duty cycle modifies the operating point of the system, which prevents that the PI structure from being able to ensure the desired performance.
Moreover, the simulation of
Figure 16 shows the dynamic advantage of the SMC over the PI structure, since the magnetizing current reaches the steady-state condition much faster, thus a lower bus voltage deviation occurs. This is also observed in the duty cycle imposed by the controllers, where the SMC imposes a faster control action in comparison with the PI structure, thus ensuring a fast compensation of the bus voltage. It must be noted that the PI structure defined in (
52) and (
54) was designed near the speed limit imposed by the switching frequency defined in
Table 1: the maximum bandwidth of the inner controller is usually between
and
of the switching frequency since that is the range of validity for the linearized model [
46], in this example, it was possible to increase that ratio to
, but further increments could cause an unstable operation. Therefore, classical linear controllers are not able to ensure the desired behavior of the flyback charger/discharger for all the operating conditions; instead, following the design procedure proposed in this paper ensures that the proposed SMC imposes the desired performance under any condition.