PZEM-004T-v30
PZEM-004T-v30 copied to clipboard
How do I reset the energy meter values?
I want the energy meter to reset every time it is turned off, How do I do that?
It depends on your setup. There is no way to do this automatically. I guess you could reset the module during the initialization on boot. This assumes your MCU turns on and off simultaneously with the PZEM module. If your MCU stays on constantly, you could detect the PZEM as off when the communication fails and then next time the communication succeeds send a reset command. However, I wouldn't recommend this as there is a chance that you get false positives. Otherwise, there isn't a way to detect when the module turns on/off alone..
Has your issue been resolved? If so please kindly close this issue. Thanks :)