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

Wrong value #98

Closed ckvsoft closed 1 year ago

ckvsoft commented 1 year ago

The values ​​are displayed incorrectly. I have tried several PZEM always the same result. If I consume 61 watts according to the query, I get 0.54 amps. The question now is whether there is something wrong here or whether the PZEM values ​​are determined incorrectly.

lg Chris

vortigont commented 1 year ago

This should be placed in FAQ :) It is expected with any non pure resistive loads. PZEM provides Mean Square values for such types of loads along with PF (power factor) value. Try your tests with incandescent lamp or kettle.

ckvsoft commented 1 year ago

Thx but what else can i see when measuring with an incandescent lamp or a kettle? whether the displayed values ​​are 100% correct is another issue. only if the values ​​obviously do not match is something wrong. At 94 watts (various standby devices) it shows me 0.54A. Should be closer to 0.4

At 1188 watts when the microwave is on, it is 5.61A should be 5.17

At 4314 watts it shows me 19.66A. Should be 18.76.

vortigont commented 1 year ago

Check PF value, if it is less than 1, than a simple P=I*U equation is not applicable here. Current is not constant value in time for such devices. Kettle is almost constant linear load, so should give more expected current values.

ckvsoft commented 1 year ago

OK thanks Everything seems a little clearer. Thus, the approximately correct value would be determined with IPF, right? example 94 watts shows 0.54A. PF = 0.74 So 94 0.74 = 0.399 = ~0.4 Or is that just a coincidence? ;-)

That would really be a point for the FAQ

LG Chris

vortigont commented 1 year ago

Yeah, it works fine for rough approximation. Although real situation might be different depending on load type. BTW you should not consider it as real current is I*PF. It's more like the load is drawing I amps for 3/4 time duration of AC period if PF is 0.75. Or even more complex for inductive throttled loads like electric drives with power control. U,I,P, values that PZEM returns is an RMS values over time period.

mandulaj commented 1 year ago

Added a comment about this in the FAQ, closing now. Thanks @vortigont