How to Program an Arduino as a Modbus RS485 Master & Slave
Learn how to create your own Modbus RS485 Master and Slave Device using the Arduino Uno Development System.
What You Will Learn in this Course
FREE PREVIEWCourse Execution Plan
FREE PREVIEWAccessing Attached Resources
Contacting Your Instructor
The Hardware List
FREE PREVIEWThe Arduino Uno
FREE PREVIEWThe RS485 Shield for Arduino Uno
The LCD Display and Interconnecting Hardware
The USB-to-RS485 Converter and Connection Overview
Hardware Setup on my Workbench
The Arduino Programming Software
FREE PREVIEWThe Modbus Libraries
Modsim32 Modbus Slave Simulator
A look at the Programming Software - Arduino IDE
Our First Program - Testing the LCD Display
Getting the LCD to display the value of a Variable
Additional LCD Code to support Modbus Master Operation
Adding Code to Implement Modbus Master Functionality
Running our First Arduino Modbus Master Application
FREE PREVIEWReview of the Current Application Code
Adding Code to Read a Holding Register
Adding Code to Read an Input Status
Adding Code to Read a Coil
What we are going to do in this Section
How to Acquire the Sensor
A Look at the Datasheet for the Sensor
The Arduino and Sensor setup on my Workbench
Writing the Arduino Code to Read Data from the Temp/Humidity Sensor
Testing the Arduino Program
FREE PREVIEWModification of Code to Display Decimal Places