Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Repository for python scripts for an online BCI system with OpenBCI

Notifications You must be signed in to change notification settings

SURGE-NeuroTech-Club/OpenBCI_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online SSVEP

This repository holds code for using the brainflow library with an OpenBCI Cyton board to make a real-time (online) steady-state visually evoked potential (SSVEP) brain-computer interface (BCI) demo.

main.py: the online BCI system

Modules/: Each file should contain documentation on classes & functions

  • stream_data.py: A custom class that uses the brainflow library to connect and stream from the Cyton Board
  • preprocessing.py: Class that contains functions to segment, filter, and save data
  • ssvep_handler.py: Classes that generate harmonics and uses canonical correlation analysis (CCA) to classify SSVEP data, and functions that perform and return signal-to-noise ratio (SNR)
  • stim_pres.py: Code related to stimulus presentation (i.e., flickering stimuli to elicit SSVEP)
  • maintenence.py: Code related to listening for the 'esc' key and raising stop flags

Other:

  • sim_ssvep_data.npy: simulated SSVEP data in shape (8, 15000)
    • 8 channels, 15000 samples (60 seconds at 250 Hz Sample Rate)
    • Simulated SSVEP signal changes between [9.25, 11.25, 13.25, 15.25] Hz every 10 seconds

Links/Reference

LSL:

Brainflow

About

Repository for python scripts for an online BCI system with OpenBCI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published