Communication with Arduino microcontroller
is an open platform based on ATMega
microcontrollers by Atmel
company. See www.arduino.cc
microcontroller can utilise many ways of communication with PCs or other microcontrollers.
In order to establish communicate between the PROMOTIC application and the Arduino
microcontroller, the Modbus protocol
seems to be the best choice.
Both serial link(Modbus RTU) and/or Ethernet (Modbus TCP) can be used as communication interface (based on the configuration of the microcontroller itself).
- Run the software.
- Set the communication port for communication with PC (in menu "Tools / Port").
- Add the downloaded library (in menu "Project / Include Library / Add .ZIP Library").
- Based on the example in the library create the Arduino project.
For this communication in the PROMOTIC system can be used: PmModbusMr - Driver for communication by Modbus Master protocol.
For easy integration of this driver into the application it is handy to use: