Skip to main content

Example: Controlling Slaves and Bus Devices Connected via I²C

Product: CODESYS Control for Raspberry Pi

The I2CExample.project sample project shows an application which controls multiple sensors and actuators which are actuated via I²C. The MPU-9150 gyroscope, a SRF02, and an Adafruit PWM modules are used here.

For more information, see: Configuring I²C

Note

_example_icon.png After the installation of CODESYS Control for Raspberry Pi, the sample project is located in the CODESYS Control for Raspberry Pi installation directory, in the Examples directory.

System requirements and restrictions

Programming system

CODESYS Development System (version 3.5.18.0 or higher)

Runtime system

CODESYS Control for Raspberry Pi (version 4.5.0.0 or higher)

Add-on components

MPU-9150 gyroscope, SRF02, Adafruit PWM