All Projects → sphero-inc → Sphero-Win-SDK

sphero-inc / Sphero-Win-SDK

Licence: other
🚫 DEPRECATED: Sphero SDK for Win 8.1+ using RFCOMM

Projects that are alternatives of or similar to Sphero-Win-SDK

Sphero Android Sdk
🚫 DEPRECATED REPO: Sphero™ is the amazing robotic ball ( gosphero.com ), this is the repository for the Android SDK for Sphero™. Visit dev site for more information:
Stars: ✭ 160 (+344.44%)
Mutual labels:  deprecated, archived, obsolete
Sphero Ios Sdk
🚫 DEPRECATED: Sphero™ is the amazing robotic ball ( sphero.com ) created by Orbotix, this is the repository for the iOS SDK for Sphero™. Visit dev site for more information:
Stars: ✭ 232 (+544.44%)
Mutual labels:  deprecated, archived, obsolete
Mern Starter
⛔️ DEPRECATED - Boilerplate for getting started with MERN stack
Stars: ✭ 5,175 (+14275%)
Mutual labels:  deprecated, archived, obsolete
Python Firebase
⛔️ [DEPRECATED] python wrapper for Firebase's REST API
Stars: ✭ 117 (+225%)
Mutual labels:  deprecated, archived, obsolete
Julian
⛔️DEPRECATED Brilliantly clever PHP calendar class
Stars: ✭ 89 (+147.22%)
Mutual labels:  deprecated, archived, obsolete
Docker Cleanup
DEPRECATED Automatic Docker image, container and volume cleanup
Stars: ✭ 582 (+1516.67%)
Mutual labels:  deprecated, archived, obsolete
Closure Linter
Automatically exported from code.google.com/p/closure-linter
Stars: ✭ 104 (+188.89%)
Mutual labels:  deprecated, archived, obsolete
Tinx
⛔️ Laravel Tinx is archived and no longer maintained.
Stars: ✭ 437 (+1113.89%)
Mutual labels:  deprecated, archived, obsolete
Codeigniter Schema
⛔️DEPRECATED Expressive table definitions
Stars: ✭ 87 (+141.67%)
Mutual labels:  deprecated, archived, obsolete
Sphero Mac Sdk
🚫 DEPRECATED: Sphero SDK for the Mac platform.
Stars: ✭ 70 (+94.44%)
Mutual labels:  deprecated, archived, obsolete
Mern Cli
⛔️ DEPRECATED - A cli tool for getting started with MERN
Stars: ✭ 575 (+1497.22%)
Mutual labels:  deprecated, archived, obsolete
Terraintoolsamples
Unity has archived the TerrainToolSamples repository. For future development, please use the Terrain Tools package.
Stars: ✭ 195 (+441.67%)
Mutual labels:  deprecated, archived, obsolete
Aawindow
[Deprecated] · UIWindow subclass to enable behavior like adaptive round-corners & detecting when Control Center is opened.
Stars: ✭ 486 (+1250%)
Mutual labels:  deprecated, archived, obsolete
Codeigniter Base Controller
⛔️DEPRECATED CodeIgniter base controller with view autoloading and layout support
Stars: ✭ 115 (+219.44%)
Mutual labels:  deprecated, archived, obsolete
Pygeoip
DEPRECATED: Pure Python API for Maxmind's binary GeoIP databases
Stars: ✭ 483 (+1241.67%)
Mutual labels:  deprecated, archived, obsolete
Codeigniter Base Model
⛔️DEPRECATED CodeIgniter base CRUD model to remove repetition and increase productivity
Stars: ✭ 1,052 (+2822.22%)
Mutual labels:  deprecated, archived, obsolete
Sphero.js
🚫 DEPRECATED: The Sphero JavaScript SDK to control Sphero robots.
Stars: ✭ 346 (+861.11%)
Mutual labels:  deprecated, archived, obsolete
Piranha
[DEPRECATED] This is the legacy version of Piranha CMS for .NET 4.5, MVC 5.2 & WebPages 3.2.
Stars: ✭ 418 (+1061.11%)
Mutual labels:  deprecated, archived, obsolete
Graphql Modules
⚠️ [DEPRECATED] GraphQL module library for Apollo.
Stars: ✭ 53 (+47.22%)
Mutual labels:  deprecated, archived, obsolete
Secretary
DEPRECATED Secrets management for dynamic environments
Stars: ✭ 93 (+158.33%)
Mutual labels:  deprecated, archived, obsolete

This repo has been deprecated and archived.

Want to be updated when new SDKs are released?

Consider signing up for our SDK email list to be notified when we release new and updates to our SDKs.

For more information and documentation

Visit our SDK website to find more information about the SDK and the API!

Where to get help

Visit our community forum to get help, share your project, or help others!

Sphero-Win-SDK

sphero-apps.jpg

Windows 8.1 Quick Start Guide

Overview

This project shows Windows 8.1 developers how to integrate Sphero into their Apps and games!

Contents

  • Adding the RobotKit.dll to your Visual Studio solution
  • Discovering & Connecting Sphero
  • Changing Sphero's color
  • Using the Sphero UI elements
  • Driving Sphero
  • Sensor Streaming

Adding RobotKit.dll

From within your solution on Visual Studio 2013

  1. Right click on References and "Add Reference"
  2. Choose "Browse" and select the RobotKit.dll

Update Manifest

<wb:DeviceCapability Name="bluetooth.rfcomm">
  <wb:Device Id="any">
    <wb:Function Type="serviceId:00001101-0000-1000-8000-00805F9B34FB" />
  </wb:Device>
</wb:DeviceCapability>

Discovering & Connecting Sphero

private void setupRobot(){
    RobotProvider provider = RobotProvider.GetSharedProvider();
    provider.DiscoveredRobotEvent += OnRobotDiscovered;
    provider.NoRobotsEvent += OnNoRobotsEvent;
    provider.ConnectedRobotEvent += OnRobotConnected;
    provider.FindRobots();
}

Handle the Events...

private void OnRobotDiscovered(object sender, Robot robot) {
    Debug.WriteLine(string.Format("Discovered \"{0}\"", robot.BluetoothName));

    if (m_robot == null) {
        RobotProvider provider = RobotProvider.GetSharedProvider();
        provider.ConnectRobot(robot);
        //...
    }
}

private void OnNoRobotsEvent(object sender, EventArgs e) {
  MessageDialog dialog = new MessageDialog("No Sphero Paired");
  //...
}

Changing Sphero's color

Sphero's main LED colors are controlled by web standard RGB. Best practice is to use hex values to stay within the valid range of 0-255.

public void turnSpheroWhite(){
    int red = 0xFF;
    int green = 0xFF
    int blue = 0xFF
    m_robot.SetRGBLED(red, green, blue);
}

Using the Sphero UI Elements

From within the BasicDriveApp sample, copy the RobotKitUI code for the Joystick and Calibration controls. Sphero needs to be calibrated so that the 'back LED" is aimed toward the driver. The easiest way to accomplish this is to use the 'CalibrateElement.cs'.

Driving Sphero

Driving Sphero is super simple. Just give it a direction in degrees where 0 is directly ahead and increases clockwise where 90 degrees is right and a velocity between 0.0 and 1.0.

public void hangRightAtHalfSpeed(){
    int heading = 90; // right
    float velocity = .5; // half speed
    m_sphero.Roll(heading, velocity);
}

Sensor Streaming

Sphero is capable of being used as a simple game controller or other input device using it's embedded sensors. Sphero has the following sensors.

  • Accelerometer
  • Gyrometer
  • Location in X,Y from a relative starting point
  • Velocity
  • Attitude in both Quaternions and Euler angles

Setup

The robot SensorControl manages the listeners for Accelerometer, Gyro, Location, Attitude in Eulers and Quaternion Attitude. The SensorControl.Hz value is between 1 and 400 and affects all sensors.

{
  m_robot.SensorControl.Hz = 60; // stream at 60Hz for ALL sensors that are enabled
  m_robot.SensorControl.AccelerometerUpdatedEvent += OnAccelerometerUpdated;
}

Data Handler

private void OnAccelerometerUpdated(object sender, AccelerometerReading reading) {
// expects AccelerometerX,Y,Z to be defined as fields
    AccelerometerX.Text = "" + reading.X;
    AccelerometerY.Text = "" + reading.Y;
    AccelerometerZ.Text = "" + reading.Z;
}

Samples

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].