<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - Kinect&#39;ing to Arduino with Visual Basic</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic/RSS"></atom:link>
	<image>
		<url>http://files.channel9.msdn.com/thumbnail/c75486f9-d0f2-4541-ae69-b68b57f25426.png</url>
		<title>Channel 9 - Kinect&#39;ing to Arduino with Visual Basic</title>
		<link></link>
	</image>
	<description>Today&#39;s Hardware Friday post is another Kinect related project, but this time using a couple things we don&#39;t see much in the Kinect space, Ardunio and Visual Basic! Kinect controls Arduino wired Servos using Visual Basic 2010 In this project, I use left and right hand movements in Kinect to control the rotation of two servos tied to Arduino Uno, which in turn moves the left and right arms of a makeshift stickman. The middleware is written in Visual Basic 2010 and is based on the Microsoft Kinect SDK beta 2. There are plenty of C&amp;#43;&amp;#43; and C# code examples to interface Kinect to other gadgets, but not many Visual Basic examples. So I figured this project could help folks with mostly VB skills to start hacking Kinect with Arduino.  HOW THIS STUFF WORKSKinect keeps track of 20 skeleton joints for each player. To simplify this project, I extract the coordinates of the left hand and right hand joints only. Then I pass those joint coordinates to an Arduino UNO after I do some scaling in Visual Basic from computer screen size to servo angles. I modified the VB code in the Microsoft Quickstart samples because it&#39;s well documented and comes with good tutorials. So anyone can review these tutorials to learn more about how this VB code works with Kinect. The changes I made to the sample VB code were mostly to facilitate serial communications with Arduino as well as to map screen coordinates to the servos angles. In this project, I capture the Y (vertical) movement of the HandLeft and HandRight joints. It should be easy to modify my code to add more servos and joints. WIRINGFor this project, I used two TG9e micro servos powered by the Arduino Uno connected to my PC via USB. For bigger servos with more power needs, you may have to power them separately or else the Arduino will act erratically. I labeled one servo as the Left Hand servo while the other as the Right Hand servo. If you confuse the servos at some point, the fix is often as simple as changing a line of code instead of rewiring. Left Servo ---&amp;gt; Arduino Digital Pin 9Right Servo ---&amp;gt; Arduino Digital Pin 11 For debugging purposes, you may wish to consider testing your build with one servo before adding another. HOW TO APPLY MY CODEIn addition to the instructions, you can view my step-by-step screen captured stills. Please click the &amp;quot;i&amp;quot; in the upper left corner of each photo to see the full resolution still. ...  HARDWARE PARTS- Microsoft Kinect- Arduino Uno- Micro Servos X 2 (I used TG9e micro servos)- Breadboards and wiresSOFTWARE COMPONENTSArduino IDE 1.0http://www.arduino.cc/en/Main/softwareMicrosoft Kinect SDK V1 beta2http://www.microsoft.com/en-us/kinectforwindows/download/Coding4Fun Kinect Toolkit 1.1http://c4fkinect.codeplex.com/releases/view/76271#DownloadId=300233Microsoft Visual Basic Express 2010http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-basic-express.NET Framework 4http://msdn.microsoft.com/en-us/netframework/aa569263Microsoft DirectX SDK - June 2010 or later versionhttp://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=6812Runtime for Microsoft DirectX 9http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=35Microsoft Kinect Code4Fun Quickstart VB code (You will overwrite this with my modified version)http://files.ch9.ms/coding4fun/KinectForWindowsSDKQuickstarts.zip If you&#39;re an Arduino builder, a Kinect hardware hacker or Visual Basic dev, there&#39;s a little here for all of you... </description>
	<link></link>
	<language>en</language>
	<pubDate>Sat, 25 May 2013 05:46:30 GMT</pubDate>
	<lastBuildDate>Sat, 25 May 2013 05:46:30 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: Kinect&#39;ing to Arduino with Visual Basic</title>
		<description>
			<![CDATA[<p>This is such a time saver. I was stuck for days trying to get Arduino to work with Kinect. Thank you for sharing this. And a big thank you for the developer Hazim Bitar for taking the time to document his work in such meticulous details.</p><p>posted by Kinector</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634622218091046850</link>
		<pubDate>Sun, 15 Jan 2012 10:56:49 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634622218091046850</guid>
		<dc:creator>Kinector</dc:creator>
	</item>
	<item>
		<title>Re: Kinect&#39;ing to Arduino with Visual Basic</title>
		<description>
			<![CDATA[<p>Nice tutorial.</p><p>posted by Tyma</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634623252431653478</link>
		<pubDate>Mon, 16 Jan 2012 15:40:43 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634623252431653478</guid>
		<dc:creator>Tyma</dc:creator>
	</item>
	<item>
		<title>Re: Kinect&#39;ing to Arduino with Visual Basic</title>
		<description>
			<![CDATA[<p>IT WORKS!</p><p>posted by Adam84</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634626076304576017</link>
		<pubDate>Thu, 19 Jan 2012 22:07:10 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634626076304576017</guid>
		<dc:creator>Adam84</dc:creator>
	</item>
	<item>
		<title>Re: Kinect&#39;ing to Arduino with Visual Basic</title>
		<description>
			<![CDATA[VERY VERY INTRESTING&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33; LOL LOL LOL <p>posted by Janet West</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634628681731539237</link>
		<pubDate>Sun, 22 Jan 2012 22:29:33 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634628681731539237</guid>
		<dc:creator>Janet West</dc:creator>
	</item>
	<item>
		<title>Re: Kinect&#39;ing to Arduino with Visual Basic</title>
		<description>
			<![CDATA[VERY VERY INTRESTING&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33; LOL LOL LOL <p>posted by Janet West</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634628681743569563</link>
		<pubDate>Sun, 22 Jan 2012 22:29:34 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634628681743569563</guid>
		<dc:creator>Janet West</dc:creator>
	</item>
	<item>
		<title>Re: Kinect&#39;ing to Arduino with Visual Basic</title>
		<description>
			<![CDATA[I wish if Bitar&#39;s VB code has more comments. It works as advertised but more explainations would have been helpful for those of us who like to peer inside the magic blackbox. <p>posted by Jad</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634630177046715332</link>
		<pubDate>Tue, 24 Jan 2012 16:01:44 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634630177046715332</guid>
		<dc:creator>Jad</dc:creator>
	</item>
	<item>
		<title>Re: Kinect&#39;ing to Arduino with Visual Basic</title>
		<description>
			<![CDATA[This link for vb code is not working, is there another link or any other way to get the vb code.<p>posted by Mir</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634698769857094258</link>
		<pubDate>Fri, 13 Apr 2012 01:23:05 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634698769857094258</guid>
		<dc:creator>Mir</dc:creator>
	</item>
	<item>
		<title>Re: Kinect&#39;ing to Arduino with Visual Basic</title>
		<description>
			<![CDATA[<p><span>@<a href="/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634698769857094258?areaType=Blogs&amp;areaName=Coding4FunBlog">Mir</a>: You're referring to the &quot;Microsoft Kinect Code4Fun Quickstart VB code (You will overwrite this with my modified version)&quot; link, right? </span></p><p><span>That's a know server side issue that the Channel 9/Microsoft team is working on and will hopefully resolve soon.</span></p><p>&nbsp;</p><p>posted by gduncan411</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634699258576721797</link>
		<pubDate>Fri, 13 Apr 2012 14:57:37 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/Kinecting-to-Arduino-with-Visual-Basic#c634699258576721797</guid>
		<dc:creator>gduncan411</dc:creator>
	</item>
</channel>
</rss>