Go Down

Topic: Using the servo library for PWMs via l2C (Read 104 times) previous topic - next topic

thetipe

Hi everyone,
I needed to increase the amount of pwm pins of my yun. Therefore I bought the PCA9685 which provides 16 pwm pins, connected to the Arduino via l2C.
Now I wonder whether I can use the regular servo library to control servos, connected to the pvm pins of the extension.

Any ideas how to achieve this?

Thanks in advance :)

PaulS

Servos do not need to be attached to PWM pins.
The art of getting good answers lies in asking good questions.

SurferTim

No, you must use the registers of the PCA9685 to control the PWM of each output. That is accomplished by I2C transfers.

Go Up