ModbusMaster icon indicating copy to clipboard operation
ModbusMaster copied to clipboard

How can I send a data by serial communication, using an Arduino to some program that will read this data?

Open Pedro0596 opened this issue 5 years ago • 2 comments

I never used ModBus protocol, so I'm realy confuse with all this informations. I just need to send data from arduino to a computer. It's not a big deal, but i tryied ModbusSerial and not worked. So I think in use ModbusMaster, and use arduino like a master and PC like a slave, what gonna read this data. Make sense?

Pedro0596 avatar Mar 27 '20 15:03 Pedro0596

You need a TTL RS485 in your Arduino. And USB RS485 in your PC.

If you want to send raw data between them, you don't need Modbus protocol. Just use Serial.print or read as normal UART/Serial device..

image

image

If you need to use RS485 sensor, you need Modbus. Sample project for ESP32+RS485+ModbusMaster: https://github.com/IoTThinks/Misc/tree/master/ModbusMasterESP32

IoTThinks avatar Mar 28 '20 02:03 IoTThinks

Right! I will try! Thanks! The protocol is to simulate an arduilo as a PLC to test the program

Pedro0596 avatar Mar 28 '20 20:03 Pedro0596