Speed Control on i2C 16 Channel Driver
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- js3
- Posts: 24
- Joined: Mon Sep 10, 2012 12:45 am
Speed Control on i2C 16 Channel Driver
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?
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Speed Control on i2C 16 Channel Driver
No. The PCA9685 chip on this board requires its own library:
https://github.com/adafruit/Adafruit-PW ... er-Library
https://github.com/adafruit/Adafruit-PW ... er-Library
- js3
- Posts: 24
- Joined: Mon Sep 10, 2012 12:45 am
Re: Speed Control on i2C 16 Channel Driver
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?
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Speed Control on i2C 16 Channel Driver
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.
- js3
- Posts: 24
- Joined: Mon Sep 10, 2012 12:45 am
Re: Speed Control on i2C 16 Channel Driver
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.
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: Speed Control on i2C 16 Channel Driver
The VarSpeedServo library just increments the the servo position over time to control the sweep speed.
Please be positive and constructive with your questions and comments.