PREPAID ELECTRICITY BILL PAYMENT METHOD VIA BANK TRANSFER USING QR CODE THROUGH SEPAY PAYMENT GATEWAY INTEGRATED WITH ESP32 DEVICE
Abstract
The collection of electricity fees in dormitories, rental houses, and mini-apartments often faces inconveniences such as manual collection, high error rates, revenue loss, and lack of transparency. This study proposes a prepaid electricity payment method via bank transfer using QR codes through the SePay payment gateway, integrated with an ESP32 device to automatically deduct electricity costs based on the residential electricity tariff issued by Vietnam Electricity (EVN) and disconnect power when the prepaid balance is exhausted. The research methodology is based on an analysis of existing studies on IoT-based smart energy metering systems using ESP32 and prepaid meter applications. The results show that landlords generate dynamic VietQR codes for each rental room, allowing tenants to scan the QR code using e-wallets or banking applications to transfer money directly to the landlord’s bank account. The bank pushes transaction data to SePay for automatic verification, which is then stored via webhook/API and integrated with the ESP32 device to update account balances, automatically deduct electricity fees according to EVN’s tiered tariff structure, and actuate a contactor to disconnect power when the balance becomes negative. The entire process is completed in less than 10 seconds, ensuring high security and transparency. In conclusion, the proposed method is particularly suitable for dormitories, rental houses,
and mini-apartments, significantly reducing manual workload, promoting cashless payments, and enabling accurate electricity consumption control in compliance with EVN standards.
References
. Gadekar, Santosh, et al. “Iot based smart energy meter using esp 32,” in Proceedings of the 3rd
International Conference on Communication & Information Processing (ICCIP), 2021.
. Ashokkumar, N., et al. “Design and Implementation of IoT based Energy Efficient Smart Metering
System for Domestic Applications,” in 2023 9th International Conference on Advanced Computing
and Communication Systems (ICACCS), Vol. 1, IEEE, 2023.
. El-Khozondar, Hala Jarallah, et al. “A smart energy monitoring system using ESP32 microcontroller,”
e-Prime-Advances in Electrical Engineering, Electronics and Energy, 9, 100666, 2024.
. Senthilkumar, R., et al. “IoT-Based Smart Electricity Energy Meter using ESP32 and Blynk Application
for Energy Management,” International Journal of Engineering & Extended Technologies Research
(IJEETR), 8.2, pp. 4687-4697, 2026.
. Albreem, Mahmoud A., et al. “Green Internet of Things (GIoT): Applications, practices, awareness,
and challenges,” IEEE Access, 9, 38833-38858, 2021.
. Siregar, Yulianta, and Yohanes Rinaldy Putra Manurung. “Smart energy meter design with notifications
and over-electric energy consumption cut-off with esp32 mcu node using the blynk iot application,”
in 2023 7th International Conference on Electrical, Telecommunication and Computer Engineering
(ELTICOM). IEEE, 2023.
. Hlabeli, Semela Abednico, Hendrick Musawenkosi Langa, and Jules Simplice Djeumen. “Development
of Home Energy Monitoring and Prediction System with Load Management Using IoT Technology,”
in 2024 4th International Multidisciplinary Information Technology and Engineering Conference
(IMITEC). IEEE, 2024.
. Anusha, Mareddy, et al. “Internet of Things (IOT) based energy monitoring with ESP 32 and using
Thingspeak,” in 2024 10th International Conference on Communication and Signal Processing
(ICCSP). IEEE, 2024.
. S. Documentation, “Giới thiệu cổng thanh toán và API”, 2025.
. B. c. thương, “Quyết định số 1279/QĐ-BCT về biểu giá bán lẻ điện”, 2025.
. Umamaheswari, S., et al. “Advancement in Smart Prepaid Electric Meter System,” in 2025 3rd
International Conference on Advancements in Electrical, Electronics, Communication, Computing
and Automation (ICAECA). IEEE, 2025.
. Tripathi, Santosh Kumar, et al. “ESP32-Based Prepaid Electricity Energy Meter with Remote
Monitoring and Security Features: A Review”.
. Umamaheswari, S., et al. “Smart Prepaid Electric Meter System,” in 2025 International Conference
on Emerging Smart Computing and Informatics (ESCI). IEEE, 2025.