Research Article  Open Access
Zhaohong Zheng, Tianxia Zhang, Jiaxiang Xue, "Application of Fuzzy Control in a Photovoltaic GridConnected Inverter", Journal of Electrical and Computer Engineering, vol. 2018, Article ID 3806372, 10 pages, 2018. https://doi.org/10.1155/2018/3806372
Application of Fuzzy Control in a Photovoltaic GridConnected Inverter
Abstract
To realize the maximum power output of a gridconnected inverter, the MPPT (maximum power point tracking) control method is needed. The perturbation and observation (P&O) method can cause the inverter operating point to oscillate near the maximum power. In this paper, the fuzzy control P&O method is proposed, and the fuzzy control algorithm is applied to the disturbance observation method. The simulation results of the P&O method with fuzzy control and the traditional P&O method prove that not only can the new method reduce the power loss caused by inverter oscillation during maximum power point tracking, but also it has the advantage of speed. Inductive loads in the postgridconnected stage cause gridconnected current distortion. A fuzzy control algorithm is added to the traditional deadbeat gridconnected control method to improve the quality of the system’s gridconnected operation. The fuzzy deadbeat control method is verified by experiments, and the harmonic current of the gridconnected current is less than 3%.
1. Introduction
In view of the traditional photovoltaic gridconnected inverter system, light intensity can affect the output power of a photovoltaic solar array to a large extent. Therefore, maximum power point tracking (MPPT) is performed to improve the utilization efficiency of the photovoltaic array and ensure that it maintains maximum power output.
In the first stage of a gridconnected inverter, an MPPT control algorithm mainly includes the constant voltage method, the perturbation and observation (P&O) method, and the conductance increment method. The advantages of simplicity, easy implementation, and rapid MPPT have helped the P&O method to be widely used in an MPPT algorithm. However, the P&O method can easily produce continuous oscillation around the maximum power point; therefore, a nonlinear control method, named fuzzy control, is added based on the traditional P&O method. Fuzzy control can simplify the system design and is particularly useful for a nonlinear, hysteretic, timevarying, and modelincomplete system owing to its excellent robust performance [1, 2]. Bououden et al. added an antcolony intelligent optimization algorithm to fuzzy control, which can not only deal with nonlinearity but also reduce the parameter randomization of the algorithm [3].
The control methods in the postgridconnected stage of full bridge inversion include current instantaneous value control (PI control) algorithm, repetitive control algorithm, deadbeat algorithm, and proportion resonance algorithm. The PI control algorithm is widely used owing to its simplicity and easy implementation. However, these control algorithms can only address parts of the problem. For example, the deadbeat algorithm is widely used owing to its highspeed system response time. The system works steadily when its inverter output is combined with resistive loads, yet when the inductive or capacitive loads are connected to the inverter output of system, as well as when the system is suffering from outside interference, the current and voltage at the load end fail to maintain synchronization and the system lacks stability. Besides, the harmonic rates of current and voltage at both ends of the load increase simultaneously.
Based on analysis of the MPPT fuzzy control of the P&O method in the first stage of a photovoltaic gridconnected inverter, this paper proposes a fuzzy controlbased deadbeat control strategy that can be used in the poststage of the photovoltaic gridconnected inverter, which can not only adapt to the nonlinear load but also reduce the harmonic waves of the inverter output.
2. Design of MPPT Fuzzy Control Algorithm in the First Stage of the Photovoltaic GridConnected Inverter
The MPPT of a photovoltaic array needs to be conducted to make the best use of the photovoltaic solar array. The PV and IV curves of a photovoltaic solar cell are shown in Figure 1. where indicates the opencircuit voltage of the photovoltaic solar panel and is also its maximum output voltage; indicates the shortcircuit current of the photovoltaic solar panel and is also its maximum output current; indicates the maximum output power of the photovoltaic solar panel in the present case; is the current at the maximum power point; and is the voltage at the maximum power point [4, 5].
(a) Photovoltaic PV curve
(b) Photovoltaic IV curve
2.1. MPPT Control Strategy of P&O Method in the First GridConnected Stage
The firststage MPPT control is conducted using the firststage interleaving Boost circuit. The output voltage of the photovoltaic solar array used in this study is 200–350 V, and a bus voltage of approximately 400 V can be obtained using the booster circuit. The P&O method is used as the MPPT control method in this study. The disturbance voltages are continuously provided to the output end of the photovoltaic solar array, to calculate the output powers of the two photovoltaic arrays. The output powers are input to PI regulation to produce a pulse width modulation (PWM) control pulse. After passing through the drive circuit, the PWM signal can directly drive the switching element in the boost circuit in order to realize MPPT.
As the name suggests, the P&O method is used to continuously provide the disturbance voltage and calculate the output powers of the two photovoltaic arrays until they are operating around the maximum power point. The operating method is described as follows: “” is used as the disturbed value of the photovoltaic arrays’ output voltage. occurs when the perturbation direction is voltageincreasing, while occurs when the perturbation direction is voltagedecreasing. The output power is calculated in accordance with the current and voltage values measured at the output end. In addition, a comparison is made between and . The perturbation direction is correct in the case where is greater than ; thus, the perturbation should be continually applied to the photovoltaic array according to the original direction of perturbation voltage, which is . The perturbation direction is wrong if the output power decreases; thus, in the next perturbation. The adjustments should be performed unceasingly according to the perturbation method until the photovoltaic solar array is operating around the maximum power point [6, 7]. The perturbation curve is shown in Figure 2.
The software flow diagram of the P&O method described in this paper is shown in Figure 3. The current output power of the solar panel is calculated according to the output voltage and output current of the solar photovoltaic array sampled by the system. Then, the output power is subtracted from the last output power . If the absolute value of the difference is less than or equal to the set value δ, the output power is equal to the last output power and the system will produce no action output and return to the interrupt subprogram. The purpose here is to prevent the system misjudgments caused by the sampled signal fluctuation of the digital signal processor. If the absolute value of the difference is greater than δ, a comparison between and is conducted. When , , which proves that the perturbation direction is correct and the current operating point is adjustable. Thus, the reference value of voltage can be further increased. When , , which proves that the perturbation direction is correct and the current operating point is adjustable. Thus, the reference value of voltage can be further decreased. When , , which implies that the perturbation direction is incorrect and the current operating point is located on the right side of the maximum power point. Thus, the direction should be changed and the reference value of voltage should be decreased as well. Yet when , , which indicates that the perturbation direction is incorrect and the current operating point is adjustable. Thus, the direction should be changed and the reference value of voltage should be increased [8].
2.2. Design of MPPT Fuzzy Control Based on P&O Method
The step size of the traditional P&O method remains unchanged during the process of MPPT, while the fuzzycontrolled P&O method actually improves the traditional P&O method with a fixed step. The control method can adjust the perturbation step according to the realtime output power of the photovoltaic solar cell to ensure that the operating point can be closer to the maximum power point. According to the principle of the P&O method, the output power of the solar cell is used as the objective function, while the duty ratio is used as the control variable. The current step size is adjusted and confirmed based on the variation in the power value and the duty ratio at the last moment. The input of the fuzzy controller at moment is the variation in the power value in the photovoltaic system at moment and the step size of the duty ratio [9, 10] at moment , while the output at moment is the step size of the duty ratio at moment . Thus, the fuzzy controller designing this study is as shown in Figure 4, where and are the quantization factors.
Input. refers to the actual value of the difference between the output powers at moments and , while is the corresponding value of the difference in the universe of fuzzy sets. refers to the actual value of the step size at moment , while is the corresponding value of the step size in the universe of fuzzy sets.
Output. is the actual value of the step size at moment , while refers to the corresponding value of the step size in the universe of fuzzy sets.
The Mamdani controller is selected in the Matlab fuzzy box and the centroid method is used to solve fuzzification. The fuzzy linguistic variables and are defined as five and three subsets, respectively, which are and . Here, NB, NS, Z, PS, and PB represent negative large, negative small, positive zero, positive small, and positive large, while N, P, and Z represent negative, positive, and zero fuzzy, respectively. The rule table of MPPT fuzzy control is shown in Table 1.

3. Fuzzy Control Algorithm in the PostGridConnected Stage of FullBridge Inversion
Two control models of the poststage fullbridge inversion include controlling of output voltage and controlling of output current. The control strategy of the voltage control mode is to consider the entire system as a controlled voltage source and make the inverter output voltage a system control quantity; the control strategy of the current control mode is to consider the entire system as a controlled current source and make the inverter output current a system control quantity.
The control mode of the output voltage is equivalent to a controlled voltage source; therefore, it is easily affected by the power grid voltage. The quality of the inverter output voltage is significantly impacted if the power grid voltage suffers from any abnormality. However, for the control mode of the output current, the controlled output quantity is the inverter output current and the current source is highly resistive to the voltage source; thus, the quality of the output current cannot suffer any impact from the power grid voltage. In short, the control mode of the output current should be used in the gridconnected operation mode, which can improve the quality of the output power as well.
The gridconnected operation mode generally adopts the double closedloop control algorithm with an outer loop of bus voltage and inner loop of current output. In this paper, a fuzzy control algorithm is added to the PI modulation of the busvoltage outer ring and the parameters of bus voltage loop are adjusted constantly to make the closedloop control more precise. Besides, the output quantity of the outer voltage loop is oneunit current. The inner loop of the double closed loop is a current loop, which adopts the deadbeat control algorithm to ensure the synchronization between the output current and power grid voltage.
3.1. Design of Deadbeat Algorithm in the PostGridConnected Stage
The poststage inverter output of the gridconnected operation mode adopts the output current control. The deadbeat control method based on the output current control is used in the gridconnected inverter system described in this paper. The control system is realized using a digital signal processor, which exhibits highly precise AD sampling and rapid internal operation, which is suitable for the deadbeat control.
When the inverter is operating in the gridconnected mode, the poststage inverter circuit is equivalent to the circuit diagram shown in Figure 5. The current of the filtering capacitance at the output end and the losses in the circuit should be neglected. The complete bridge is composed of –, where and perform the turnon operations alternatively, while and perform the turnoff operations alternatively to transfer power to the grid. is the filter inductance at the output end, while is the DC bus voltage generated by the firststage interleaving boost circuit and should be stabilized at about 420 V by the control strategy of a poststage fullbridge inverter. is the inverter output current, is the inverter output voltage, and is the power grid voltage.
The following equation can be obtained according to the output inductance characteristics:
The above equation can be transformed into the following equation within one control cycle of the switch tube:where is the filter inductance at the inverter output end; is the control cycle of the switch tube; the average value of the voltage at the inverter output end sampled during sampling period is ; the average value of the power grid voltage during sampling period is ; the inverter output current sampled during sampling period is ; the inverter output current sampled during () sampling period is is used to replace in (2) so as to ensure that the current passing through the filter inductance can track the reference current of the inverter output . Then,
The average value of the power grid voltage can be replaced with
From (4),
The poststage inverter output voltage of the gridconnected inverter is directly proportional to the firststage DC bus voltage; thus, the duty ratio of the highfrequency tube during the control cycle iswhere is a given reference signal of current at the cycle obtained by the combined effect of both PI voltage modulation and poststage phaselocked loop control during the process of full bridge inversion.
is the DC bus voltage, while and , respectively, are the effective values of power grid voltage and inverter output current sampled during the current cycle. The effective values of power grid voltage and inverter output current sampled during the last cycle can be expressed as . Therefore, the duty ratio of switch tube can be obtained through (7) to realize the deadbeat control over the entire circuit. According to (7), the control of the duty ratio of the switch tube can be used to regulate the reference current . However, the reference signal of the current should maintain its pace with the power grid voltage signal.
3.2. Design of GridConnected Fuzzy Control Algorithm Based on Deadbeat Algorithm
The system works steadily when its inverter output is combined with resistive loads, yet when the inductive or capacitive loads are connected to the inverter output of the system, as well as when the system is suffering from outside interference, the current and voltage at the load end fail to maintain synchronization and the system lacks stability. Besides, the harmonic rate of current and voltage at both ends of the load increases simultaneously. Similar problems exist in the mutual switchover of gridoff and gridconnected operating modes. Owing to the characteristics of fuzzy control, the fuzzy control method can be added to the original unipolar deadbeat control method to improve the stability of the inverter system when the nonlinear load is connected to the output end of the load. Fuzzy control is mainly introduced into the photovoltaic control system to properly modify the PI control parameters, and , which can eventually improve the system stability. The fuzzy controller should be added to the full bridge inverter control to effectively fortify the power factor [11, 12] during the gridconnected process of the inverter.
and are the two inputs of a fuzzy controller, where refers to the error in the fuzzy controller and is the error rate. Their relation can be expressed as
The double inputs designed in the paper are the current error and the change rate of current error , generated by the combined effect of the actual current at the sampling output end and the predictive current in the next cycle, while the double outputs are and [13], which are the manipulating variables of and in PI modulation. The fuzzy controller designed for the closedloop PI modulation of the firststage bus voltage in the gridconnected system is shown in Figure 6.
The following seven fuzzy variables are added to the fuzzy set: positive large, positive relatively large, positive relatively small, zero, negative relatively small, negative relatively large, and negative large, which are represented as PB, PE, PS, ZO, NS, NE, and NB, respectively.
The program preparation is conducted based on the rule table of fuzzy control, as shown in Tables 2 and 3.


The control strategy chart for the poststage fullbridge inversion of the photovoltaic gridconnected inverter is shown in Figure 7. A comparison between the sampled DC bus voltage and the reference value set in the system is performed via PI modulation. The fuzzy control algorithm is continuously used to adjust and in PI modulation, and the given amplitude of the gridconnected current can be obtained after the controlling operation of PI. The power grid voltage is captured at this moment. If the rising edge of the square wave is detected, the capture accessing the digital signal processor is interrupted to generate a unit sinusoidal current signal that is in sync with the power grid voltage. The predicted value of current in the next cycle can be obtained by multiplying the amplitudes of current signal and the sinusoidal signal. Finally, the predicted value of current in the next cycle, the effective value of current at the inverting output end, the effective value of power grid voltage sampled in the current cycle, the effective value of power grid voltage sampled in the last cycle, and the effective value of DC bus voltage are inputted into the deadbeat controller to output the PWM signal. After passing through the amplifying and isolating circuits, the square signal can drive the switch tube to produce a current with the same frequency and phase as those of the grid voltage.
4. Simulation and Analysis of Experimental Results
4.1. MPPT Simulation of FirstStage Fuzzy P&O Method
The light intensity of the photovoltaic array is = 1000 W/m^{2}, the ambient temperature is = 25°C, the maximum power is = 270 W, the voltage of the maximum power point is = 70 V, the voltage of the open circuit is = 100 V, the current of the short circuit is = 5 A, and the current of the maximum power point is = 3.8 A. The design power of the boost circuit is 1500 W, = = 1000 μF, = 2.0 mH, = 592 Ω, and the operating frequency is 20 kHz. The fuzzy MPPT model is formulated as shown in Figure 8, the power tracking diagram of the simulation output is shown in Figure 9, and the voltage tracking diagram is shown in Figure 10. Thus, the duration of MPPT is shortened to 0.04 s after adopting the fuzzy control, which is faster than the traditional perturbation method.
4.2. Experiment Design of Poststage FullBridge Inverting Fuzzy Deadbeat
When the output end is composed of loads with different characteristics, the load characteristics can be allocated via an electronic load device and the loads can be resistive, capacitive, inductive, or mixed. The introduction of a fuzzy control algorithm can significantly improve the quality of the gridconnected output current, especially if the output load is not a pure resistant one; the output waveform of the gridconnected output current appears much smoother than that of the current in the original unipolar algorithm, and there is lesser clutter. Meanwhile, the current at the load end is much smoother. The waveforms of the output current and voltage under the gridconnected operating mode are shown in Figure 11, where the first channel is the current at the load end, the second channel is the gridconnected output current, and the third channel is the power grid voltage.
(a) Waveform of conventional deadbeat control with 500 W resistive load + 300 W capacitive load
(b) Waveform of fuzzy control method with 500 W resistive load + 300 W capacitive load
(c) Waveform of conventional deadbeat control with 100 W capacitive load + 150 W inductive load + 500 W resistive load
(d) Waveform of fuzzy control method with 100 W capacitive load + 150 W inductive load + 500 W resistive load
The loads of (a) and (b) and those of (c) and (d) in Figure 11 are the same. (a) and (c) adopt the conventional deadbeat method, while (b) and (d) show the waveform figures of deadbeat control method after the introduction of the fuzzy control algorithm. According to (b) and (d), the waveforms of the gridconnected output current and load current are somewhat smoother and the harmonic wave is shortened.
5. Conclusions
In this study, modeling analysis is conducted for the MPPT of fuzzy controlbased P&O method in the first stage of photovoltaic grid connection in Matlab/Simulink. The MPPT of fuzzy controlbased P&O method and that of traditional P&O method are analyzed thoroughly by the simulation comparison. According to the simulation results, the MPPT of fuzzy controlbased P&O method exhibits rapid response and small steadystate oscillation, which can effectively make up for the shortcomings of the traditional P&O method, improve system efficiency, and reduce power losses to an extreme. In addition, the fuzzy control algorithm is added to the full bridge inversion of the postgridconnected stage, and the experiment is performed in the formulated experimental platform. Loads with different characteristics are added to the output end of the postgridconnected stage in order to compare the conventional deadbeat control method and the fuzzy controlbased deadbeat control method. The results show that the fuzzy controlbased deadbeat control method can enhance the robustness and reduce the harmonic wave when the system relates to nonlinear load.
Conflicts of Interest
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Acknowledgments
The authors acknowledge financial support for this research from: Third Batch Innovative Research Team Introduction Program of Dongguan City in 2015 (2017360004004), Special Funding of Collaborative Innovation and Platform Circumstance Construction of Guangdong Province (2016B090918067), and IndustryUniversityResearch of Dongcheng District, Dongguan City, in 2015; Natural Science Foundation of Guangdong Province (2015A030313675).
References
 S. Bououden, M. Chadli, S. Filali, and A. El Hajjaji, “Fuzzy model based multivariable predictive control of a variable speed wind turbine: LMI approach,” Journal of Renewable Energy, vol. 37, no. 1, pp. 434–439, 2012. View at: Publisher Site  Google Scholar
 H. Dahmani, M. Chadli, A. Rabhi, and A. El Hajjaji, “Road curvature estimation for vehicle lane departure detection using a robust TakagiSugeno fuzzy observer,” Vehicle System Dynamics, vol. 51, no. 5, pp. 581–599, 2013. View at: Publisher Site  Google Scholar
 S. Bououden, M. Chadli, and H. R. Karimi, “An ant colony optimizationbased fuzzy predictive control approach for nonlinear processes,” Information Sciences, vol. 299, pp. 143–158, 2015. View at: Publisher Site  Google Scholar  MathSciNet
 M. Görig and C. Breyer, “Energy learning curves of PV systems,” Environmental Progress & Sustainable Energy, vol. 35, no. 3, pp. 914–923, 2016. View at: Google Scholar
 E. D. Aranda, J. A. Gómez Galan, M. S. de Cardona, and J. M. Andújar Márquez, “Measuring the IV curve of PV generators: Analyzing different dcdc converter topologies,” IEEE Industrial Electronics Magazine, vol. 3, no. 3, pp. 4–14, 2009. View at: Publisher Site  Google Scholar
 P. Manimekalai, R. Harikumar, and S. Raghavan, “A hybrid maximum power point tracking (MPPT) with interleaved converter for standalone photo voltaic (PV) power generation system,” Annual Review of Microbiology, vol. 60, no. 3, pp. 451–475, 2014. View at: Google Scholar
 D. Sharma K and G. Purohit, “Advanced perturbation and observation (PO) based maximum power point tracking (MPPT) of a solar photovoltaic system[C],” in Proceedings of the IEEE India International Conference on Power Electronics, p. 1, 2012. View at: Google Scholar
 A. Al Nabulsi and R. Dhaouadi, “Efficiency optimization of a dspbased standalone PV system using fuzzy logic and dualMPPT control,” IEEE Transactions on Industrial Informatics, vol. 8, no. 3, pp. 573–584, 2012. View at: Publisher Site  Google Scholar
 Y.T. Chen, Y.C. Jhang, and R.H. Liang, “A fuzzylogic based autoscaling variable stepsize MPPT method for PV systems,” Solar Energy, vol. 126, pp. 53–63, 2016. View at: Publisher Site  Google Scholar
 M. Abdourraziq A, M. Ouassaid, and M. Maaroufi, “A fuzzy logic MPPT for photovoltaic systems using single sensor,” in Proceedings of the Renewable and Sustainable Energy Conference, pp. 52–56, IEEE, 2015. View at: Google Scholar
 G.R. Yu, J.J. Lai, and J.Y. Liu, “TS fuzzy control of a singlephase bidirectional inverter,” in Proceedings of the IEEE International Conference on Industrial Technology, ICIT 2016, pp. 1462–1467, IEEE, March 2016. View at: Publisher Site  Google Scholar
 A. Tomova, M. Antchev, M. Petkova, and H. Antchev, “Fuzzy logic hysteresis control of a singlephase ongrid inverter: Computer investigation,” International Journal of Power Electronics and Drive Systems, vol. 3, no. 2, pp. 179–184, 2013. View at: Publisher Site  Google Scholar
 L. K. Letting, J. L. Munda, and Y. Hamam, “Optimization of a fuzzy logic controller for PV grid inverter control using Sfunction based PSO,” Solar Energy, vol. 86, no. 6, pp. 1689–1700, 2012. View at: Publisher Site  Google Scholar
Copyright
Copyright © 2018 Zhaohong Zheng et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.