mindwave

0.2.0 • Public • Published

mindwave

A cross-platform driver for bluetooth Neurosky Mindwave headsets.

usage

var Mindwave = require('mindwave');
var mw = new Mindwave();

mw.on('eeg', function(eeg){
	console.log('eeg', eeg);
});

mw.on('signal', function(signal){
	console.log('signal', signal);
});

mw.on('attention', function(attention){
	console.log('attention', attention);
});

mw.on('meditation', function(meditation){
	console.log('meditation', meditation);
});

mw.on('blink', function(blink){
	console.log('blink', blink);
});

// These are the raw EEG data
// They come in at about 512Hz
// mw.on('wave', function(wave){
// 	console.log('wave', wave);
// });

mw.connect('/dev/cu.MindWaveMobile-DevA');

TODO

  • Currently, only 9600 baud is supported, but eventually I will add support for high-resolution data (57600.)
  • I have only tested on mac, and will need to add COM-port detection stuff for everyone, eventually.
  • I need to add enable/disable stuff so you can ignore certain types of signals (for speed)
  • more opcodes

Package Sidebar

Install

npm i mindwave

Weekly Downloads

7

Version

0.2.0

License

MIT

Unpacked Size

6.08 kB

Total Files

4

Last publish

Collaborators

  • konsumer
  • elsehow