Questions tagged [sphero-api]

Sphero API is a set of tools to enable developers to build apps for the Sphero robotic ball.

Sphero API is a set of tools provided by http://www.gosphero.com/ to enable developers to build apps for the Sphero robotic ball.

More information about the API can be found on the developer site:

http://developer.sphero.com/

Where you will find multiple downloads for various platforms and instructions for installing / using them.

Here are some links to help you get started with Sphero.

  • iOS SDK - https://github.com/orbotix/Sphero-iOS-SDK
  • Android SDK - https://github.com/orbotix/Sphero-Android-SDK
  • Unity Plugin - http://u3d.as/content/orbotix-inc-/sphero-unity-plugin/4co
  • Developer Resources - https://github.com/orbotix/DeveloperResources
  • 108 questions
    1
    vote
    1 answer

    Getting locator and collisions data at the same time

    I am a beginner at working with Sphero and Android, and I am going through the examples in the Sphero SDK. I have successfully merged the ButtonDrive and the Collisions sample projects so I fx. can get Sphero to roll in a direction and stop when it…
    Anders_K
    • 982
    • 9
    • 28
    1
    vote
    1 answer

    Sphero: getting real time location data to stop sphero (android)

    I am trying to build an android application for sphero where I need to stop sphero in certain zones of the room and I am trying to do so with the locatorData using a DeviceMessenger.AsyncDataListener. I have noticed, however that it is impossible to…
    1
    vote
    1 answer

    Android App OrbBasic Persistent Memory

    I am looking to get into loading OrbBasic programs into the persistent memory on sphero to allow them to run when the sphero is woken up. I have had luck loading programs into ram using the OrbBasicSample provided in the SDK, so I decided to try…
    1
    vote
    1 answer

    Sphero iOS Unity Plugin - Crash Following Sphero Connect

    Similar to an existing question but with some more specifics. I'm trying to setup the Sphero Unity Plugin from the Unity Asset Store but can't seem to run even the bundled HelloWorld sample on a device. The app will crash as soon it connects to a…
    1
    vote
    2 answers

    Android - Sphero - CalledFromWrongThreadException

    I'm creating a game that uses the Sphero robot ball. When the game starts up/resumes, it checks for a paired or connected ball. If bluetooth is off, or if there is no ball paired, it hides the connection window. If there is a ball paired, but not…
    Alex
    • 535
    • 6
    • 16
    1
    vote
    1 answer

    Sphero concept of "Shake"?

    What would be the best way tell the user is shaking the Sphero? I need to differentiate when the user tilts the Sphero left/right/up/down and when they shake it rapidly a few times in any direction. Is there a sample project that would be good to…
    Slomojamma
    • 95
    • 7
    1
    vote
    1 answer

    Sphero Build failed on Xcode4

    I am trying to create a app for IOS for "Sphero", and I want to test the HelloWorld sample however after creating a new project I click build and it fails and I get 4 problems: 1) Use af undeclared identifier 'viewDidLoad': -(void)viewDidLoad { 2)…
    0
    votes
    0 answers

    Bleak - property is not available in this version of Windows

    Working with Sphero R2D2 programable robot. Trying to connect to it like this: from spherov2 import scanner from spherov2.sphero_edu import SpheroEduAPI toy = scanner.find_toy() But getting…
    Kieran Quinn
    • 1,085
    • 2
    • 22
    • 49
    0
    votes
    1 answer

    Connecting to Sphero sprk+ android

    I am trying to connect my Android App to Sphero Sprk+ . The Sphero-SDK comes with samples to connect to sphero robot. I have tried that but could not connect to the sprk+. The reason I think is that SPRK+ requires proximity detection profile for…
    tswapnil
    • 55
    • 8
    0
    votes
    1 answer

    Can't use Sphero collision detection with Swift?

    I'm new to Swift and Sphero development but I've been asked to do a game based on collisions with the Sphero. I've managed to implement the driving part without problems so far, but I'm having problems with collisions. I've been looking for code…
    0
    votes
    1 answer

    Sphero Android sample apps not connecting to the robot

    Using Android Studio, the recommended IDE for Sphero Android development, I'm trying to run the sample apps that come with the Sphero SDK. I can get them compiling, installing, and debugging on my device (Google Nexus 5). The apps, however, are…
    0
    votes
    2 answers

    Sphero Oval - Streaming C execution - Any more info on it

    So I picked up my sphero today - it had been gathering dust for a year or so - thought I'd get back to writing some orbBasic stuff. Visited their site and found this: http://sdk.sphero.com/robot-languages/oval-oval-language/ But I can't find any…
    kasuku
    • 371
    • 3
    • 13
    0
    votes
    1 answer

    Bluetooth connection to Sphero is lost when smartphone "goes to sleep"

    I am not entirely sure if this is a more generic question than just related to the Sphero API. I have an old blackberry with a sideloaded APK that connects with a Sphero 2.0. But the same applies to a newer Android phone (that I use for…
    mpjjonker
    • 917
    • 1
    • 6
    • 28
    0
    votes
    0 answers

    Interpreting Sphero 16-bit values (such as in Collisions)

    I'm using Cylon.js and Node.js to work with a Sphero, and I'm not sure how I am supposed to reconstruct the 16 bit values from the data returned from a collision event. The docs imply that they should be signed 16-bit integers, and that the numbers…
    Michael Oryl
    • 20,856
    • 14
    • 77
    • 117
    0
    votes
    1 answer

    Sphero programing with nodeJS. How to sphero is keeping going?

    i'm japanese student.so, I'm not good at in English. I use "cylon-sphero". (https://github.com/hybridgroup/cylon-sphero) But,not work keep going. What would be the best thing to do? e.g) I use under command. Sphero is go small and small.I want to…
    hagetak
    • 21
    • 4