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
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
| Linux | Raspberry Pi | macOS | Windows |
|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ |
pip install dl-myoThe 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.pyOtherwise, you can also bind to a specific MAC address. For example,
python examples/sample_client.py --mac D2:3B:85:94:32:8EThe 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 influxdbthen
python examples/influxdb/influx_client.pyMake use of the dashboard config examples/influxdb/myo.json.
NOTE: The docker example currently doesn't work on macOS.
docker compose pull
docker compose run --rm dl-myoInstall Poetry first.
poetry buildThis 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:
- Alvipe/Open-Myo#5
- https://github.com/NiklasRosenstein/myo-python/releases/tag/v1.0.4
- https://github.com/PerlinWarp/Neuro-Breakout
- https://github.com/balandinodidonato/MyoToolkit/blob/master/Software%20for%20Thalmic's%20Myo%20armband.md
- https://github.com/cortinico/myonnaise
- https://github.com/dzhu/myo-raw
- https://github.com/exelban/myo-armband-nn
- https://github.com/francocruces/MioConnect
- https://github.com/hcilab/MyoStream
@iomz (Iori Mizutani)