Open AlexGnatko opened 1 year ago
Hi Alex ,welcome here. In the example folder there is a sketch named change address :with that read your pzem address,maybe you set a wrong one in the constructor.
Any update on this? Because when I tried it with Arduino Nano on pin 11 and 12 it also returned address 0, error reading voltage.
Hey @AlexGnatko sorry for the late reply but try swapping the RX/TX pins. G16 (ESP RX pin) should be connected to the PZEM TX pin and vice versa.
@iwas108 First of all, the Arduino Nano, has only one hardware serial on pins D0 and D1 (generally used for sending things through the USB to your computer console) You will have to use Software serial with the pins 11 and 12. Check out the PZEMSoftwareSerial for more info. Once you do that, make sure to check the following:
Hey @AlexGnatko sorry for the late reply but try swapping the RX/TX pins. G16 (ESP RX pin) should be connected to the PZEM TX pin and vice versa.
for anyone had this problem this is the right solution (thanks mr @mandulaj :) )
pues a fecha de hoy yo tengo el mismo problema. Custom Address:0 Error reading voltage
He intentado de todo y no logro hacer que reporte nada
@jonathanpalomino Could you check that:
Describe the bug Can not use PZEM-004T-100A(V3.0) with ESP32
To Reproduce
HardwareSerial
code snippet from README.md and create a sketchExpected behavior Every two seconds I should see at least some output in the serial monitor, instead I see this:
Every two seconds the TX LED blinks on the PZEM-004T board. But all data returned by the PZEM004Tv30 object are NaN.
Desktop (please complete the following information):
Is there a way to debug this more deeply?