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