From Zero to Hero, Kinect to Sphero

Description

We've highlighted coding the Sphero previously here on Channel 9, The Ball is in our court and control with the Sphero C# Controller (WP8, MonoDroid, MonoTouch and more), but never like this. Today's project from Mike Taulty covers a number of topics, from start to Modern App all with the Kinect and Sphero.

Playing with Kinect for Windows V2 and Sphero from a Windows 8.1 Store App

This post is really under the category of “hacking for fun”. I wanted to knock up a quick demo for a talk about Windows 8.1 apps and I wanted to show that it’s possible to connect to interesting bits of kit from an app and the 2 of the “interesting” bits of kit that I came up with where;

  1. The Kinect for Windows V2 sensor.
  2. The Sphero.

and I tied them together with some JavaScript code such that I could control the rotation of a Sphero device with my left hand by moving it away from my body and such that I could drive the sphero with my right hand by “pushing” it away from my shoulder.

I had a few people asking me how that was put together and so I thought I’d blog that here in the manner of a “Recipe” where I’ll try and keep the code/HTML as short as possible to reproduce what I showed at the recent “Native Summit” event.

Step 1 – Beg, Borrow, Buy a Sphero ...
Step 2 – Beg, Borrow, Buy a Kinect for Windows V2 ...
Step 3 – Get a Dev Environment for Windows 8.1 Apps Set Up ...
Step 4 – Pair Your Sphero ...
Step 5 – Try an Official Sphero App ...
Step 6 – Get the Kinect SDK ...
Step 7 – Get the Robotkit Library ...
Step 8 – Write Some Code

The demo that I showed was written in JavaScript so I’ll try and produce a minimalistic version of that here. The Robotkit.dll library is in .NET so I need to wrap something around it to turn it into a WinRT component that can be used from JavaScript.

The starting point for that is then to make a new project in Visual Studio of type “Windows Runtime Component”

...

Project Information URL: http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2014/09/10/playing-with-kinect-for-windows-v2-and-sphero-from-a-windows-8-1-store-app.aspx

Project Source URL: http://mtaulty.com/downloads/SpheroPost.zip

Contact Information:




The Discussion

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.