Skip to content

Software

Adafruit CircuitPython ServoKit

By Adafruit Industries, United States (checked on github.com/adafruit (opens in a new tab)), from github.com/adafruit/Adafruit_CircuitPython_ServoKit (opens in a new tab)

  • Robot arms and industry
  • Library
  • MIT

A CircuitPython helper library for driving servo motors through Adafruit's PWM/Servo FeatherWing, Shield, Pi HAT and Bonnet kits.

Facts

GitHub stars
78read on 27 Nov 2026
Last update
23 Apr 2026Newest commit on main
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Beginner
Hardware it needs, as the project states it
Adafruit PWM/Servo FeatherWing, Shield, Pi HAT or Bonnet kit, running CircuitPython; on a Raspberry Pi or other GNU/Linux system when installed from PyPI.

Checked on GitHub on 27 Nov 2026.

Licenses

Code
MIT (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit 016b3fd (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Drives standard servos by angle and continuous-rotation servos by throttle.
  • Supports 8 servo channels on the FeatherWing and 16 on the Shield, HAT and Bonnet.
  • Depends on the Adafruit CircuitPython core, Bus Device and Register libraries.
  • Can be installed on Linux systems such as the Raspberry Pi from PyPI with pip.
  • API documentation is hosted on Read the Docs.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
Used by Ball-Balancing Robot, Head-Neck Control and JetRacer.
Licence
MIT. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Maintained, last commit on 23 Apr 2026.

Works with

3 robots on Robotheca

The robots on Robotheca that use it or can run it, each with how the link was found.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 016b3fd

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.rst by Adafruit Industries, at commit 016b3fd, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Introduction

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-servokit/badge/?version=latest (opens in a new tab) :target: https://docs.circuitpython.org/projects/servokit/en/latest/ (opens in a new tab) :alt: Documentation Status

.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg (opens in a new tab) :target: https://adafru.it/discord (opens in a new tab) :alt: Discord

.. image:: https://github.com/adafruit/Adafruit_CircuitPython_ServoKit/workflows/Build%20CI/badge.svg (opens in a new tab) :target: https://github.com/adafruit/Adafruit_CircuitPython_ServoKit/actions/ (opens in a new tab) :alt: Build Status

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json (opens in a new tab) :target: https://github.com/astral-sh/ruff (opens in a new tab) :alt: Code Style: Ruff

CircuitPython helper library for the PWM/Servo FeatherWing, Shield and Pi HAT and Bonnet kits.

Dependencies

This driver depends on:

  • Adafruit CircuitPython <https://github.com/adafruit/circuitpython>_
  • Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>_
  • Register <https://github.com/adafruit/Adafruit_CircuitPython_Register>_

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>_.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI <https://pypi.org/project/adafruit-circuitpython-servokit/>_. To install for current user:

.. code-block:: shell

pip3 install adafruit-circuitpython-servokit

To install system-wide (this may be required in some cases):

.. code-block:: shell

sudo pip3 install adafruit-circuitpython-servokit

To install in a virtual environment in your current project:

.. code-block:: shell

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-servokit

Usage Example

.. code-block:: python

import time
from adafruit_servokit import ServoKit

# Set channels to the number of servo channels on your kit.
# 8 for FeatherWing, 16 for Shield/HAT/Bonnet.
kit = ServoKit(channels=8)

kit.servo[0].angle = 180
kit.continuous_servo[1].throttle = 1
time.sleep(1)
kit.continuous_servo[1].throttle = -1
time.sleep(1)
kit.servo[0].angle = 0
kit.continuous_servo[1].throttle = 0

Documentation

API documentation for this library can be found on Read the Docs <https://docs.circuitpython.org/projects/servokit/en/latest/>_.

For information on building library documentation, please check out this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>_.

Contributing

Contributions are welcome! Please read our Code of Conduct <https://github.com/adafruit/Adafruit_CircuitPython_ServoKit/blob/main/CODE_OF_CONDUCT.md>_ before contributing to help this project stay welcoming.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.