Giter Site home page Giter Site logo

dimorphic / bb8 Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 3.0 71 KB

Sphero Star Wars BB8 controlled via Xbox controller and Myo armband! The droid you're looking for!

License: GNU General Public License v3.0

JavaScript 100.00%
myo sphero droid armband wireless bb8 star-wars jedi sith force

bb8's Introduction

Star Wars BB8 + Xbox controller + Myo

The droid you're looking for!

What?!

Control your Sphero Star Wars BB8 droid with an Xbox 360 controller (wireless) !

Or, is The Force strong enough in you?

If you own a Myo armband, you can use gesture commands such as Force Push or Force Turn (more to come) to control your BB8 droid as a Jedi or Sith master!

Demo, or it didn't happen! (click for full video):

bb8-xbox-demo bb8-myo-demo

Tools:

Requirements

  1. Node.js >= 6.0.0
  2. Bluetooth ready computer (tested on Macbook Pro)
  3. OSX only: Xbox 360 driver (tested 0.15_beta3)

Getting started

  1. Clone repo

  2. Install deps: $ npm install

  3. Find your BB8 device UUID using the BLE scanner included: $ npm run scan

  4. Add the BB8 UUID to the config in src/config.js (DEVICE_UUID)

  5. Build the code (pick one):

  • Development mode: $ npm run dev (will recompile code on changes)
  • Production mode: $ npm run build

Code will be 'compiled' to dist/ folder.

Note: You'll have to open another terminal window to run the examples when using the developing mode as the watcher needs to always run.

  1. Running examples (finnaly!) - start the app via any:

$ npm start (starts Myo example by default)

$ node dist/example/xbox

$ node dist/example/myo

Libs:

  • Xbox 360 driver (for OSX)
  • Myo
  • Sphero
  • Cylon

Todo:

  • cleanup here-and-there
  • better docs
  • convert to TypeScript ?

bb8's People

Contributors

dimorphic avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

y2gu2xi surejm

bb8's Issues

Node-pre-gyp install --fallback-to-build

10247 error Windows_NT 10.0.14393
10248 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
10249 error node v7.7.2
10250 error npm v4.1.2
10251 error code ELIFECYCLE
10252 error [email protected] install: node-pre-gyp install --fallback-to-build
10252 error Exit status 7
10253 error Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
10253 error Make sure you have the latest version of node.js and npm installed.
10253 error If you do, this is most likely a problem with the gamepad package,
10253 error not with npm itself.
10253 error Tell the author that this fails on your system:
10253 error node-pre-gyp install --fallback-to-build
10253 error You can get information on how to open an issue for this project with:
10253 error npm bugs gamepad
10253 error Or if that isn't available, you can get their info via:
10253 error npm owner ls gamepad
10253 error There is likely additional logging output above.
10254 verbose exit [ 1, true ]

I keep having this issue when trying to install this.

trying desperately to use BB8

Been trying for the past 2 days to get your code to work.
From what I can tell, I have issues with node and the gamepad software.

Is it possible to have a sole project for the MYO band? Dying to use my BB8 with the armband.

Log attached for greater help.

2017-12-28T23_22_29_406Z-debug.log

Simple test

Hey man, really nice project here!
I've been trying to pair my BB9-e with Raspberry without any luck, and so far your project was the one that got me further... I would like to know if you do know if it's possible to control it with the xbox controller connected to the raspberry. because the program launches but it just hangs on the scan.js part..

BB-9E - can't connect

Problem: BB-9E devices show up upon BLE scanning, but connecting to it fails. BLE packets might have changed / differ from BB8 generation (Disney guys, again really?).

Expected: app should connect without issues & work in the same way as BB8 generation devices

Suggestion:
Check for updates on internal dependency sphero.js and/or reverse engineer the BLE packets (hopefully only connect is changed) - PR patch to sphero.js if the case - and reinclude here.

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.