This is a simple example showing that you can program the Makeblock products with Codesys - industrial IEC 61131-3 PLC programming. In the example we use the Me Line sensor to send information to the Codesys controller true Modbus TCP/IP communication. The controller reacts to the two sensors buy commanding the Arduino to change colours on the Makeblock LED RGB Strip (0.5m).
Video showing the example:
Part used for this example:
- Raspberry PI
- Arduino UNO
- Arduino Ethernet Shield
- Makeblock Me UNO Shield
- Makeblock Me Line Follower V2.2
- Makeblock Me RJ25 Adapter V2.1
- Makeblock LED RGB Strip (0.5m)
Parts can be bought at (http://www.kreativadelar.se)
Library and software used for this example:
- Makeblock library for Arduino
- Modbus TCP/IP library for Arduino
- CODESYS Control for Raspberry Pi SL
- CODESYS Development System for programming the controller
Resource for this example:
http://fleaplc.it/en/tutorials/33-arduino-as-raspberry-pi-s-remote-io-codesys