Comments (7)
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.
from pzem-004t-v30.
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.
from pzem-004t-v30.
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.
from pzem-004t-v30.
@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:
- The PZEM is connected to 230V
- You have connected both the 5V and GND line correctly
- Your RX/TX lines are connected the right way (if not sure, try swapping them)
- You are using the correct unique address (if using multiple PZEMs on one Modbus line)
from pzem-004t-v30.
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 :) )
from pzem-004t-v30.
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
from pzem-004t-v30.
@jonathanpalomino Could you check that:
- The PZEMs are connected to the AC voltage
- The 5V and GND are connected correctly
- The RX/TX are connected correctly (also trying swapping them)
- The RX LED should blink every time the MCU tries reading flowed by the TX LED blinking with the response
from pzem-004t-v30.
Related Issues (20)
- instantaneous value HOT 1
- Module PZEM-004T-100A-D-P HOT 1
- Issue with Teensy 4.1, using any of the hardware serials (Serial1...Serial8)
- Voltage measurement up to 500 volts HOT 2
- Pzem measuring wrong voltage values HOT 2
- Can you make this code non-blocking? HOT 11
- How to modify this code to only output certain values HOT 6
- is there possible to change the CT (Current Transformer)? HOT 1
- Check if module is connected HOT 2
- Is it possible to send one command to measure to all devices connected instead of sending multiple separated commands? HOT 2
- Issue with 16 current coils muxed together with a single PZEM HOT 1
- Inconsisten Byte order in CRC check sum HOT 6
- Lamp cannot dim by TRIAC when connect with PZEM 004T HOT 10
- More than 4 pzem-004t HOT 4
- Set Address not working HOT 2
- Sometimes the data is not fetched from few of the pzems HOT 13
- CTs of higher rating HOT 2
- How about a new release? HOT 1
- Automatic Release Action
- Not a bug, a better option on the ESP8266: using TelnetStream for console
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pzem-004t-v30.