If you work in the Automation Industry, you will know that automation equipment is very expensive. And many a time, especially for small applications, you simply cannot justify the use of very expensive equipment.
This is where the Arduino comes in.
The Arduino development board allows you to create very simple, but very powerful, Modbus master or slave devices through the use of relatively simple "C" programming. With the Arduino, you have full custom control over the program design allowing you to create very lean and very efficient devices for very specific purposes.
If you work in the Automation Industry, you will know that automation equipment is very expensive. And many a time, especially for small applications, you simply cannot justify the use of very expensive equipment.
This is where the Arduino comes in.
The Arduino development board allows you to create very simple, but very powerful, Modbus master or slave devices through the use of relatively simple "C" programming. With the Arduino, you have full custom control over the program design allowing you to create very lean and very efficient devices for very specific purposes.
Put simply, mastering Modbus on the Arduino is going to take your skill level and value in the Automation Industry to a whole new level.
That is what this course is going to do. At the end of the course, you will know how to:
1. Choose the appropriate Arduino hardware.
2. Interconnect Arduino hardware with other add-on hardware.
3. Write "C" applications to implement Modbus master and slave functionality.
4. Use software and hardware to test each application that you write.
Looking forward to seeing you on the inside.
The end result of the entire project is shown in terms of the various components and how they interconnect with one another.
The actual hardware setup is shown on my workbench to give a more accurate picture of the big picture goal.
A look at the Arduino Mega 2560 and the pins that will be used in the project. The pins that are most important are the serial port pins for communication with the external devices.
The wiring of the Arduino Mega 2560 to the Max485 module is shown and the functions of the various connections explained.
The specifications of the Modbus RS485 Temperature / Humidity sensor are examined. The port settings, slave ID as well as the target Modbus registers to be read are identified.
The actual physical connection is shown on the workbench. The connection of the Arduino Mega to the Max485 module and then the connection of the Max485 module to the Modbus RS485 Sensor.
A quick look at the Arduino IDE to show how to set up and download a simple sketch to the Arduino Mega.
The Modbus master Arduino library is installed to effect Modbus master comms, after which code comments are placed in the new sketch to keep the code readable with expansion.
The writing of the sketch for the Modbus communication is started.
The code is completed for the sketch that implements the Modbus communication.
The sketch is compiled and downloaded to the Arduino to test for proper Modbus communication.
The Amazon pages for the ESP8266 and it's breadboard breakout adapter are shown.
Shows a downloadable wiring diagram with all wire connections from Arduino Mega to ESP8266 Wifi Module
A Look at how the Arduino Mega is connected to the ESP8266 on the actual Work Bench.
The firmware on the ESP8266 must be updated to work with the Blynk system.
The files for the Flash Downloader and the Firmware are downloaded and unzipped and organised into folders.
The wiring is changed temporarily and the flash downloader is used to update the firmware to version 1.1.
An Overview of the Blynk System and What We Are Going to Do in this Section
The Blynk libraries are downloaded from the website, unzipped and copied to the Arduino libraries folder for use in the IDE.
The sketch that is written sends increments a value and sends that value to the Blynk App.
A test project is created in the Blynk App in order to test to see if data is being received from the Arduino.
The modbus code is combined with the Blynk code to form a new sketch.
The Blynk App project is modified and then the merged Arduino sketch is downloaded into the Arduino and the entire IoT system tested.
The project that was just completed using the Blynk App is reviewed using the project diagram from the introduction.
We look at the operation of the Thingspeak IoT server by comparing it to the Blynk system, looking at similarities and differences.
We create a new account on Thingspeak and then set up and new channel with two fields, one for temperature and for for humidity.
Writing the Code to Send Modbus Data to the Thingspeak IoT Server - Part 1
Writing the Code to Send Modbus Data to the Thingspeak IoT Server - Part 2
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.