Git Product home page Git Product logo

muse-eeg-lsl-python-tools's Introduction

Muse EEG LSL Tools

Muse EEG LSL Tools is a collection of tools/scripts that enable recording and displaying raw EEG data in real-time. This project uses pylsl to connect to a Muse EEG headband over LSL protocol. For this demo, BlueMuse was used, a Windows 10 app that streams data from Muse headset over Bluetooth via LSL (Lab Streaming Layer). Due to BlueMuse, the code does not rely on any specific Bluetooth hardware, and should work with any module supporting BT 4.0.

The monitor displays real-time raw EEG waveforms at accurate electrical potentials, at maximum frequency supported by the device, with minimal latency.

EEG to CSV script allow full resolution recording of raw EEG data to a CSV file, for the purposes of performing later analysis of the data. The data is recorded with UNIX timestamps across every row as well as optional marker data which is manually set via left mouse button clicks. In this tool, the electrical potentials are saved at their default relative range of (-1000, 1000), which can be easily converted to uV using the following equation: (x/1000)3.3(1/1961)*1000000, where x is the value, 1000 is the range, 3.3 is the voltage and 1961 is the gain of AFE.

Demo

Muse EEG LSL Monitor - animated gif demo

Displayed electrodes are as follows TP9 (red), AF7 (green), AF8 (blue), TP10 (pink). AUX channel is disabled for this demo.

Requirements

Assumes installation of Python 3.7 on Windows 10, owning a Muse EEG headband and Bluetooth 4.0 PC module.

To run the tools:

Instructions

  • Turn on Muse Headband and set it to pairing mode (do not pair Muse with your Bluetooth module).
  • Open BlueMuse, wait for list to update, click on your Muse device and then click Start Streaming
  • Once Muse headset is online and streaming, in the relevant tool directory run python main.py
    • Alternatively, you can make use of ipynb (Jupyter Notebook) versions of the code.
  • After use, close the monitor before disconnecting Muse device.

Additionally: by default the monitor displays 4 main electrode channels, to display input from the auxillary channel, you'll need to uncomment lines that mention AUX. The EEG to CSV tool will record AUX to a column by default.

Known Issues

  • Resizing the monitor window will introduce delay to data render, restarting the monitor resets it.

License

The code in this project is licensed under the MIT License. See LICENSE for details.

muse-eeg-lsl-python-tools's People

Contributors

dan-pavlov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Forkers

evastone97

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.