Drivers

Artoo has a extensible system for connecting to hardware devices.

Neurosky Mindwave


The MindWave headset turns your computer into a brain activity monitor. The headset safely measures brainwave signals and monitors the attention levels of individuals as they interact with math, memory and pattern recognition applications.

How To Connect

require 'artoo'

connection :neurosky, :adaptor => :neurosky, :port => '/dev/rfcomm0'
device :neurosky, :driver => :neurosky, :interval => 0.1

def handle_eeg(sender, data)
  puts data
end
...

How To Use

This small program use the Neurosky with the eeg.

require 'artoo'

connection :neurosky, :adaptor => :neurosky, :port => '/dev/rfcomm0'
device :neurosky, :driver => :neurosky, :interval => 0.1

def handle_eeg(sender, data)
  puts data
end

work do
  puts "Scanning..."
  on neurosky, :eeg => :handle_eeg
end

Commands

no commands

Events

attention(data)

Event with the user's current attention level.

blink(data)

Event with the user's current blink level.

meditation(data)

Event with the user's current meditation level.

signal_quality(data)

Event showing signal strength.

wave(data)

Event showing wave data.

eeg(data)

Event showing EEG data.

{ :delta=>7023617, :theta=>15294464, :lo_alpha=>15209472, :hi_alpha=>13321984, :lo_beta=>4527616, :hi_beta=>12073472, :lo_gamma=>862464, :mid_gamma=>13637632 }

start

Gets triggered when the Mindwave is started and ready to be used.

Compatibility