2. Circuital Model of the Proposed Flyback-Based PV System
The proposed flyback-based PV system is depicted in
Figure 2, where the PV source is managed with a unidirectional flyback converter, which delivers the power production to a grid-connected inverter. The flyback converter is constructed with an input MOSFET, an output diode and a high-frequency transformer; such a transformer is modeled taking into account both the magnetizing and leakage inductances
and
, respectively, and the voltage transformation is modeled using a classical transformer with turn-ratio
n.
The PV source is represented with the associated voltage
and current
, which are variables usually measured in any PV system for MPPT purposes. Moreover, a capacitor
C is inserted between the PV source and the flyback converter, which filters the discontinuous current of the MOSFET, thus providing a continuous current to the PV source with small ripple. Finally, the grid-connected inverter is represented with a voltage source
, which models the input-voltage control of classical grid-connected inverters [
12]. It must be pointed out that such a voltage source produces both dc and ac components, since the operation of the grid-connected inverter introduces an oscillation in the input voltage at double of the grid-frequency as reported in [
17,
18], which in this model is added to the controlled dc component; thus,
models both dc and ac components.
The design of the SMC requires a mathematical model of the system, which is obtained by analyzing the behavior of the PV system for the two possible topologies defined by the MOSFET state (close or open).
Figure 3 shows those two topologies, where the first one corresponds to the MOSFET close, which is obtained by setting the control signal
u equal to 1; similarly, the second topology corresponds to the MOSFET open, which is obtained by setting
.
From the first topology (
), it is observed that the voltage at the magnetizing inductance is equal to
, which leads to the differential equation given in (
1). Moreover, in this topology, the capacitor current is the sum of the PV current and magnetizing current, which is expressed in the differential equation given in (2). Finally, since the diode is open, the leakage current is zero, as given in Equation (3). Instead, for the second topology (
), the voltage at the magnetizing inductance is equal to the sum of the leakage inductance voltage and the inverter voltage, both reflected to the primary side of the transformer, which leads to Equation (
4). In this second topology, the capacitor current is only defined by the PV current, while the leakage inductor current corresponds to the magnetizing current reflected to the secondary side of the transformer; both currents are described by Equations (5) and (6), respectively.
The previous equations for
and
must be combined to form the switched model of the PV system, which is reported in Equations (
7) to (10). In those equations, term
, given in (10), was defined for the sake of simplicity, and the binary control signal
u defines the state of the flyback converter.
Another technique used to analyze power converters is the averaging model, which describes the average behavior of the currents and voltages. Such an averaged model is obtained by averaging the switched model within the switching period as given in Equations (
11) to (14), where
is the duration of the switching period,
d is the converter duty cycle and
is the complementary duty cycle.
Finally, it is important to describe the stable values of the duty cycle and PV current, which are obtained from expressions (12) and (13) by assuming the derivatives equal to zero, obtaining the following expressions:
The next section uses those models to develop and analyze the proposed SMC.
5. Implementation of the Control Strategy
The implementation of the proposed control strategy is performed using both analog and digital circuitry. The auto-tuning process of the P&O algorithm, summarized in the blue block of
Figure 8, can be easily calculated using a digital processor. A suitable device to perform such a digital process is the TMS320F2803x microcontroller family [
23], which is designed for power converters control. Those microcontrollers provide analog-to-digital converters (ADC) to acquire the measurements of the required voltages and currents: those devices provide up to 16 channels (simultaneous measurements) with a maximum sampling frequency of 4.6 MHz and a 12-bit resolution. The TMS320F2803x family also provides an SPI (Serial Peripheral Interface) to connect a digital-to-analog converter (DAC), which is needed to provide the calculated variables to the analog circuitry. The TLC5618 DAC is recommended to operate with the TMS320 microcontrollers [
24] because it provides two simultaneous channels with 12-bit resolution and a maximum sampling frequency of 400 kHz.
The calculation of
is also performed in the digital processor as it requires the duty cycle value, which is calculated in the auto-tuning process. Finally, the adaptive condition of the second-order filter makes its implementation in analog circuitry difficult; therefore, such a filter is implemented into the digital processor. This digital implementation also takes profit from the
calculation already performed in the auto-tuning process; however, the analog filter given in (
42) must be discretized.
The discretization of the second-order filter is performed using the Tustin transformation given in (
54), which is used to replace the Laplace variable of expression (
42). Then, the inverse z-transformation is applied to the digital filter, obtaining the difference equation given in (
55), which is used to implement the second-order filter into the digital processor. In such a difference equation,
is the sampling time used to process the filter.
Taking into account that precise comparison with the hysteresis band is needed to implement the control lay given in (
28), the implementation of the SMC is better performed using analog circuitry: the switching function
is calculated using a subtractor and a multiplier, both available as integrated circuits or deployable using operational amplifiers, following expression (
17). It is worth noting that the calculation of both
and
is performed inside the digital processor; thus, two DAC channels are needed. Finally, the hysteresis-based control (
28) is implemented using a hysteresis comparator based on two classical comparators and a flip-flop S-R, as follows:
When , the set (S) signal is triggered, which sets the output to .
When , the reset (R) signal is triggered, which resets the output to .
Figure 9 summarizes the mixed analog-digital implementation of the control system. Such a block diagram shows the variables needed to be measured for the digital processor (
,
and
), which requires three ADC channels; similarly, the connections of the two DAC channels are also observed. Finally, the block diagram also shows the analog circuitry used to implement both the switching function calculation and the hysteresis-based control law. The output of this analog-digital implementation corresponds to the control signal
u of the MOSFET, which is used to control the power stage of
Figure 2.
6. Validation Using an Application Case
This section presents an application case of the proposed control system considering realistic conditions. The application case is based on a PV panel widely used in residential applications, the BP585 [
25], which exhibits the parameters reported in
Table 1 for a maximum irradiance of 1000 W/m
. Those MPP (maximum power point) values correspond to the operation condition in which the PV panel produces the maximum power. Finally, the short-circuit current and open-circuit voltage are used to define the rating of the cables and protections needed in the PV installation.
In addition, this application case considers a traditional grid-connected inverter requiring an input voltage () equal to 220 V; thus, a large voltage-conversion ratio () is needed to interface the PV panel with the inverter. This is an ideal case to test the proposed PV system based on a flyback converter.
The PV system circuit, previously described in
Figure 2, also requires specifying both the capacitor and the transformer. The capacitor is designed to filter the high-frequency components of the MOSFET current
: taking into account that
is a discontinuous current, it will introduce high-frequency components to the PV current
, which produces power losses in both the panel and cables.
Figure 10 shows the high-frequency model at the panel terminals, where the PV panel is modeled with a differential resistance at the maximum power point calculated as
; such a model was proposed in [
11,
12] to design the P&O parameters, but it can be used to analyze any high-frequency phenomenon.
The model of
Figure 10 represents the capacitor using the equivalent impedance at the switching frequency
, which is the frequency of the MOSFET activation/deactivation. This application case considers
= 50 kHz, which is a widely adopted frequency for switching converters. Finally, the model takes into account the interaction of the high-frequency components
,
and
of the MOSFET, capacitor and panel currents, respectively. The objective of the capacitor design is to limit the high-frequency components reaching the panel to a safe value, which can be expressed as the ratio
. Then, applying a current divider in node A of
Figure 10, and solving for the panel current component, leads to the following expression for the capacitance
C needed to ensure the desired
value:
Defining a maximum high-frequency component transmission of into the PV panel, i.e., , leads to . This application case selects a close commercial capacitance , which ensures that high frequency components into the PV panel will be below .
The design of the transformer is performed to avoid a large boosting factor
over the transformer turn-ratio
n. The desired ratio between
and
n is defined as
; thus, the turn ratio is calculated as follows:
This application case defines the condition
to avoid large duty cycles. Then, considering
,
and
, the turn ratio calculated from (
57) is limited by
. A commercially available transformer in that range is the Nascent 95073 [
26] with
, which imposes
, thus fulfilling the design requirement. Such a transformer has a magnetizing inductance
and a leakage inductance
.
Concerning the digital processor, the previous section described the advantages of the TMS320F2803x family, where the TMS320F28033 and TMS320F28035 are viable microcontrollers to interact with the TLC5618 DAC using SPI communication. The main parameter to configure in both the microcontroller and DAC is the sampling time
; such a parameter is selected as 1/4 of the switching period
, which ensures that the digital filter is processed fast enough to provide a valid voltage reference
to the SMC; thus,
. Finally, the hysteresis limit is selected as
to enable the use of low-voltage analog circuitry, but any other value can be adopted depending on the analog circuitry. The summary of the PV system specifications for this application case is reported in
Table 2.
The validation of this application case is carried out using detailed circuital simulations performed in the professional electronics simulator PSIM [
27]. Those circuital simulations take into account the non-linear effects of the MOSFET and diode commutation, the non-linear model of the PV panel and both the magnetizing and leakage inductance effects of the high-frequency transformer. Therefore, such simulations provide realistic waveforms with high accuracy.
The power stage described in
Figure 2 and the control system described in
Figure 8 and
Figure 9 were implemented in PSIM as depicted in
Figure 11, where the current and voltage sensors are also observed. Moreover, the circuit also exhibits the analog circuitry designed to implement the constant-frequency SMC. In this simulation, the PV module is represented by the ideal single-diode model reported in [
28], where the current source represents the short-circuit current, which is almost proportional to the solar irradiance [
29]. Finally, the digital processor is simulated using a C-code block, which executes the same code used to program any TMS320F2803x microcontroller.
The first simulation is designed to test the performance and stability of the constant-frequency SMC; thus, the operation of the P&O algorithm is not considered. Instead, the reference voltage is defined by a stand-alone signal, which is filtered by the adaptive second-order filter to ensure the global stability of the SMC. In addition, the oscillation in the input voltage of the inverter, discussed in
Section 2, is also taken into account; this application case considers a large oscillation at 120 Hz (grid at 60 Hz) with a peak-to-peak amplitude equal to 50% of the nominal value reported in
Table 2, i.e., 110 V. Moreover, a large change in the solar irradiance is also considered to evaluate the performance of the SMC; in this case, a step-like change of 50% in the irradiance is tested.
Figure 12 reports the circuital simulation of the PV system, where the correct reference tracking provided by the SMC is evident. The PV voltage exhibits changes on the ripple magnitude, which is expected due to the change on the duty cycle caused by the inverter voltage oscillation; in any case, the average PV voltage is equal to the reference value despite the perturbations in both the inverter voltage
and the solar irradiance
S. The simulation also shows the dynamic adaptation of the
parameter, which forces the PV system to operate at the desired switching frequency (50 kHz). Despite, the switching frequency exhibits a small perturbation when the operation point changes significantly, e.g., due to changes on the reference or irradiance, it is quickly recovered to the desired value. Finally, it is confirmed that the switching function
always operates inside the hysteresis band
with
, which demonstrates the global stability of the SMC predicted in
Section 3.
With the aim of verifying in detail the SMC behavior,
Figure 13 shows a zoom of the first simulation within 5.16 ms
5.63 ms (left side) and within 14.28 ms
14.75 ms (right side). The zoom at the left side of the figure shows the detail of the simulation for a change on the reference value, where the PV voltage tracks with null error the reference provided by the second-order filter. Moreover, the waveform of the switching function is also observed, which is always trapped inside the hysteresis band. The zoom at the right side shows the detail for a fast and large perturbation on the solar irradiance, where the PV voltage is not affected due to the correct operation of the SMC. The only change on the PV voltage waveform corresponds to the reduction in the voltage ripple, which is not detrimental to the system performance; in addition, the fast change of
to fix the switching frequency is also observed. Finally, the switching function is also trapped inside the hysteresis band, thus ensuring global stability.
A second simulation is defined to test the performance of the complete PV system including the auto-tuning of the P&O parameters. This new simulation considers the same perturbations of the previous one: 50% oscillation in
and a step change of 50% on the solar irradiance. The simulation results, presented in
Figure 14, confirm the correct operation of the P&O algorithm, which ensures the maximum power production of the PV panel. This maximum power condition is confirmed by both the time-domain waveforms and the power vs. voltage profile. Concerning the time-domain waveforms,
Figure 14 shows that the PV system produces 85.18 W when the irradiance is 1000 W/m
and 40.3 W when the irradiance is 500 W/m
.
Figure 15 shows the power vs. voltage profile under those irradiance conditions, and the blue dots report the operation regions of the PV system, which correspond to the MPP of each irradiance condition.
Figure 14 also confirms a stable operation of the P&O algorithm, which is achieved with a three-point behavior when the PV system is at the MPP; such a stability condition of the P&O algorithm was demonstrated in [
11]. In addition, the simulation also shows the adaptation of the P&O parameters (
and
), which ensures the global stability of the SMC. Therefore, this second simulation demonstrates the correct operation of the adaptive P&O algorithm, where the algorithm parameters are auto-tuned without any predefined condition; thus, it is applicable to any PV system. In conclusion, the previous two simulations confirm the global stability of both the SMC and the P&O algorithm with the auto-tuned parameters and confirm the correct operation of the constant-frequency technique proposed in this paper.
A classical control system for a flyback-based PV system can be designed using linear techniques, such as the one reported in [
12], or using a cascade connection of SMC with PI controllers, such as the one reported in [
14]; however, a much fairer comparison requires a complete non-linear solution. For example, the methodology reported in [
15] can be used to design a classical SMC for the flyback-based PV system, and the methodology proposed in [
11] can be used to calculate the fixed parameters for the P&O algorithm.
Figure 16 reports the performance comparison of both the classical and proposed control solutions, where the operation conditions consider a 50% oscillation in the inverter voltage and a fast change of the irradiance with a magnitude of 50%. Such a circuital and detailed simulation shows that the classical solution requires a much larger perturbation period, where
was calculated for an irradiance of 100 W/m
to avoid instability at low irradiances. In addition, the perturbation magnitude
was calculated at 1000 W/m
; thus, it has the same size in comparison with the proposed solution for that irradiance. However, when the irradiance decreases to 500 W/m
, the proposed solution provides much faster MPP tracking, and the perturbation size is decreased, which provides a higher precision in the MPP detection.
In addition, the classical implementation forces the flyback converter to operate at a variable frequency. To provide a fair comparison, the classical SMC was implemented using the same hysteresis limit
, which imposes switching frequencies from 46.3 kHz to 125.4 kHz; instead, the proposed solution imposes a stable frequency equal to 50 kHz. Therefore, the classical solution will require a MOSFET and a diode with much lower activation time, which implies higher stress, higher cost and higher switching losses. The simulation of
Figure 16 also shows that the switching function of the classical solution is not always trapped inside the hysteresis band, which has two implications. First, the reachability conditions are not always fulfilled; thus, the SMC does not provide global stability to the PV system. Second, the equivalent control condition is not fulfilled; hence, the duty cycle becomes saturated, which leaves the PV system in open-loop. Instead, in the proposed solution,
is always trapped inside the hysteresis band; thus, global stability is ensured for any operation condition. Finally, both control systems provide similar power production, but the proposed solution has a better performance, which integrated in time provides an overall higher energy.
Figure 17 shows the detail of the comparison between the classical and proposed solutions at 1000 W/m
(left side) and 500 W/m
(right side). In the first condition (1000 W/m
), both solutions have the same reference because the perturbation size is the same, but the larger perturbation period required by the classical solution, and the additional voltage ripples, produce a lower power generation. In the second condition (500 W/m
), the classical solution keeps the same perturbation size, while the proposed solution reduces the perturbation size to improve precision of the new MPP tracking. The simulation of
Figure 17 shows that the classical solution has higher perturbation size, which introduces a higher error in the detection of the optimal PV voltage, thus producing a lower power. In addition, since the perturbation period of the classical solution is not adjusted, it remains for a larger time in the wrong PV voltage, which implies a lower energy production for the PV system. Finally, the classical SMC has loss of stability at 500 W/m
, which is not present in the globally stable operation provided by the proposed SMC.
In conclusion, this third simulation confirmed the improvements of the proposed solution over classical control systems based on SMC:
The proposed SMC ensures a fixed frequency, which simplifies the converter and filter design, reducing the stress and costs on both the MOSFET and diode.
The proposed SMC is globally stable for any operation condition, which ensures a safe operation for the inverter or any other load connected to the PV system.
The parameters of the P&O algorithm are calculated for each perturbation cycle, which ensures a stable operation of the algorithm and improves the precision of the MPP tracking.
7. Conclusions
A novel sliding-mode controller with fixed frequency was proposed to regulate a PV system based on a flyback converter. Moreover, the global stability of the SMC was mathematically demonstrated, and an adaptive second-order filter was designed to ensure such a global stability in real-time. Therefore, any MPPT algorithm can be used to generate the reference signal for the SMC.
Similarly, an auto-tuning strategy to calculate, in real-time, the parameters of the P&O algorithm was also designed. Such an auto-tuning strategy adjusts those parameters to ensure the stability of the MPPT algorithm, by calculating the perturbation size and period to be in agreement with the SMC performance. In addition, a similar auto-tuning strategy can be designed to operate with other control strategies such as PID, LQR and passivity, among others; however, global stability analyses for those new controllers must be performed to define the auto-tuning equations.
An application case illustrating the solution performance was also presented. Such an example demonstrated the correct operation of both the SMC and the auto-tuned P&O algorithm but also provided design equations for the passive elements of a flyback converter in PV applications. Those design equations are an additional contribution of this work. Moreover, the performance of the proposed solution was contrasted with a recently published SMC in which the P&O parameters were calculated using a well-established strategy. Such a comparison demonstrated that real-time calculation of the system parameters is needed to ensure the global stability of the PV system.
The main drawback of this work is the need for measuring the PV current, since such a measurement requires shunt resistors that introduce losses and requires sensitive operational amplifiers that could be susceptible to noise. However, this drawback is not a particular condition of this solution, since almost all the MPPT implementations require the measurement of the PV current. Therefore, a future improvement of this work could be focused on estimating the PV current using voltage measurements, which will enable to remove such a current sensor.
Finally, designing the auto-tuning procedures for other MPPT algorithms, such as incremental conductance or extremum seeking, will enable the use the proposed SMC with those MPPT algorithms, which could provide both global stability and constant switching frequency to other applications such as thermoelectric generation systems.