Mindwave EEG sensor

From Interaction Station Wiki
Jump to navigation Jump to search


Intro

This page tells you about using the "real" Mindwave Mobile 2.

It can be ordered at amazon.com, or amazon.nl: https://www.amazon.nl/neuroSky-Estate-neurofeedback-headset-MindWave/dp/B07CXN8NKX/ref=sr_1_1?__mk_nl_NL=ÅMÅŽÕÑ&keywords=mindwave+mobile&qid=1588840419&sr=8-1 It costs at the moment 155 euro.

Ee2.png Mw8.png

bluetooth connection and data connection

You need a "fresh" normal AAA battery for the head set.

I tried to connect bluetooth to my MACOS laptop, and a Android telephone, both connections started and then failed.

But then the bluetooth worked...on a bigger MAC. But this is only half of the story, the second stage which has to be working is the data picked up by the sensor on the headset.

For the proper data, the head set must be very well adjusted.

Mw1.png Mw2.png

I could finally open the "MindWave Mobile Tutorial.zip" in the folder "Mac Setup Kit". This zip is strange enough an app - I thought this was a zip containing documents and guides!

This app indicates if your bluetooth connection is of sufficient quality for the data. At first it didn't work at all....

I did a lot of fitting and refitting of the headset, and finally got started having a connection it liked.

Mw9.png Mw10.png

This might cause problems if you use an Arduino connection...how can you then tell the connection is not what it should be?

Installing software at your laptop

I tried to install the software

Thinkconnector and Brain Visualiser

on my MACOS, but ... it is not running at the moment on a 64 bits operating system.

Then I tried to install it on my windows 8 laptop.

Then ... it suddenly worked at the bigger MAC - with this zip file indicated above.

testing

With the right kind of connection, and if this zip-app is happy about the connection you can test your "Attention", "Meditation", and "Blink".

Mw3.png Mw4.png Mw5.png Mw6.png

The blinking was not reacting for me.

Connecting Bluetooth to BlueSMiRF

Then back to the soldering device

Mw11.png

Using the BlueSMiRF of Sparkfun, you can connect with a microcontroller: https://www.sparkfun.com/products/12577

This code to get into the command code worked (after some time to understand and get used to the "no line" and "line break" switching in the Serial Window.

Then the configuring on this page

https://learn.sparkfun.com/tutorials/hackers-in-residence---hacking-mindwave-mobile?_ga=2.146391420.932859955.1588796476-1975814699.1588796476#configuring-the-bluetooth-module

Some problems because in the tutorial there is a space in the command:

"Type: SM, 3 + carriage return. " --- there is a space behind the 3 isn't there? Well, then it does not work....no spaces between the command letters, the comma, and the number.

ok, the BlueSMiRF shows the green LED, for automatic connection to the Head set.

Connecting to an Arduino

The code on this page: https://learn.sparkfun.com/tutorials/hackers-in-residence---hacking-mindwave-mobile?_ga=2.146391420.932859955.1588796476-1975814699.1588796476#configuring-the-bluetooth-module requires an extra TX RX to get the data inside the laptop for Processing. This can be done by another Arduino.

I wanted some device only on the Arduino showing the effect.

Mw12.png The Arduino, also having a TFT screen for visualisation later on, if the connections are working and the data coming through.

After a day of configuring and retrying, reconnecting Bluetooth, back and forth between a MAC (for testing the connection) and the BlueSMiRF....the connection is not yet producing something reliable...

Then getting rid of code in the calculating loop, it started working.

Mw20.png

Mw21.png The first column is the attention, then the delta, theta, low alpha, high alpha waves. (Well if you believe it, see this page:

The Arduino code can be found here: https://github.com/contrechoc/mindwavecode