Skip to content

Use Python to acquire data from Thalmic Labs' Myo and save it to HDF5

Notifications You must be signed in to change notification settings

ricardo-carlos/myo_capture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

myo_capture

Use Python to acquire data from Thalmic Labs' Myo and save it to HDF5.

Firmware

In order to get the accelerometer to sample at 200Hz I had to downgrade to firmware version 0.8.18. Just follow the instructions.

Device permissions

Run this to set the device permissions for the USB dongle on GNU/Linux systems:

$ sudo usermod -aG dialout $USER

Dependencies

  • NumPy
  • h5py

$ pip install numpy h5py

I used dzhu's myo-raw to get data from the sensor, just changed the IMU's sampling rate and included his code.

Data capture

Just run capture/capture.py and press ^C to stop.

Reading data

It might be a good idea to install HDFView and the command line utils to work with HDF5 files.

$ sudo apt-get install hdf5-tools hdfview

Check the example in read/read.py to work with this format from python.

About

Use Python to acquire data from Thalmic Labs' Myo and save it to HDF5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages