-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32-WROOM-32 (DOIT ESP32 DEVKIT V1) + PZEM-004T-100A(V3.0) - all returned values are NaN #100
Comments
Hi Alex ,welcome here. |
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:
|
for anyone had this problem this is the right solution (thanks mr @mandulaj :) ) |
pues a fecha de hoy yo tengo el mismo problema. 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?
The text was updated successfully, but these errors were encountered: