Smart Home Energy Monitor
The Challenge
Note: This is a placeholder article generated for demonstration purposes.
Energy consumption is often a black box. Homeowners receive a bill once a year but lack granular insight into which devices are consuming power at any given moment. The goal was to build a non-invasive, high-frequency monitoring system.
The Solution
I wrote optimized C++ firmware for an ESP32 microcontroller. Using ADC (Analog-to-Digital Converter) readings from CT clamps, the system measures current on the main phase lines 5000 times per second to calculate True RMS power.
The data is sent via MQTT to a local Raspberry Pi running InfluxDB. A React frontend queries this time-series database to visualize consumption graphs down to the second.
Tech Stack
- Firmware: PlatformIO (C++)
- Backend: Mosquitto MQTT, Node-RED, InfluxDB v2
- Frontend: React, Recharts, TailwindCSS
The Result
The system has been running stably for over 18 months, processing millions of data points. It successfully identified a faulty freezer compressor that was cycling too frequently, saving estimated energy costs of ~150€/year.