Speed Control on i2C 16 Channel Driver

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
js3
 
Posts: 24
Joined: Mon Sep 10, 2012 12:45 am

Speed Control on i2C 16 Channel Driver

Post by js3 »

Hi, I've been using Serial to control my servo's speed with my UNO, using the VarSpeedServo library. Can I still use this library or the Servo library with this I2C chip?

User avatar
adafruit_support_bill
 
Posts: 88154
Joined: Sat Feb 07, 2009 10:11 am

Re: Speed Control on i2C 16 Channel Driver

Post by adafruit_support_bill »

No. The PCA9685 chip on this board requires its own library:
https://github.com/adafruit/Adafruit-PW ... er-Library

User avatar
js3
 
Posts: 24
Joined: Mon Sep 10, 2012 12:45 am

Re: Speed Control on i2C 16 Channel Driver

Post by js3 »

I've been looking for a way to control a servos speed on my RPi over I2C, haven't found anything In my searching. Any suggestions?

User avatar
adafruit_support_bill
 
Posts: 88154
Joined: Sat Feb 07, 2009 10:11 am

Re: Speed Control on i2C 16 Channel Driver

Post by adafruit_support_bill »

Please define what you mean by 'servo speed'. For standard RC servos, speed is a function of the servo. If you want to sweep slower than the inherent speed of the servo, then you need to move incrementally. For continuous rotation servos, the speed is a function of the control pulse width.

User avatar
js3
 
Posts: 24
Joined: Mon Sep 10, 2012 12:45 am

Re: Speed Control on i2C 16 Channel Driver

Post by js3 »

I'm using 9g micro servo's and changing sweep speed incrementally. Basically, I've been using the VarSpeedServo library to do this on Arduino but I'm looking for that same functionality on my RPi. Not sure which way to go about it.

User avatar
adafruit_support_bill
 
Posts: 88154
Joined: Sat Feb 07, 2009 10:11 am

Re: Speed Control on i2C 16 Channel Driver

Post by adafruit_support_bill »

The VarSpeedServo library just increments the the servo position over time to control the sweep speed.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”