This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
comfilehmi:hmi_connection_uno:index [2023/06/30 05:53] COMFILE Technology |
comfilehmi:hmi_connection_uno:index [2023/06/30 05:59] COMFILE Technology |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Interfacing with an Arduino Uno & FADUINO-18TA ====== | + | ====== Interfacing with an Arduino Uno ====== |
This project illustrates how to use the ComfileHMI to monitor and control an Arduino Uno. | This project illustrates how to use the ComfileHMI to monitor and control an Arduino Uno. | ||
- | {{ :comfilehmi:hmi_connection_uno:dsc044941.jpg }} | + | {{ :comfilehmi:hmi_connection_uno:unowithhmi.png?nolink |}} |
Simply add ''#include <SimpleModbusRtu_uno.h>'' to include the Modbus RTU slave features to the Arduino Uno project. | Simply add ''#include <SimpleModbusRtu_uno.h>'' to include the Modbus RTU slave features to the Arduino Uno project. | ||
+ | |||
+ | {{ :comfilehmi:hmi_connection_uno:simplemodbusrtu_uno.zip |}} | ||
Open the USART and start the Modbus RTU slave with the following code. | Open the USART and start the Modbus RTU slave with the following code. | ||
Line 60: | Line 62: | ||
{{ :comfilehmi:hmi_connection_uno:simplemodbusrtu_uno.zip | Download Arduino Source Code}}\\ | {{ :comfilehmi:hmi_connection_uno:simplemodbusrtu_uno.zip | Download Arduino Source Code}}\\ | ||
{{ :comfilehmi:hmi_connection_uno:comfilehmi-arduino.zip | Download ComfileHMI Project}} | {{ :comfilehmi:hmi_connection_uno:comfilehmi-arduino.zip | Download ComfileHMI Project}} | ||
+ | |||
+ | The example above can be used in FADUINO-18TA as it is. ARDUINO UNO and FADUINO-18ta use the same MCU. | ||
+ | |||
+ | {{ :comfilehmi:hmi_connection_uno:faduino18ta.png?nolink |}} | ||
[[comfilehmi:index#ComfileHMI_Connectivity| Back to ComfileHMI]] | [[comfilehmi:index#ComfileHMI_Connectivity| Back to ComfileHMI]] | ||