Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grabbing pull request from Alvipe #1

Merged
merged 2 commits into from
Oct 29, 2017
Merged

Grabbing pull request from Alvipe #1

merged 2 commits into from
Oct 29, 2017

Conversation

qtux
Copy link
Owner

@qtux qtux commented Oct 29, 2017

see dzhu#23

Alvipe added 2 commits March 6, 2017 12:23
I have added a function to power off the Myo Armband (actually, according to the official BLE specification, the 0x04 command puts the Myo into deep sleep, there is no way to completely turn the device off). I think this is a very useful feature since, without this function, you have to wait until the Myo battery is fully discharged, or use the official Myo app for Windows or Mac and turn off the device from there.

The base script is the myo_raw.py modified by Fernando Cosentino, as the original script by dzhu throws some errors.
Although the original code is supposed to read the raw EMG signals measured by the sensor pods of the Myo, it actually reads rectified and smoothed EMG signals, a measure of their amplitude. The code has been modified to get the real raw signals, by suscribing to the raw EMG notification characteristics by writing to and reading from the corresponding handles listed on the Thalmic Labs BLE specification.
A new function to change the color of the logo and bar LEDs has been added.
The program is now able to get the battery level in the same manner that it gets the EMG, IMU or classifier data. By suscribing to the battery characteristic, the Myo sends the battery level every time its value changes.
@qtux qtux merged commit 8ac32be into qtux:master Oct 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants