2013-12-05

Adafruit (PCA9685) C Servo Controller (Raspberry Pi)

I've managed to change Georgi Todorovs C drivers for Adafruits Servo Controller and thought I could post the result here. I'm using it with my Raspberry Pi. For some more and initial information (setup, python code and i2cdrivers etc) please have a look at http://learn.adafruit.com/adafruit-16-channel-servo-driver-with-raspberry-pi/
Download source code here:

https://drive.google.com/file/d/0Bx4cA9PUHODLVDA0R0FrNlhZRE0/edit?usp=sharing

make and compile by executing the following on your raspberry pi
$ ./run.sh

Remember to make sure your LD_LIBRARY_PATH is set correctly, that you have configured the servo controller properly (use i2cdetect -y [0 or 1]) and that you run as root. 

1 comment:

  1. Hey there, would be cool if you explain how to build your code more in detail. I tried it with your script but it does not find the pca9685.o requirements. Tried to build it from the post before but seems like some i2c stuff is missing.

    Thank you
    Tobi

    ReplyDelete