Integrated Cloud and Hardware-in-the-Loop Framework for IoT-Based Control and Monitoring
DOI:
https://doi.org/10.18618/REP.e202616Keywords:
Cloud-Based Platform, Hardware-in-the-Loop, Isolated Power Energy System, Battery Energy Storage Systems, State of Charge ManagementAbstract
This work introduces a Cloud-in-the-Loop approach that combines Internet of Things (IoT) devices with Hardware-in-the-Loop simulation for testing control and monitoring applications. The proposed architecture employs a three-level hierarchical structure: the first level simulates the Battery Energy Storage System and local power flow control on a Digital Sampling Processor microcontroller, the second level uses an ESP32 microcontroller for Controller Area Network (CAN) communication and data transmission to the cloud, and the third level, implemented with an online broker, enables data storage, analysis and commands. A simplified power flow model and a battery model representation are considered to evaluate long-term operation with one year of climate and load data. Two load management strategies were compared: (i) total load shedding at 0% State of Charge, and (ii) hierarchical load disconnection at predefined SOC thresholds. Results showed that the hierarchical strategy increased the average State of Charge by 25.2% (54.66% vs. 43.64%), prevented interruptions to critical loads. The results show that the proposed framework serves as a flexible step before real deployment, since its cloud-based functions remain unaltered while only the physical hardware is replaced. This approach reduces implementation problems and allows the methodology to be extended to various case studies.
Downloads
References
A. von Jouanne, E. Agamloh, A. Yokochi, “Power Hardware-in-the-Loop (PHIL): A Review to Advance Smart Inverter-Based Grid-Edge Solutions”, Energies, vol. 16, no. 2, 2023, doi:10.3390/en16020916.
H. Magnago, H. Figueira, O. Gagrica, D. Majstorovic, “HIL-based certification for converter controllers: Advantages, challenges and outlooks (Invited Paper)”, in 2021 21st International Symposium on Power Electronics (Ee), pp. 1–6, 2021, doi:10.1109/Ee53374.2021.9628196.
J. Saele, I. O’Bryan, “Realization of Real-Time Simulation of Power Electronics Systems in Applications - A Review of Requirements and Methods”, in 2024 IEEE 15th International Symposium on Power Electronics for Distributed Generation Systems (PEDG), pp. 1–6, 2024, doi:10.1109/PEDG61800.2024.10667355.
C. S. B. Clausen, B. N. Jørgensen, Z. G. Ma, “A scoping review of In-the-loop paradigms in the energy sector focusing on software-in-the-loop”, Energy Informatics, vol. 7, no. 1, p. 12, 2024, doi:10.1186/s42162-024-00312-8.
L. C. Hidalgo Monsivais, Y. León Ruiz, J. C. Hernández Ramírez,N. Visairo-Cruz, J. Segundo-Ramírez, E. Barocio, “Controller Hardware-in-the-Loop Validation of a DSP-Controlled Grid-Tied Inverter Using Impedance and Time-Domain Approaches”, Electricity, vol. 6, no. 3, 2025, doi:10.3390/electricity6030052.
P. Lamo, A. de Castro, A. Sanchez, G. A. Ruiz, F. J. Azcondo, A. Pigazo, “Hardware-in-the-Loop and Digital Control Techniques Applied to Single-Phase PFC Converters”, Electronics, vol. 10, no. 13, 2021, doi:10.3390/electronics10131563.
L. F. R. Menegazzo, A. L. N. Severo, L. B. Piton, C. M. de Freitas, R. J. F. Bortolini, L. V. Bellinaso, L. Michels, F. de Morais Carnielutti, “Unified Platform for Automated Tests of Inverter-Based Resources with Hardware-in-the-loop”, Eletrônica de Potência, vol. 29, p. e202443, Oct. 2024, doi:10.18618/REP.e202443.
A. von Jouanne, E. Agamloh, A. Yokochi, “Power Hardware-in-the-Loop (PHIL): A Review to Advance Smart Inverter-Based Grid-Edge Solutions”, Energies, vol. 16, no. 2, 2023, doi:10.3390/en16020916.
F. Mihalič, M. Truntič, A. Hren, “Hardware-in-the-Loop Simulations: A Historical Overview of Engineering Challenges”, Electronics, vol. 11, no. 15, 2022, doi:10.3390/electronics11152462.
D. Gebbran, A. Barragán-Moreno, P. I. Gómez, R. K. Subroto, M. M. Mardani, M. López, J. Quiroz, T. Dragičević, “Cloud and Edge Computing for Smart Management of Power Electronic Converter Fleets: A Key Connective Fabric to Enable the Green Transition”, IEEE Industrial Electronics Magazine, vol. 17, no. 2, pp. 6–19, 2023, doi:10.1109/MIE.2022.3211125.
S. H. Jeon, J. Lee, J. K. Choi, “Energy Outage-Aware Power Distribution Scheme for Off-Grid Base Station Operation”, IEEE Communications Letters, vol. 21, no. 6, pp. 1401–1404, 2017, doi:10.1109/LCOMM.2017.2676108.
R. d. S. Ferraz, S. G. M. Oliveira, H. Tertuliano dos S. Filho, C. Bastos da Silva, “Design and Autonomy Evaluation of a Power Supply for Long Range IoT Devices Using Magnetic Field Harvested Energy from High Current”, Eletrônica de Potência, vol. 29, p. e202429, Sep 2024, doi:10.18618/REP.e202429.
D. Tan, “Power Electronics: Historical Notes, Recent Advances and Contemporary Challenges”, Eletrônica de Potência, vol. 25, no. 4, pp. 386–394, Dec 2020, doi:10.18618/REP.2020.4.00701.
X. Hu, Y. Che, X. Lin, S. Onori, “Battery Health Prediction Using Fusion-Based Feature Selection and Machine Learning”, IEEE Transactions on Transportation Electrification, vol. 7, no. 2, pp. 382–398, 2021, doi:10.1109/TTE.2020.3017090.
CONCERT Technologies, “thingable! IoT Platform”, https://www.thingable.com.br, access on May 30, 2023.
E. Gonschorowski, R. Cardoso, E. L. Carvalho, C. M. d. O. Stein, E. G. Carati, G. W. Denardin, J. P. Costa, “Adaptive Frequency-Based Power Management for Off-Grid Hybrid Photovoltaic Converters”, Eletrônica de Potência, vol. 29, p. 22, 2024, doi:10.18618/REP.e202440.
V. B. Costa, R. S. Capaz, B. D. Bonatto, “Small steps towards energy poverty mitigation: Life cycle assessment and economic feasibility analysis of a photovoltaic and battery system in a Brazilian indigenous community”, Renewable and Sustainable Energy Reviews, vol. 180, p. 113266, 2023, doi:10.1016/j.rser.2023.113266.
S. Jain, S. Dhara, V. Agarwal, “A Voltage-Zone Based Power Management Scheme With Seamless Power Transfer Between PV-Battery for OFF-Grid Stand-Alone System”, IEEE Transactions on Industry Applications, vol. 57, no. 1, pp. 754–763, 2021, doi:10.1109/TIA.2020.3031265.
G. Plett, Battery Management Systems, Volume I: Battery Modeling, Artech House power engineering series, Artech House, 2015.
E. Liu, Y. Han, A. S. Zalhaf, P. Yang, C. Wang, “Performance evaluation of isolated three-phase voltage source inverter with LC filter adopting different MPC methods under various types of load”, Control Engineering Practice, vol. 135, p. 105520, 2023, doi:10.1016/j.conengprac.2023.105520.
L. Lorenzoni, P. Cherubini, D. Fioriti, D. Poli, A. Micangeli, R. Giglioli, “Classification and modeling of load profiles of isolated mini-grids in developing countries: A data-driven approach”, Energy for Sustainable Development, vol. 59, pp. 208–225, 2020, doi:10.1016/j.esd.2020.10.001.
R. Faranda, H. Hafezi, “Reassessment of voltage variation for load power and energy demand management”, International Journal of Electrical Power & Energy Systems, vol. 106, pp. 320–326, 2019, doi:10.1016/j.ijepes.2018.10.012.
M. Farrokhabadi, C. A. Cañizares, K. Bhattacharya, “Frequency Control in Isolated/Islanded Microgrids Through Voltage Regulation”,IEEE Transactions on Smart Grid, vol. 8, no. 3, pp. 1185–1194, 2017, doi:10.1109/TSG.2015.2479576.
ANEEL, “Procedimentos de Dsitribuição de Energia Elétrica no Sistema Elétrico Nacional (PRODIST) - Módulo 8: Qualidade da Energia Elétrica”, , 2023.
L. S. Xavier, A. F. Cupertino, H. A. Pereira, V. F. Mendes, “Power Control Strategy for Grid-Connected Inverters in Stationary Reference Frame”, Eletrônica de Potˆencia, vol. 27, no. 2, pp. 129–138, 2022, doi:10.18618/REP.2022.2.0048.
R. Cassio de Barros, W. Caires Silva Amorim, W. do Couto Boaventura, A. Fagner Cupertino, V. Flores Mendes, H. Augusto Pereira, “Methodology for BESS Design Assisted by Choice Matrix Approach”, Eletrônica de Potência, vol. 29, p. e202412, 2024, doi:10.18618/REP.2005.1.019027.
K. S. Gyamfi, E. Gaura, J. Brusey, A. B. Trindade, N. Verba, “Understanding Household Fuel Choice Behaviour in the Amazonas State, Brazil: Effects of Validation and Feature Selection”, Energies, vol. 13, no. 15, 2020, doi:10.3390/en13153857.
I. N. de Meteorologia, “Dados Históricos Anuais”, Accessed on September 09, 2024, 2023, URL: https://portal.inmet.gov.br/dadoshistoricos.
J. Solar, “Tiger Pro 72HC-BDVP 535-555 Watt”, Accessed on September 09, 2024, 2020, URL: https://jinkosolarcdn.shwebspace.com/uploads/JKM535-555M-72HL4-BDVP-F6%20EN.pdf.
WEG, “Sistema de Armazenamento de Energia em Baterias”, Accessed on September 09, 2024, 2021, URL: https://static.weg.net/medias/downloadcenter/hc7/h38/WEG-ESSW-sistema-de-armazenamento-de-energia-50100243-pt.pdf.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Diuary Gonçalves, Ives de O. Furtado, Allan F. Cupertino, Heverton Augusto Pereira, Remus Teodorescu

This work is licensed under a Creative Commons Attribution 4.0 International License.






