Skip to main content

ICSServo: ICS serial servo driver library

Project description

# icsservo

![Travis (.org)](https://img.shields.io/travis/coord-e/icsservo.py.svg)
![PyPI](https://img.shields.io/pypi/v/icsservo.svg)
![PyPI - License](https://img.shields.io/pypi/l/icsservo.svg)
![C++](https://img.shields.io/badge/C%2B%2B-14-orange.svg)

ICSServo: ICS serial servo driver library

## Install

```shell
pip install icsservo
```

## Serial port setup

### Raspberry Pi 3 B

```shell
# Disable Bluetooth and Enable PL011 uart.
# MiniUART cannot be used because it does not support parity.
# https://www.raspberrypi.org/documentation/configuration/uart.md
echo 'dtoverlay=pi3-miniuart-bt' | sudo tee -a /boot/config.txt

# Reboot to apply changes
sudo reboot
```

## Usage

```python
from icsservo import IOProvider

with IOProvider(device="/dev/serial0", en_idx=23) as io:
servo = io.servo(1) # Servo with ID 1
servo.set_position(3.14 / 2)
```

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

icsservo-0.2.tar.gz (591.2 kB view details)

Uploaded Source

File details

Details for the file icsservo-0.2.tar.gz.

File metadata

  • Download URL: icsservo-0.2.tar.gz
  • Upload date:
  • Size: 591.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

File hashes

Hashes for icsservo-0.2.tar.gz
Algorithm Hash digest
SHA256 6ae2648c3c50145ff46d6542f57f3beaa19ae8d0655da365be7b075522284bb0
MD5 e6bb62f5c2ccb87a59d6ff1540142a32
BLAKE2b-256 7e1fdf67b71d5086d1f33a8ad83894450db30757d53e41525bed2a6ef2560657

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page