Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install mindcontrol

How to install mindcontrol

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install mindcontrol
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.54dev Available View build log
Lastest release
version 0.54dev on Jan 9th, 2014

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
# 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):
print 'Your recorded concentration values were:\n\t[%s]' % ', '.join([str(x) for x in conc_vals])


System Message: WARNING/2 (<string>, line 33)

Title underline too short.


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.

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.