This is a Unity plugin for developping app and games with the NeuroSky MindwaveMobile, on the occasion of the Serious Game Jam.
This library works with Unity 2017.4, but has not been tested with older versions than Unity 2017.2.
First, pair the Mindwave headset with your computer through Bluetooth. On Windows, go to Settings > Devices and click on "Add a Bluetooth or other device". In the popup, choose "Bluetooth", and wait for "MindwaveMobile" device to appear. Click on the device, and pair it using the code 0000
.
2. Install and run ThinkGear Connector
Then, you need to install ThinkGear Connector. It's a tool developped by NeuroSky that emits data from any of their device to a network socket. So it allows you to get data from the device, just like you get data from a website, using sockets.
- In your Unity Project, go to Edit > Project Settings > Player
- Unfold the "Other Settings" section
- Under Configuration, change the value of Api Compatibility Level to ".NET 4.x" (and not ".NET Standard 2.0")
Note: In Unity 2017 or older versions, the Api Compatibility Level must be set to ".NET 2.0" (and not ".NET 2.0 Subset").
Back to the Unity plugin. You can find a folder /UnityPackages
at the project root. Import that package into your Unity project.
This package contains the classes and components of the plugin, a demo scene and a "ready-to-use" prefab.
This library uses Jayrock, and needs ThinkGear Connector app running.