Skip to main content

Example: Using an Adafruit PWM Module Connected via I²C to Control a Model Servo Motor

Product: CODESYS Control for Raspberry Pi

The SoftMotion Servo Example.project sample project contains an application where CODESYS SoftMotion is used in conjunction with model servo motors. An expansion board (Adafruit ID 815) connected via I²C is used as communication interface. As a requirement, an Adafruit 16-channel/12-bit PWM board has to be connected via I²C and a model servo is wired to its first PWM channel.

For more information, see: Configuring Servomotor

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

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

Adafruit 16-channel/12-bit PWM board, I²C bus