unable to retrieve data from a rs485 based flowmeter
The flowmeter contains a atmega 16 chip and i am trying to get flowrate and flow totalizer from it via rs485 to ttl converter using a arduino nano
data related to the rs485 signal and data registers -
0x4001 to 0x4003 ---> flow rate value
0x4004-->flow rate value unit
0x4005 to 0x4007 -->totalizer value
0x4008-->totalizer value unit
first digit is data bits which is 8b
Second digital is Parity which you select as N for None, E for Even, O for Odd
Third digit is stop bite which you can select as 1 / 2 bits
device id - 025
ide using - arduino ide
the code ---->
7 Replies
Could you please put this on gist or provide a repo on github. It's going to be impossible to get help from Images
okay , I will update this thread in an hour
GitHub
GitHub - vedantjadhav44/flowmeter_data_extraction
Contribute to vedantjadhav44/flowmeter_data_extraction development by creating an account on GitHub.
code repo -
hey i have updated the post with github repo
Cool someone with Arduino insight should be able to help.
With RS485, you need an RS485 Transceiver Module such as ANMBEST MAX485. You can check out the diagram on the following page, which explains how to use RS485 and Modbus with Xedge32: https://realtimelogic.com/ba/ESP32/source/RTU.html
yup i am using that module , check out my GitHub repo it contains the code .