International Peer-Reviewed Journal•Open Access•ISSN 2456-8880
irejournals@gmail.com•+91-7433024337

Home / Current Issue / Paper 1718788

1718788 Vol 9 · Issue 12 Download Paper

Development of Smart Energy Management Socket Using Real-Time Metering and Demand Response Control

Johnson Gbadebo Adenle Opakunle James Akinpelu Ayodele Elijah Blessing

Subject area: Science,Engineering and Technology  ·  Area of research: IoT Smart Socket & Energy Monitoring

DOI: 10.64388/IREV9I12-1718788

Abstract

The need for energy conservation, management, control, and overload protection for optimal energy deployment and consumption in domestic, commercial, and industrial applications has necessitated the design of an energy supply system that can be controlled and monitored in real time from any location worldwide. The proposed system leverages an ESP32 Wi-Fi-enabled micro-controller integrated with the PZEM-004T sensor module to measure current, voltage, energy, power, frequency, and power factor. Each outlet is switched via a 2N2222A bipolar junction transistor driving individual relay channels that control AC supply to the connected loads. Parameters are monitored, controlled, and driven online through a Firebase Real-time Database web interface. Functional testing showed an average voltage measurement error of 0.14% over a 227 V-230 V range, an average current error of 1.18%, and a power measurement error of 2.11%. These negligible deviations confirm the accuracy, reliability, and suitability of the system for smart-home and industrial energy management applications.

Keywords

Internet of Things (IoT), ESP32, Smart Socket, Energy Monitoring, PZEM-004T, Firebase, Relay Control, Wi-Fi, Automation, Energy Management

References

[1] H. Adyanth, M. B. Ananya, V. N. Bharati, and T. Shreekanth, “Intelligent sockets for automation through IoT,” International Journal of Engineering Research & Technology (IJERT), vol. 6, no. 13, pp. 1-5, 2018.

[2] S. G. Alexander and Y. Kinza, “Ultimate IoT implementation guide for business,” TechAccelerator, 2006. [Online]. Available: https://www.techtarget.com/iotagenda/definition/internet-of-Things-IoT

[3] Amazon, “Double Pole Double Throw Switch,” 2025. [Online]. Available: https://www.amazon.com

[4] C. Argha, M. Monitoring, R. Rohan, and D. Arnot, “IoT-based smart energy meter for efficient energy utilisation in smart grid,” IOSR Journal of Electrical and Electronics Engineering (IOSR-JEEE), vol. 17, no. 5, pp. 32-40, 2022.

[5] F. Asadi, “Relays,” in ABCs of Electronics, Maker Innovations Series. Berkeley, CA: Apress, 2024. https://doi.org/10.1007/979-8-8688-0134-1_9

[6] G. Bayrem, “Internet of Things prototyping with Firebase: How to do more with less,” FreeCodeCamp, 2019. [Online]. Available: https://medium.com/free-code-camp/iot-prototyping-with-firebase-doing-more-with-less-2f5c746dac8b

[7] ChatGPT, “Basic concept of Internet of Things (IoT) diagram,” OpenAI, 2025.

[8] Device Authority, “Understanding IoT networks: A beginner’s guide,” 2025. [Online]. Available: https://deviceauthority.com/understanding-iot-networks-a-beginners-guide

[9] Elpocus, “Freewheeling or flyback diode working and its function,” 2025. [Online]. Available: https://www.elprocus.com/freewheeling-or-flyback-diode-circuit-working-functions/

[10] Espressif, “ESP32 series datasheet,” version 5.1, 2025. [Online]. Available: https://www.espressif.com

[11] Eureka, “The evolution of relay logic systems,” 2025. [Online]. Available: https://www.eureka.com

[12] M. Hamosi, W. Daniel, S. Juma, R. Florian, S. Ramadan, and K. Michael, “Development of IoT-based system for monitoring electrical energy consumption of the smart and rental houses in Tanzania,” International Journal of Advances in Scientific Research and Engineering (IJASRE), vol. 8, no. 8, pp. 1-10, 2022.

[13] International Energy Technik (IET) Africa, “The evolution of electrical automation,” 2025. [Online]. Available: https://www.ietafrica.com/the-evolution-of-electrical-automation/

[14] P. Jignesh, “Energy demand factor, diversity factor, utilisation factor, and load factor,” Electrical Engineering Portal, 2024. [Online]. Available: https://electrical-engineering-portal.com/demand-factor-diversity-factor-utilization-factor-load-factor

[15] C. Keller, “Relay and switches,” IEEE Journals & Magazine, vol. 50, no. 5, pp. 932-934, 1962. DOI: 10.1109/JRPROC.1962.288375.

[16] Lamya, A. Haifa, A. Najoud, A. A. Lenah, and B. G. Sarah, “An IoT-based smart socket plug energy monitoring system,” International Journal of Advanced Computer Science and Applications, vol. 14, no. 10, pp. 353-362, 2023.

[17] Liam, “Getting started with Arduino tools,” ArduinoDocs, 2024. [Online]. Available: https://docs.arduino.cc/learn/starting-guide/getting-started-with-arduino-tools

[18] Lius, “An overview on bipolar junction transistor as a sensor for X-ray beams used in medical diagnosis,” Open Access Article, vol. 22, no. 5, pp. 1-54, 2022.

[19] S. A. L. Maftunzada, “The structure and working principle of a bipolar junction transistor (BJT),” Physical Science International Journal, vol. 26, no. 11-12, pp. 35-39, 2022.

[20] V. K. Metha and V. Rohit, Principles of Electronics, 11th ed. New Delhi: S. Chand & Company, 2008.

[21] G. Mikell, “Automation,” Encyclopaedia Britannica, 2025. [Online]. Available: https://www.britannica.com/technology/automation

[22] Nathan, “The evolution of automation,” Progressive Automations, 2022. [Online]. Available: https://www.progressiveautomations.com/blogs/news/the-evolution-of-automation

[23] Nested, “IoT-based extension socket for power outage management,” Journal Resource, vol. 10, no. 2, pp. 1-18, 2022.

[24] M. Omar, R. Adolf, R. Pedro, A. Alexis, S. Alejandro, and L. Fernando, “Design and development of an IoT smart meter with load control for home energy management,” Energies, 2022.

[25] O. Olusegun and O. Kingsley, “Nigeria’s electric power sector: Challenges and prospects,” Energy Policy, 2020.

[26] Ozuno, “Understanding relay ratings,” 2025. [Online]. Available: https://www.ozuno.com/blog/understanding-relay-ratings/

[27] Paul, “Making power adapters,” in Proc. IEEE International Symposium on Sustainable Systems and Technology (ISSST), 2009, pp. 10-15. DOI: 10.1109/ISSST.2009.5156696.

[28] P. Ravindra and P. Smita, “IoT based relay operation,” International Journal of Engineering and Advanced Technology (IJEAT), vol. 9, no. 1, pp. 6515-6520, 2019.

[29] J. L. Samuel, S. Jeff, and M. William, University Physics, vol. 2. Houston, TX: OpenStax, Rice University, 2016.

[30] G. H. R. Vikas, B. V. Naveen, S. Kilian, G. K. P. Chandran, and S. Shazia, “Smart electricity meter monitoring and prediction using I-Socket,” International Open Access Journal, 2024.

[31] G. Vladimir, Electric Relays: Principles and Applications. Boca Raton, FL: CRC Press, Taylor and Francis Group, 2006.

[32] F. Yugerita, A. Sitting, and Kartiria, “Designing a monitoring and controlling system on IoT-based sockets,” Jurnal Teknik Elektro, vol. 15, no. 1, pp. 18-23, 2023.

How to cite this paper

Johnson Gbadebo Adenle, Opakunle James Akinpelu, Ayodele Elijah Blessing "Development of Smart Energy Management Socket Using Real-Time Metering and Demand Response Control" Iconic Research And Engineering Journals Volume 9 Issue 12 2026 Page 1070-1081 https://doi.org/10.64388/IREV9I12-1718788
Johnson Gbadebo Adenle, Opakunle James Akinpelu, Ayodele Elijah Blessing "Development of Smart Energy Management Socket Using Real-Time Metering and Demand Response Control" Iconic Research And Engineering Journals, vol. 9, no. 12, Jun. 2026, doi: https://doi.org/10.64388/IREV9I12-1718788
Johnson Gbadebo Adenle, Opakunle James Akinpelu, Ayodele Elijah Blessing (2026). Development of Smart Energy Management Socket Using Real-Time Metering and Demand Response Control. Iconic Research And Engineering Journals, 9(12). doi: https://doi.org/10.64388/IREV9I12-1718788
Johnson Gbadebo Adenle, Opakunle James Akinpelu, Ayodele Elijah Blessing "Development of Smart Energy Management Socket Using Real-Time Metering and Demand Response Control" Iconic Research And Engineering Journals, vol. 9, no. 12, Jun. 2026. Crossref, https://doi.org/10.64388/IREV9I12-1718788
@article{1718788,
      author = {Johnson Gbadebo Adenle, Opakunle James Akinpelu, Ayodele Elijah Blessing},
      title = {Development of Smart Energy Management Socket Using Real-Time Metering and Demand Response Control},
      journal = {Iconic Research And Engineering Journals},
      year = {2026},
      volume = {9},
      number = {12},
      pages = {1070-1081},
      issn = {2456-8880},
      url = {https://www.irejournals.com/formatedpaper/1718788.pdf},
      abstract = {The need for energy conservation, management, control, and overload protection for optimal energy deployment and consumption in domestic, commercial, and industrial applications has necessitated the design of an energy supply system that can be controlled and monitored in real time from any location worldwide. The proposed system leverages an ESP32 Wi-Fi-enabled micro-controller integrated with the PZEM-004T sensor module to measure current, voltage, energy, power, frequency, and power factor. Each outlet is switched via a 2N2222A bipolar junction transistor driving individual relay channels that control AC supply to the connected loads. Parameters are monitored, controlled, and driven online through a Firebase Real-time Database web interface. Functional testing showed an average voltage measurement error of 0.14% over a 227 V-230 V range, an average current error of 1.18%, and a power measurement error of 2.11%. These negligible deviations confirm the accuracy, reliability, and suitability of the system for smart-home and industrial energy management applications.},
      keywords = {Internet of Things (IoT), ESP32, Smart Socket, Energy Monitoring, PZEM-004T, Firebase, Relay Control, Wi-Fi, Automation, Energy Management},
      month = {June},
      doi = {https://doi.org/10.64388/IREV9I12-1718788}
  }