This package has been deprecated

Author message:

Development is dead here. Use mindwave package, instead.

mindwave2

1.0.1 • Public • Published

THIS MODULE IS DEPRECATED.

Please use mindwave.

Documentation below is for archival purposes only.


mindwave

A cross-platform driver for bluetooth Neurosky Mindwave headsets.

NOTE: this is copied from mindwave on npm. the original git repo disappeared, so I'm hosting it here to update deps and so on. -elsehow

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);
});

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)
  • raw waves
  • more opcodes

Package Sidebar

Install

npm i mindwave2

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

7.8 kB

Total Files

6

Last publish

Collaborators

  • elsehow