North (formerly Thalmic Labs), the creator of the Myo armband, was acquired by Google in June 2020. Myo sales ended in October 2018 and Myo software, hardware and SDKs are no longer available or supported. Learn more.
Is there a game or application you want to quickly add Myo support to? Did you just get a Myo armband and want to do some rapid prototyping before diving into the full SDK? Then Myo Script is for you: Simple Lua scripts that let you bind hand poses and arm movement to keyboard and mouse actions.
We’ve broken down Myo Scripting into two tutorial series. Start with our Getting Started with Myo Scripts Tutorial where we cover the basics of Lua scripting, using poses, and how locking works. Then, move on to our Orientation and Advanced Gestures Tutorial where we use orientation, onPeriodic and mouse control to build a REAL script for controlling Flippfly’s Race The Sun. Links below!
Getting Started with Myo Scripts
- Setup – An introduction to Myo Scripts and how to set up your environment
- You are now a Programmer – Writing your first function
- Strike a Pose – How to handle hand poses
- Pressing Any Key – Pressing hotkeys in respond to poses
- Shake It – Vibration and locking behaviour
- The End, and the Beginning – Wrapping up with the last few callbacks that aren’t onPeriodic
Orientation and Advanced Gestures
- Racing the Sun – Introducing what we’re going to do, setting up a skeleton script
- Wait for it… – Implementing onPeriodic to handle orientation data every 10 ms
- Don’t YAWn, this is important! – Using arm rotation to fly a glider
- Jump! Jump! – Creating”wave up” and “wave down” with roll
- Mouse Control Enabled – Controlling the mouse cursor
- Beyond Scripting – The completed script, and a discussion on when not to use scripting
Want to go a bit further? The #MyoCraft series often features Myo Scripts. You’ll find a lot of best practices, neat techniques, or APIs we haven’t covered in these tutorials. Take a look!
Otherwise, that’s it! Myo Script is pretty powerful and not very hard to learn. If you do have any questions though, feel free to hit me up on Twitter (@thalmicdev) or post in our Developer Forums. Don’t forget to subscribe to this blog for all the latest developer content, and sign up for our newsletter for key announcements!
Good luck, and happy coding!