Skip to main content

CircuitPython helper library provides higher level objects to control motors and servos.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

This helper library provides higher level objects to control motors and servos based on one or more PWM outputs.

The PWM outputs can be any object that have a 16-bit duty_cycle attribute. Its assumed that the frequency has already been configured appropriately. (Typically 50hz for servos and 1600hz for motors.)

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-motor

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

sudo pip3 install adafruit-circuitpython-motor

To install in a virtual environment in your current project:

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

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adafruit-circuitpython-motor-3.4.5.tar.gz (35.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file adafruit-circuitpython-motor-3.4.5.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-motor-3.4.5.tar.gz
Algorithm Hash digest
SHA256 4aedbab58097c30174323adc48b41e99fdc8b6de211020194616d37929bc4f98
MD5 9184938269426a661f5cd4ec870ddfed
BLAKE2b-256 629b5a823c104b1391bacbe069630790593d406a4e46a16add6f9a92d6b925df

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_motor-3.4.5-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_motor-3.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e462722ce8c75f35fc3c34c2dbdb46037bdd0e5aa086d144c97502f65630ade1
MD5 c2b1afa7937f6b68d216e050d558bef6
BLAKE2b-256 04cea0ddf840d81f3c208bddc573dd3ad036cbc637a71525590ea4329379c2d8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page