Re: modbus to ESP32/ Modbus library in arduino
Posted: 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
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);
}