Git Product home page Git Product logo

spheroxbox's Introduction

#Sphero with Xbox Controller

Use an xbox 360 controller to drive Sphero. This is the most recent code. It includes a few flourishes, like a game of tag built in, where the Sphero's alternate color to signal who's chasing and who's being chased. (One point to the chaser for each time they bump. Force feedback in the XBox controllers triggered by bumps.)

###Getting Started In the software, you need to associate a comm port with a Sphero. The Sphero's should already be connected to the computer via bluetooth. You still have to dig the comm port number out of the properties of the bluetooth device the Sphero appears as when you connect it.

Other than that, it's pretty straightforward:

  • Left stick steers.
  • Right stick re-calibrates which direction is forward. The right bumper has to be held down simultaneously, to prevent accidental recalibration. Press "forward" on the left stick first, then push the right stick in the direction the Sphero thinks forward is. It will recalibrate so that its forward matches your forward.
  • The left and right triggers are slow mode and fast mode. Hold them down. You return to medium speed by default.
  • The main buttons change the color of the Sphero.
  • The left bumper issues a Sphero API "brake" command. This only gets good results at the lowest speeds.
  • The D-pad is unused.

###To Do

It also has some unfinished corners: the readouts to show which Sphero is connected to which comm port. That's not actually wired up.

spheroxbox's People

Watchers

 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.