PZEM-004T-v30 icon indicating copy to clipboard operation
PZEM-004T-v30 copied to clipboard

How do I reset the energy meter values?

Open loyolaphysics opened this issue 3 years ago • 2 comments

I want the energy meter to reset every time it is turned off, How do I do that?

loyolaphysics avatar Aug 19 '22 17:08 loyolaphysics

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..

mandulaj avatar Aug 20 '22 11:08 mandulaj

Has your issue been resolved? If so please kindly close this issue. Thanks :)

mandulaj avatar Feb 02 '23 13:02 mandulaj