Code Monkey home page Code Monkey logo

cylon-neurosky's Introduction

Cylon.js For Neurosky Mindwave Mobile

Cylon.js (http://cylonjs.com) is a JavaScript framework for robotics, physical computing, and the Internet of Things (IoT).

This repository contains the Cylon.js adaptor/driver for the Neurosky Mindwave Mobile EEG (http://store.neurosky.com/products/mindwave-mobile).

Want to use Ruby on robots? Check out our sister project Artoo (http://artoo.io)

Want to use the Go programming language to power your robots? Check out our sister project Gobot (http://gobot.io).

Build Status Code Climate Test Coverage

How to Install

$ npm install cylon cylon-neurosky

How to Use

This example displays the Attention and Meditation data reading sent by the Mindwave Headset:

var Cylon = require('cylon');

Cylon.robot({
  connections: {
    neurosky: { adaptor: 'neurosky', port: '/dev/rfcomm0' }
  },

  devices: {
    headset: { driver: 'neurosky' }
  },

  work: function(my) {
    my.headset.on('attention', function(data) {
      Logger.info("attention:" + data);
    });

    my.headset.on('meditation', function(data) {
      Logger.info("meditation:" + data);
    });
  }
}).start();

How to Connect

OSX

In order to allow Cylon.js running on your Mac to access the Mindwave, go to "Bluetooth > Open Bluetooth Preferences > Sharing Setup" and make sure that "Bluetooth Sharing" is checked.

Ubuntu

Connecting to the Mindwave from Ubuntu or any other Linux-based OS can be done entirely from the command line using Gort commands. Here are the steps:

Find the address of the Mindwave, by using:

$ gort scan bluetooth

Pair to Mindwave using this command (substituting the actual address of your Mindwave):

$ gort bluetooth pair <address>

Connect to the Mindwave using this command (substituting the actual address of your Mindwave):

$ gort bluetooth connect <address>

Windows

You should be able to pair your Mindwave using your normal system tray applet for Bluetooth, and then connect to the COM port that is bound to the device, such as COM3.

Documentation

We're busy adding documentation to cylonjs.com. Please check there as we continue to work on Cylon.js.

Thank you!

Contributing

For our contribution guidelines, please go to https://github.com/hybridgroup/cylon/blob/master/CONTRIBUTING.md .

Release History

For the release history, please go to https://github.com/hybridgroup/cylon-neurosky/blob/master/RELEASES.md .

License

Copyright (c) 2013-2015 The Hybrid Group. Licensed under the Apache 2.0 license.

cylon-neurosky's People

Contributors

deadprogram avatar edgarsilva avatar rafmagana avatar stewart avatar yeco avatar zankavrogin avatar zankich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cylon-neurosky's Issues

serialport version are old

it seems serialport version ^2.0.0 is too old for today and need to be upgrade for ^7.
currently npm install cylon-neurosky is failed when try to install version 2.

Heeeelp installation issue

npm install cylon cylon-neurosky

[email protected] install C:\Users\Aliya\Desktop\neurosky-drone-master\node_modules\cylon-neurosky\node_modules\serialport
node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [
node-pre-gyp verb cli 'C:\Program Files\nodejs\node.exe',
node-pre-gyp verb cli 'C:\Users\Aliya\Desktop\neurosky-drone-master\node_modules\cylon-neurosky\node_modules\serialport\node_modules\node-pre-gyp\bin\node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build'
node-pre-gyp verb cli ]
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | win32 | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "C:\Users\Aliya\Desktop\neurosky-drone-master\node_modules\cylon-neurosky\node_modules\serialport\build\Release\serialport.node" (not found)
node-pre-gyp http GET https://github.com/voodootikigod/node-serialport/releases/download/2.1.2/serialport-v2.1.2-node-v72-win32-x64.tar.gz
node-pre-gyp http 404 https://github.com/voodootikigod/node-serialport/releases/download/2.1.2/serialport-v2.1.2-node-v72-win32-x64.tar.gz
node-pre-gyp http Pre-built binary not available for your system, looked for https://github.com/voodootikigod/node-serialport/releases/download/2.1.2/serialport-v2.1.2-node-v72-win32-x64.tar.gz (falling back to source compile with node-gyp)
node-pre-gyp verb command build [ 'rebuild' ]
node-pre-gyp http Connection closed while downloading tarball file (falling back to source compile with node-gyp)
node-pre-gyp verb command build [ 'rebuild' ]

Hi, I had the same problem as you when I tried to install cylon-neurosky on raspbian. I've tried to install it as "npm install -g --unsafe-perm cylon-neurosky" and it works, but the command "gort scan bluetooth" don't detect the neurosky device. I've installed gort throw the armhf deb file that there is in their webpage http://gort.io/documentation/getting_started/downloads/ gort start the device scanning but the neurosky is not detected. Some solution??

Hi, I had the same problem as you when I tried to install cylon-neurosky on raspbian. I've tried to install it as "npm install -g --unsafe-perm cylon-neurosky" and it works, but the command "gort scan bluetooth" don't detect the neurosky device. I've installed gort throw the armhf deb file that there is in their webpage http://gort.io/documentation/getting_started/downloads/ gort start the device scanning but the neurosky is not detected. Some solution??

Originally posted by @elpanadero in #9 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.