Skip to main content

Yet another MyoConnect alternative without dongles

Project description

dl-myo (Dongle-less Myo)

build status image size codecov python versions pypi version license

dl-myo is yet another MyoConnect alternative for Myo Armband without an official Myo dongle.

If you are fed up with the dongle and still want to use Myo anyway (in Python), this is the right stuff to grab.

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/profile.py for more detail.

For further developments, see my project using this library: https://github.com/Interactions-HSG/MyoKTROS

Features

Compared to other Myo libraries/SDKs:

  • Full-scratched in Python, no dependency from other runtime (e.g., the official cpp SDK)
  • Multi-platform support based on Bleak, instead of bluepy or pybluez
  • Stream EMG data (filtered/raw) and IMU data simultaneously using asyncio
  • A sample docker image provided -- runs just off the shelf

Platform Support

Linux Raspberry Pi macOS Windows

Install

pip install dl-myo

Examples

sample_client.py

The script scans a Myo device, connect to the device, prints the GATT profile from the device, collect EMG data for 5 seconds, and then disconnect.

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

python examples/sample_client.py

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

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

influxdb

The examples/influxdb/influx_client.py emits datapoints to be stored in InfluxDB. The docker-compose.yml lanches the required database for this by default.

docker compose up -d influxdb

then

python examples/influxdb/influx_client.py

Make use of the dashboard config examples/influxdb/myo.json.

influxdb

Try the example with Docker

NOTE: The docker example currently doesn't work on macOS.

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

Build with Poetry

Install Poetry first.

poetry build

Credits

This project was first inspired by Dongleless-myo (originally created by @mamo91 and enhanced by @MyrikLD) which provides a great starting point using bluepy.

In addition to Myo Bluetooth Official Protocol, I would like to mention that the following resources on GitHub have been very helpful:

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dl_myo-1.1.8-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dl_myo-1.1.8.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dl_myo-1.1.8.tar.gz
Algorithm Hash digest
SHA256 e1d2f765895e50a8f967f191db11698e5c3a0820f14498971f41e48b8797a3b3
MD5 dca78b6c4368213313c86c92a19a2305
BLAKE2b-256 60785e41cad6d4ae242d950f118be5e5ac8df0a517beb77161f68a0bab12053a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dl_myo-1.1.8.tar.gz:

Publisher: pypi.yml on iomz/dl-myo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: dl_myo-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dl_myo-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3982e54005a819c8e06e48d2409932290eecdfad70edeb9b7e52e6d9edff3c2c
MD5 7c2bef370a536aa8ab7065d619fde786
BLAKE2b-256 446caadf7781f8f9491ac855385fa959f4d315f21d2359c2074f0ad9a33a2a41

See more details on using hashes here.

Provenance

The following attestation bundles were made for dl_myo-1.1.8-py3-none-any.whl:

Publisher: pypi.yml on iomz/dl-myo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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