Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.06 KB

pbrm.md

File metadata and controls

27 lines (22 loc) · 1.06 KB

Some scripts to access the data streamed by the Neurosky Mindwave Mobile Headset over Bluetooth on Linux.

Requirements:

  • PyBluez, see their documentation for installation instructions :) For Ubuntu, installation might work like this:
sudo apt-get install libbluetooth-dev python-bluetooth

If you want to install the library as a module, do:

python setup.py install

from the root folder of the repository.

Afterwards, you can use it within python like this, with the headset set in pairing mode (http://support.neurosky.com/kb/mindwave-mobile/how-do-i-put-the-mindwave-mobile-into-discovery-mode):

from mindwavemobile.MindwaveDataPointReader import MindwaveDataPointReader
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()
print(dataPoint)