A Robust Fuzzy Logic PI Controller For Solar System Battery Charging
A Robust Fuzzy Logic PI Controller For Solar System Battery Charging
Corresponding Author:
Mohammed Zerouali
Team of Embedded Systems, Renewable Energy and Artificial Intelligence
National School of Applied Sciences, Mohammed First University Oujda
Higher School of Technology, BP 473 Al Qods University Complex, Oujda 60,000, Morocco
Email: [email protected]
1. INTRODUCTION
The global need for electricity has increased dramatically, especially in remote rural areas and
mountains. Coal, oil, gas and other fossil fuels are still needed to provide electricity and heat. However, they
are the main emitters of CO2 and their stocks, unlike renewable sources, are finite. Photovoltaic (PV) systems
have attracted the interest of many people due to their low cost. These systems have several advantages, such
as being environmentally friendly and offering a higher degree of immunity. If not consumed directly the
generated energy will be stored in batteries for later use. However, these panels have low efficiency range [1]
as well as a current and voltage that are influenced by varying environmental circumstances such as temperature
degree and the amount of radiation coming from the sun [2]. Due to the PV’s nature of nonlinearity concerning
the electrical energy production, there is merely one point on its curve where the PV cell generates the greatest
amount of electrical power. A special control algorithm is needed to keep tracking of the maximum power
point MPP and here where the technique of maximum power point tracking interferes to enhance the
performance of solar generators. Traditional procedures such as fractional open circuit (FOCV), perturb and
observe (P&O), fractional short circuit (FSCC), conductance increment (INC) [2] and innovative strategies such
as perturb and observe (P&O) [3] are divided into two main groups in the literature. However, techniques such as
fuzzy logic (FLC), sliding mode controller (SMC), neural network (ANN) and others can be discovered [4].
For charging the batteries, several control techniques are proposed, Latif and Hussain [5] investigated
a system to charge a battery using an MPPT incremental conductance strategy that employs a SEPIC converter
and PI control deployed to a Buck converter to compare the explored system with similar work. In order to
charge a battery, a DC-DC Boost converter uses fuzzy logic as an MPPT approach, and a Buck converter uses
a PI controller. This system was explored by Yilmaz et al. [6], however, using PI controllers are not suitable
for this process since the gains are tuned manually or by optimization techniques and fixed, so it is more suitable
to develop other techniques where the gains are variable during nonlinear variations. Sliding mode and model
predictive controllers are proposed as solution of lacks and drawbacks of PI controllers, but the implementation
of these is difficult; since the sliding mode need to define the sliding surface which is a part of the control
law [7], [8]. Moreover, the model predictive, require programming of system parameters, which increases the
number of sensors used and leads to high implementation costs.
Fuzzy control, which is a part of fuzzy logic, appeared very effective given the advantages such the
non-necessity of a mathematical model and the input variables are considered as fuzzy linguistic inputs [9].
So, this concept allows to improve the behavior of PI controller whit the conservation the same easiness of
implementation, with generation of variable gains with better set point control (constant current and voltage).
The studied system consists of a solar generator, connected to a DC-DC boost converter controlled by a novel
MPPT known as a variable step size P&O (VSS P&O). The concept is to adjust the step size of the MPPT P&O
algorithm using fuzzy logic controller. A DC-DC Buck converter is controlled by a PID controller to target the
necessary voltage in order to charge a battery by adjusting the Kp, Ki and Kd coefficient. The main contribution
of this paper is proposing a robust PI-FL controller to adapt the PI parameters called “optimal PI”. Figure 1
illustrates the configuration of the system.
A robust fuzzy logic PI controller for solar system battery charging (Mohammed Zerouali)
386 ISSN: 2088-8694
𝑞.(𝑉+𝑅𝑠 𝐼)
𝐼𝑑 = 𝐼𝑠 (𝑒𝑥𝑝( − 1) (2)
𝑁.𝐾.𝑇
Int J Pow Elec & Dri Syst, Vol. 14, No. 1, March 2023: 384-394
Int J Pow Elec & Dri Syst ISSN: 2088-8694 387
3. DC-DC CONVERTER
3.1. DC-DC boost converter
The figure above shows the boost converter's fundamental circuit. This particular converter is
generally used as adaptation circuit, to provide a high output voltage [13]. It’s composed of an inductor, a
controlled switch, a diode and a capacitor. Figure 5 illustrates the equivalent circuit.
The performance of the DC-DC converter is influenced by the size of the inductor and capacitor. You
can determine their values by (4) [14].
𝐷.𝑉 𝐼0 .𝐷
𝐿= 𝐶= (4)
𝛥𝐼𝐿 .𝑓 𝛥𝑉0 .𝑓
𝑉0 .(1−𝐷) (1−𝐷) 𝑉0
𝐿= 𝐶= (5)
𝛥𝐼𝐿 .𝑓 8𝛥𝑉0 .𝑓
With: ∆IL, ∆V0 which stand for the ripple rates of the output voltage and the current flowing through the
inductor, respectively.
A robust fuzzy logic PI controller for solar system battery charging (Mohammed Zerouali)
388 ISSN: 2088-8694
the MPPT P&O algorithm (VSS P&O), overcoming the constraints of the standard fixed step size of MPPT
P&O [20]. Figure 8 shows a schematic of the variable-step fuzzy logic MPPT P&O algorithm (VSS P&O).
Figure 8. The flowchart for variable step size P&O (VSS P&O)
Int J Pow Elec & Dri Syst, Vol. 14, No. 1, March 2023: 384-394
Int J Pow Elec & Dri Syst ISSN: 2088-8694 389
The inputs e(t) and e of the ideal PI controller are represented by (6) and (7) [23].
A robust fuzzy logic PI controller for solar system battery charging (Mohammed Zerouali)
390 ISSN: 2088-8694
This section will provide the ideal PI controller's e(t) and e input variables will be used as fuzzy block inputs.
Ki and Kp will be the results. The Figure 12 presented membership function of e(t), e, KI, and Kp.
5. STORAGE MODELLING
The goal of employing batteries is to store extra energy and satisfy the need for charging during the
night or inclement weather. Figure 13 provides an illustration of the proposed model of the battery model is
defined [24], [25]. The following equation, which represents a battery's terminal voltage, is written as (8).
𝑉 = 𝐸𝑏 ± 𝐼𝑏 ⋅ 𝑅 (8)
R: internal resistance, 𝐼𝑏 : battery current, and𝐸𝑏 : voltage source the following criteria define battery capacity
C as (9).
𝐸𝑑 ⋅𝑁𝑑
𝐶= (9)
𝑉⋅𝐷𝑂𝐷⋅𝜂𝑏
𝐸𝑑 : The load's daily electrical energy requirement, 𝑁𝑑 :the number of days spent on your own. 𝑉 : The battery
electrical tension, and 𝐷𝑂𝐷 is the discharge depth and 𝜂𝑏 is the performance of the battery.
The battery current affects the battery's state of charge (SOC) (Ib). The following equation yields the
SOC: [26].
𝑘 𝐼𝑏
𝑆𝑂𝐶(𝑘) = 𝑆𝑂𝐶(𝑘 − 1) − ∫𝑘−1 . 𝑑𝑘 (10)
𝐶𝑏
Int J Pow Elec & Dri Syst, Vol. 14, No. 1, March 2023: 384-394
Int J Pow Elec & Dri Syst ISSN: 2088-8694 391
Figure 16. The evolution of the power generated by the P&O and VSS P&O algorithms
A robust fuzzy logic PI controller for solar system battery charging (Mohammed Zerouali)
392 ISSN: 2088-8694
Figure 17. The evolution of the power produced for one day
Figure 18. Compares the output voltage of a buck converter for a voltage of 12 volts with optimal PI and PID
control for one day
Figure 19. Compares the output voltage of a buck converter for a voltage of 24 volts with optimal PI and PID
control for one day
Int J Pow Elec & Dri Syst, Vol. 14, No. 1, March 2023: 384-394
Int J Pow Elec & Dri Syst ISSN: 2088-8694 393
Figure 20. Compares the output voltage of a buck converter for a voltage of 48 volts with optimal PI and PID
control for one day
7. CONCLUSION
The proposed photovoltaic system, which displayed a nonlinear feature, aims to harvest the most
power possible utilizing P&O tracking techniques, in contrast to a Variable Step Size P&O (VSS P&O). The
utilization of the second DC-DC converter for battery charging is controlled by the standard PID and the
proposed Optimal PI. According to simulation studies, the latter guarantees a faster response time and greater
voltage stability while controlling the voltage in the terminal’s battery.
REFERENCES
[1] K. Ishaque, Z. Salam, and Syafaruddin, “A comprehensive MATLAB Simulink PV system simulator with partial shading capability
based on two-diode model,” Solar Energy, vol. 85, no. 9, pp. 2217-2227, 2011, doi: 10.1016/j.solener.2011.06.008.
[2] D. Singh, R. Yadav and Jyotsana, “Perturb and Observe Method MATLAB Simulink and Design of PV System Using Buck Boost
Converter,” International Journal of Science, Engineering and Technology Research, vol. 3, no. 6, pp. 1692-1996, 2014.
[3] M. Boutouba, S. Assahout, A. E. Ougli and B. Tidhaf, “Improved maximum power point tracking using fuzzy logic control with
SEPIC converter for photovoltaic systems,” 6th International Renewable and Sustainable Energy Conference (IRSEC), 2018, pp.
1-8, doi: 10.1109/IRSEC.2018.8702903.
[4] S. Chtita, A. Derouich, A. El Ghzizal, and S. Motahhir, “An improved control strategy for charging solar batteries in off-grid
photovoltaic systems,” Solar Energy, vol. 220, no. April, pp. 927-941, 2021, doi: 10.1016/j.solener.2021.04.003.
[5] T. Latif and S. R. Hussain, “Design of a charge controller based on SEPIC and buck topology using modified Incremental
Conductance MPPT,” 8th International Conference on Electrical and Computer Engineering, 2014, pp. 824-827, doi:
10.1109/ICECE.2014.7026999.
[6] U. Yilmaz, A. Kircay, and S. Borekci, “PV system fuzzy logic MPPT method and PI control as a charge controller,” Renewable
and Sustainable Energy Reviews, vol. 81, pp. 994-1001, 2018, doi: 10.1016/j.rser.2017.08.048.
[7] S. Miqoi, A. E. Ougli, and B. Tidhaf, “Design of an adaptive sliding mode controller for efficiency improvement of the MPPT for
PV water pumping,” International Journal of Intelligent Engineering Informatics, vol. 7, no 1, pp. 19-36, 2019.
[8] D. Rekioua, A. Y. Achour and T. Rekioua, “Tracking power photovoltaic system with sliding mode control strategy,” Energy
Procedia, vol. 36, pp. 219-230, 2013, doi: 10.1016/j.egypro.2013.07.025.
[9] S. Nemsi, L. Barazane, S. Diaf, and A. Malek, “Comparative study between two maximum power point tracking (MPPT) techniques
for photovoltaic system,” Revue des Energies Renouvelables, vol. 16, no. 4, pp. 773-782, 2013.
[10] S. Motahhir, A. El. Hammoumi, and A. E. Ghzizal, “Photovoltaic system with quantitative comparative between an improved MPPT
and existing INC and P&O methods under fast varying of solar irradiation,” Energy Reports, vol. 4, pp. 341-350, 2018, doi:
10.1016/j.egyr.2018.04.003.
[11] B. Boukezata, A. Chaoui1, J-P. Gaubert, and M. Hachemi, “An improved fuzzy logic control MPPT based P&O method to solve
fast irradiation change problem,” Journal of Renewable and Sustainable Energy, vol. 8, no. 4, 2016, doi: 10.1063/1.4960409.
[12] L. Bouselham, B. Hajji, A. Mellit, A. Rabhi and K. Kassmi, “Hardware implementation of new irradiance equalization algorithm
for reconfigurable PV architecture on a FPGA platform,” International Conference on Wireless Technologies, Embedded and
Intelligent Systems (WITS), 2019, pp. 1-8, doi: 10.1109/WITS.2019.8723746.
[13] T. Arunkumari, V. Indragandhi, and S. Sreejith, “Topologies of a dc–dc converter for micro-grid application and implementation
of parallel quadratic boost converter,” Lecture Notes in Electrical Engineering book series, vol. 435, pp. 633–644, 2018, doi:
10.1007/978-981-10-4286-7_63.
[14] D. G and S. N. Singh, “Selection of non-isolated DC-DC converters for solar photovoltaic system,” Renewable and Sustainable
Energy Reviews, vol. 76, pp. 1230-1247, 2017, doi: 10.1016/j.rser.2017.03.130.
[15] R. Patil and H. Anantwar, “Comparitive analysis of fuzzy based MPPT for buck and boost converter topologies for PV application,”
International Conference on Smart Technologies for Smart Nation (SmartTechCon), 2017, pp. 1479-1484, doi:
10.1109/SmartTechCon.2017.8358610.
[16] A. A. Abdulrazzaq and A. H. Ali, “Efficiency performances of two MPPT algorithms for PV system with different solar panels
irradiances,” International Journal of Power Electronics and Drive System, vol. 9, no. 4, pp. 1755-1764, 2018, doi:
10.11591/ijpeds.v9.i4.pp1755-1764.
A robust fuzzy logic PI controller for solar system battery charging (Mohammed Zerouali)
394 ISSN: 2088-8694
[17] R. Vinod, R. Kumar, and S. K. Singh, “Solar photovoltaic modeling and simulation: As a renewable energy solution,” Energy
Reports, vol. 4, pp. 701-712, 2018, doi: 10.1016/j.egyr.2018.09.008.
[18] M. Regad, M. Helaimi, R. Taleb, A. M. Othman, and H. A. Gabbar, “Control of hybrid power system based renewable energy
generations using pid controller,” International Journal of Power Electronics and Drive System, vol. 11, no. 4, pp. 1775-1784,
2020, doi: 10.11591/ijpeds.v11.i4.pp1775-1784.
[19] S. Miqoi, A. El Ougli, and B. Tidhaf, “Adaptive fuzzy sliding mode based MPPT controller for a photovoltaic water pumping
system,” International Journal of Power Electronics and Drive System, vol. 10, no. 1, pp. 414-422, 2019, doi:
10.11591/ijpeds.v10.i1.pp414-422.
[20] S. Fezai and J. Belhadj, “Sizing optimization of a stand-alone photovoltaic system using genetic algorithm,” 18th International
Conference on Sciences and Techniques of Automatic Control and Computer Engineering (STA), 2017, pp. 499-504, doi:
10.1109/STA.2017.8314914.
[21] Z. Mohammed, E. O. Abdelghani and T. Belkassem, “Single-phase photovoltaic grid-connected inverter based on fuzzy Variable
Step Size P&O control,” Fifth International Conference on Intelligent Computing in Data Sciences (ICDS), 2021, pp. 1-6, doi:
10.1109/ICDS53782.2021.9626769.
[22] M. Aidoud, C. E. Feraga, M. Bechouat, M. Sedraoui, and S. Kahla, “Development of photovoltaic cell models using fundamental
modeling approaches,” Energy Procedia, vol. 162, pp. 263-274, 2019, doi: 10.1016/j.egypro.2019.04.028.
[23] H. Bellia, R. Youcef, and M. Fatima, “A detailed modeling of photovoltaic module using MATLAB,” NRIAG Journal of Astronomy
and Geophysics, vol. 3, no. 1, pp. 53-61, 2014, doi: 10.1016/j.nrjag.2014.04.001.
[24] M. Benzaouia, B. Hajji, A. Rabhi, A. Mellit, A. Benslimane, A. M. Dubois, “Energy management strategy for an optimum control
of a standalone photovoltaic-batteries water pumping system for agriculture applications,” Springer, Singapore, vol. 681, doi:
10.1007/978-981-15-6259-4_89.
[25] L. H. Saw, K. Somasundaram, Y. Ye, and A. A. O. Tay, “Electro-thermal analysis of Lithium Iron Phosphate battery for electric
vehicles,” Journal of Power Sources, vol. 249, pp. 231-238, 2014, doi: 10.1016/j.jpowsour.2013.10.052.
[26] N. Omar et al., “Lithium iron phosphate based battery - Assessment of the aging parameters and development of cycle life model,”
Applied Energy, vol. 113, pp. 1575-1585, 2014, doi: 10.1016/j.apenergy.2013.09.003.
BIOGRAPHIES OF AUTHORS
Int J Pow Elec & Dri Syst, Vol. 14, No. 1, March 2023: 384-394