NeuroTechX / EEG-ExPy

EEG Experiments in Python
https://neurotechx.github.io/EEG-ExPy/
BSD 3-Clause "New" or "Revised" License
418 stars 124 forks source link

Support for Oculus/Meta Quest VR for N170 and other experiments #232

Open pellet opened 1 year ago

pellet commented 1 year ago

📝 Running the N170 experiment or other experiments using VR whilst wearing a Quest 2 VR headset

For example, should be able to run the N170 stimulus on the headset and collect valid eeg data, then be able to analyze and visualize it afterwards.

Example of steps used:

  1. Turn on and place the Meta Quest 2 VR headset onto the head.
  2. Turn on and place the OpenBCI Cyton EEG headset on top with a configured montage of: [FC1,FC2,CP5,CP6,P3,P4,PO3,PO4] with A1,A2 ground&reference.
  3. Ensure the Quest 2 horizontal headset strap is running safely between(not underneath) the P3,P4 and O1,O2 electrodes.
  4. Connect Quest 2 to windows via air link or link cable.
  5. Use the built-in Oculus desktop app to access the Windows desktop and run the n170 eeg-notebooks experiment from command line or IDE(00x__n170_run_experiment.py).
  6. Open the n170 analyzer/visualizer notebook(01r__n170_viz.ipynb) to check the response from the electrodes.
  7. Repeat steps 5 and 6 until adequate data is captured and a negative 170ms(approx) response has been recorded.

Other experiments can have VR added too.

  1. Load/prepare stimulus in the same function as previously (def load_stimulus(self))
  2. Present stimulus in the same function as previously(def present_stimulus(self, current_trial: int))
  3. VR can be enabled for the experiment as part of an initializer to the base Experiment class, by default it is not enabled(use_vr=False) and will function the same as previously before VR functionality was added.

If you'd like to see this feature implemented, add a 👍 reaction to this post.