PowerWatch Pro is an advanced IoT-based power monitoring system built using ESP32, LM358 voltage sensing circuitry, SCT-013 current transformers, Firebase Realtime Database, WebSockets, and a custom analytics dashboard.
The system continuously measures voltage, current, power consumption, power factor, and energy usage while synchronizing data to the cloud and providing real-time visualization through a professional web interface.
Designed for smart homes, industrial monitoring, energy analytics, and IoT research applications.
FeaturesReal-Time Electrical Monitoring- AC Voltage Measurement
- AC Current Measurement
- Active Power Calculation
- Power Factor Estimation
- Energy Consumption Tracking
- Modern Responsive Interface
- Real-Time KPI Cards
- Live Charts
- Power Gauge
- Historical Data Table
- Authentication System
- Firebase Realtime Database
- Automatic Data Synchronization
- Cloud-Based History Logging
- Remote Monitoring
- WebSocket Data Streaming
- Live Dashboard Updates
- Low Latency Monitoring
- Power Consumption Tracking
- Energy Usage (kWh)
- Cost Estimation
- Historical Analysis
Component
Quantity
ESP32 Development Board
1
LM358 Voltage Sensor Circuit
1
SCT-013 Current Sensor
1
AC Load
1
Power Supply
1
WiFi Network
1
System ArchitectureAC Supply ↓ Voltage Sensor (LM358) ↓ GPIO34
Current Sensor (SCT-013) ↓ GPIO35
ESP32 ↓ WebSocket Server ↓ Web Dashboard
ESP32 ↓ Firebase Realtime Database ↓ Cloud Storage & Analytics
Hardware ConnectionsVoltage SensorSensor
ESP32
Output
GPIO34
VCC
3.3V
GND
GND
Current SensorSensor
ESP32
Output
GPIO35
VCC
3.3V
GND
GND
Dashboard FeaturesLogin AuthenticationUsername:
admin
Password:
admin123
KPI CardsDisplays:
- Voltage (V)
- Current (A)
- Power (W)
- Energy (kWh)
- Estimated Cost
Real-time display of:
- Voltage
- Current
- Power Trends
Visual representation of:
- Instantaneous Power Consumption
- Power Load Status
Stores:
- Voltage
- Current
- Power
- Energy
- Timestamp
powermonitor
│
└── live
├── voltage
├── current
├── power
├── pf
├── energy_kwh
└── timestampHistorical Logspowermonitor
│
└── history
├── record1
├── record2
├── record3
└── ...Measurement ParametersVoltageMeasured using:
LM358 Voltage Sensor
GPIO34
CurrentMeasured using:
SCT-013 Current Transformer
GPIO35
Power CalculationPower (W)
= Voltage × Current × Power Factor
Energy CalculationEnergy (kWh)
Accumulated continuously from power readings.
Communication TechnologiesWebSocketUsed for:
- Live Data Streaming
- Dashboard Updates
- Low-Latency Monitoring
Used for:
- Cloud Synchronization
- Historical Storage
- Remote Monitoring
Required Libraries:
- WiFi.h
- AsyncTCP
- ESPAsyncWebServer
- ArduinoJson
- HTTPClient
- WiFiClientSecure
Install ESP32 Board Package.
Step 2Install Required Libraries.
Step 3Configure WiFi Credentials.
Step 4Configure Firebase Credentials.
Step 5Upload Firmware.
Step 6Connect Sensors.
Step 7Access Dashboard.
Applications- Smart Home Energy Monitoring
- Industrial Power Analytics
- Building Management Systems
- Renewable Energy Monitoring
- Energy Auditing
- Electrical Load Analysis
- IoT Research Projects
- Smart Grid Applications
✔ Real-Time Monitoring
✔ Cloud Connected
✔ Firebase Integration
✔ Historical Logging
✔ WebSocket Streaming
✔ Secure Dashboard
✔ Energy Analytics
✔ Cost Estimation
✔ Remote Accessibility
Future Improvements- MQTT Integration
- Mobile Application
- Predictive Energy Analytics
- AI-Based Load Forecasting
- Smart Alerts & Notifications
- Solar Monitoring
- Multi-Phase Monitoring
- Smart Meter Integration
✔ ESP32 Based
✔ Firebase Connected
✔ Real-Time Dashboard
✔ WebSocket Communication
✔ Energy Analytics
✔ IoT Enabled
✔ Cloud Monitoring
✔ Industrial Grade Architecture
✔ Full Stack Embedded System
AuthorHariharan Balakrishnan
B.E Electronics and Communication Engineering
Embedded Systems | IoT | Edge AI | Firebase | ESP32 | Zephyr RTOS












Comments