Giter Site home page Giter Site logo

myo.js's Introduction

myo.js

NPM

Myo javascript bindings.

Myo.js allows you to interact with Thalmic Labs's Myo Gesture Control Armband using websockets. Listen for IMU, EMG, and gesture events, as well as controlling vibration and locking.

installation

On the browser, just include the myo.js file in your project. Myo will be global.

On node.js

npm install myo ws

getting started

You'll need a Myo and Myo Connect

Client-side
Myo.connect('com.stolksdorf.myAwesomeApp');

Myo.on('fist', function(){
	console.log('Hello Myo!');
	this.vibrate();
});
Node
var Myo = require('myo');

Myo.connect('com.stolksdorf.myAwesomeApp', require('ws'));

Myo.on('fist', function(){
	console.log('Hello Myo!');
	this.vibrate();
});

myo lifecycle

A myo can be paired, connected, and/or synced.

A myo is paired if it's ever been connected to your computer. You can see a list of paired myos in Myo Connect's armband manager. When Myo.connect() is called, Myo.js will create a myo instance for every paired Myo on your computer and store them in Myo.myos array.

A myo is connected if it's turned on and connected to your computer over bluetooth. It can send over IMU events at this point, vibrate, and EMG (if myo.streamEMG(true) is called) but not poses since it's not synced with the user.

A myo is synced when the user puts it on and does the sync gesture. At this point it will start sending over pose and lock/unlock events.

branding and assets

You can use assets provided in our branding and UX guidelines.

documentation

You can read the full documention in docs.md

changelog

Releases are documented in changelog.md

license

The Myo.js project is licensed using the modified BSD license. For more details, please see LICENSE.txt.

thanks

Thanks to stolksdorf for creating Myo.js

myo.js's People

Contributors

stolksdorf avatar andrebower avatar smngreenberg avatar brianheeseis avatar superkruger avatar alanhortz avatar freehaha avatar ianseyler avatar joshuaji avatar ucodia avatar phillippohlandt avatar

Watchers

James Cloos avatar Michael Zbyszyński 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.