<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gareth Jones &#187; usb</title>
	<atom:link href="http://blog.garethj.com/tag/usb/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.garethj.com</link>
	<description></description>
	<lastBuildDate>Tue, 07 Sep 2010 17:37:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Christmas fun</title>
		<link>http://blog.garethj.com/2007/12/christmas-fun/</link>
		<comments>http://blog.garethj.com/2007/12/christmas-fun/#comments</comments>
		<pubDate>Mon, 31 Dec 2007 12:43:14 +0000</pubDate>
		<dc:creator>gareth</dc:creator>
				<category><![CDATA[geeky escapades]]></category>
		<category><![CDATA[accelerometer]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[launcher]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mqtt]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[rocket]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://blog.garethj.com/2007/12/31/christmas-fun/</guid>
		<description><![CDATA[Ok, so I got a bit bored at some point over Christmas and decided to play with one of my presents &#8211; a USB Rocket Launcher. The first difficulty was getting it to run on my Linux laptop as the &#8230; <a href="http://blog.garethj.com/2007/12/christmas-fun/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ok, so I got a bit bored at some point over Christmas and decided to play with one of my presents &#8211; a USB Rocket Launcher.</p>
<p>The first difficulty was getting it to run on my Linux laptop as the drivers were only for Windows. A quick search and <a href="http://scott.weston.id.au/software/pymissile/">Scott Weston</a> sorted me out. Then I thought it should really be controlled by more than just the keyboard so I hooked it into the Thinkpad accelerometer &#8211; now movements of the laptop could direct it. Finally, as I knew <a href="http://www-03.ibm.com/innovation/us/innovation/master/inventor_b.shtml">Andy Stanford-Clark</a> would be a bit disappointed in me if I hadn&#8217;t, I <a href="http://mqtt.org/">MQTT</a>&#8216;d it so that the accelerometer details are published to a broker, a bridge app subscribes to that info and (where appropriate) publishes commands which are received by a final subscriber that actually sends the commands to the rocket launcher. This way you can easily swap out the accelerometer or indeed rocket launcher for something completely different.</p>
<p>I feel quite pleased with myself and slightly ashamed at the same time.</p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/ObATVMDp5_o"></param> <embed src="http://www.youtube.com/v/ObATVMDp5_o" type="application/x-shockwave-flash" width="425" height="350"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.garethj.com/2007/12/christmas-fun/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
