The project focuses on real-time energy monitoring and prepaid billing using an ESP32 microcontroller integrated with a PZEM-004T sensor to measure electrical parameters and manage power consumption efficiently.
- Manual monitoring of electricity usage is inefficient and prone to errors.
- Overconsumption of electricity can lead to unexpectedly high costs, especially in households or small businesses.
- Lack of real-time insights into energy usage makes it difficult to manage budgets and optimize consumption.
- Automate the monitoring of electricity consumption in real-time.
- Provide accurate cost estimation based on customizable electricity tariffs.
- Enable prepaid billing and notifications to prevent overconsumption and promote efficient energy use.
- Integrate a PZEM-004T sensor to measure current, voltage, and energy consumption (in kWh).
- Use an ESP32 microcontroller to process sensor data, calculate costs, and manage prepaid billing logic.
- Implement a web interface (HTML) for remote monitoring and user interaction.
- Include a relay module to control power supply based on prepaid balance or consumption limits.
- Provide notifications when energy consumption exceeds predefined thresholds.
- ESP32: Microcontroller for processing sensor data, running a web server, and controlling the system.
- PZEM-004T V3 Sensor: Measures current, voltage, and energy consumption accurately.
- Relay Module (5V): Acts as an electronic switch to connect or disconnect the power supply to the load.
- Power Supply: Suitable power source for the ESP32 and other components (e.g., 5V adapter).
- WiFi Connection: Enables remote access to the system via a web interface.
- Web Interface (HTML): Provides a user-friendly platform for monitoring and managing energy usage.
To address the identified problems, the ESP32-based Prepaid Energy Monitoring System with PZEM-004T Sensor and Web Interface is designed as a comprehensive solution. The system enables users to:
- Facilitate Prepaid Billing: Users can pay in advance, and the system deducts costs based on real-time consumption.
- Monitor Energy Usage in Real-Time: Displays current, voltage, energy (kWh), and estimated costs via a web interface or serial monitor.
- Track Usage History and Statistics: Logs consumption data for analysis and budgeting.
- Manage Electricity Budget: Sets consumption limits and sends alerts when thresholds are exceeded.
- Control Power Supply: Automatically disconnects the load via the relay if the prepaid balance is depleted or consumption limits are reached.
- ESP32: Acts as the system’s core, processing sensor data, running the web server, controlling the relay, and managing prepaid logic.
- PZEM-004T Sensor: Accurately measures electrical parameters (current, voltage, power, and energy).
- Relay Module: Controls the power supply to the load based on system logic.
- Web Interface (HTML): Provides an interactive platform for users to monitor consumption, view statistics, and manage prepaid settings.
With this system, users gain full control over their electricity usage and costs, promoting wiser and more efficient energy consumption.
https://youtu.be/AsEIP3yxGpQ?si=U26-7BNE_a0y1kis
- Abdul Haris Muhasibi (235150307111047)
- Barru Wira Yasa (235150301111021)
- Farrel Firmanditto Azka (235150307111040)
- Muhammad Shean Elliora Ribah (235150307111046)
- Muhammad Syauqi Muttaqin (235150307111036)
- Ruasa Azizan Zihni (235150301111046)






