Take it on /learn as Measuring energy at home.
Mains is numbers on a slider
Nothing in this course touches mains. The PZEM-004T's and the ZMPT101B's mains sides are numbers on their sliders, and the branch's current is a 60 Hz generator through a small resistor. A real monitor's sensors sit on line voltage or clamp around the service conductors inside the panel, where the main breaker does not protect you. Installing them is licensed work.
The lessons
- Current sensing: a 12 V load through a 0.1 ohm shunt and an ACS712. The 2.5 V zero, 185 mV an amp, and why a CT goes in a panel.
- Voltage sensing: the gallery's ZMPT101B voltmeter. RMS, 120 V at 60 Hz, a sag and a calibration.
- PZEM-004T: the gallery's ESP32 meter over Modbus. Watts, power factor and the energy counter.
- Real power from samples: the gallery's EmonLib monitor. The mean of volts times amps.
- kWh and cost: the house in kWh, cents and a day's projection.
- Alerts: raise once, clear once, for a power limit and the line voltage.
- Boss: a whole-house monitor: wire the branch sensor, then your rate, your limit and a voltage alert.
The monitor
The sketch is housemeter, on an Uno. A PZEM-004T on pins 2 and 3 meters the
whole house; a ZMPT101B on A0 and an ACS712-05B on A1 meter one branch with
EmonLib. Serial commands: rate 15 (cents a kWh), limit 3000 (W),
low 108 and high 132 (V).
The catalog planned this monitor on an ESP32. There is no ESP32 compiler in the build environment, so it runs on an Uno; the ESP32 reads the same PZEM-004T in lesson 3, on the gallery's prebuilt sketch.