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

Measuring speed #44

Closed zered4 closed 3 years ago

zered4 commented 3 years ago

Hello,

dont know if its an issue but is there some limitation to measuring only once a second? And if so is there a way to make the process faster. It looks like the measuring is happening faster but data get "updated" only once a second. What should i do if i want to measure faster?

I apologize, english is not my first language and Thank you all for your answers.

mandulaj commented 3 years ago

Hi @zered4, thank you for the question. This issue has been discussed before in #37. In summary, by default the measurements should be updated (by communicating with the PZEM) every 200ms, (Controlled by the #define UPDATE_TIME 200 in PZEM004Tv30.cpp) However we are actually limited by the internal sampling speed of the PZEMs which is around 1s. So unfortunately, there is not much that can be done... I will close this issue as a duplicate.

mandulaj commented 3 years ago

Duplicate of #37