Skip to content
This repository has been archived by the owner on Mar 28, 2021. It is now read-only.
/ mindwave Public archive

a node library for reading data from the neurosky mindwave

Notifications You must be signed in to change notification settings

elsehow/mindwave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a node library for reading data from the neurosky mindwave

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published