Re: modbus to ESP32/ Modbus library in arduino

shadeboy
Posts: 1
Joined: Tue Apr 16, 2019 10:06 am

Re: modbus to ESP32/ Modbus library in arduino

Postby shadeboy » Tue Apr 16, 2019 10:12 am

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.

Request urgent help

Thanks

Code: Select all

const float analogInPin = A6;
void setup()
{
  Serial.begin(19200);
  }
  void loop()
  {
    float sensorValue = analogRead(analogInPin);
    Serial.println(sensorValue);
    delay(1000);
    }
Attachments
modbus circuit.jpg
modbus circuit.jpg (167 KiB) Viewed 2614 times

Who is online

Users browsing this forum: Baidu [Spider] and 66 guests