Non-Linear Sliding Mode Controller for Photovoltaic Panels with Maximum Power Point Tracking

: In this paper, nonlinear sliding mode control (SMC) techniques formulated for extracting maximum power from a solar photovoltaic (PV) system under variable environmental conditions employing the perturb and observe (P and O) maximum power point tracking (MPPT) technique are discussed. The PV system is connected with load through the boost converter. A mathematical model of the boost converter is derived ﬁrst, and based on the derived model, a SMC is formulated to control the gating pulses of the boost converter switch. The closed loop system stability is veriﬁed through the Lyapunov stability theorem. The presented control scheme along with the solar PV system is simulated in MATLAB (matric laboratory) (SMC controller and PWM (Pulse Width Modulation) part) and PSIM (Power electronics simulations) (solar PV and MPPT algorithm) environments using the Simcoupler tool. The simulation results of the proposed controller (SMC) are compared with the classical proportional integral derivative (PID) control scheme, keeping system parameters and environmental parameters the same.


Introduction
The current global energy demand of the world has been continuously tremendously increasing due to various reasons, such as population growth, general economic growth, and industrial growth. The majority of energy needs have been fulfilled over the centuries by fossil fuels.
Major concerns associated with fossil fuels are ever-increasing prices and adverse effects on nature, which results in a global energy crisis due to limited supply. These fuels cannot be renewed at the rate of their consumption, so these are termed as non-renewable energy sources [1]. A solution to these issues is to use renewable energy sources which are inexhaustible and cause less pollution when compared to fossil fuels.
There are different sources of renewable energy, such as solar energy, wind energy, biomass energy, ocean energy, geothermal energy, hydropower, and biofuel [2], among others. Some other energy adequacy has been discussed in detail in Reference [3]. Among several renewable energy resources, solar energy is one of the most sustainable energy sources [4] because of the fact that it is clean, inexhaustible, free, and has a long-life expectancy. The energy which is motion achieves the design specifications. The second component is associated with the selection of a control law that will make the switching function attractive to the system state [24]. This is not always true for a control law to be discontinuous in nature. The most eminent feature of SMC is that it is completely insensitive to parametric uncertainty and external disturbances during the sliding mode. In particular, the sliding mode approach offers stability and robustness against parameters, input, and load uncertainties, which are common in PV systems. Moreover, SMC is simpler to implement in comparison with other types of nonlinear controllers [25]. The sliding mode control has received much attention because of its benefits of a quick response and robustness.
In this article, an integer order SMC is proposed for the extraction of maximum power from a PV panel under varying radiation and temperature. This is to highlight that the proposed system is controlled by the sliding mode controller formulated in References [16,23], i.e., a design of stable SMC to track the reference provided by the P and O MPPT algorithm. The overall system consists of a PV panel connected to a boost converter, which in turns supplies power to a DC load. The P and O MPPT algorithm is employed to generate the reference PV voltage with a boost converter for the SMC controller. The SMC controller is derived based on the nonlinear mathematical model of a PV panel with a boost converter. A classical integer order sliding surface is chosen and then control law is derived, such that the overall closed loop system should strictly track the reference voltage generated through the MPPT algorithm and the response should remain insensitive to parametric variations. The stability of the proposed SMC is proved by selecting the integer order Lyapunov candidate function. PV, along with the boost converter and MPPT algorithm, is modeled in PSIM, whereas the SMC controller is implemented in MATLAB/Simulink. The SMC controller is coupled through the Simcoupler interface between PSIM and MATLAB/Simulink. In order to test the superiority of the proposed controller, the simulation results are compared with the classical proportional integral derivative (PID) controller.
The overall paper is structured as follows: In Section 2, related work is discussed. Section 3 introduces the system model used in this work and the proposed control scheme is defined. Simulation results are presented in Section 4. Finally, Section 5 summarizes the conclusions and future work. Figure 1 presents a typical control structure for the PV system aimed at regulating the PV voltage to a reference given by the MPPT algorithm and to mitigate the oscillations in the environmental conditions. The PID controller is designed from the linearization of the PV system around a specific operating point, e.g., the MPP at the lowest irradiance for a stand-alone system, as in Reference [13]. Therefore, to guarantee the same performance in all of the operation range, it is necessary to design non-linear controllers that do not depend on linearized models. selection of a control law that will make the switching function attractive to the system state [24]. This is not always true for a control law to be discontinuous in nature. The most eminent feature of SMC is that it is completely insensitive to parametric uncertainty and external disturbances during the sliding mode. In particular, the sliding mode approach offers stability and robustness against parameters, input, and load uncertainties, which are common in PV systems. Moreover, SMC is simpler to implement in comparison with other types of nonlinear controllers [25]. The sliding mode control has received much attention because of its benefits of a quick response and robustness. In this article, an integer order SMC is proposed for the extraction of maximum power from a PV panel under varying radiation and temperature. This is to highlight that the proposed system is controlled by the sliding mode controller formulated in References [16,23], i.e., a design of stable SMC to track the reference provided by the P and O MPPT algorithm. The overall system consists of a PV panel connected to a boost converter, which in turns supplies power to a DC load. The P and O MPPT algorithm is employed to generate the reference PV voltage with a boost converter for the SMC controller. The SMC controller is derived based on the nonlinear mathematical model of a PV panel with a boost converter. A classical integer order sliding surface is chosen and then control law is derived, such that the overall closed loop system should strictly track the reference voltage generated through the MPPT algorithm and the response should remain insensitive to parametric variations. The stability of the proposed SMC is proved by selecting the integer order Lyapunov candidate function. PV, along with the boost converter and MPPT algorithm, is modeled in PSIM, whereas the SMC controller is implemented in MATLAB/Simulink. The SMC controller is coupled through the Simcoupler interface between PSIM and MATLAB/Simulink. In order to test the superiority of the proposed controller, the simulation results are compared with the classical proportional integral derivative (PID) controller.

Related Work/Background
The overall paper is structured as follows: In Section 2, related work is discussed. Section 3 introduces the system model used in this work and the proposed control scheme is defined. Simulation results are presented in Section 4. Finally, Section 5 summarizes the conclusions and future work. Figure 1 presents a typical control structure for the PV system aimed at regulating the PV voltage to a reference given by the MPPT algorithm and to mitigate the oscillations in the environmental conditions. The PID controller is designed from the linearization of the PV system around a specific operating point, e.g., the MPP at the lowest irradiance for a stand-alone system, as in Reference [13]. Therefore, to guarantee the same performance in all of the operation range, it is necessary to design non-linear controllers that do not depend on linearized models.  Sliding mode control (SMC) has been proposed in the literature to ensure correct behavior without the need of linearization. This work is based on the ideas published in References [26][27][28], which apply the sliding mode technique to regulate the PV voltage and to mitigate the oscillations. The proposed scheme implemented in this work is presented in Figure 2. In this implementation, the voltage and current of the PV array are provided to a P and O algorithm, which defines the reference to the SMC controller to provide reference peak power voltage, which can be tracked by the proposed non-linear controller. The controller has been derived using the mathematical model of a non-inverting boost converter and generates an output signal µ, which controls the duty ratio of the PWM signal provided to the converter switches.

Related Work/Background
The MPPT-based P and O generates the reference voltage V ref , which is compared with panel voltage V PV to generate an error signal, which is supplied to the improved sliding mode controller. The controller generates the control input µ, which controls the PWM signal width and drives the converter to track the reference voltage. Hence, operating the PV module on this reference voltage will ensure that maximum power is generated by the system. Sliding mode control (SMC) has been proposed in the literature to ensure correct behavior without the need of linearization. This work is based on the ideas published in References [26][27][28], which apply the sliding mode technique to regulate the PV voltage and to mitigate the oscillations. The proposed scheme implemented in this work is presented in Figure 2. In this implementation, the voltage and current of the PV array are provided to a P and O algorithm, which defines the reference to the SMC controller to provide reference peak power voltage, which can be tracked by the proposed non-linear controller. The controller has been derived using the mathematical model of a noninverting boost converter and generates an output signal µ, which controls the duty ratio of the PWM signal provided to the converter switches.
The MPPT-based P and O generates the reference voltage Vref, which is compared with panel voltage VPV to generate an error signal, which is supplied to the improved sliding mode controller. The controller generates the control input µ, which controls the PWM signal width and drives the converter to track the reference voltage. Hence, operating the PV module on this reference voltage will ensure that maximum power is generated by the system.

Photovoltaic (PV) Model
Mathematical models are used to describe the operation and behavior of the PV panels in the calculation of the current-voltage characteristic. The current voltage (I-V relation) mathematical equation of the solar cell is implicit and non-linear. For precise PV cell modeling and better accuracy, in this work, we use a two diode PV model which involves identification of more parameters at the expense of longer computational time and is known as being a seven-parameter model [29]. Simulations are based on the double-diode model, since their estimation is more useful with other models (i.e., single diode model) [30]. The PV panel based on the two diode model is shown in Figure  3.

Photovoltaic (PV) Model
Mathematical models are used to describe the operation and behavior of the PV panels in the calculation of the current-voltage characteristic. The current voltage (I-V relation) mathematical equation of the solar cell is implicit and non-linear. For precise PV cell modeling and better accuracy, in this work, we use a two diode PV model which involves identification of more parameters at the expense of longer computational time and is known as being a seven-parameter model [29]. Simulations are based on the double-diode model, since their estimation is more useful with other models (i.e., single diode model) [30]. The PV panel based on the two diode model is shown in Figure 3. Sliding mode control (SMC) has been proposed in the literature to ensure correct behavior without the need of linearization. This work is based on the ideas published in References [26][27][28], which apply the sliding mode technique to regulate the PV voltage and to mitigate the oscillations. The proposed scheme implemented in this work is presented in Figure 2. In this implementation, the voltage and current of the PV array are provided to a P and O algorithm, which defines the reference to the SMC controller to provide reference peak power voltage, which can be tracked by the proposed non-linear controller. The controller has been derived using the mathematical model of a noninverting boost converter and generates an output signal µ, which controls the duty ratio of the PWM signal provided to the converter switches.
The MPPT-based P and O generates the reference voltage Vref, which is compared with panel voltage VPV to generate an error signal, which is supplied to the improved sliding mode controller. The controller generates the control input µ, which controls the PWM signal width and drives the converter to track the reference voltage. Hence, operating the PV module on this reference voltage will ensure that maximum power is generated by the system.

Photovoltaic (PV) Model
Mathematical models are used to describe the operation and behavior of the PV panels in the calculation of the current-voltage characteristic. The current voltage (I-V relation) mathematical equation of the solar cell is implicit and non-linear. For precise PV cell modeling and better accuracy, in this work, we use a two diode PV model which involves identification of more parameters at the expense of longer computational time and is known as being a seven-parameter model [29]. Simulations are based on the double-diode model, since their estimation is more useful with other models (i.e., single diode model) [30]. The PV panel based on the two diode model is shown in Figure  3.  To operate the PV panel at MPP, a DC-DC converter controlled by the MPPT is inserted between the PV panel and the load. DC-DC converters are used widely for the efficient management of energy in PV systems. The boost converter has been chosen for this work [31], as shown in Figure 2.
To extract the maximum possible power of the panel, the P and O algorithm is implemented, which is the most widely used MPP tracking method. P and O generates the reference voltage V ref after measurement of the panel power. If the measured power is greater than the previous power, the reference voltage is steadily incremented in the same proportion, otherwise, if not, then it is decreased. To operate the PV panel at MPP, a DC-DC converter controlled by the MPPT is inserted between the PV panel and the load. DC-DC converters are used widely for the efficient management of energy in PV systems. The boost converter has been chosen for this work [31], as shown in Figure 2.
To extract the maximum possible power of the panel, the P and O algorithm is implemented, which is the most widely used MPP tracking method. P and O generates the reference voltage Vref after measurement of the panel power. If the measured power is greater than the previous power, the reference voltage is steadily incremented in the same proportion, otherwise, if not, then it is decreased. Figure 4 presents the P and O algorithm flow diagram, which is implemented with PSIM simulation tools. This method finds the maximum power point (MPP) of PV modules by iteratively perturbing the reference voltage and observing and comparing the power generated by the PV module at any instant with the previous power. The voltage perturbation is achieved through the change in reference voltage, ΔVref. The increment or decrement of the reference voltage in every sampling period is determined by the comparison of the power at the present time and previous time. The sign of the error, ΔP(k) = P(k) − P(k − 1), is used to determine the direction of perturbation. If the incremental power, ΔP(k) > 0, the duty cycle should be increased in order to make ΔVref > 0. On the other hand, if ΔP(k) < 0, then the reference voltage is reduced to make ΔVref < 0.

DC-DC Converter Model
Power electronic converters (DC-DC) are used in photovoltaic systems as an adaptation stage between the PV panel and the load. The DC-DC power converter is connected to adjust the PV panel output voltage to maximize the solar power generation. In this work, we adapt a boost converter which steps up voltage from its input (PV array) to its output (load), in order to operate the PV panel at the MPP. It is assumed that the converter is operating in continuous conduction mode.
The converter is used to regulate the PV module output voltage, VPV, in order to extract as much power as possible from the PV module. Referring to Reference [28], the dynamics of the boost converter is given by:

DC-DC Converter Model
Power electronic converters (DC-DC) are used in photovoltaic systems as an adaptation stage between the PV panel and the load. The DC-DC power converter is connected to adjust the PV panel output voltage to maximize the solar power generation. In this work, we adapt a boost converter which steps up voltage from its input (PV array) to its output (load), in order to operate the PV panel at the MPP. It is assumed that the converter is operating in continuous conduction mode.
The converter is used to regulate the PV module output voltage, V PV , in order to extract as much power as possible from the PV module. Referring to Reference [28], the dynamics of the boost converter is given by: where I cin , PV , V b , C in , V L , L , and L represent capacitor current, PV current, battery voltage, input capacitor capacitance, voltage across inductor, inductor current, and inductor inductance, respectively. Rearranging Equations (1) and (2), we have: .
Equations (3) and (4) can be written in state space form as: Equation (5) can be re-written in generalized form as: . Here, represents PV panel voltage and inductor current, J(X, t) and h(X, t) represent nominal system inputs, and u represents the control excitation.

Controller Formulation
The objective of the closed loop control system is that panel voltage, *V PV , must strictly follow the V PV-ref generated by the MPPT algorithm so that maximum power can be extracted from the PV panel under varying sunlight and temperature.
The reference signal generated by the MPPT algorithm can be written as: The tracking error can be defined as: Sliding surface is chosen as: s = k 1 e 1 + e 2 (12) Here, k 1 > 0 is the design parameter. Differentiating Equation (12), on both sides: By combining Equations (6) and (13) one can obtain: To derive the control set . s = 0, the desired response can be achieved by choosing the control law as: where u eq is the equivalent control item to drive the nominal part of the system, u s is the robust switching control term, and k s is switching gain, and sgn(.) is the signum function, defined as:

Stability Proof of the Proposed Controller
The stability of the proposed control scheme can be proved by choosing the Lyapunov candidate function as: where 'S' represents the sliding surface chosen in Equation (12). According to Lyapunov, the control system will be stable if the derivative of the Lyapunov candidate is negative along the closed-loop system trajectories. Thus, by taking the derivative of Equation (17), we get: Putting 'S' from Equation (14) into Equation (18), we get: Putting the value of 'u' from Equation (15) into Equation (19) and simplifying, we obtain: It can be shown that .
V ≤ 0 if the switching gain k s > 0 and the closed loop system is stable.

Simulation Results
Matlab/Simulink is used to model and simulate the proposed controller's technique. While the PV panel along with the boost converter and MPPT algorithm simulations are performed in PSIM (PowerSim), Simcoupler is used as an interface to couple Simulink and PSIM co-simulation.
The parameters of the PV array that are used in this work are mentioned in Table 1. From Table 1, the short circuit current, open circuit voltage, and maximum power point tracking voltage of a single PV panel is given, for which a single DC-DC boost converter is selected. The parameters of the input capacitor and the inductor are selected such that the inductor current ripple equals to 1. A physical model of a PV panel is used according to the renewable energy module of PSIM [32], with parameters corresponding to the PV module of type MSX-60 [33]. Simulations of the proposed controller are performed in PSIM and MATLAB/Simulink to verify its performance. The system is perturbed with an irradiance step of 1000 W/m 2 in the instant 0 and after 50 ms, the irradiance is decreased by 50%. The irradiance is varied to validate the robustness of the proposed MPPT technique and temperature is kept constant at 25 • C. The relationship coefficient of the Solar Panel MSX-60 used in the paper is ±0.05 • C m 2 /W. This means that for an environment temperature of 25 • C, the PV panel will operate up to 40 • C if irradiance is 1000 W/m 2 , and 32.5 • C if irradiance is 500 W/m 2 . Similarly, the temperature coefficient of power is −(0.5 ± 0.15)%/ • C, which implies that maximum output power will be reduced to half if the irradiance level varies from maximum to half. The same effect is simulated in the paper, and the irradiance level has been instantly reduced to 50% after 50 ms.

Response Using the Proportional Integral Derivative (PID) Controller
To show the performance of the proposed SMC controller, it is compared with a conventional PID controller. The conventional controller response based on the P and O MPPT algorithm can be seen in Figure 5a Figure 5b shows the tracking error of the conventional controller with high ripples and oscillation. PV array output power along with the reference power curve is shown in Figure 5c. It can be observed that MPP is achieved by the conventional PID controller within 5 ms; however, it can be observed that the controller successfully tracks the reference but displays large ripples in the voltage waveform along with an overshoot. The zoomed views are provided in voltage and power curves to see the comparative behavior with reference voltage and power.

Response Using the Sliding Mode Controller (SMC)
The output of the P and O-based MPPT is a voltage reference which needs to be tracked by the controller. The controller is used to keep track of the panel voltage with the reference voltage generated by P and O and ensuring a tracking error around 'zero' for the desired performance of the proposed controller. Figure 6a-c shows the performance of the SMC controller based on the P and O algorithm with a perturbation amplitude of 1 V under variable irradiance. It can be seen in Figure 6a that the panel voltage 'V pv ' starts following the reference generated voltage 'V pv-ref ' once it has reached the steady-state after transient behavior and successfully tracked the reference voltage. It is highlighted from the tracking response curve in Figure 6b that the proposed controller clearly outperforms the conventional controller with little oscillation. During the abrupt variation of irradiance at 0.05 s, the controller performed well, showing the robustness of the controller. The proposed controller is not only robust, but the ripples are also negligible. Similarly, the PV panel output power along with the reference power curve is shown in Figure 6c. It is observed that panel power 'P pv ' and reference power 'P pv-ref ' are following each other faster once they have reached the MPP.
The efficiency of the system is greatly enhanced when the proposed controller is used. The results that are obtained by using an improved SMC controller are free of ripples and overshoot, but with PID, both of them are high and visible.

Response Using the Sliding Mode Controller (SMC)
The output of the P and O-based MPPT is a voltage reference which needs to be tracked by the controller. The controller is used to keep track of the panel voltage with the reference voltage generated by P and O and ensuring a tracking error around 'zero' for the desired performance of the proposed controller. Figure 6a-c shows the performance of the SMC controller based on the P and O algorithm with a perturbation amplitude of 1 V under variable irradiance. It can be seen in Figure 6a that the panel voltage 'Vpv' starts following the reference generated voltage 'Vpv-ref' once it has reached the steadystate after transient behavior and successfully tracked the reference voltage. It is highlighted from the tracking response curve in Figure 6b that the proposed controller clearly outperforms the conventional controller with little oscillation. During the abrupt variation of irradiance at 0.05 s, the controller performed well, showing the robustness of the controller. The proposed controller is not only robust, but the ripples are also negligible. Similarly, the PV panel output power along with the reference power curve is shown in Figure 6c. It is observed that panel power 'Ppv' and reference power 'Ppv-ref' are following each other faster once they have reached the MPP.
The efficiency of the system is greatly enhanced when the proposed controller is used. The results that are obtained by using an improved SMC controller are free of ripples and overshoot, but with PID, both of them are high and visible.  Table 3 shows that the overshoot characteristics, response time, and power losses have been explained. It is possible to deduct from Table 3 that the performance characteristic parameters of the SMC controller in comparison with the PID controller for the proposed PV system have successfully improved. The comparison of the proposed SMC controller is done in Figures 7-9. In Figure 7, the comparison of the proposed controller voltage curve is done with the reference signal and conventional controller voltage signal. Both controllers track the reference successfully, and there is high oscillation in the PID controller behavior. Similarly, Figure 8 highlights the comparative behavior of the proposed controller panel power with reference signal power and conventional controller power. It can be observed that MPP is successfully achieved by the proposed SMC controller with almost negligible ripples compared to the PID controller, which has large ripples in correspondence to the reference signal. The zoomed views are also shown to clearly observe the comparison. The tracking error comparative plot is shown in Figure 9, which shows high oscillations in the conventional controller response as compared to the proposed SMC controller which has little oscillations. Table 3. Performance characteristics of the conventional PID and the proposed SMC controller.

Controller
Over  Table 3 shows that the overshoot characteristics, response time, and power losses have been explained. It is possible to deduct from Table 3 that the performance characteristic parameters of the SMC controller in comparison with the PID controller for the proposed PV system have successfully improved. The comparison of the proposed SMC controller is done in Figures 7-9. In Figure 7, the comparison of the proposed controller voltage curve is done with the reference signal and conventional controller voltage signal. Both controllers track the reference successfully, and there is high oscillation in the PID controller behavior. Similarly, Figure 8 highlights the comparative behavior of the proposed controller panel power with reference signal power and conventional controller power. It can be observed that MPP is successfully achieved by the proposed SMC controller with almost negligible ripples compared to the PID controller, which has large ripples in correspondence to the reference signal. The zoomed views are also shown to clearly observe the comparison. The tracking error comparative plot is shown in Figure 9, which shows high oscillations in the conventional controller response as compared to the proposed SMC controller which has little oscillations.   Table 3 shows that the overshoot characteristics, response time, and power losses have been explained. It is possible to deduct from Table 3 that the performance characteristic parameters of the SMC controller in comparison with the PID controller for the proposed PV system have successfully improved. The comparison of the proposed SMC controller is done in Figures 7-9. In Figure 7, the comparison of the proposed controller voltage curve is done with the reference signal and conventional controller voltage signal. Both controllers track the reference successfully, and there is high oscillation in the PID controller behavior. Similarly, Figure 8 highlights the comparative behavior of the proposed controller panel power with reference signal power and conventional controller power. It can be observed that MPP is successfully achieved by the proposed SMC controller with almost negligible ripples compared to the PID controller, which has large ripples in correspondence to the reference signal. The zoomed views are also shown to clearly observe the comparison. The tracking error comparative plot is shown in Figure 9, which shows high oscillations in the conventional controller response as compared to the proposed SMC controller which has little oscillations.

Conclusions
In this paper, a nonlinear sliding mode controller (SMC) based on a mathematical model of a boost converter has been derived for a photovoltaic system. The perturb and observe maximum power point tracking technique has been used to generate a voltage reference for the SMC controller. The closed loop system stability is shown to be guaranteed by using the Lyapounov stability criteria.
The proposed control scheme is tested under varying irradiance levels and the simulation results are compared with a classical PID controller. From the simulation results, it is concluded that the proposed SMC control scheme overcomes the nonlinear dynamics of the PV system and offers a faster transient response with negligible power losses and minimum voltage ripples in comparison with the PID controller. As a next step, the authors look forward to an experimental validation of the results.

Conclusions
In this paper, a nonlinear sliding mode controller (SMC) based on a mathematical model of a boost converter has been derived for a photovoltaic system. The perturb and observe maximum power point tracking technique has been used to generate a voltage reference for the SMC controller. The closed loop system stability is shown to be guaranteed by using the Lyapounov stability criteria.
The proposed control scheme is tested under varying irradiance levels and the simulation results are compared with a classical PID controller. From the simulation results, it is concluded that the proposed SMC control scheme overcomes the nonlinear dynamics of the PV system and offers a faster transient response with negligible power losses and minimum voltage ripples in comparison with the PID controller. As a next step, the authors look forward to an experimental validation of the results.

Conclusions
In this paper, a nonlinear sliding mode controller (SMC) based on a mathematical model of a boost converter has been derived for a photovoltaic system. The perturb and observe maximum power point tracking technique has been used to generate a voltage reference for the SMC controller. The closed loop system stability is shown to be guaranteed by using the Lyapounov stability criteria.
The proposed control scheme is tested under varying irradiance levels and the simulation results are compared with a classical PID controller. From the simulation results, it is concluded that the proposed SMC control scheme overcomes the nonlinear dynamics of the PV system and offers a faster transient response with negligible power losses and minimum voltage ripples in comparison with the PID controller. As a next step, the authors look forward to an experimental validation of the results.