A Low-cost IoT-enabled Automatic Power Factor Correction (APFC) system with realtime carbon footprint estimation is designed and implemented using a Raspberry Pi Pico W microcontroller. The system continuously monitors the power factor of an electrical load and automatically engages optimal capacitor banks to correct a lagging power factor, achieving a stable value of approximately 0.99. This correction reduces energy waste, minimizes electricity costs, and enhances grid stability. A key innovation of this project is the integration of real-time carbon footprint estimation, where the system calculates and displays the amount of CO emissions prevented due to the improved energy efficiency, promoting environmental awareness alongside economic benefits. All critical parameters, including power factor, active power, and estimated CO savings, are transmitted wirelessly to a ThingSpeak IoT dashboard, allowing remote real-time monitoring and analysis. Performance was validated through MATLAB Simulink simulations and hardware prototyping, confirming the system’s effectiveness. The completed ThingSpeak integration enables intuitive visualization of system performance, making this project a holistic, scalable, and sustainable solution for intelligent energy management.
Introduction
The increasing global demand for electricity has created pressure on conventional power systems, making energy efficiency essential in generation, transmission, and consumption. In AC systems with inductive loads such as motors and transformers, low lagging power factor (PF) is a major issue. A poor power factor leads to higher current flow, increased power losses, voltage drops, reduced system capacity, and financial penalties from utilities.
Traditional Automatic Power Factor Correction (APFC) systems improve PF by switching capacitor banks according to reactive power demand. However, these systems generally lack advanced capabilities such as remote monitoring, real-time analytics, and environmental impact evaluation.
To address these limitations, the project proposes an IoT-based APFC system using Raspberry Pi Pico W. The system automatically corrects the power factor close to unity while also estimating the reduction in CO? emissions resulting from improved energy efficiency. IoT technology enables real-time data monitoring, cloud-based analysis through ThingSpeak, and visualization via LCD and remote dashboards.
The system architecture includes current and voltage sensing using CT and PT, signal conditioning, phase detection with zero-crossing detectors and XOR logic, capacitor bank switching via relays, and IoT communication. A threshold-based control algorithm determines which capacitor bank should be activated depending on the measured PF.
Software is implemented in MicroPython, enabling sensor data acquisition, PF calculation, relay control, Wi-Fi communication, and carbon footprint estimation. The environmental module calculates avoided CO? emissions using load power, operating time, and a standard emission factor.
Simulation using MATLAB/Simulink validates the system under varying inductive loads (5–14 kW). Results show effective PF improvement, reduced reactive power, and measurable CO? emission savings. The integration with ThingSpeak allows cloud-based monitoring and visualization of PF and environmental benefits.
Overall, the proposed system combines power quality improvement, IoT monitoring, and environmental sustainability, providing both economic and ecological advantages compared to traditional APFC systems.
Conclusion
This project successfully designed, simulated, and validated an IoT-based Automatic Power Factor Correction (APFC) system integrated with real-time carbon footprint estimation, demonstrating effective power factor improvement from approximately 0.92 to 0.99 through automated capacitor bank switching and providing quantifiable environmental impact data by calculating CO emissions reduction using the established formula, thereby offering a comprehensive solution that addresses both energy efficiency optimization through reactive power compensation and environmental sustainability awareness via IoT-enabled monitoring and visualization capabilities. The system’s innovative approach bridges traditional electrical engineering practices with modern environmental accountability requirements, presenting significant potential for industrial adoption to reduce energy costs, minimize carbon footprint, and support global climate action initiatives while maintaining scalability for future enhancements such as integration with renewable energy sources, implementation of artificial intelligence for predictive maintenance, and expansion to three-phase power systems for larger industrial applications.
References
[1] M. A. H. S. Kamal, M. N. Hasan, and M. F. Hossain, “Design and implementation of iot-based automatic power factor correction relay using raspberry pi,” in IEEE 1st International Conference on Smart and Sustainable Developments in Electrical Engineering (SSDEE), 2025.
[2] S. Mane, R. Sapat, P. Kor, J. Shelar, R. D. Kulkarni, and J. Mundkar, “Microcontroller based automatic power factor correction system for power quality improvement,” in IEEE Xplore, Jun. 2020.
[3] D. G. Lamar, A. Fernandez, M. Arias, M. Rodriguez, J. Sebastian, and M. M. Hernando, “A unity power factor correction preregulator with fast dynamic response based on a low-cost microcontroller,” IEEE Transactions on Power Electronics, vol. 23, pp. 635–642, Mar. 2008.
[4] M. A. Muqeet and M. Abdullah, “Implementation and analysis of automated power factor corrector unit (apfc) for an induction motor,” Journal of Information and Computational Science, vol. 10, pp. 500–504, Feb. 2020.
[5] P. Ahmmed, S. S. Saha, A. Sunny, M. I. Hossain, and I. Jahan, “Modeling and simulation of a microcontroller based power factor correction converter,” in 2013 International Conference on Informatics, Electronics and Vision (ICIEV), (Bangladesh), pp. 1–4, May 2013.
[6] S. Rittijun and N. Boonpirom, “Power factor correction of single phase rectifier using fuzzy controller,” in 2020 International Conference on Power, Energy and Innovations (ICPEI), (Thailand), Oct. 2020.
[7] M. A. H. S. Kamal and M. S. Anower, “Design and implementation of numerical relay to provide current and voltage protection for electric networks using raspberry pi,” in 2023 International Conference on Electrical Engineering and Advanced Technology (ICEEAT), pp. 1–6, Nov. 2023.
[8] P. M. S. Kotresh, “Automatic power factor compensation (apfc) for industrial power use to minimize penalty,” International Journal for Research in Applied Science and Engineering Technology, vol. 12, pp. 2688–2691, May 2024.