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 details)

Uploaded Source

File details

Details for the file servo-lock-0.0.1.7.tar.gz.

File metadata

  • Download URL: servo-lock-0.0.1.7.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for servo-lock-0.0.1.7.tar.gz
Algorithm Hash digest
SHA256 0cd713cd0a6a30b45c819cb289b88be164c69fc4ce46927ea9922a33df01454a
MD5 af2964953856e7f273264852e40f07d0
BLAKE2b-256 5034c3632985b63a8eb38bd2df49efd369875c2c4b406542eb8406d6ec9acdb6

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