This repository contains two Python scripts for performing baseline EEG recording and real-time neurofeedback using the NeuroSky MindWave Mobile 2 headset.
It reads brainwave data (attention, meditation, and EEG band powers) from the ThinkGear Connector (TGC) via TCP, processes it, and provides feedback using a video player based on your beta activity level.
Download and install Python 3.8 or later from the official site:
https://www.python.org/downloads/
⚠️ During installation, make sure to check “Add Python to PATH”.
Once Python is installed, open a terminal (Command Prompt or PowerShell), and run:
pip install pandas numpy python-vlc
You must run the ThinkGear Connector (TGC) before using these scripts. TGC allows Python to connect to your headset via TCP.
Download TGC here: 👉 https://developer.neurosky.com/docs/doku.php?id=thinkgear_connector
Once installed, launch it and make sure it shows “Connected” with your headset.
Extract the codes into one folder. Create a new folder by the name of "User data". Make sure the directory contains a video titled "NF Video". If you want to replace the video, paste the .mp4 file in the same folder as the Python scripts, and rename if to "NF Video".