NeuroSky ThinkGear ASIC module

This module interfaces the NeuroSky ThinkGear ASIC module (TGAM) for use with Espruino.

The module returns the following information:

Currently only "normal output mode" of the TGAM is supported. When interfacing a TGAM in "raw output mode", Brain.js should still correctly parse all received packets and return the above values but ignore the raw data.

Usage:

  1. Wire TGAM board to Espruino board
TGAM pin Espruino pin
- GND
+ 3.3
T Any Serial RX pin, for example A3
  1. Write some code
   // event handler that just dumps data
   function processBrainData(data) {
     console.log(data.field, data.value);
   }

   // initialize Brain module
   brain = require('Brain').connect(Serial2, A3, 9600);

   // hook up event handler
   brain.on('data', processBrainData);

Disclaimer: use at your own risk.

This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.