Skip to main content

Servo utility for the MG996R; but any servo works.

Project description

Context

This tool is showcased in the project IotaWorkshop

Summary

This tool can be both used as a command line interface or be imported into your project. What this repo has that others do not is some math to calculate the estimated time it takes to rotate the servo to a sepecific destination. The utility handles all the pin IO and all you have to do is specify the location the servo needs to be in and the library will do the rest.

Installation

This project requires RPi.GPIO, and I installed it using the arch repo using,

yay -S python-raspberry-gpio

But ubuntu or rasbian can use,

pip install RPi.GPIO

To install the servo library simply pull from the pip repo,

pip install servo-lock

Command Line Interface Examples

To send the servo to a sepecific location simply use the command

servo move 19 90 #Moves the servo on pin 19 to 90 degrees

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

servo-lock-0.0.1.7.tar.gz (2.8 kB view hashes)

Uploaded Source

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