For those that haven't heard of the Myo before - it's an armband that reads the electrical impulses from your muscles, letting you control devices by simply waving or gesturing with your hand.
If you have seen it and want to develop on it, you'll soon come to realize that the library is C++ only. This is great for code bases that are already in C++ (*cough* video games *cough*), but not if you just want to make a quick script that does something with the input data. So, why not use Python?
We created a small library for the supported systems (currently OSX, Win32 and Win64) that bundles all of the required C++ code into a separate process and exposes it via a simple python class. In later steps we'll also go over the protocol, so you can port it to a language of your choice!
Let's get started.
Like this Instructable? Don't forget to follow us, favorite it, and check us out on Facebook!
Note 11/2014: If you get repeated "unable to connect" messages and the vanilla hello-myo.exe program from Thalmic works, let us know and we'll fix it - new releases of Myo Connect can break old versions of the executable.
Time Required: 15 minutes (once Myo is set up)
To get a Myo talking to Python, you'll need a running installation of Myo Connect, a Python installation, and our custom library.
This comes with the developer SDK, in the myo-connect folder for Windows or the root folder for OSX. Run it and go through the setup process to register your Myo with the computer.
We're using version 2.7.8 of python - which can be found here. Installation should be as simple as downloading and running the file. If you're using OSX, python should come preinstalled.
Myo for Python:
Our library is available on GitHub as always - click the Download Zip button on the right side for an archive of all files.