Git Product home page Git Product logo

node-sphero's Introduction

Node Sphero

How to use

npm install node-sphero

Connect your Sphero to your laptop over bluetooth. At this time only OSX 10.8/Windows 7 has been tested.

Add Sphero to your app:

var roundRobot = require('node-sphero');
var sphero = new roundRobot.Sphero();

sphero.on('connected', function(ball) {
  ball.setRGBLED(0, 255, 0, false);
});

sphero.connect();

Run that and your sphero should turn #00FF00... green.

Check out the examples for more ideas.

OS X

You will need Node.js 8.x and the build tool provided by xcode. The Command Line tools for xcode can be downloaded from Apple's developer site for free.

You can install NodeJS for by downloading it from nodejs.org

Windows

You will need node.js 8.x (32-bit only), (node-gyp(included with node) / Python 2.x / and the build tools provided by Visual Studio 2010)

You must use the 32bit version of nodejs, because there are issues with the serialport builds on the x64 platform. You can install NodeJS by downloading it from nodejs.org Current 32bit version is available here: http://nodejs.org/dist/v0.8.9/node-v0.8.9-x86.msi

Python. Remember you want the latest 2.x release: python windows binaries

If you dont have visual studio 2010, you can download the express edition for free. You'll want the c++ version, or the all in one.

If have a of Visual Studio OTHER THAN 2010, you might run into some issues. Please read this

In Progress

The rest of the sphero bluetooth api functionality.

Thanks

Awesome work by Bradley Meck who built the initial version.

node-sphero's People

Contributors

mick avatar shama avatar mko avatar bmeck avatar

Watchers

David O'Halloran avatar James Cloos avatar

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.