Comments (5)
It seems that there are 2 errors in the softwareserial example:
- You need to include softwareserial library in your code.
- You need a modbus address in the constructor.
I was able to compile the program (a simple getAddress) but was unable to change the address using setAddress; it always returned false. Now I will wire up the circuit and try to get some readings.
Can you please look into why setAddress is not working.
Thanks
from pzem-017-v1.
I'm initially using this code for ESP8266 on this project other boards were not tested, you can look into PZEM017v1.h and modify it there.
setAddress problem is a known issue during the test, but my project doesn't require the address to be changed
I instead use supplied rs485 converter connected to the PC and use qmodbus to modify PZEM's address.
The project was finished last year I'm no longer have the hardware to fix the code 'pull request' is welcomed.
from pzem-017-v1.
Qmodbus looks interesting. I have downloaded it but cannot figure out how to change the slave id. Can you please help me out here?
Thanks
from pzem-017-v1.
I was able to get the pzem-017 to work with QModBus. Apparently, you need a 120 ohm resistor between the A and B lines. I just added the resistor to the A/B terminal block and it started working.
from pzem-017-v1.
I am having some problem in reading through ESP32
USB RS485, I can read on PC. This means Pzem Module is fine.
But on Arduino (ESP32) using Serial 2 (HardSerial Example), The Tx light on Rs485 Module blinks , but there is no response from Pzem. I also tried 100 Ohm and 180ohm resisters , I can found in my junk. I am not engineer, my guess is these resisters should work. B is connected to B & A is connected to A.
Any help would be appreciated
from pzem-017-v1.
Related Issues (4)
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-017-v1.