Modbus Analog Input Read From Arduino Uno Board, Arduino As Slave.

by rupjit81 in Circuits > Arduino

454 Views, 0 Favorites, 0 Comments

Modbus Analog Input Read From Arduino Uno Board, Arduino As Slave.

20230724_195208.jpg
20230724_195150.jpg

In this design I'm going to use Modbus protocol to communicate with Arduino Uno and read Arduino analog channels A0 , A1.

My computer is a Modbus master in this case. The software used is Modbus Poll as Modbus master.

The Modbus request is processed by Arduino Uno and a response is generated with LRC and returned to the master.


Supplies

  1. Arduino Uno 1 pc
  2. 10K potential 2 pc
  3. Vero board 1 pc
  4. USB cable 1 pc
  5. Connection wires 1 pc
  6. PC software Download (modbustools.com) Other Modbus master tools may be used.

Modbus analog input read on Arduino Uno board, detailed tested video
Modbus analog input read on Arduino Uno
20230724_195208.jpg
20230724_200708.jpg
20230724_195150.jpg
20230724_195153.jpg
20230724_195157.jpg

The Modbus poll software is Modbus master. This software issues Modbus frame with slave address, type of data request etc. Refer the Modbus ASCII frame for detailed data.

The ASCII frame is received by the Arduino and it processes the data. The processed data is analysed and analog channel data is dumped in the response frame. The complete frame LRC is calculated and sent so that the master can verify the data is good or bad.

The software for this project is attached.

This is a tested project.