Experimental validation of a hybrid AC/DC microgrid energy management system using Processor-in-the-Loop testing for green energy applications
This paper presents the experimental validation of an energy management system (EMS) for a hybrid AC/DC microgrid (MG) that integrates renewable energy sources (RES) and a gas turbine as an auxiliary source. The MG, connected to the main grid, allows bidirectional energy exchange to meet variable power demands. The validation uses Processor-in-the-Loop (PIL) testing, implemented on an ESP32 microcontroller, and features a Human–Machine Interface (HMI) for real-time monitoring and interaction. The study adopts a Model-Based Design (MBD) approach, progressing through the MIL, SIL, and PIL phases to ensure EMS accuracy and reliability. PIL testing combines EMS running on the ESP32 with a MATLAB/Simulink MG model in a closed-loop configuration. The key scenarios analyzed include power exchange profiles, daily C O 2 emissions, and visualization of power balance through the HMI. The results confirm the effectiveness of the EMS, with a strong alignment between PIL and conventional simulations, while highlighting hardware-induced delays. EMS achieves substantial improvements in C O 2 emission reduction, integration of RES and cost optimization. This work demonstrates the robustness of PIL testing for EMS validation, bridging simulation, and real-world deployment. The HMI improves usability and diagnostic capabilities, paving the way for efficient and scalable EMS in hybrid MG.
Authors
- Ssadik Charadi (ORCID: https://orcid.org/0009-0009-5774-1030)
- Maha Annoukoubi (ORCID: https://orcid.org/0000-0002-2965-5292)
- Abdennebi El Hasnaoui
- Youssef Akarne (ORCID: https://orcid.org/0009-0001-0944-6485)
- Abdelbari Redouane (ORCID: https://orcid.org/0000-0002-6120-2023)
- Houssam Eddine Chakir (ORCID: https://orcid.org/0000-0003-3465-4726)
Institutions
- Instituts Supérieurs des Professions Infirmières et Techniques de Santé (MA)
- Moroccan Foundation for Advanced Science, Innovation and Research (MA)
- École Normale Supérieure de l'Enseignement Technique de Mohammedia (MA)
- Université Mohammed VI Polytechnique (MA)
- National School of Mineral Industry (MA)
- Université Hassan II Mohammedia (MA)
Publication Details
- Journal
- Franklin Open
- Published
- 2025-11-28
- DOI
- https://doi.org/10.1016/j.fraope.2025.100453
- Primary Topic
- Real-time simulation and control systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00