Skip to content

chriswait/python-mindwave

 
 

Repository files navigation

MindWave Logging and Visualisation

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

Requirements

Hardware:

  • A Neurosky Mindwave Mobile Headset and bluetooth device attached/built-in to your computer

Linux:

Mac OS X > 10.4:

Visualiser Dependency:

  • pygame [TODO]: add good tutorial link

Usage

  • 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()

About

Python scripts to interface with the Neurosky Mindwave EEG Headset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%