Skip to main content

Scripts to control servos in pan-tilt configuration with Raspberry Pi

Project description

piservopantilt

Build Status

Initial code to control Raspberry Pi with camera setup on 2-axis servo controlled arm.

Usage

from piservopantilt import ServoControl

s = ServoControl(pan_limits=(650,2500),tilt_limits=(650,2250))

# Move to 0,0
s.min()

# Move to 180,180
s.max()

# Move to specific coordinates
s.move_to(180,0)

Testing

Run unit tests with command:

python3 -m unittest discover -s piservopantilt/tst/

Get test coverage with commands:

coverage run -m unittest discover -s piservopantilt/tst/
coverage report -m

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

piservopantilt-0.2.1.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file piservopantilt-0.2.1.tar.gz.

File metadata

  • Download URL: piservopantilt-0.2.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for piservopantilt-0.2.1.tar.gz
Algorithm Hash digest
SHA256 31da256ecf67a20fe33424147e36251846505d023780594ed83eaea774c66ba5
MD5 c8b55735ff6f4cba3f7f7eadcdc3e2c7
BLAKE2b-256 da4e9a49df9c08558a8f3a41ace4549b1f7d47b1444da005213f09176e3d7169

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