Git Product home page Git Product logo

myo-osc's Introduction

OSC bridge for Thalmic Myo gesture control armband for Windows and Mac OS X 10.8+.

By Samy Kamkar

Myo-OSC is a C++ application designed to take hand gestures, accelerometer, gyroscope and magnetometer data from the Thalmic Labs Myo armband and output it over OSC. This allows incredible control of virtually any device or application just by waving or flailing your arm or hand around like a madman.

Binaries for both Windows and OS X are included in the root directory (myo-osc.win.exe / myo-osc.osx.bin).

I've built this and integrated it to control various things in my house and car using Raspberry Pi and Arduinos, including lights (over RF), TV (over IR), receiver (over IR), iTunes, coffee machine (over BLE), music in my car (over BLE), presentations (over IR), and Ableton/music production/DJing/VJing (over MIDI and OSC).

You can also send any OSC data over a network.

by @SamyKamkar // [email protected] // http://samy.pl // Mar 3, 2014

Code available on github


Troubleshooting

On OS X, if you receiver an error message when running the trainer (LSOpenURLsWithRole() failed with error -10810), run this from Terminal:

chmod +x myo-trainer.app/Contents/MacOS/myo-trainer

Then rerun the trainer.

Download

You can acquire Myo-OSC from github (redirects to latest branch): http://samy.pl/myo-osc/


Usage

$ ./myo-osc [IP address (default: 127.0.0.1)] <OSC port (eg 7777)>

This will output the following OSC data

/myo/pose s MAC s pose

/myo/accel s MAC f X_vector3 f Y_vector3 f Z_vector3

/myo/gyro s MAC f X_vector3 f Y_vector3 f Z_vector3

/myo/orientation s MAC f X_quaternion f Y_quaternion f Z_quaternion f W_quaternion f roll f pitch f yaw

Note: Thalmic removed the unique MAC address in one of the alpha/beta versions of the SDK, so now the MAC will always return 00:00:00:00:00:00. Hoping this changes in a future version, or perhaps I can access the BLE stack directly and grab the MAC as it's publicly available.

Examples:

/myo/pose s f2-e0-66-5d-90-8a s fist

/myo/accel s f2-e0-66-5d-90-8a f 0.95849609375 f 0.26953125 f 0.20068359375

/myo/gyro s f2-e0-66-5d-90-8a f -7.14111280441284 f -15.8081045150757 f 5.43212842941284

/myo/orientation s f2-e0-66-5d-90-8a f -0.00215625390410423 f 3.37712929902281e-43 f -0.0021759606897831 f 0 f 0.928672909736633 f -1.23411226272583 f 1.45198452472687

Software

Myo-OSC

This software.

oscpack

We also use oscpack, a C++ OSC (Open Sound Control) library.

Hardware

Thalmic Labs Myo Alpha

Currently, Thalmic Labs have only released Myo Alpha to select developers. Sign up for the Developer Kit coming out later this year or pre-order the consumer version here.

Questions?

Feel free to contact me with any questions!

You can reach me at [email protected].

Follow @SamyKamkar on Twitter or check out http://samy.pl for my other projects.

myo-osc's People

Contributors

samyk avatar thalmicmark avatar

Watchers

James Cloos avatar Brian Smith avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.