An IoT-Based Real-Time Energy-Management System for Smart Load Control in a Residential Microgrid
Mohammed Sabah, Akram Elmitwally, Abdelfattah A. EladlThe increasing complexity of residential energy systems and the growing penetration of distributed resources require practical energy-management solutions that extend beyond conventional metering. This paper presents the design and implementation of a real-time Internet of Things (IoT)-based energy-management system for monitoring and controlling household energy consumption under different operating conditions. The proposed system adopts a dual-processor architecture, in which a primary microcontroller performs time-critical electrical measurements and low-level load switching, while a secondary processor operates as a local IoT gateway for data handling, rule-based control decisions, local visualization, and message queuing telemetry transport (MQTT)-based cloud communication through a 4G link. The contribution of this work is not associated with the individual use of dual processing, cellular communication, cloud monitoring, load shedding, or backup power, as these technologies have been previously reported in smart-metering and home energy-management systems. Instead, the study focuses on their coordinated integration within a residential-scale prototype that combines calibrated per-load monitoring, priority-based load control, outage-resilient reporting, and credit-aware load restriction. The system measures voltage, current, active and apparent power, power factor, and energy consumption for individual loads and supports centralized visualization through a cloud-based dashboard. The prototype was experimentally evaluated under three representative scenarios: overload, main power outage, and low-credit operation. In the overload scenario, automatic priority-based load shedding reduced the total load by up to 75%. During power outages, a battery-supported subsystem maintained monitoring and communication for real-time outage reporting. In the low-credit scenario, non-essential loads were disconnected when the user balance fell below a predefined threshold, while essential loads remained energized. The results demonstrate that the implemented prototype can provide integrated monitoring, local rule-based control, cloud reporting, and backup-supported operation within a unified residential energy-management platform.