This is the Arduino Library for Seeed's PCA9685 based products. For now, it's Grove - 16-Channel Servo Driver(PCA9685).
The PCA9685 is an I2C-bus controlled 16-channel LED controller. It can be used as RGB or RGBA LED Drivers, Servo Drivers, etc.
Please note that PCA9685 has a ALL CALL I2C-bus address 0x70
, this address is for programming all the PCA9685s in the bus at the same time. This address is enabled by default and disabled after PCA9685::init()
or ServoDriver::init()
.
This example drives 8 servos in turns. The library provides a sub-class of class PCA9685
, named ServoDriver
. In that class, ServoDriver::setAngle()
can be used to control a servo directly.
PCA9685 can also drive leds with PWM.
The default I2C address of Grove - 16-Channel Servo Driver(PCA9685) is 0x7f. If you need to change the I2C address, there are 6 hardware address pin on the back and they are default to HIGH. Cut the line between the right two pads and solder the left two pads together to set it to LOW.
The following picture is the address table of PCA9685:
This software is written by Jerry Yip for seeed studio and is licensed under The MIT License. Check License.txt for more information.
Contributing to this software is warmly welcomed. You can do this basically by
forking, committing modifications and then pulling requests (follow the links above
for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.
Seeed Studio is an open hardware facilitation company based in Shenzhen, China.
Benefiting from local manufacture power and convenient global logistic system,
we integrate resources to serve new era of innovation. Seeed also works with
global distributors and partners to push open hardware movement.