Design and Implementation of a NodeMCU-Based Lamp Power Control and Energy-Metering Device Using the PZEM-004T Module

Authors

  • Sultan Aziz Syaifullah Nanda Universitas Muslim Indonesia
  • Muhammad Arfah Asis Universitas Muslim Indonesia

DOI:

https://doi.org/10.56705/ijonit.v1i2.145

Keywords:

NodeMCU ESP8266, Internet of Things, PZEM-004T, Thinger.io

Abstract

This study aims to design a NodeMCU- and PZEM-004T-based device for power control and energy metering, serving as the central unit for control and monitoring, thereby enabling users to remotely control and monitor household lamp power consumption. An experimental method was employed to evaluate the performance of the developed controller and power/energy meter. The NodeMCU ESP8266 functions as the microcontroller to execute the device’s program and support remote control, while the PZEM-004T module performs lamp power measurements. Through wireless communication, the system delivers power (W), kilowatt-hours (kWh), and cost (IDR) information to a smartphone via the Thinger.io web interface. Users can set the lamp’s ON–OFF status and obtain real-time power measurements. Based on testing results, the prototype supports real-time control and monitoring with an average power-measurement error of 0.10%.

References

N. Sari, “5 Fakta Listrik Padam, Kerugian Diperkirakan Triliunan Rupiah hingga Tuntut Ganti Rugi Rp 5.000.,” Kompas.com, 2019. https://megapolitan.kompas.com/read/2019/08/07/06113891/5-fakta-listrik-padam-kerugian-diperkirakan-triliunan-rupiah-hingga (accessed Oct. 20, 2023).

R. A. Ramlee et al., “Bluetooth Remote Home Automation System Using Android Application,” Int. J. Eng. Sci., vol. 2, no. 1, pp. 149–153, 2013.

I. Warangkiran, I. S. T. G. Kaunang, A. S. M. Lumenta, and A. M. R. St, “Perancangan Kendali Lampu Berbasis Android,” J. Tek. Elektro dan Komput., vol. 3, no. 1, pp. 1–8, 2014.

A. Bachri, “Rancang Bangun Smart Kontrol Lampu Penerangan Jalan Umum Berbasis SMS Gateway,” J. JE-UNISLA Electron. Control. Telecomunication, Comput. Inf. Power Syst., vol. 4, no. 2, pp. 256–264, 2019, [Online]. Available: https://jurnalteknik.unisla.ac.id/index.php/elektronika/article/view/363

M. T. Nurhadiyan and A. E. Saputro, “Sistem Kendali Saklar Lampu Jarak Jauh Menggunakan Sms Berbasis Mikrokontroleratmega328/Arduino Uno,” Prosisko, vol. 6, no. 2, pp. 144–152, 2019, [Online]. Available: http://e-jurnal.lppmunsera.org/index.php/PROSISKO/article/view/1635

R. Berlianti and Fibriyanti, “Perancangan Alat Pengontrolan Beban Listrik Satu Phasa Jarak Jauh Menggunakan Aplikasi Blynk Berbasis Arduino Mega,” Sain, Energi Teknol. Ind., vol. 5, no. 1, pp. 17–26, 2020.

A. Amir, “Rancang Bangun Purwarupa Alat Monitoring dan Kontrol Beban Satu Fasa Berbasis IoT (INTERNET OF THINGS ),” J. Tek. Elektro Univ. Islam Sultan Agung, vol. 20, no. 1, pp. 29–33, 2018.

S. Windiyati, Satrianovari, “Prototype Smarthome Berbasis IoT (INTERNET OF THINGS),” Jik, vol. 14, no. 1, pp. 28–36, 2023.

M. A. P. and J. M. M. Alvaro Luis Bustamante, “Thinger.io: An open source platform for deploying data fusion applications in IoT environments,” Sensors (Switzerland), vol. 19, no. 1044, p. 4, 2019, doi: 10.3390/s19051044.

D. Indra, E. I. Alwi, and M. Al Mubarak, “Prototipe Sistem Kontrol Pemadam Kebakaran Pada Rumah Berbasis Arduino Uno dan ESP8266,” Komputika J. Sist. Komput., vol. 11, no. 1, pp. 1–8, 2021, doi: 10.34010/komputika.v11i1.4801.

A. Rachmansyah, R. Satra, and M. A. Mude, “Perancangan Alat Pemberi Makan dan Monitoring Sisa Pakan Hewan Pemeliharaan Berbasis Microcontroller,” Bul. Sist. Inf. dan Teknol. Islam, vol. 3, no. 1, pp. 26–33, 2022.

Z. Fahmi, R. Satra, and F. Fattah, “Monitoring Ketinggian Air Berbasis NodeMCU dengan Menggunakan Web Resposive,” Bul. Sist. Inf. dan Teknol. Islam, vol. 2, no. 1, pp. 1–5, 2021, doi: 10.33096/busiti.v2i1.688.

A. R. Manga, D. Indra, and N. Nurhalima, “Sistem Monitoring Infus Menggunakan ESP8266,” Bul. Sist. Inf. dan Teknol. Islam, vol. 1, no. 2, pp. 118–123, 2021, doi: 10.33096/busiti.v1i2.927.

Microcontrollerslab.com, “ESP8266 NodeMCU ADC using Arduino IDE – Measure Analog Voltage,” microcontrollerslab.com, 2022. https://microcontrollerslab.com/esp8266-nodemcu-adc-tutorial-measure-analog-voltage/ (accessed Jun. 03, 2024).

S. P. Aji, “Alat Monitoring Tetesan Infus Menggunakan Web Secara Online Berbasis ESP8266 Dengan Pemrograman Arduino IDE,” J. Tek Elektron. Fak. Tek. UNY, vol. 6, no. 8, p. 3, 2017.

D. A. O. Turang, “Pengembangan Sistem Relay Pengendalian dan Penghematan Pemakaian Lampu Berbasis Mobile,” Semin. Nas. Inform., p. 78, 2015.

Kuongshun, “Modul Relay 4 Channel,” kuongshun.com, 2024. https://id.szks-kuongshun.com/uno/uno-board-shield/4-channel-relay-module-with-light-coupling-5v.html

M. Nursamsi Adiwiranto and C. Budi Waluyo, “Prototipe Sistem Monitoring Konsumsi Energi Listrik Serta Estimasi Biaya Pada Peralatan Rumah Tangga Berbasis Internet of Things,” ELECTRON J. Ilm. Tek. Elektro, vol. 2, no. 2, pp. 13–22, 2021, doi: 10.33019/electron.v2i2.2.

InivatorGuru, “Modul Komunikasi AC PZEM-004T V3.0 Panduan Pengguna,” InivatorGuru. https://manuals.plus/id/innovatorsguru/ac-communication-module-pzem-004t-v3-0-manual

T. H. Solin, “Rancang Bangun Monitoring Kerja Konverter Listrik Pada Pengisian Baterai Aki Berbasis Internet of Things,” Universitas Muhammadiyah Sumatera Utara, 2023.

Downloads

Published

2025-10-29