1. Introduction
The current dependence on electrical equipment needed for daily tasks, mobile devices and electromobility has generated a global increase in energy demand [
1,
2]. As electric energy requirements grow, a change to more environmentally friendly methods has to be made in order to help decrease global greenhouse gases emissions [
3].
Electric power systems have used power from renewable sources for some time, mainly from solar and wind energy plants which use of power converters, which obtain the maximum benefit independent of the environmental conditions [
4].
Renewable energy sources are often away from the centers of energy demand, therefore the paradigm of unidirectional power systems is changing. Distributed generation is converting power systems into bidirectional-power-flow systems, making them more complex to control and protect [
5]. Due to the chance of isolated operation, the concept of microgrids, using the big spread and development of power-electronics-interfaced distributed generation, can be applied [
6]. Distributed generation leads to intermittently produced energy by the electrical power systems [
7], causing the system parameters to be affected and generates possible divergences in the converter’s control loops. Commonly, these power converters use PI-based control schemes, which show good performance when the system works near the nominal operating point [
8].
In the literature it is possible to find that solar arrays typically use cascaded double-stage power converters, in which the solar array is connected to the first DC/DC stage in charge of making the solar array function in the maximum power point (MPP), and in the second stage, a DC/AC converter in charge of performing a correct power injection to the electrical grid [
9,
10]. The problem about DC/DC stage is that it introduces higher switching losses due to the higher number of semiconductors. It is possible to find single-stage converters for solar applications as well, which present a higher global robustness and efficiency in comparison to the single staged ones [
11,
12].
In the literature it is possible to find that solar arrays typically use cascaded double-stage power converters, in which the solar array is connected to the first DC/DC stage in charge of making the solar array function in the maximum power point (MPP), and in the second stage, a DC/AC converter in charge of performing a correct power injection to the electricity grid [
9,
10]. The problem about DC/DC stage is that it introduces higher switching losses due to the higher number of semiconductors. It is possible to find single-stage converters for solar applications as well, which present a higher global robustness and efficiency in comparison to the single staged ones [
11,
12].
Numerous power converter topologies have a capacitor as a voltage stabilizer in the DC link that is responsible for keeping the voltage as stable as possible. This capacitor is under constant stress due to the frequency components that are reflected from the AC side to the DC side, which decrease the capacitor’s lifespan [
13,
14]. Most strategies for solar applications control the voltage on this capacitor, minimizing ripple with larger capacitors, thus increases the cost [
15].
Lately, MPC has become better known and consequently, more developed [
16]. This control scheme requires the mathematical model of the plant with which it is capable of taking control action to track references. It is well suited for power converters due to the discrete nature of power switches, making it easy to evaluate all the options available in a mathematical model. It is important not to forget that this control allows control of non-linear systems, being able to adapt itself to variations in the parameters, and its dynamics are much faster when compared to classic strategies [
17,
18].
Model predictive control for solar photovoltaic systems has been applied to solar pumping systems where cascade control has often been used. The internal current-control loop can be replaced with predictive control [
19,
20,
21]. The latter has resulted in an improved dynamic response and more robustness in the control. Also, this has allowed the use of different power converters topologies, including those where a balance of capacitor voltages is required [
22,
23].
The perturbation and observation (P&O) strategy is the most found in the literature. It is based on producing disturbances in a variable that operates as an actuator and subsequently evaluating how the power of the system evolves. It is possible to find different variations of the P&O strategy, where the variable to be modified will mainly depend on the energy storage element available in the power converter used [
24]. For voltage source-type inverters, voltage disturbances are typically created, because the DC-side capacitor operates as a voltage stabilizer [
25,
26].
The implementation for P&O maximum power point-tracking (MPPT) strategies that are based on current or voltage, relies primarily on the parameters associated with the power converter’s storage element which is being controlled. In this way, current-based MPPT strategies can be implemented for current control at the AC-side inductor for voltage topologies, and thus, reducing the dependence on the DC side’s capacitors [
27].
Motivated by the characteristics of the aforementioned strategies, this paper proposes the usage of power injection to the electrical grid from a solar system using a predictive current-control scheme, with a current-based strategy for MPPT and feedback from the solar array current to obtain the reference for the control. This MPPT algorithm provokes disturbances in the reference current to be injected into the grid. Afterwards, it analyzes whether the power delivered by the solar array increases or decreases with this new condition, allowing a new decision to be made regarding the reference current in the next step. This allows the current to be injected into the system with a low harmonic content, independent of the system’s variables, and also reduces the need for large and costly capacitor banks as well.
The contribution of this work is the development of a control strategy that allows operating solar arrays with a reduced number of control stages and has few parameters for its design, the novelty being the development of an MPPT strategy based on current for a voltage source converter that is able to directly communicate with the current control on the AC side. The proposed strategy is capable of operating in electrical networks, setting PI control completely aside, allowing continuation of operation before variations in their electrical parameters without damaging the harmonic content of the injected current, as well as enabling the size reduction of the capacitor used in voltage source-type converters.
At the beginning of the document, a description of the system and the used controls is provided alongside design considerations, after this, the results obtained through simulation are presented considering a non-ideal electrical system with resistive and inductive parameters. For the simulation, three cases were contemplated: simulation with the proposed control, simulation with the proposed control reducing the DC link condenser, and a simulation with cascaded PI controllers for a further comparison. A new simulation considering disturbances in the voltage of the grid was run. Finally, the experimental results obtained for the proposed control, discussion and conclusions are shown.
2. System Description
The proposed control strategy is shown in
Figure 1, which displays a solar array coupled to a single-stage converter, a resistive inductive (
) filter, an isolation transformer and a representation of the electrical grid [
28].
This strategy is a model predictive current-control technique, In which the amplitude of the reference is taken directly from the MPPT algorithm [
27,
29]. Each part of the system and the control loops used are described with the aim of having a clear understanding of the control scheme.
2.1. Photovoltaic Array
The photovoltaic array consists of a set of solar panels that can be modeled considering the non-linear behavior that is due to temperature and irradiance conditions [
30]. Thus, a power converter is needed to allow the maximum power from the solar array to deal with disturbances in the electrical variables.
In order for the suggested scheme to work, a solar panels array must be connected in parallel to a capacitor that is responsible for keeping the voltage on the DC side stable in case of disturbances. The capacitor voltage depends on the one hand, on the environmental conditions, and on the other, on the current required at the AC side [
31].
It should be mentioned that panels that are series-connected should be considered, since, for single-stage systems, it is necessary to have a voltage in the DC link higher than the rectified grid voltage, to allow a power injection into the electrical system [
32].
2.2. Power Converter
For the purpose of extracting maximum power from the solar array, a two-level voltage source inverter (2L-VSI) is used. This converter was selected due to its simplicity of construction and development. The power converter is represented in
Figure 2. This is composed of three legs, each with two power switches which operate in a complementary way with each other in order to avoid short circuits or loss of control over the load. The valid states of the converter are presented in
Table 1.
2.3. Proposed MPPT Strategy Current-Based
Considering that the power behavior in the photovoltaic system varies depending on environmental conditions, and in most cases it is expected that photovoltaic generating plants deliver the maximum available power, it is necessary to use a maximum power point-tracking algorithm (MPPT) [
33] that allows operating the solar arrays at the maximum power point (MPP).
To implement the proposed MPPT algorithm, a sample of the voltage () and the current () of the solar array in the present state must be taken every period. With these measurements, the operating power of the panels () is calculated. Subsequently, the variations of current () and power () between the current and previous state are obtained.
With the slopes of power (
) and current (
), the algorithm determines if the next iteration should increase (
) or decrease (
) the reference current in the developed predictive control strategy. Finally, the current measurements are stored in memory, to be used in the next step as the previous values. The above is described step by step in
Table 2.
A current-based P&O algorithm makes disturbances in the AC-side current and analyzes the behavior of the variables on the DC side, thus, allowing the removal of the capacitance value dependence. As a result, there is no need to consider a voltage control loop for the capacitor, prompting a lower total harmonic distortion (THD) in the injected current than in the values that are obtained using a PI-based control strategies [
34].
This strategy is similar to a regular voltage-based P&O algorithm, but the difference is that its output corresponds to the current reference. Please note that the proposed strategy considers the subtraction of the current in the output. This works as a feed-forward loop to the algorithm, since the current delivered by the solar panel is proportional to the solar irradiance.
2.4. Reference Plane Transform
To implement the proposed MPPT strategy, it is necessary to use spatial transforms, which allow to take the output of the current-based P&O MPPT directly. The latter allows communication between the MPPT strategy and the AC-side current control.
Since the algorithm of the predictive control works in the plane with the purpose of reducing the number of the control equations, transforms from the plane to are used for the DC side in function to communicate the DC whit the AC side, and finally transforms from the plane to , for the current and voltage grid measurements.
Lastly, and to make unity power factor injection possible, a grid voltage phase-locked loop (PLL) is used [
35], this allows the synchronization of said transforms to the electrical system voltage. Please note that the algorithm also permits reactive power injection if needed.
2.5. Phase-Locked Loop Algorithm
The control algorithm shown in
Figure 3 is used to obtain the
angle. In this diagram, a transform from the plane
to
that takes the voltage signal
is considered. This signal is passed through a discrete filter (
) that allows a noise reduction of the measurement. A discrete PI controller (
) is used to find the angular velocity that allows obtaining zero error in steady state (this point being synchronized with the grid) and an integral in the
z plane that takes the angular velocity and returns the required angle
. The closed loop shown is fed back with a constant
that accelerates the convergence, given that the frequency of the grid is known. The transfer functions
,
and integral in the
z plane are given by Equations (
1)–(
3), respectively.
2.6. Current Control for Power Injection to the Grid
Considering that the connection points of solar plants can have large variations in their parameters due to the grid robustness, distributed generation and integration of renewable energy, it is proposed to use predictive current control for the current injection to the electrical grid, which allows to improve the response dynamics and operate with non-linear systems [
36]. Note in
Figure 1 that, in this study, the current predictive control reference is addressed from the MPPT strategy, going through the transform
to
, allowing communication of the MPPT algorithm with the predictive control.
The implementation of model predictive control (MPC) requires a mathematical model of the plant to be controlled, in which all the possible conditions of the actuator can be evaluated. This makes MPC ideal for power converters, because to its discrete nature [
37,
38].
Regarding the proposed strategy, all the 2L-VSI states are shown in
Table 1 and must be evaluated to determine the optimal switching vector that generates the minimum error in the output current with respect to the reference. Considering that the connection point of the converter (including the filter and transformer) corresponds to nodes
,
and
, shown in
Figure 1, an KVL (Kirchhoff’s Voltage Law) is performed between the converter and the aforementioned nodes obtaining Equation (
4). Selecting this point to apply the KVL allows not to depend on the grid parameters for the functioning of the control.
Predictive control has a limitation in the computational capacity required to solve the mathematics of the models. To deal with this, the Clarke transform is used to simplify from a three-phase
plane to only two variables in
plane. Considering this, Equation (
5) is obtained.
Using the forward Euler approach (
6) and replacing in (
5), the equation for the predictive model (
7) can be obtained in discrete time.
To implement this control strategy, the finite switching states must be considered. Each converter admissible state generates a load voltage vector (shown in Equation (
8)) that is transformed to the
plane using the Clarke transform, obtaining vectors
and
. These vectors are evaluated in Equation (
7), allowing current prediction to be obtained for all valid switching states for the
() sampling time [
39].
Thus, considering the eight switching states on the
plane on Equation (
7), eight possible current predictions can be obtained for both alpha and beta plane (
). Please note that although the switching states are binary values, the currents correspond to real values. With the purpose of minimizing the errors between the output and the current reference, the square errors for the instant currents in alpha and beta are obtained according to (
9), which ensures stability and control convergence [
40]. The foregoing allows the generation of the
g vector of dimension equal to the number of combinations of the converter, from which the position with less value that allows the determination of the optimal switching combination to apply on the next state is selected.
It often stated that predictive control must consider compensation for delays [
41] because once a state has been applied, its response can only be observed one sampling cycle later. This is because there is an associated delay in the analog to digital converter (ADC) in the microcontroller. The delay compensation performs a prediction for the state
according to Equation (
10), where all the switching states are evaluated and the current
previously obtained considering the newly applied switching state generated by the previous prediction of
, which corresponds to a horizon one considering delay compensation [
42].
Figure 4 shows the flowchart of the predictive current control including the delay compensation.
4. Discussion
In both simulation and implementation, the control is capable of operating the system at the MPP, even during disturbances. The experimental response presents two main differences with respect to the simulation. Experimentally, the control in the MPPT requires a higher to be able to work properly. In experimental tests, the control works about 10 times slower compared to simulations, and it is possible that it may work faster, but this depends on the coupling place of the photovoltaic system, due to differences in electrical systems, since it is the inductance of the grid that defines how fast the variations in the current references can be made. In the experimental system the autotransformer and the isolation transformer add more inductance to the system. The other main difference is observed in the harmonic distortion of the signals. which is over twice the value of the simulations. This may be due to the signal adaptation stage, in which low-bandwidth operational amplifiers with a slow rate (LM324) are used, which causes the microcontroller to not read the correct signal. Nevertheless, both simulation and experimental results present the majority of its spectrum centered around 2200 [Hz] (44th harmonic), which makes the analysis of the distortion up to 51st harmonic present low values in the current signal, since higher order harmonics are attenuated in the signal due to the inductive nature of the system.
Comparing the proposed strategy against the traditional cascade control, the designed PI control has a better performance on the DC side, for it is able to reach the MPP in less time during the start and disturbances, and it also has less ripple in the voltage signals (
Figure 6a) and current (
Figure 6b). On the other hand, the predictive control strategies, despite having a higher mean absolute error during the disturbances (
Figure 6e,g,i) in the current signals show a better behavior on the AC side, even in a highly distorted grid (
Figure 9a), since they do not present harmonics at low frequency, this being quantifiable with the weighted total harmonic distortion (WTHD) index [
44], which weights a lower value at higher harmonics compared to the THD index.
By using current references in the MPPT strategy, it is possible to decrease the size of the capacitor in the DC link, since it is the inductive elements that determine the dynamics of the system. This compared to the PI strategy allows a decrease in system costs. It is even possible to observe from
Figure 7c,f that lower-capacitance results in a lower THD index and a very similar WTHD between both situations.
When obtaining the current reference for the MPPT algorithm, the time it takes for the system to reach the MPP is directly dictated by the value of , being an advantage over the traditional cascade strategy, since the control PI has a dynamics set by the of the MPPT voltage plus the dynamics of the controller. The PI control does not ensure good performance for different plants due to its linear nature.
5. Conclusions
In this work, a combination of predictive current control and a current-based maximum power point-tracking strategy is proposed, in which disturbances are performed on the AC side and the behavior of the DC side is analyzed.
Simulation results compare the proposed scheme for different capacitive values against the controlled system by cascade loops using PI-type controllers. Then, the experimental results of the proposed algorithm are presented, considering disturbances in the available power.
In light of the results, it is possible to say that despite external (environmental) disturbances, the photovoltaic solar system remains operating at its maximum power point. The system is capable of operating when disturbances occur in environmental conditions and uncertain system’s electric parameters. The application of the proposed algorithm implies less dependency on the capacitive parameters; thus, dynamics of the system are determined by inductive elements, enabling the use of less voluminous and lower cost capacitors.
When comparing the classic cascade control and the proposed control, it is found that the DC-side signals have an improved behavior considering PI-type controls. The presented control strategy shows higher quality in the injected current into the electrical system, making possible the connection of solar arrays at different points, without causing problems to the control algorithm and consequently, to the quality of power supply. Generally speaking, it can be observed that the proposed algorithm is able to provide better quality currents to the system, there is a better follow up of the references and the majority of the harmonic content is found at a high frequency
Further work must contemplate the study of the strategy exploring algorithms that allow the consideration of virtual inertia, thus, allowing the photovoltaic plants to present changes in power variation that contribute to the stability of the electrical grid in case of failure.