Python wrappers for the NeuroSky Mindwave Headsets
Project description
===========
mindcontrol
===========
mindcontrol provides an api that allows python programs to capture data that
is emitted by the NeuroSky MindWave headsets. It uses a socket to connect to
the ThinkGearConnector application that acts as a server for the headset data::
#!/usr/bin/env python
from mindcontrol.userbrain import Brain
from time import sleep
SLEEP_TIME = 5 # seconds
CONCENTRATE_TIME = 5 # seconds
my_brain = Brain()
while not my_brain.isConnected():
print 'Not connected to brain yet. Will try again in %d seconds' % SLEEP_TIME
sleep(SLEEP_TIME)
# brain is now connected, get some stuff
print 'Concentrate really hard for the next %d seconds!' % CONCENTRATE_TIME
# sample once each second
conc_vals = []
for idx in xrange(CONCENTRATE_TIME):
conc_vals.append(my_brain.getProperty('attention'))
sleep(1)
print 'Your recorded concentration values were:\n\t[%s]' % ', '.join([str(x) for x in conc_vals])
collaboration
=========
This project is GPL licensed so do whatever you want with the code. This module is currently being source controlled
on GitHub, so if you want to check out the project you can find it here: https://github.com/georgeBoole/mindcontrol.
This module is mostly experimental at the moment, but expect more development soon.
mindcontrol
===========
mindcontrol provides an api that allows python programs to capture data that
is emitted by the NeuroSky MindWave headsets. It uses a socket to connect to
the ThinkGearConnector application that acts as a server for the headset data::
#!/usr/bin/env python
from mindcontrol.userbrain import Brain
from time import sleep
SLEEP_TIME = 5 # seconds
CONCENTRATE_TIME = 5 # seconds
my_brain = Brain()
while not my_brain.isConnected():
print 'Not connected to brain yet. Will try again in %d seconds' % SLEEP_TIME
sleep(SLEEP_TIME)
# brain is now connected, get some stuff
print 'Concentrate really hard for the next %d seconds!' % CONCENTRATE_TIME
# sample once each second
conc_vals = []
for idx in xrange(CONCENTRATE_TIME):
conc_vals.append(my_brain.getProperty('attention'))
sleep(1)
print 'Your recorded concentration values were:\n\t[%s]' % ', '.join([str(x) for x in conc_vals])
collaboration
=========
This project is GPL licensed so do whatever you want with the code. This module is currently being source controlled
on GitHub, so if you want to check out the project you can find it here: https://github.com/georgeBoole/mindcontrol.
This module is mostly experimental at the moment, but expect more development soon.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for mindcontrol-0.50dev.macosx-10.6-intel.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c47a17aa36c248b979d24b0f24347dd46d4d509aa8d4340b675a159fe24f6bce |
|
MD5 | b2f6e7212cfd520e82388db2d8bd82c5 |
|
BLAKE2b-256 | 30d64c96987ec2f0b01506349901359ff86f117e9553fbc7f174650becf3d3fa |