GithubHelp home page GithubHelp logo

vb6hobbyst7 / neuroskyhacking Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jimroskind/neuroskyhacking

0.0 2.0 0.0 5.59 MB

Cooperative multitasking Arduino code example to process/graph EEG data from Star Wars Force Trainer (Neurosky board)

License: Apache License 2.0

C++ 100.00%

neuroskyhacking's Introduction

Neurosky Hacking Star Wars Force Trainer

Cooperative multitasking code for Arduino processing of high-speed serial data from Neurosky devices, such as Star Wars Force Trainer, using Arduino Uno.

Written by Brianna Roskind and Jim Roskind

The code transforms the "toy" headset that drives a game, into an EEG system that can graph any/all of the 8 EEG powerbands, plus Meditation and Attention signals, in real-time. Pushbuttons allow for selection of signals to be plotted. Uses Arduino IDE Serial Plotter to display results, and 10 pushbuttons to control the selection of displayed signals.

Demonstrates techniques for cooperative multitasking, where input signal (57,600 baud serial input) MUST be processed in real time, and additional code MUST NOT block or delay that processing. Includes instrumentation to measure the effectiveness of the approach (which allows others to modify the code, and debug problems that might be added by additional (unplanned?) delays).

Requires electrical connection to "T" terminal (and ground) inside the Force Trainer headset (see comments in ForceTrainer.ino file).

The protocol definition can be reviewed in Jan 2017 doc: http://developer.neurosky.com/docs/doku.php?id=thinkgear_communications_protocol

or a May 2015 doc: http://developer.neurosky.com/docs/lib/exe/fetch.php?media=mindset_communications_protocol.pdf

or a Jun 2010 doc: http://wearcam.org/ece516/mindset_communications_protocol.pdf

There have been small changes and additions to the protocol (in the above docs) over time, and you may need to make slight modifications if you're using an especially old or new(er) version of a chip.

The "toy" (Star Wars Force Trainer II) can currently (5/2018) be purchased at Amazon for $29, which makes this a cool and inexpensive project: https://www.amazon.com/Science-Trainer-Brain-Sensing-Hologram-Electronic/dp/B00X5CCDYQ

You can see discussion of several devices for integration here: http://www.instructables.com/id/How-to-hack-EEG-toys-with-arduino/ or http://www.frontiernerds.com/brain-hack

neuroskyhacking's People

Contributors

jimroskind avatar

Watchers

James Cloos avatar  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.