Skip to content

Python script to stream EEG data from the muse 2016 headset

License

Notifications You must be signed in to change notification settings

SNUGifted1/muse-lsl

 
 

Repository files navigation

Muse LSL

This is a collection of python script to use the muse 2016 BLE headset with LSL.

Blinks

Requirements

The code rely on pygatt for the BLE communication. pygatt works on linux and should work on window and OSX provided that you have a BLED112 dongle. You have to use the development version of pygatt, that can be installed with pip using :

pip install git+https://github.com/peplin/pygatt

You will also need to find the mac address of you Muse headset. This code is only compatible with the 2016 version of the muse headset

Finally, the code is for streaming and recording data is compatible with python 2.7 and python 3.x. However, the code for generating P300 stimulus rely on psychopy and is only working with python 2.7.

Usage

to stream data with lsl

python muse-lsl.py --address YOUR_DEVICE_ADDRESS

Once the stream is up and running, you can visualize stream with

python lsl-viewer.py

Run the P300 experiment

First, you have to run the muse lsl script as above.

In another terminal, run

python generate_Visual_P300.py -d 120 & python lsl-record.py -d 120

this will launch the P300 paradigm and record data for 2 minutes.

The task is to count the amount of time you see an stimulus with horizontal stripes.

For the data analysis, check [this notebook](notebooks/P300 with Muse.ipynb)

About

Python script to stream EEG data from the muse 2016 headset

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%