Skip to content

Mindwave Mobile EEG headset basic parser

Notifications You must be signed in to change notification settings

Bartoloni/Mindwave

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mindwave Mobile Parser

Simple parser for Mindwave Mobile EEG headsets.

How to install the library

  1. Download the library
  2. Unzip Mindwave-master.zip and rename the Mindwave-master folder to the Mindwave
  3. Move the freshly rename Mindwave folder into the Documents/Arduino/libraries and restart Arduino

How to use the library

If you're using the Serial class and simply want to get the attention value, it's as simple as this

#include <Mindwave.h>					//import the library
Mindwave mindwave;						//start using it

void setup() {
  Serial.begin(MINDWAVE_BAUDRATE);		//setup serial communication (MindWave mobile is set to 57600 baud rate)
}
//create a function to received new values as soon as they're avaialble
void onMindwaveData(){
  Serial.print("attention: ");
  Serial.println(mindwave.attention()); //access attention value
}
void loop() {
  mindwave.update(Serial,onMindwaveData);//update using the data input(Serial in this case) and the function to call when data is ready
}

For more examples go to Arduino > File > Examples > Mindwave

Notes

Be aware, this is my first Arduino library, so things might not be 100% top-notch. The code is mostly based on the official NeuroSky wiki article and the ThinkGear protocol specs

However, it was developed for the Focus project. This is is covered on the following websites:

Walk With Me Walk With Me Arduino Shield for DMX and (Mindwave Mobile) Bluetooth

About

Mindwave Mobile EEG headset basic parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%