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.1.6.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

dl_myo-0.1.6-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file dl_myo-0.1.6.tar.gz.

File metadata

  • Download URL: dl_myo-0.1.6.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for dl_myo-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e8a9f4e502562f8a5fa13b6ccc534372170e97c9f3eb5082f743c945bb07726c
MD5 c28146c9cf445be8480b3243b03c3581
BLAKE2b-256 0ac2885a88cee96ca0414ddfb0c55e0ce42462e5520a661e23a22f70f328f31d

See more details on using hashes here.

File details

Details for the file dl_myo-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: dl_myo-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for dl_myo-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9ee65221dc4510137baa80acc4c9929456a20a786b5df6c5746d69036b49d8c2
MD5 957d7c3a8117becb595693d06deb254e
BLAKE2b-256 02896307ab4414945c55615ef3e55229321dd9453883758511c8274ccda041be

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