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

Connect 3 PZEM to 3 different serial ports #84

Closed Pippozz closed 1 year ago

Pippozz commented 2 years ago

Hi everyone! I need to connect 3 different PZEM to 3 different serial ports to an ESP32 (or if necessary an esp8266) How can I do it with this library?

I can't set addresses to pzem and call it a day since I need to swap them quite frequently and I don't want my mesures messed up...

Thanks in advance!

sergiocntr commented 2 years ago

Hi Take a look at closed issue #64 maybe is better to set different address and use only one serial. If you still want to use 3 different serial this can be done,but the question is about ESP32 Hardware Serial not about this lib....

vortigont commented 2 years ago

@Pippozz you can also check the alternative pzem-edl lib oriented to multi device connections

mandulaj commented 1 year ago

Closing as a duplicate.