mandulaj / PZEM-004T-v30

Arduino library for the Updated PZEM-004T v3.0 Power and Energy meter
MIT License
256 stars 108 forks source link

Pzem measuring wrong voltage values #114

Closed Noor-H closed 9 months ago

Noor-H commented 9 months ago

Hi, I am using 4 pzems (004t-100A) on SERIAL1 (RX 26, TX 27) and 4 pzems on SERIAL 2 (RX 16, TX 17)of ESP32 DEV Module. All pzems have different addresses that I have modified and tested individually. I am measuring voltage, current and some other parameters of an electrical system. Everything was working fine since a few months. However a few days ago, voltage is showing incorrect values, for example if the original values are between 220 to 240 V, it shows values like 189, 270 etc. which are way off from the original values. There are no voltage surges or spikes. Current values are still correct. The whole system is in a well cooled area and there is no problem of components heating up. Can you please point out any problem as of why it suddenly started to happen, or is there a way to caliberate? Thanks, it will be very helpful.

mandulaj commented 9 months ago

Strange, never had that happen. Can you verify the voltage with a multimeter? Also have you tried resetting the chip by just unplugging (from AC) and connecting it back?

Noor-H commented 9 months ago

I did reset it and verify the voltage. The voltage is between 220-240 at some points and 270 at the wire going in the pzem. I think it is due to emf probably or some other reason, however, I am trying to change the wire and connectors to see if it improves the condition.

Edit: There was a problem in the neutral line. Fixing the wire reduced the emf and voltage is normal now. Thanks :)