Code Monkey home page Code Monkey logo

mindwave's Introduction

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

mindwave's People

Contributors

orgicus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.