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

Set Address not working #125

Closed lyinsushi closed 1 month ago

lyinsushi commented 1 month ago

I'm using ATMega 2560 and arduino ide to change the address of 1 PZEM with the example code. it already connected to AC voltage but it failed to set the new address. To confirm that the ac is not the problem, I try the software serial read example and it read the voltage and other things perfectly. it output fails is "error setting address"

mandulaj commented 1 month ago

Which address are you setting to? Also are you using the standard address setting sketch?

lyinsushi commented 1 month ago

apparently it wouldnt work until I erase the hardserial and esp serial code. it works fine now, thanks. I set it from 0x01 to 0x03