Some scripts to access the data streamed by the Neurosky Mindwave Mobile Headset over Bluetooth.
dbLogger.py - writes data recorded by the headset to a mysql database
brain.py,brainRecent.py - allow webapps utilising the Neurosky MindWave Mobile device to be developed
visualiser.py - visualises the current MindWave data focusing on sustained levels of attention and meditation
Hardware:
- A Neurosky Mindwave Mobile Headset and bluetooth device attached/built-in to your computer
Linux:
- PyBluez, see their documentation for installation instructions :)
Mac OS X > 10.4:
Visualiser Dependency:
- pygame [TODO]: add good tutorial link
- Initilaise the background daemon which logs to the database:
python dbLogger.py <name> <activity>
where <name> corresponds to the user_id (guest=0)
<activity> corresponds to current activity (other=0,
revising=1,
programming=2,
meditating=3,
relaxing=4)
-
Open a web browser to view the current levels (TODO: How to set up)
-
To run the visualiser:
python visualiser.py
- Original usage example:
mindwaveDataPointReader = MindwaveDataPointReader()
# connect to the mindwave mobile headset...
mindwaveDataPointReader.start()
# read one data point, data point types are specified in MindwaveDataPoints.py'
dataPoint = mindwaveDataPointReader.readNextDataPoint()