Skip to main content

Servodoor: a simple library for controlling RC servo based doors

Servo door is a simple library for controlling (RC servo) doors via via Pimoroni's Servo 2040 18-channel servo controller. Initially designed for use in T-maze type experiments. The Serovo 2040 must be running the servodoor-firmware

Installing

Install using pip

$ pip install servodoor 

Installing from source

This package uses the poetry dependency manager. The installation instructions for poetry can be found here

Once poetry is installed the serovodoor package can be installed using

$ poetry install

Additional documentation on using poetry can be found here

Usage

import time
from servodoor import ServoDoor

port = '/dev/ttyACM0'
ctrl = ServoDoor(port)

rsp = ctrl.get_config()
print(rsp['config'])

rsp = ctrl.get_positions()
print(rsp['positions'])

ctrl.set_doors({'front': 'open'})
time.sleep(5.0)

ctrl.set_doors({'front': 'close'})
time.sleep(5.0)

Metadata

Release files for servodoor 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for servodoor 0.1.0
File Size Uploaded
servodoor-0.1.0.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for servodoor 0.1.0
File Interpreter ABI Platform
servodoor-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / servodoor-0.1.0.tar.gz

Download URL servodoor-0.1.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
93c2f3cbb31530ec1f26a217cecacecec8469760b350ec921473d3f67eee6965
BLAKE2b-256 checksum
How to use checksums
9e32ac965ef80aba9e2595c67fcc7b4b195c632ed0eaa8e1c76176b1a4b981df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-26-generic

Release files / servodoor-0.1.0-py3-none-any.whl

Download URL servodoor-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acc27815a760b3e38321245ddd6c9646c052d13172eaad8c12f3f73da3a99c31
BLAKE2b-256 checksum
How to use checksums
5311549724f1df82b01743b34c3b6a67eab9618a6c420101dab8194cf1131e1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-26-generic

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page