MindWaveMindWave Element

The MindWave headset’s sensor measures the brain’s electrical activity and transfers the data readout via a WiFi USB connection to your computer (Windows or Mac).

 This EJS element allows you to control the NeuroSky MindWave through the ThinkGear connector (via socket). You will be able to:

Usage

To add the element, simply drag and drop the element from the palette to the list of elements for your simulation. 

Available methods

Example of use

if (!mindWave.connect()) {
_view.alert("","Error","MindWave not detected. Is ThinkGear running?");
_pause();
}
else {
_println("MindWave connected");
}
// evolution...
//
attention = mindWave.getAttentionLevel();
blink = mindWave.getBlinkLevel();
signal = mindWave.getSignalLevel();
meditation = mindWave.getMeditationLevel();
doubleBlink = mindWave.getDoubleBlink(200, 1000);
//
thetaBand = mindWave.getTheta();