⛔ High riskMains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.
Know when it is done, without standing next to it
A washing machine or a dishwasher does not announce the end of a cycle across the house, and when power is available only in windows, a forgotten load can sit for hours. A power meter on the socket sees the cycle as a pattern: high power while heating or running, low power in pauses, and near zero at the end.
The state machine
Declare "running" when the power stays above a threshold for a minute or two, and "finished" only after it has stayed below a low threshold for a long time, such as five to ten minutes, because machines pause between phases and draw very little then. Log a few cycles first and look at the curve before setting the numbers.
- A dishwasher has long quiet periods, a washing machine soaks; the same rule will not fit both.
- Send the message together with the energy of the cycle, a nice side effect for your records.
- Use the clamp version of the PZEM on an extension cable instead of cutting into the appliance cord, and keep all mains parts in a closed box.
Components
- ESP32 DevKit V1 (30 pin, WROOM-32)
- PZEM-004T v3.0 (100A, coil)
- Inline fuse holder + fuses
- Plastic project enclosure
- Lever connectors (WAGO type) 2/3-pin
Comments
No comments yet. Share your experience or ask a question.