Hi All,
I am trying to take the modbus/RS485 output in the ESP32 with the help of ESP32 - modbus converter.
but i'm getting random readings again and again.
Can anyone tell me how get the exact same reading from modbus to ESP32 ?
Also I need support on using the modbus library in Arduino, where I can specify the address & set parity for the modbus RS485 device. The modbus vendor has recommended a baud rate of 19200, which i am able to change.
Post links to the used hardware! Post a wiring diagram! Post your code (don’t forget the code tags, that’s the </> button in the editor)! Post a link to the manual of the counterpart device!
The direct connection of DE and RE doesn’t do anything without connecting that to a MCU pin. This is for selecting the sending or receiving hardware, you cannot have both active at the same time (with your hardware).
The RS-485 hardware you’ve chosen is a 5V device. You must not connect it directly to your ESP32, you might damage it (or already did damage it).