{"id":21196288,"url":"https://github.com/neildavis/drv8835-motor-driver-pigpio-python","last_synced_at":"2026-05-22T05:02:42.349Z","repository":{"id":146251611,"uuid":"340098543","full_name":"neildavis/drv8835-motor-driver-pigpio-python","owner":"neildavis","description":"Python library for the Pololu DRV8835 dual motor driver kit for Raspberry Pi using the pigpio daemon","archived":false,"fork":false,"pushed_at":"2021-02-20T18:07:09.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T14:21:28.790Z","etag":null,"topics":["gpio","pigpio","pololu-driver","python-library","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neildavis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-18T15:48:29.000Z","updated_at":"2021-02-26T14:38:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"9532b867-3473-480f-971e-b535f29a9902","html_url":"https://github.com/neildavis/drv8835-motor-driver-pigpio-python","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neildavis%2Fdrv8835-motor-driver-pigpio-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neildavis%2Fdrv8835-motor-driver-pigpio-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neildavis%2Fdrv8835-motor-driver-pigpio-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neildavis%2Fdrv8835-motor-driver-pigpio-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neildavis","download_url":"https://codeload.github.com/neildavis/drv8835-motor-driver-pigpio-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243652693,"owners_count":20325607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpio","pigpio","pololu-driver","python-library","raspberry-pi"],"created_at":"2024-11-20T19:35:19.023Z","updated_at":"2026-05-22T05:02:37.310Z","avatar_url":"https://github.com/neildavis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drv8835-motor-driver-pigpio-python\n\nPython library for the Pololu DRV8835 dual motor driver kit for Raspberry Pi using the [pigpio](http://abyz.me.uk/rpi/pigpio/) daemon\n\nThis repo contains versions of [Pololu's driver](https://github.com/pololu/drv8835-motor-driver-rpi) for their [DRV8835 Dual Motor Driver Kit for Raspberry Pi](https://www.pololu.com/product/2753).\n\nUnlike the Pololu driver there is no dependency on the deprecated [wiringPi](http://wiringpi.com/) library. Instead this library utilizes the [pigpio](http://abyz.me.uk/rpi/pigpio/) daemon (```pigpiod```) and uses a Python client library to communicate with the daemon.\n\nTwo versions of the driver are provided using different underlying Python client libraries to communicate with ```pigpiod```:\n\n- A standard (blocking) socket I/O via the official [```pigpio``` Python client library](http://abyz.me.uk/rpi/pigpio/python.html) (supports Python 2.x and 3.x).\n- An [asyncio](https://docs.python.org/3/library/asyncio.html) based version using the unofficial (and still incomplete) [apigpio](https://github.com/neildavis/apigpio) library (Python3.7+ required).\n\n## A note on hardware PWM support\n\nThis library uses the [```http://abyz.me.uk/rpi/pigpio/python.html#hardware_PWM```](http://abyz.me.uk/rpi/pigpio/python.html#hardware_PWM) API in ```pigpio``` to make use of true hardware PWN on pins 12 \u0026 13 of the Pi. This generates 250 KHz PWM, which is the maximum supported by the Pololu DRV8835 chip.\n\n## Getting Started\n\n### Installation\n\nFirst, ensure you have the pigpio dameon installed:\n\n```bash\nsudo apt-get install pigpio\n```\n\n### Starting the pigpiod daemon\n\nThis library uses a Python *client library* which in turn communicates with the pigpio dameon process which must be running, otherwise your program will receive an error. To start the daemon you can type:\n\n```bash\nsudo gpiod\n```\n\nSee also discussion above regarding passing a PWM *sample rate* via the ```-s``` parameter when starting the daemon if you require a frequency above 5KHz.\n\n### Stopping the pigpiod daemon\n\nWhen you're done you can stop the daemon if you want by typing:\n\n```bash\nsudo killall pigpiod\n```\n\n### Using the library\n\nSpecific instructions for using the [pigpio Python client library](http://abyz.me.uk/rpi/pigpio/python.html) based version of this library can be found in the [README](pigpio/README.md) file in the ```pigpio``` directory.\n\nIf you prefer to use an [asyncio](https://docs.python.org/3/library/asyncio.html) based version of the Python client library, a version of the library using [apigpio](https://github.com/neildavis/apigpio) is available in the ```apigpio``` directory. See the [README](apigpio/README.md) in that directory for specific instructions in this case. Note this version is limited to use with Python 3.7+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneildavis%2Fdrv8835-motor-driver-pigpio-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneildavis%2Fdrv8835-motor-driver-pigpio-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneildavis%2Fdrv8835-motor-driver-pigpio-python/lists"}