• I am trying to build a robot from scratch using a Raspberry Pi4. What I am planning is the use of around 12-16 servo motors plus a number of other sensors. I purchased one of the Adafruit PCA 9685 HATs to support driving multiple servo motors off of the Raspberry Pi 4. I am trying to control the i2C interface and start talking to my servos. However, I see mentioned in many places the preference of using the ServoKit library for this task.
I located the pypi.org/project/adafruit-circuitpython-servokit page but the links to "Read the Docs" and "this Guide" are useless with regard to class & function details.
I have looked everywhere for a library reference that show the ServoKit included classes, functions and appropriate syntax. I have been bouncing back and forth from HAT product pages to GitHub to various document sites and no luck…..I will cop to being a GitHub novice but I am lost. I keep going in a circular loop in my research for this information. Can you possibly point me to a place where I can find what I am looking for and how I might get my hands of the language API for this library so that I can write my code for my project.
ServoKit Library
Moderators: adafruit_support_bill, adafruit
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
- edgjr
- Posts: 143
- Joined: Mon Jan 16, 2012 6:18 pm
Re: ServoKit Library
I'm guessing you didn't see this on the docs (https://docs.circuitpython.org/projects ... en/latest/) page:
"See examples/pca9685_simpletest.py for a demo of the usage"
So, in the GitHub repo, open the examples directory and that file should be there. There's also another example file that has a lot more details on usage.
Keep in mind that there's a lot of Python inheritance going on, so if you don't see all of the API methods in the docs, check the parent class.
"See examples/pca9685_simpletest.py for a demo of the usage"
So, in the GitHub repo, open the examples directory and that file should be there. There's also another example file that has a lot more details on usage.
Keep in mind that there's a lot of Python inheritance going on, so if you don't see all of the API methods in the docs, check the parent class.
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/