Related Experiment Video
Updated: Aug 23, 2025

Interactive and Visualized Online Experimentation System for Engineering Education and Research
Published on: November 24, 2021
Internet-of-Things Based Hardware-in-the-Loop Framework for Model-Predictive-Control of Smart Building Ventilation
Abdelhak Kharbouch1,2, Anass Berouine1,3, Hamza Elkhoukhi1,2
1LERMA Lab, College of Engineering, The International University of Rabat, Technopolis Rabat-Shore Rocade Rabat-Salé, Sala El Jadida 11100, Morocco.
Abstract:
In this work, a Hardware-In-the-Loop (HIL) framework is introduced for the implementation and the assessment of predictive control approaches in smart buildings. The framework combines recent Internet of Things (IoT) and big data platforms together with machine-learning algorithms and MATLAB-based Model Predictive Control (MPC) programs in order to enable HIL simulations. As a case study, the MPC algorithm was deployed for control of a standalone ventilation system (VS). The objective is to maintain the indoor Carbon Dioxide (CO2) concentration at the standard comfort range while enhancing energy efficiency in the building. The proposed framework has been tested and deployed in a real-case scenario of the EEBLab test site. The MPC controller has been implemented on MATLAB/Simulink and deployed in a Raspberry Pi (RPi) hardware. Contextual data are collected using the deployed IoT/big data platform and injected into the MPC and LSTM machine learning models. Occupants' numbers were first forecasted and then sent to the MPC to predict the optimal ventilation flow rates. The performance of the MPC control over the HIL framework has been assessed and compared to an ON/OFF strategy. Results show the usefulness of the proposed approach and its effectiveness in reducing energy consumption by approximately 16%, while maintaining good indoor air quality.
Related Concept Videos
Open and closed-loop control systems
An open-loop control system operates without feedback from the output. It consists of two primary elements: the controller and the controlled process. The controller receives an input signal...
Mechanical Ventilation II: Invasive Ventilation
Negative-Pressure Ventilators
Negative-pressure ventilators create a vacuum around the chest or body to draw air into the lungs, simulating breathing. This method does not require an...
Mechanical Ventilation III: Noninvasive Ventilation
Noninvasive Positive-Pressure Ventilation...
PID Controller
PI Controller: Design
Heating and Cooling Curves
For instance, the addition of heat raises the temperature of a solid; the amount of heat absorbed depends on the heat capacity of the solid (q = mcsolidΔT). According to thermochemistry, the relation between the amount of heat absorbed or released by a substance, q, and its...

