All Projects → PerlinWarp → pyomyo

PerlinWarp / pyomyo

Licence: MIT license
PyoMyo - Python Opensource Myo armband library

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pyomyo

OpenXR-Hpp
Open-Source OpenXR C++ language projection
Stars: ✭ 25 (-59.02%)
Mutual labels:  vr, virtual-reality
webvrrocks
Your guide to Virtual Reality in the browser.
Stars: ✭ 116 (+90.16%)
Mutual labels:  vr, virtual-reality
virtual-reality-tour
📍 Virtual reality travel in Google Street View.
Stars: ✭ 34 (-44.26%)
Mutual labels:  vr, virtual-reality
FireVR
Blender to JanusVR FireBoxHTML Exporter Addon (with IPFS support)
Stars: ✭ 25 (-59.02%)
Mutual labels:  vr, virtual-reality
vr-python-quickstart-hg1
VR Headset Controller Tutorial, get started with virtual reality in Python
Stars: ✭ 29 (-52.46%)
Mutual labels:  vr, virtual-reality
LifeBrush
A toolkit for painting agent-based mesoscale molecular simulations and illustrations.
Stars: ✭ 38 (-37.7%)
Mutual labels:  vr, virtual-reality
janusweb
An in-browser implementation of JanusVR
Stars: ✭ 145 (+137.7%)
Mutual labels:  vr, virtual-reality
hobo vr
SteamVR driver prototyping tool
Stars: ✭ 44 (-27.87%)
Mutual labels:  vr, virtual-reality
vrtist
Virtual Reality tool for storytelling
Stars: ✭ 43 (-29.51%)
Mutual labels:  vr, virtual-reality
island-viz
IslandViz: A Tool for Visualizing Modular Software Systems in Virtual Reality
Stars: ✭ 17 (-72.13%)
Mutual labels:  vr, virtual-reality
aframe-registry
[DISCONTINUED] Curated collection of community A-Frame components.
Stars: ✭ 76 (+24.59%)
Mutual labels:  vr, virtual-reality
OpenXR-CTS
Conformance test suite for OpenXR
Stars: ✭ 38 (-37.7%)
Mutual labels:  vr, virtual-reality
AnotherBadBeatSaberClone
This is a discontinued but perhaps helpful VR project created during my Master's degree at FH Wedel.
Stars: ✭ 22 (-63.93%)
Mutual labels:  vr, virtual-reality
daydream-node
Quick Node.js module to connect to the Daydream controller and receive all the data
Stars: ✭ 17 (-72.13%)
Mutual labels:  vr, virtual-reality
HadesVR
The "DIY" SteamVR compatible VR setup made for tinkerers.
Stars: ✭ 88 (+44.26%)
Mutual labels:  vr, virtual-reality
g3r
3D, VR and AR Maps in R
Stars: ✭ 19 (-68.85%)
Mutual labels:  vr, virtual-reality
UnityPlugin
Ultraleap SDK for Unity.
Stars: ✭ 447 (+632.79%)
Mutual labels:  vr, virtual-reality
SlimeVR-Server
Server app for SlimeVR ecosystem
Stars: ✭ 361 (+491.8%)
Mutual labels:  vr, virtual-reality
awesome-3d
Awesome list of 3D resources. AR/MR/VR is the future, and 3D model is the basics of all of them.
Stars: ✭ 42 (-31.15%)
Mutual labels:  vr, virtual-reality
myo-armband-nn
Gesture recognition using myo armband via neural network (tensorflow library).
Stars: ✭ 33 (-45.9%)
Mutual labels:  myo, myo-armband

PyoMyo

Python module for the Thalmic Labs Myo armband.

Cross platform and multithreaded and works without the Myo SDK.

pip install pyomyo

Documentation is in the Wiki, see Getting Started.

Playing breakout with sEMG

PyoMyo Documentation

Home
Getting started
Common Problems
Myo Placement

The big picture

Why should you care?
Basics of EMG Design

Links to other resources

Python Open-source Myo library

This library was made from a fork of the MIT licensed dhzu/myo-raw. Bug fixes from Alvipe/myo-raw were also added to stop crashes and also add essential features.

This code was then updated to Python3, multithreading support was added then more bug fixes and other features were added, including support for all 3 EMG modes the Myo can use.

Note that sEMG data, the same kind gathered by the Myo is thought to be uniquely identifiable. Do not share this data without careful consideration of the future implications.

Also note, the Myo is outdated hardware, over the last year I have noticed a steady incline in the cost of second hand Myos. Both of my Myo's were bought for under £100, I do not recommend spending more than that to acquire one. Instead of buying one you should join the discord to create an open hardware alternative!

Included Example Code

The examples sub-folder contains some different ways of using the pyomyo library.

git clone https://github.com/PerlinWarp/pyomyo

plot_emgs_mat.py

Left to Right Wrist movements.

Starts the Myo in mode 0x01 which provides data that's already preprocessed (bandpass filter + rectified).
This data is then plotted in Matplotlib and is a good first step to see how the Myo works.
Sliding your finger under each sensor on the Myo will help identify which plot is for sensor.

dino_jump.py

Chrome Dinosaur Game

An example showing how to use the live classifier built into pyomyo, see Getting Started for more info.

myo_multithreading_examp.py

Devs start here.
This file shows how to use the library and get Myo data in a seperate thread.

Myo Modes Explained

To communicate with the Myo, I used dzhu's myo-raw. Then added some functions from Alvipe to allow changing of the Myo's LED.

emg_mode.PREPROCESSED (0x01)
By default myo-raw sends 50Hz data that has been rectified and filtered, using a hidden 0x01 mode.

emg_mode.FILTERED (0x02)
Alvipe added the ability to also get filtered non-rectified sEMG (thanks Alvipe).

emg_mode.RAW (0x03)
Then I further added the ability to get true raw non-filtered data at 200Hz. This data is unrectified but scales from -128 and 127.

Sample data and a comparison between data captured in these modes can be found in MyoEMGPreprocessing.ipynb

The library

pyomyo.py

Prints sEMG readings at 200Hz straight from the Myo's ADC using the raw EMG mode.
Each EMG readings is between -128 and 127, it is the most "raw" the Myo can provide, however it's unlikely to be useful without extra processing. This file is also where the Myo driver is implemented, which uses Serial commands which are then sent over Bluetooth to interact with the Myo.

Classifier.py

Implements a live classifier using the k-nearest neighbors algorithm.
Press a number from 0-9 to label incoming data as the class represented by the number.
Press e to delete all the data you have gathered.
Once two classes have been made new data is automatically classified. Labelled data is stored as a numpy array in the data\ directory.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].