Dream to Learn is shutting down...

We are very sorry to say that Dream to Learn will be shutting down as of December 28th, 2019. If you have content that you wish to keep, you should make a copy of it before that date.


EEG Brain Waves to Unity Sphere Control

POSTED IN: Data Analytics & Visualization Blog

EEG Brain Waves to Unity Sphere Control

Watching the original Iron Man with the family tonight got the creative juices going - so figured I'd have a bit of fun with kids.  Did a simple INTEGRATION of the Emotive



Here is the Emotiv Epoc https://www.emotiv.com/epoc/ - it's a nice little consumer grade - 14 channel EEG reader - with software that permits KEYSTROKE mapping


Steps were:

  1. Build a Basic Unity Project // Model - Four walls, bouncy ball with gravity and bounce
  2. C# Control Script to 'nudge' on receiving keystroke from Emotive - e.g. { this.GetComponent<Rigidbody> ().AddForce (new Vector3 (force, 0, 0)); }
  3. Emotiv - map keys to A< D>  W (up)  S (down) and SPACE (bump) - to left/right blink, clench is bump - brow up and down for W and S
  4. Put the EEG headset on and test keystrokes in Notepad
  5. Off you go


Didnt calibrate or damp much, but the results were 'sufficient' for a movie multitask :)




Here's the super basic C# code for Unity that accepts the keystrokes mapped in Emotive to the Unity System


Interested in more content by this author?

About the Author

Ryan Anderson

Ryan Anderson

Hi! I like to play with data, analytics and hack around with robots and gadgets in my garage. Lately I've been learning about machine learning.

About this blog

Description is...<br/>Data Analytics & Visualization Blog - Generating insights from Data since 2013

Created: July 25, 2014


Up Next