Skip to content

Repo of the winter EEG project by the Club d'Intelligence Artificielle of Laval University

Notifications You must be signed in to change notification settings

cia-ulaval/FlapEEG_interface_v1

Repository files navigation

FlagEEG_v1

Repo of the winter EEG project by the Club d'Intelligence Artificielle of Laval University. The goal of this project is to interpret EEG signals in order to transform them into realtime game inputs.

Table of Contents

Python version

Repo is tested for python 3.12.8

How to get started with the project

  1. Go read the project-chart.md here
  2. Go read the project-organization-manual.md here

How to get started with python

  1. Install python (please chose the python 3.12 version)
  2. Install the Git CLI (useful stuff for any programmer)
  3. Clone the FLapEEG_v1 repo with this command : git clone [email protected]:cia-ulaval/FlagEEG_v1.git (If it doesn't work, you need to setup an SSH key on your GitHub account)
  4. Open the cloned repo with a Text Editor of your choice
  5. Create a virtual environnement for your python dependencies with the command : python -m venv venv
  6. Activate the virtual env :
  • For linux, mac : source venv/bin/activate
  • For Windows : venv/Scripts/activate
  1. Download the dependencies : pip install -r requirements.txt

How to get started with the EEG

1. Install the OpenBCI GUI : download

This is the official OpenBCI support user interface to allow streaming and seeing data from the EEG. Please download it and follow the installation instructions.

Important for Linux users : For Linux users only, there is a necessary hardware step, to make in order to allow the necessary permissions for your USB ports. Go look at the tutorial of the fix. The fix is in the section : Linux Users: Serial Port Permissions

2. Connect your computer to the helmet

  1. Connect the Daisy dongle to your USB port
  2. Run the OpenBCI GUI on your computer and start a streaming session : CYTON -> Serial (from Dongle)

3. Read the OpenBCI docs

To help connect your python scripts and the EEG helmet, OpenBCI provides us with a SDK : Brainflow. Go read the docs to learn how python and the EEG interacts.

How to run the baseline

How to run the annotation pipeline

  1. Setup the env :

    python -m venv venv

    source venv/bin/activate

    pip install -r requirements.txt

  2. Connect the EEG with the dongle

  3. Start the pipeline :

    python main_annotation.py

    An interface like this should show up : alt text

  4. Select the target folder where all the .csv files are exported :

    alt text

  5. Write the name that your exported .csv file will take :

    ⚠️ Important:

     - Do NOT write `.csv` in the name, the extension is automatically   added.
    
    
     - The new data recorded is appended to the end of the document  inputed. So if you want to have separate files for different recording session, change the name of the input.
    

    alt text

  6. Start recording with the Record button. A window is supposed to show up to help you annotate your EEG data. Please blink when the FlappyBrain shows up.

  7. Stop recording with the red Stop button.

About

Repo of the winter EEG project by the Club d'Intelligence Artificielle of Laval University

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published