Skip to main content

A replacement middleware to MyoConnect for Myo Armband

Project description

dl-myo (Dongle-less Myo)

build status image size codecov python Versions pypi version license

dl-myo is a replacement to MyoConnect for Myo Armband without an official Myo dongle.

If you are fed up with the dongle and still need to use Myo anyway this is the right stuff to grab.

This project is a reimplementation of Dongleless-myo (originally created by @mamo91 and enhanced by @MyrikLD) using Bleak instead of bluepy, and therefore supports asyncio on multiple platforms.

The GATT service naming convention reflects the official BLE specification for Myo (i.e., myohw.h); however, some services and characteristics differ for a uniform naming.

See myo/handle.py for more detail.

Platform Support

Linux Raspberry Pi macOS Windows

Install

pip install dl-myo

Example

The script scans a Myo device, connect, set LED colors, vibrates, collect EMG/IMU data for a moment, and then read the avaialable services/characteristics from the device.

Any Myo Armband should have the service UUID d5060001-a904-deb9-4748-2c7f4a124842.

python examples/sample.py

Otherwise, you can also bind to a specific MAC address. For example,

python examples/sample.py --mac D2:3B:85:94:32:8E

Try the example with Docker

docker compose pull
docker compose run --rm dl-myo

Build (requires Poetry

poetry install
poetry build

Author

@iomz (Iori Mizutani)

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

dl_myo-0.2.0.tar.gz (22.4 kB view hashes)

Uploaded Source

Built Distribution

dl_myo-0.2.0-py3-none-any.whl (21.6 kB view hashes)

Uploaded Python 3

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