PureData CEAMMC web documentation

PureData CEAMMC library web documentation

View on GitHub

Distribution download

index :: hw

hw.rpi.i2c.pca9685

aliases: [hw.rpi.pwm.pca9685]

driver for 16-channel 12-bit PWM module on PCA9685 chip for Raspberry Pi

available since version: 0.9.8


information

Note: default PWM freq is 50Hz Servo Control Many digital servos run on a 20ms pulse width (50Hz update frequency) based duty cycle, and do not utilize the entire pulse width for their control Typically, 2.5% of the 20ms pulse width (0.5ms) represents -90° offset, and 12.5% of the 20ms pulse width (2.5ms) represents +90° offset Be aware that driving some 180° servos too far past their -90°/+90° operational range can cause a little plastic limiter pin to break off and get stuck inside of the servo's gearing, which could potentially cause the servo to become jammed and no longer function Continuous servos operate in much the same fashion as 180° servos, but instead of the 2.5%/12.5% pulse width controlling a -90°/+90° offset it controls a -1x/+1x speed multiplier, with 0x being parked/no-movement and -1x/+1x being maximum speed in either direction.

example

arguments:

methods:

properties:

inlets:

outlets:

keywords:

display pwm raspberry servo

Authors: Serge Poltavsky

License: GPL3 or later