Raspberry Pi Design and Hardware Implementation of Fuzzy-PI Controller for Three-Phase Grid-Connected Inverter
Abstract
:1. Introduction
2. Complete Descriptions of the Simulink Components of PV System
2.1. Input Voltage
- There is a use of a simplified I–V curve model introduced in other papers [21].
- In this Simulink model, the researcher is concerned with the inverter controller. The researcher uses the value of the voltage at the MPPT generated by the boost converter.
- There is a model of a PV array and a boost converter with a single voltage source parallel with two series capacitors.
- The paper [21] shows that the voltage source model approximates the real photovoltaic panel operation.
2.2. Fuzzy-PI Controller
2.3. Inverter
- The two-level bridge is connected to a DC power supply.
- The bridge output is connected to the three-phase LC filter.
- Use a three-phase measurement block after the three-phase LC filter.
2.4. Three-Phase Loads
2.5. Total Harmonic Distortion
- The main measurement results obtained from Simulink prove that the fuzzy-PI controller works in theory, and then the experimental result is total harmonic distortion.
- Simulink uses the THD block to measure the total harmonic distortion of the inverter output signal.
3. Simulink Results
4. GUI for System Design and Sizing for All Components of the System Modules
4.1. Sizing for Inverter
4.2. Sizing for Boost Converter
4.3. Sizing for PV Array
5. Hardware Implementation of Fuzzy-PI Controller for Grid-Connected Inverter, Code Generation, and Experimental Results
5.1. Sensing Circuits
5.1.1. Voltage Sensing Circuit
5.1.2. Current Sensing Circuit
- In the hardware experiment, three current sensors are used to sense the current.
- The sensor circuit is an HW-872 card with an ACS712 integrated circuit installed [30].
5.2. Controller
5.3. Inverter
6. Conclusions and Future Works
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
PV | Photovoltaic solar cell. |
MPPT | Maximum power point |
THD | Total harmonic distortion |
PLL | Phase-locked loop |
PSIM | Physical security information management |
FLC | Fuzzy logic controller |
SFPIC | Simplified fuzzy-PI controller |
MMC | Modular multilevel converter |
PI | Proportional integral |
PWM | Pulse width modulation |
ADC | Analog to digital converter |
P.F | Power factor |
PWM | Pulse-width modulator |
Nomenclature
Id, Iq | Direct and quadrature current |
Vd, Vq | Direct and quadrature voltage |
Kp, Ki | Proportional and integral gains of the PI controllers |
fn | The nominal frequency |
References
- Abdalhalim, Z. Computer-aided analysis of stepped sine wave inverters. Sol. Cells 1991, 31, 559–580. [Google Scholar]
- Rajasekar, S.; Rajesh, G. Rapid prototyping of power electronics converters for photovoltaic system application using Xilinx system generator. IET Power Electron. 2014, 7, 2269–2278. [Google Scholar]
- Sayed, K.; Gabbar, H. Electric vehicle to power grid integration using three-phase three-level AC/DC converter and PI-Fuzzy controller. Energies 2016, 9, 532. [Google Scholar] [CrossRef]
- Abdalhalim, Z.; Slim, A. Investigations on Stepped sine wave push-pull inverter. In Proceedings of the 12th International Mechanical Power Engineering Conference IMPEC, Mansoura, Egypt, 30 October–1 November 2001; p. 12. [Google Scholar]
- Abobakr, A.; Abdalhalim, Z. Three-Phase Grid-Connected Inverter. Ph.D. Thesis, Ain-Shams University, Cairo, Egypt, 2008. [Google Scholar]
- Abdalhalim, Z.; Ahmed, A.; Ahmed, A. Simulation and implementation of grid-connected inverters. Int. J. Appl. 2012, 60, 41–49. [Google Scholar]
- Ahmed, A.; Abdalhalim, Z. Control of the grid-connected inverter using Dspic microcontroller. In Proceedings of the 2013 Second International Japan-Egypt Conference on Electronics, Communications, and Computers (JEC-ECC), Cairo, Egypt, 17–19 December 2013; IEEE: New York, NY, USA, 2013; pp. 159–164. [Google Scholar]
- Tchoketch, G.; Larbes, C.; Ilinca, A.; Obeidi, T.; Tchoketch, S. Study of the intelligent behavior of a maximum photovoltaic energy tracking Fuzzy controller. Energies 2018, 11, 3263. [Google Scholar] [CrossRef] [Green Version]
- Bakkar, M.; Aboelhassan, A.; Abdelgeliel, M.; Galea, M. PV Systems Control Using Fuzzy Logic Controller Employing Dynamic Safety Margin under Normal and Partial Shading Conditions. Energies 2021, 14, 841. [Google Scholar] [CrossRef]
- Othmane, S.; Mohamed, B.; Abdelmoumen, T. Control of Three-Phase Grid-Connected Photovoltaic Power Systems. In Proceedings of the December 2018 IEEE 5th International Congress on Information Science and Technology (CiSt), Marrakech, Morocco, 21–27 October 2018; pp. 542–546. [Google Scholar]
- Radwan, E.; Nour, M.; Awada, E.; Baniyounes, A. Fuzzy Logic Control for Low-Voltage Ride-Through Single-Phase Grid-Connected PV Inverter. Energies 2019, 12, 4796. [Google Scholar] [CrossRef] [Green Version]
- Thiagarajan, Y.; Sivakumaran, T.S.; Sanjeevikumar, P. Design and simulation of Fuzzy controller for a grid-connected standalone PV system. In Proceedings of the 2008 International Conference on Computing, Communication, and Networking, Karur, India, 18–20 December 2008; IEEE: New York, NY, USA, 2008; pp. 1–6. [Google Scholar]
- Ayman, Y.; Mohammed, E.-T.; Abdalhalim, Z. Design and simulation of Fuzzy controller for three-phase grid-connected PV systems. Int. J. Eng. Technol. 2018, 7, 5554–5557. [Google Scholar]
- Mansiri, K.; Sukchai, S.; Sirisamphanwong, C. Fuzzy control for smart PV-battery system management to stabilize grid voltage of 22 kV distribution system in Thailand. Energies 2018, 11, 1730. [Google Scholar] [CrossRef] [Green Version]
- Roselyn, J.; Chandran, C.; Nithya, C.; Devaraj, D.; Venkatesan, R.; Varun, G.; Sai, M. Design and implementation of Fuzzy logic based on modified real-reactive power control of inverter for low voltage ride through enhancement in grid-connected solar PV system. Control. Eng. Pract. 2020, 101, 104–494. [Google Scholar] [CrossRef]
- Mutlag, A.; Mohamed, A.; Shareef, H. A nature-inspired optimization-based optimum Fuzzy logic photovoltaic inverter controller utilizing an eZdsp F28335 board. Energies 2018, 9, 120. [Google Scholar] [CrossRef] [Green Version]
- Ngoc, -T.N.; Hong, -H.L. Fuzzy-PI controller for grid-connected inverters. In Proceedings of the International Conference on Intelligent Computing; 7th International Conference, ICIC 2011, Zhengzhou, China, 11–14 August 2011; Springer: Berlin/Heidelberg, Germany, 2011; pp. 300–308. [Google Scholar] [CrossRef]
- Ayob, S.M.; Salam, Z.; Azli, N.A. Inverter control using a simplified Fuzzy-PI controller. In Proceedings of the 5th IET International Conference on Power Electronics, Machines and Drives (PEMD 2010), Brighton, UK, 19–21 April 2010; IET: London, UK, 2010. [Google Scholar] [CrossRef]
- Sefa, L.; Altin, N.; Ozdemir, S.; Kaplan, O. Fuzzy-PI controlled inverter for grid-interactive renewable energy systems. IET Renew Power Gener. 2015, 9, 729–738. [Google Scholar] [CrossRef] [Green Version]
- Sameh, M.; Abdalhalim, Z.; Ayman, Y.; Wagdi, R.A. Average household grid-connected PV generator with different intelligent controllers. In Proceedings of the 2021 38th National Radio Science Conference NRSC, Mansoura, Egypt, 27–29 July 2021; IEEE: New York, NY, USA, 2021; Volume 1, pp. 186–198. [Google Scholar] [CrossRef]
- Lauris, B.; Andrejs, S.; Ilja, G. Comparison of a traditional diode photovoltaic model and simplified I-V curve based model. In Proceedings of the 5 the International Symposium Topical Problems in the Field of Electrical and Power Engineering, Doctoral School of Energy and Geotechnology, Kuressaare, Estonia, 14–19 January 2008. [Google Scholar]
- Mohamed, A.E.; Wagdy, M.; Khaled, E.-M.; Fahmi, B. Fuzzy stabilizer design for renewable energy-based distribution networks. In Proceedings of the 22nd International Conference and Exhibition on Electricity Distribution (CIRED 2013), Stockholm, Sweden, 10–13 June 2013; pp. 1–4. [Google Scholar]
- Lin, B.R. Analysis of Fuzzy Inverter Control. Eur. Trans. Electr. Power 2007, 5, 239–246. [Google Scholar] [CrossRef]
- Harsha, A.; Lakshmikantha, B.R.; Shanmukha, S. Fuzzy self-tuning PI controller based-inverter control for voltage regulation in off-grid hybrid power system, VIT University, Chennai Campus. Energy Procedia 2017, 117, 409–416. [Google Scholar] [CrossRef]
- Yazdani, A.; Iravani, R. Voltage-Sourced Converters in Power Systems: Modeling, Control, and Applications; John Wiley & Sons: Hoboken, NJ, USA; IEEE: New York, NY, USA, 2010; p. 541. [Google Scholar]
- Mohammad, P.; Khadivi, Y. Optimization of Space Vector Pulse Width Modulation Switching Algorithms for Two-Level Inverters Regarding Different Objective Functions. J. Basic Appl. Sci. Res. 2012, 2, 7632–7644. [Google Scholar]
- Kamran, Z.; Saif, I.; Waqar, D.; Imran, K.; Muhammad, I.; Tiago, B.; Iftikhar., A.; Hee, K. Design of Fuzzy-PI and Fuzzy-sliding mode controllers for single-phase two-stage grid-connected transformerless photovoltaic inverter. Electronics 2019, 8, 520. [Google Scholar] [CrossRef] [Green Version]
- Essaghir, S.; Benchagra, M.; El-Barbri, N. Comparative study of three-phase grid-connected photovoltaic system using pi, pr and Fuzzy logic PI controller with harmonic analysis. Int. J. Electr. Comput. Eng. 2020, 8, 43–53. [Google Scholar]
- LM358 ACTIVE Dual, 30-V, 700-kHz Operational Amplifier. Available online: https://www.ti.com/product/LM358 (accessed on 25 July 2021).
- ACS712 Datasheet (PDF)-Allegro Micro Systems. Available online: https://www.alldatasheet.com/datasheet-pdf/pdf/205336/ALLEGRO/ACS712.html (accessed on 25 July 2021).
- Safaa, A.; Amin, B.; Nabi, M. The Common Use of Pulse Width Modulation “PWM” Technique in Power Electronics. Int. J. Sci. Res. 2014, 3, 2129–2132. [Google Scholar]
- 250V Polypropylene Film Capacitor CBB22 184J Supplier. Available online: https://capacitorsfilm.com/product/cbb22-474j400v-film-capacitor-manufacturer (accessed on 25 July 2021).
Parameters | Values |
---|---|
Settling time(s) | 0.121 |
Peak time(s) | 0.076 |
Overshoot(per.) | 5.941 |
Average THD of inverter current (per.) | 0.744 |
Parameter | Values |
---|---|
Irradiance | 1000 W/m2 |
No. of cells per module | 96 Cells/module |
Max. power (Pmax) | 305.226 W |
Module open-circuit voltage (Voc) | 64.2 V |
Module short-circuit current (Ish) | 5.960 A |
Voltage at max. power point of module | (Vmp) 54.70 V |
Current at max. power point of module | (Imp) 5.580 A |
Cell temperature | 25 deg.C |
Temperature coefficient of Voc | 0.27269%/deg.C |
Module light generated current (IL) | 6.0092 A |
Module diode saturation current (Io) | 6.3014 × 10−12A |
Shunt resistance (Rsh) | 269.5934 ohms |
Series resistance (Rs) | 0.37152 ohms |
Inverter | Parameters |
---|---|
MOSFET | IRFP450 |
Gate Drivers | IR2110 |
Capacitor | 1 µF |
Parameters | Values |
---|---|
Input DC voltage (V) | 50 |
Input DC current (A) | 1.5 |
Input DC power (W) | 75.11 |
Output phase current (A) (r.m.s) | 1.4 |
Output phase voltage (V) (r.m.s) | 17.6 |
Output three-phase power (W) | 73.42 |
Inverter efficiency (%) | 97.8 |
Active load power (p) (W) | 70 |
The nominal frequency fn (Hz) | 60 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Mostafa, S.; Zekry, A.; Youssef, A.; Anis, W.R. Raspberry Pi Design and Hardware Implementation of Fuzzy-PI Controller for Three-Phase Grid-Connected Inverter. Energies 2022, 15, 843. https://doi.org/10.3390/en15030843
Mostafa S, Zekry A, Youssef A, Anis WR. Raspberry Pi Design and Hardware Implementation of Fuzzy-PI Controller for Three-Phase Grid-Connected Inverter. Energies. 2022; 15(3):843. https://doi.org/10.3390/en15030843
Chicago/Turabian StyleMostafa, Sameh, Abdelhalim Zekry, Ayman Youssef, and Wagdi Refaat Anis. 2022. "Raspberry Pi Design and Hardware Implementation of Fuzzy-PI Controller for Three-Phase Grid-Connected Inverter" Energies 15, no. 3: 843. https://doi.org/10.3390/en15030843
APA StyleMostafa, S., Zekry, A., Youssef, A., & Anis, W. R. (2022). Raspberry Pi Design and Hardware Implementation of Fuzzy-PI Controller for Three-Phase Grid-Connected Inverter. Energies, 15(3), 843. https://doi.org/10.3390/en15030843