<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>I&#039;d Rather Be Building Robots</title>
	<atom:link href="http://mightor.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mightor.wordpress.com</link>
	<description>A place where I can share my ideas, thoughts and plans, mostly robotics related.</description>
	<lastBuildDate>Wed, 25 Nov 2009 08:37:11 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='mightor.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/2178998d8d8c4b87440d427d9c3951c1?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>I&#039;d Rather Be Building Robots</title>
		<link>http://mightor.wordpress.com</link>
	</image>
			<item>
		<title>HiTechnic SMUX Tutorial</title>
		<link>http://mightor.wordpress.com/2009/11/23/hitechnic-smux-tutorial/</link>
		<comments>http://mightor.wordpress.com/2009/11/23/hitechnic-smux-tutorial/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 15:32:38 +0000</pubDate>
		<dc:creator>Xander</dc:creator>
				<category><![CDATA[NXC]]></category>
		<category><![CDATA[RobotC]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://mightor.wordpress.com/2009/11/23/hitechnic-smux-tutorial/</guid>
		<description><![CDATA[The HiTechnic Sensor Multiplexer (SMUX) is a complex sensor that requires a fair amount of intimate knowledge of its operation in order to use it.&#160; The tutorial has both ROBOTC and NXC examples.&#160; Please note that error checking for all the I2C calls is outside the scope of this tutorial.&#160; This was done so as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=331&subd=mightor&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The <a href="http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&amp;key=NSX2020" target="_blank">HiTechnic Sensor Multiplexer</a> (SMUX) is a complex sensor that requires a fair amount of intimate knowledge of its operation in order to use it.&#160; The tutorial has both ROBOTC and NXC examples.&#160; Please note that error checking for all the I2C calls is outside the scope of this tutorial.&#160; This was done so as to not clutter the code and take away from the essence; to show how the SMUX works.</p>
<p><strong>Table of contents:</strong></p>
<ul>
<li>The HiTechnic Sensor Multiplexer
<ul>
<li>Introduction </li>
<li>Operational states </li>
</ul>
</li>
<li>Multiplexer Operation
<ul>
<li>How does it do what it does? </li>
<li>Programming examples </li>
<li>Putting it all together </li>
<li>Advanced operations </li>
<li>Dealing with the unexpected </li>
</ul>
</li>
<li>3rd Party ROBOTC Driver Suite </li>
<li>Appendix A Register Layout + Function </li>
<li>Appendix B: SMUX Status </li>
<li>Appendix C: Channel Mode </li>
<li>Appendix D: Channel Type </li>
<li>Appendix E: Supported Sensors </li>
</ul>
<p>I hope you enjoy reading it and learning from it as much I enjoyed writing it. </p>
<p>You can download the tutorial here: [<a href="http://www.breigh.com/xander/HTSMUX-Tutorial-LATEST.pdf" target="_blank">LINK</a>].</p>
<p>Edited: 23-11-2009, updated tutorial to v1.0   <br />Edited: 25-11-2009, updated tutorial to v1.0.1</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mightor.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mightor.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mightor.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mightor.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mightor.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mightor.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mightor.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mightor.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mightor.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mightor.wordpress.com/331/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=331&subd=mightor&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mightor.wordpress.com/2009/11/23/hitechnic-smux-tutorial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/936a7365b0e638b08dfe384824ab1457?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Xander</media:title>
		</media:content>
	</item>
		<item>
		<title>You spin me right round, baby, right round</title>
		<link>http://mightor.wordpress.com/2009/11/17/you-spin-me-right-round-baby-right-round/</link>
		<comments>http://mightor.wordpress.com/2009/11/17/you-spin-me-right-round-baby-right-round/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 17:18:25 +0000</pubDate>
		<dc:creator>Xander</dc:creator>
				<category><![CDATA[Exposed]]></category>
		<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[Sensors]]></category>

		<guid isPermaLink="false">http://mightor.wordpress.com/2009/11/17/you-spin-me-right-round-baby-right-round/</guid>
		<description><![CDATA[On my continuing mission to take apart HiTechnic sensors and show you guys their guts, I present to you: The Gyro.&#160; The little yellow/gold component on the right of the PCB is the actual gyro chip, the rest of the components most likely to deal with power conditioning.&#160; There’s not a whole lot to tell [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=326&subd=mightor&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://mightor.files.wordpress.com/2009/11/image5.png"><img style="display:inline;border-width:0;margin:0 5px 5px 0;" title="[Click for a larger version]" border="0" alt="[Click for a larger version]" align="left" src="http://mightor.files.wordpress.com/2009/11/image_thumb3.png?w=240&#038;h=101" width="240" height="101" /></a>On my <a href="http://mightor.wordpress.com/category/exposed/" target="_blank">continuing mission</a> to take apart <a href="http://www.hitechnic.com/" target="_blank">HiTechnic</a> sensors and show you guys their guts, I present to you: <a href="http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&amp;key=NGY1044" target="_blank">The Gyro</a>.&#160; The little yellow/gold component on the right of the PCB is the actual gyro chip, the rest of the components most likely to deal with power conditioning.&#160; There’s not a whole lot to tell about this board since there’s not a lot to it.&#160; The other side of this board is completely bare apart from some writing, a couple of vias and the connector, of course.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mightor.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mightor.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mightor.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mightor.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mightor.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mightor.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mightor.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mightor.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mightor.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mightor.wordpress.com/326/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=326&subd=mightor&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mightor.wordpress.com/2009/11/17/you-spin-me-right-round-baby-right-round/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/936a7365b0e638b08dfe384824ab1457?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Xander</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/image_thumb3.png" medium="image">
			<media:title type="html">[Click for a larger version]</media:title>
		</media:content>
	</item>
		<item>
		<title>Remote Controlled Crane Truck</title>
		<link>http://mightor.wordpress.com/2009/11/14/remote-controlled-crane-truck/</link>
		<comments>http://mightor.wordpress.com/2009/11/14/remote-controlled-crane-truck/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 18:45:26 +0000</pubDate>
		<dc:creator>Xander</dc:creator>
				<category><![CDATA[Robots]]></category>

		<guid isPermaLink="false">http://mightor.wordpress.com/2009/11/14/remote-controlled-crane-truck/</guid>
		<description><![CDATA[For Lego World 2009 in the Netherlands I wanted to make a remote controlled version of the Crane Truck (8258).&#160; It seemed pretty easy, after all, it’s a pretty big truck, right?&#160; Well, I had underestimated the amount of space the gears and all the bevels take up.&#160; 

In addition to the 4 powered functions [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=320&subd=mightor&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://shop.lego.com/ByTheme/Product.aspx?p=8258" target="_blank"><img style="display:inline;margin-left:0;margin-right:0;border-width:0;" title="Big Red Crane Truck" border="0" alt="Big Red Crane Truck" align="right" src="http://mightor.files.wordpress.com/2009/11/image4.png?w=240&#038;h=178" width="240" height="178" /></a>For Lego World 2009 in the Netherlands I wanted to make a remote controlled version of the <a href="http://shop.lego.com/ByTheme/Product.aspx?p=8258" target="_blank">Crane Truck (8258)</a>.&#160; It seemed pretty easy, after all, it’s a pretty big truck, right?&#160; Well, I had underestimated the amount of space the gears and all the bevels take up.&#160; </p>
</p>
<p>In addition to the 4 powered functions in the original model, I wanted to be able to drive and steer the truck.&#160; That meant a total of 6 PF motors; 5 small ones and one large one for the rear wheels.&#160; </p>
<p>I ripped out all of the intricate gears and gear boxes that were housed in the middle.&#160; The original model really is a work of art, truly worthy of being the 2009 flagship.&#160; I felt a little bad for undoing such a wonderful complex design but it had to be done, I guess.&#160; I took some pictures while building it and some afterwards (I just removed some pieces to show the inside). Click on them for a larger version.</p>
<p align="center"><a href="http://mightor.files.wordpress.com/2009/11/cimg9764.jpg"><img style="display:inline;border-width:0;" title="CIMG9764" border="0" alt="CIMG9764" src="http://mightor.files.wordpress.com/2009/11/cimg9764_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> <a href="http://mightor.files.wordpress.com/2009/11/cimg9765.jpg"><img style="display:inline;border-width:0;" title="CIMG9765" border="0" alt="CIMG9765" src="http://mightor.files.wordpress.com/2009/11/cimg9765_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> <a href="http://mightor.files.wordpress.com/2009/11/cimg9877.jpg"><img style="display:inline;border-width:0;" title="CIMG9877" border="0" alt="CIMG9877" src="http://mightor.files.wordpress.com/2009/11/cimg9877_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> </p>
<p align="center"><a href="http://mightor.files.wordpress.com/2009/11/cimg9879.jpg"><img style="display:inline;border-width:0;" title="CIMG9879" border="0" alt="CIMG9879" src="http://mightor.files.wordpress.com/2009/11/cimg9879_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> <a href="http://mightor.files.wordpress.com/2009/11/cimg9881.jpg"><img style="display:inline;border-width:0;" title="CIMG9881" border="0" alt="CIMG9881" src="http://mightor.files.wordpress.com/2009/11/cimg9881_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> <a href="http://mightor.files.wordpress.com/2009/11/cimg9882.jpg"><img style="display:inline;border-width:0;" title="CIMG9882" border="0" alt="CIMG9882" src="http://mightor.files.wordpress.com/2009/11/cimg9882_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> </p>
<p align="center"><a href="http://mightor.files.wordpress.com/2009/11/cimg9884.jpg"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="CIMG9884" border="0" alt="CIMG9884" src="http://mightor.files.wordpress.com/2009/11/cimg9884_thumb.jpg?w=244&#038;h=164" width="244" height="164" /></a> <a href="http://mightor.files.wordpress.com/2009/11/cimg9886.jpg"><img style="display:inline;border-width:0;" title="CIMG9886" border="0" alt="CIMG9886" src="http://mightor.files.wordpress.com/2009/11/cimg9886_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> <a href="http://mightor.files.wordpress.com/2009/11/cimg9887.jpg"><img style="display:inline;border-width:0;" title="CIMG9887" border="0" alt="CIMG9887" src="http://mightor.files.wordpress.com/2009/11/cimg9887_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> </p>
<p>I’ve also made a video of the whole thing so you can see it move.&#160; If you click on the video, it’ll open it in YouTube and you can watch the HQ/HD version.&#160; Enjoy!</p>
<div style="width:425px;display:block;float:none;margin-left:auto;margin-right:auto;padding:0;" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:7b20268b-9fd0-4956-bbe1-4afacb668380" class="wlWriterEditableSmartContent">
<div><span style="text-align:center; display: block;"><a href="http://mightor.wordpress.com/2009/11/14/remote-controlled-crane-truck/"><img src="http://img.youtube.com/vi/mj7ddm3RKTc/2.jpg" alt="" /></a></span></div>
</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mightor.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mightor.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mightor.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mightor.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mightor.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mightor.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mightor.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mightor.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mightor.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mightor.wordpress.com/320/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=320&subd=mightor&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mightor.wordpress.com/2009/11/14/remote-controlled-crane-truck/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/936a7365b0e638b08dfe384824ab1457?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Xander</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/image4.png" medium="image">
			<media:title type="html">Big Red Crane Truck</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9764_thumb.jpg" medium="image">
			<media:title type="html">CIMG9764</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9765_thumb.jpg" medium="image">
			<media:title type="html">CIMG9765</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9877_thumb.jpg" medium="image">
			<media:title type="html">CIMG9877</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9879_thumb.jpg" medium="image">
			<media:title type="html">CIMG9879</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9881_thumb.jpg" medium="image">
			<media:title type="html">CIMG9881</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9882_thumb.jpg" medium="image">
			<media:title type="html">CIMG9882</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9884_thumb.jpg" medium="image">
			<media:title type="html">CIMG9884</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9886_thumb.jpg" medium="image">
			<media:title type="html">CIMG9886</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9887_thumb.jpg" medium="image">
			<media:title type="html">CIMG9887</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/mj7ddm3RKTc/2.jpg" medium="image" />
	</item>
		<item>
		<title>I Think I Hear the Sound of Angels!</title>
		<link>http://mightor.wordpress.com/2009/11/12/i-think-i-hear-the-sound-of-angels/</link>
		<comments>http://mightor.wordpress.com/2009/11/12/i-think-i-hear-the-sound-of-angels/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 22:42:22 +0000</pubDate>
		<dc:creator>Xander</dc:creator>
				<category><![CDATA[RobotC]]></category>

		<guid isPermaLink="false">http://mightor.wordpress.com/2009/11/12/i-think-i-hear-the-sound-of-angels/</guid>
		<description><![CDATA[ROBOTC 2.0 is out!&#160; After many months of development, testing and bug fixing, the folks at Robotics Academy have given birth to a 27MB baby.&#160; This latest release is a major improvement over ROBOTC 1.x.&#160; 
I was lucky enough to be part of the debugging and testing of the internal builds as Dick and Tim [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=300&subd=mightor&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img style="display:inline;margin:0 5px 0 0;" title="ROBOTC 2.00 - Now even crunchier!" alt="ROBOTC 2.00 - Now even crunchier!" align="left" src="http://robotics-academy.org/blog/wp-content/uploads/2009/11/RobotCYellowLogo.gif" width="132" height="132" /><a href="http://robotics-academy.org/blog/?p=76" target="_blank">ROBOTC 2.0</a> is out!&#160; After many months of development, testing and bug fixing, the folks at <a href="http://robotics-academy.org/blog/" target="_blank">Robotics Academy</a> have given birth to a 27MB baby.&#160; This latest release is a major improvement over ROBOTC 1.x.&#160; </p>
<p>I was lucky enough to be part of the debugging and testing of the internal builds as Dick and Tim hacked away to squash the evil bugs.&#160; It makes you appreciate the amount of work required to make a new major release (i.e. going from 1.x to 2.x) a little more.</p>
<p>Anyway, the list of improvements and fixes is HUGE.&#160; A lot of nice features were added to make <a href="http://www.robotc.net/" target="_blank">ROBOTC</a> more attractive to not just the beginner and intermediate but also the more experienced programmers.&#160; Many of the requested features on the <a href="http://www.robotc.net/forums/index.php" target="_blank">forums</a> have now become part of the latest release:</p>
<ul>
<li>A tabbed interface; you can now have multiple files open and work on them simultaneously.</li>
<li>More configurable interface, it has more of a Visual Studio 2005 look now.</li>
<li>Better Motor and Sensor Setup Wizard with more options.</li>
<li>The documentation has undergone a major metamorphosis; it includes sample code and much better explanations.&#160; </li>
<li>A live start page with regularly updated news about the <a href="http://www.robotc.net/" target="_blank">ROBOTC</a> community.&#160; I mention it because it also features a link to my <a href="http://rdpartyrobotcdr.sourceforge.net/" target="_blank">3rd Party ROBOTC Driver Suite</a> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </li>
</ul>
<p>There are many other improvements, of course.&#160; For all the details, I suggest you head over to <a href="http://robotics-academy.org/blog/" target="_blank">Robotics Academy</a>, where you can find list of changes here: [<a href="http://robotics-academy.org/blog/?p=76" target="_blank">LINK</a>]. You can download 2.00 for the NXT right here: [<a href="http://www.robotc.net/content/lego_down/lego_down.html" target="_blank">LINK</a>].&#160; </p>
<p>Get your copy today!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mightor.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mightor.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mightor.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mightor.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mightor.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mightor.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mightor.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mightor.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mightor.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mightor.wordpress.com/300/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=300&subd=mightor&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mightor.wordpress.com/2009/11/12/i-think-i-hear-the-sound-of-angels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/936a7365b0e638b08dfe384824ab1457?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Xander</media:title>
		</media:content>

		<media:content url="http://robotics-academy.org/blog/wp-content/uploads/2009/11/RobotCYellowLogo.gif" medium="image">
			<media:title type="html">ROBOTC 2.00 - Now even crunchier!</media:title>
		</media:content>
	</item>
		<item>
		<title>My Omnipotent Omniwheel</title>
		<link>http://mightor.wordpress.com/2009/11/10/my-omnipotent-omniwheel/</link>
		<comments>http://mightor.wordpress.com/2009/11/10/my-omnipotent-omniwheel/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 19:09:49 +0000</pubDate>
		<dc:creator>Xander</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mightor.wordpress.com/2009/11/10/my-omnipotent-omniwheel/</guid>
		<description><![CDATA[For the Lego World 2009 in the Netherlands I built an omniwheeled robot.&#160; It’s been done thousands of times before and the Internet is full of great (and not so great) examples.&#160; I wondered why I hadn’t jumped on that bandwagon so I got cracking.&#160; 
This was the first prototype I made back in August.&#160; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=299&subd=mightor&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For the Lego World 2009 in the Netherlands I built an omniwheeled robot.&#160; It’s been done thousands of times before and the Internet is full of great (and not so great) examples.&#160; I wondered why I hadn’t jumped on that bandwagon so I got cracking.&#160; </p>
<p>This was the first prototype I made back in August.&#160; I was on a Lego expo together with Martijn and Daniel (and their respective better halves).&#160; I wanted to see if it were possible to build an omniwheeled robot using just the NXT 2.0 kit pieces.&#160; This is what I came up with.</p>
</p>
</p>
<p align="center"><a href="http://mightor.files.wordpress.com/2009/11/cimg9712.jpg"><img style="display:inline;border-width:0;margin:0 5px;" title="CIMG9712" border="0" alt="CIMG9712" src="http://mightor.files.wordpress.com/2009/11/cimg9712_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a><a href="http://mightor.files.wordpress.com/2009/11/cimg9708.jpg"><img style="display:inline;border-width:0;margin:0 5px;" title="CIMG9708" border="0" alt="CIMG9708" src="http://mightor.files.wordpress.com/2009/11/cimg9708_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a><a href="http://mightor.files.wordpress.com/2009/11/cimg9711.jpg"><img style="display:inline;border-width:0;margin:0 5px;" title="CIMG9711" border="0" alt="CIMG9711" src="http://mightor.files.wordpress.com/2009/11/cimg9711_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a></p>
<p align="left"><a href="http://mightor.files.wordpress.com/2009/11/cimg9716.jpg"><img style="display:inline;margin-left:0;margin-right:0;border-width:0;" title="Yeah, a lot of wheels." border="0" alt="Yeah, a lot of wheels." align="right" src="http://mightor.files.wordpress.com/2009/11/cimg9716_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a>It didn’t perform well at all, especially when it needed to do anything but spin around.&#160; It got me thinking, though, how could I build an omniwheeled robot that would perform well.&#160; Lucky for me, Martijn was more than happy to donate a couple of wheels to the cause.&#160; It was a little more than a couple, I guess he was expecting me to build a 6 wheeled robot or something.&#160; It came to about 200 wheels in all, 86 small ones and about 115 bigger ones.</p>
<p align="left">I went through quite a number of wheel designs over the next couple of weeks.&#160; Some were ridiculous cart wheels shaped monstrosities that measured more than 20cms in diameter.&#160; Others simply defied explanation.&#160; The design I eventually settled on is shown below.&#160; It is loosely based on the omniwheel design that Steve Hassenplug made with some of my own modifications.</p>
<p align="center"><a href="http://mightor.files.wordpress.com/2009/11/cimg9865.jpg"><img style="display:inline;border-width:0;margin:0 5px;" title="CIMG9865" border="0" alt="CIMG9865" src="http://mightor.files.wordpress.com/2009/11/cimg9865_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> <a href="http://mightor.files.wordpress.com/2009/11/cimg9867.jpg"><img style="display:inline;border-width:0;margin:0 5px;" title="CIMG9867" border="0" alt="CIMG9867" src="http://mightor.files.wordpress.com/2009/11/cimg9867_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> <a href="http://mightor.files.wordpress.com/2009/11/cimg9875.jpg"><img style="display:inline;border-width:0;margin:0 5px;" title="CIMG9875" border="0" alt="CIMG9875" src="http://mightor.files.wordpress.com/2009/11/cimg9875_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> </p>
<p align="left">The wheel is actually made up of two wheels next to each other.&#160; They’re quite resilient.&#160; During Lego World I demoed the robot quite a bit and only 2 of the small wheels fell off during that whole time (5 days).&#160; Not bad.</p>
<p align="left">Before I got my current design, the actual robot went through a number of prototypes over the course of about 2 months or so. I took pictures of some of them.</p>
<p align="center"><a href="http://mightor.files.wordpress.com/2009/11/cimg9719.jpg"><img style="display:inline;border-width:0;margin:0 5px;" title="CIMG9719" border="0" alt="CIMG9719" src="http://mightor.files.wordpress.com/2009/11/cimg9719_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> <a href="http://mightor.files.wordpress.com/2009/11/cimg9721.jpg"><img style="display:inline;border-width:0;margin:0 5px;" title="CIMG9721" border="0" alt="CIMG9721" src="http://mightor.files.wordpress.com/2009/11/cimg9721_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> <a href="http://mightor.files.wordpress.com/2009/11/cimg9740.jpg"><img style="display:inline;border-width:0;margin:0 5px;" title="CIMG9740" border="0" alt="CIMG9740" src="http://mightor.files.wordpress.com/2009/11/cimg9740_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> </p>
<p align="left">The first one is quite simple but it had quite a bit of flex in the axles attaching the wheels to the motors, so the outer wheels never actually touched the ground.&#160; The one in the middle had one half of the wheel on each side of a frame holding the motor.&#160; This one actually had suspended arms holding the frame housing the motors.&#160; It looked super cool but the whole thing flexed like crazy when you took a turn, it was terrible.&#160; The 3rd model was one I build during our camping trip.&#160; It was much improved, less flexing but I wasn’t happy with how little contact the outer wheels made with the ground.&#160; This caused a huge amount of&#160; bouncing around.&#160; I think in all there were about 10 prototypes.&#160; The final and current incarnation of the I present to you below.</p>
<p align="center"><a href="http://mightor.files.wordpress.com/2009/11/cimg9760.jpg"><img style="display:inline;border-width:0;margin:0 5px;" title="CIMG9760" border="0" alt="CIMG9760" src="http://mightor.files.wordpress.com/2009/11/cimg9760_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> <a href="http://mightor.files.wordpress.com/2009/11/cimg9864.jpg"><img style="display:inline;border-width:0;margin:0 5px;" title="CIMG9864" border="0" alt="CIMG9864" src="http://mightor.files.wordpress.com/2009/11/cimg9864_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> <a href="http://mightor.files.wordpress.com/2009/11/cimg9863.jpg"><img style="display:inline;border-width:0;margin:0 5px;" title="CIMG9863" border="0" alt="CIMG9863" src="http://mightor.files.wordpress.com/2009/11/cimg9863_thumb.jpg?w=240&#038;h=160" width="240" height="160" /></a> </p>
<p align="left">The first picture was taken before Lego World, the other two were taken after.&#160; A couple of nice bumpers were added, a <a href="http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&amp;key=NTX1060" target="_blank">HiTechnic Touch MUX</a>, a <a href="http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&amp;key=NMC1034" target="_blank">HiTechnic Compass</a> and finally a <a href="http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&amp;key=NIR1032" target="_blank">HiTechnic IR Receiver</a> to make the whole thing remote controlled.&#160; Here’s a little video I put together of it in action.</p>
<div style="width:425px;display:block;float:none;margin-left:auto;margin-right:auto;padding:0;" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:c71f887c-e596-4894-9abe-de5aa1760f57" class="wlWriterEditableSmartContent">
<div><span style="text-align:center; display: block;"><a href="http://mightor.wordpress.com/2009/11/10/my-omnipotent-omniwheel/"><img src="http://img.youtube.com/vi/IgVlJ8hPiiw/2.jpg" alt="" /></a></span></div>
</div>
</p>
</p>
</p>
</p>
</p>
</p>
</p>
<p>So there you have it.&#160; I’ll post some pictures of my remote controlled crane truck later this week.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mightor.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mightor.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mightor.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mightor.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mightor.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mightor.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mightor.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mightor.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mightor.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mightor.wordpress.com/299/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=299&subd=mightor&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mightor.wordpress.com/2009/11/10/my-omnipotent-omniwheel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/936a7365b0e638b08dfe384824ab1457?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Xander</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9712_thumb.jpg" medium="image">
			<media:title type="html">CIMG9712</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9708_thumb.jpg" medium="image">
			<media:title type="html">CIMG9708</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9711_thumb.jpg" medium="image">
			<media:title type="html">CIMG9711</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9716_thumb.jpg" medium="image">
			<media:title type="html">Yeah, a lot of wheels.</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9865_thumb.jpg" medium="image">
			<media:title type="html">CIMG9865</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9867_thumb.jpg" medium="image">
			<media:title type="html">CIMG9867</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9875_thumb.jpg" medium="image">
			<media:title type="html">CIMG9875</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9719_thumb.jpg" medium="image">
			<media:title type="html">CIMG9719</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9721_thumb.jpg" medium="image">
			<media:title type="html">CIMG9721</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9740_thumb.jpg" medium="image">
			<media:title type="html">CIMG9740</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9760_thumb.jpg" medium="image">
			<media:title type="html">CIMG9760</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9864_thumb.jpg" medium="image">
			<media:title type="html">CIMG9864</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/cimg9863_thumb.jpg" medium="image">
			<media:title type="html">CIMG9863</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/IgVlJ8hPiiw/2.jpg" medium="image" />
	</item>
		<item>
		<title>ROBOTC I2C Howto (Part I)</title>
		<link>http://mightor.wordpress.com/2009/11/08/robotc-i2c-howto-part-i/</link>
		<comments>http://mightor.wordpress.com/2009/11/08/robotc-i2c-howto-part-i/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 14:07:30 +0000</pubDate>
		<dc:creator>Xander</dc:creator>
				<category><![CDATA[RobotC]]></category>
		<category><![CDATA[Sensors]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://mightor.wordpress.com/2009/11/08/robotc-i2c-howto-part-i/</guid>
		<description><![CDATA[ 
I2C is a very popular communication bus for connecting low speed peripherals to embedded systems.&#160; It will come to no surprise that the NXT is also capable of communicating via I2C to digital sensors.&#160; Out of the box, the NXT is capable of talking to up 4 sensors at once.&#160; However, I2C can do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=248&subd=mightor&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img style="display:inline;border-width:0;margin:0 0 10px 10px;" title="image" border="0" alt="image" align="right" src="http://mightor.files.wordpress.com/2009/11/image3.png?w=133&#038;h=133" width="133" height="133" /> </p>
<p>I2C is a very popular communication bus for connecting low speed peripherals to embedded systems.&#160; It will come to no surprise that the NXT is also capable of communicating via I2C to digital sensors.&#160; Out of the box, the NXT is capable of talking to up 4 sensors at once.&#160; However, I2C can do much more than that.&#160; This howto is not going to very deeply into the protocol specifications, those details can be found in more than one spot on the Internet.&#160; Instead it will focus on how make the NXT play nice with all manners of I2C capable sensors and peripherals. This installment will introduce the basic calls and variables needed to make I2C calls.&#160; The next installment will focus on error handling and other fun things!</p>
<p>Please note that I am using hexadecimal notation (0x..) for messages sent through I2C.&#160; This is a convention you’ll find used throughout most of the world of microcontrollers.&#160; I suggest you practise a little with it, it will come in very handy as you progress.&#160; You can easily convert between decimal and hexadecimal using the built-in Windows calculator (calc.exe).</p>
<h4>What you’ll need:</h4>
<ul>
<li>An NXT brick with the <a href="http://www.robotc.net" target="_blank">ROBOTC</a> firmware installed on it. </li>
<li>A copy of <a href="http://www.robotc.net" target="_blank">ROBOTC</a> on your PC, I recommend 2.00 preview or whatever comes after that.&#160; You can download that here: [<a href="http://www.robotc.net/forums/viewtopic.php?f=8&amp;t=1921" target="_blank">LINK</a>]. </li>
<li>A digital sensor, I’m using <a href="http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&amp;key=NCO1038" target="_blank">HiTechnic Colour Sensor</a> in this example but you can use something else, like a <a href="http://www.mindsensors.com/index.php?module=pagemaster&amp;PAGE_user_op=view_page&amp;PAGE_id=101" target="_blank">Mindsensors ACCL-NX</a>, it doesn’t matter. </li>
</ul>
<h4>Step 1: Let’s get started</h4>
<p>Open a new source file in <a href="http://www.robotc.net" target="_blank">ROBOTC</a> and create a standard main task with the following:</p>
<p>&#160;<img style="display:inline;border-width:0;" title="Step 1" border="0" alt="Step 1" src="http://mightor.files.wordpress.com/2009/11/ss2009-11-0815-49-16.png?w=584&#038;h=176" width="584" height="176" /> </p>
<p>This configures port S1 as a low speed I2C sensor.&#160; This is a speed that should work with any I2C sensor as it uses the standard Lego clock speed (9600 Hz).&#160; The program doesn’t do a whole lot yet.&#160; It mainly just loops around until the cows come home or the batteries run out, whichever comes first.</p>
<h4>Step 2: Declaring an array</h4>
<p>I2C works by sending messages.&#160; To be able to send a message, we’ll need something to hold the message. An array of bytes will do the trick very nicely (line 5).</p>
<p>&#160;<img style="display:inline;border-width:0;" title="Step 2" border="0" alt="Step 2" src="http://mightor.files.wordpress.com/2009/11/ss2009-11-0815-51-31.png?w=542&#038;h=225" width="542" height="225" /> </p>
<h4>Step 3: Addressing the slave</h4>
<p>Each device on the I2C bus has a unique address.&#160; If you want to talk to a slave, it needs to know you’re talking to it and not one of the other possible 126 slaves on the bus. This is done by setting the address of the slave as the first byte you send&#160; (line 11).&#160; </p>
<p><img style="display:inline;border-width:0;" title="Step 3" border="0" alt="Step 3" src="http://mightor.files.wordpress.com/2009/11/ss2009-11-0815-53-15.png?w=529&#038;h=272" width="529" height="272" /> </p>
</p>
<p>Why am I setting the 2nd byte in the array as the I2C address (0&#215;02) and not the first?&#160; We’ll get to that later, rest assured that it’s supposed to be that way.</p>
<h4>Step 4: Selecting the read register</h4>
<p>Most sensors made for the NXT use a standard register layout.&#160; “What, pray tell, is a register?” you might ask yourself.&#160; Well, think of registers as memory locations or drawers, if you will, where information is stored.&#160; In order to get the right information, you need to know what register you want to read from.&#160; Lucky for us, you don’t usually have to guess where the information is kept.&#160; The register, or address, that holds the latest sensor reading is almost always 0&#215;42 in the case of NXT sensors.&#160; We’ll use that as the 2nd byte we’re sending to the slave (line 14).</p>
<p><img style="display:inline;margin-left:0;margin-right:0;border-width:0;" title="Step 4" border="0" alt="Step 4" src="http://mightor.files.wordpress.com/2009/11/ss2009-11-0815-54-21.png?w=583&#038;h=322" width="583" height="322" /> </p>
<h4>Step 5: Specifying message size</h4>
<p>We’re almost ready to send our message to the slave but first we need to do one last thing; specifying the message size.&#160; Remember I said I would get back the first byte in the array later?&#160; Well, that time has come.&#160; In order for <a href="http://www.robotc.net" target="_blank">ROBOTC</a> to know how much data to send to the slave, you need to specify the size of the message.&#160; In this case, our message is only two bytes long; the slave address (0&#215;02) and the register we want to read (0&#215;42), so let’s put that in our program (line 17).</p>
<p><img style="display:inline;border-width:0;" title="Step 5" border="0" alt="Step 5" src="http://mightor.files.wordpress.com/2009/11/ss2009-11-0815-54-52.png?w=531&#038;h=370" width="531" height="370" /> </p>
<h4>Step 6: Getting the message across</h4>
<p>We’re good to go now.&#160; The <a href="http://www.robotc.net" target="_blank">ROBOTC</a> call to send a message via I2C is <font face="Courier New">sendI2CMsg(nPort, sendMsg, nReplySize)</font>.&#160; The first argument, <strong>nPort</strong>, is S1, S2, S3 or S4.&#160; The second argument, <strong>sendMsg</strong>, is a pointer to the the array containing the message.&#160; The third and last argument, <strong>nReplySize</strong>, specifies the number of bytes we want to read back from the sensor in response to our request.&#160; We’ll tell ROBOTC that we want to read back a single byte (line 22).</p>
<p>&#160;<img style="display:inline;border-width:0;" title="Step 6" border="0" alt="Step 6" src="http://mightor.files.wordpress.com/2009/11/ss2009-11-0816-09-41.png?w=583&#038;h=403" width="583" height="403" /> </p>
</p>
<h4>Step 7: Handling the slave response</h4>
<p>The code in step 6 isn’t all that useful considering we’re not actually doing anything with the slave’s response.&#160; To retrieve the response from the slave, you must use <font face="Courier New">readI2CReply(nPort, replyBytes, nBytesToRead)</font>.&#160; Once again, <strong>nPort</strong> is the port specifier, S1 to S4, <strong>replyBytes</strong> holds the slave’s response and <strong>nBytesToRead</strong> tells <a href="http://www.robotc.net" target="_blank">ROBOTC</a> how many bytes we’re expecting from the slave.&#160; We’ll print the response to the screen, so we can see (lines 28, 29).</p>
<p><img style="display:inline;border-width:0;" title="Step 7" border="0" alt="Step 7" src="http://mightor.files.wordpress.com/2009/11/ss2009-11-0815-55-43.png?w=616&#038;h=512" width="616" height="512" /> </p>
</p>
<p>Compile the program and upload it to your NXT brick.&#160; Run it and look at the the number on the screen.&#160; If you have the <a href="http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&amp;key=NCO1038" target="_blank">HiTechnic Colour Sensor</a> connected, observe how the number changes when you hold differently coloured objects in front of the sensor.&#160; If you’re using the <a href="http://www.mindsensors.com/index.php?module=pagemaster&amp;PAGE_user_op=view_page&amp;PAGE_id=101" target="_blank">Mindsensors ACCL-NX</a>, you’ll notice the number changes as you change the orientation of the sensor. </p>
<p>The sensor updates the contents of register 0&#215;42 every couple of milliseconds (ms).&#160; What you are seeing are constantly updated values as returned by the sensor.&#160; Congratulations on writing your first I2C driver for the NXT!</p>
<h4>Final words</h4>
<p>The code for this program can be downloaded here: [<a href="http://www.breigh.com/xander/I2CTutorial-Pt1.c" target="_blank">LINK</a>].&#160; In the next installment I will go over error handling and how to deal with more than one byte in a response.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mightor.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mightor.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mightor.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mightor.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mightor.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mightor.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mightor.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mightor.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mightor.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mightor.wordpress.com/248/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=248&subd=mightor&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mightor.wordpress.com/2009/11/08/robotc-i2c-howto-part-i/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/936a7365b0e638b08dfe384824ab1457?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Xander</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/image3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/ss2009-11-0815-49-16.png" medium="image">
			<media:title type="html">Step 1</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/ss2009-11-0815-51-31.png" medium="image">
			<media:title type="html">Step 2</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/ss2009-11-0815-53-15.png" medium="image">
			<media:title type="html">Step 3</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/ss2009-11-0815-54-21.png" medium="image">
			<media:title type="html">Step 4</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/ss2009-11-0815-54-52.png" medium="image">
			<media:title type="html">Step 5</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/ss2009-11-0816-09-41.png" medium="image">
			<media:title type="html">Step 6</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/ss2009-11-0815-55-43.png" medium="image">
			<media:title type="html">Step 7</media:title>
		</media:content>
	</item>
		<item>
		<title>XKCD</title>
		<link>http://mightor.wordpress.com/2009/11/06/xkcd/</link>
		<comments>http://mightor.wordpress.com/2009/11/06/xkcd/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 06:44:06 +0000</pubDate>
		<dc:creator>Xander</dc:creator>
				<category><![CDATA[Ramblings]]></category>

		<guid isPermaLink="false">http://mightor.wordpress.com/2009/11/06/xkcd/</guid>
		<description><![CDATA[
Taken from XKCD.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=246&subd=mightor&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img style="display:block;float:none;margin-left:auto;margin-right:auto;" alt="Dad, where is Grandpa right now?" src="http://imgs.xkcd.com/comics/lego.png" /></p>
<p>Taken from <a href="http://xkcd.com/659/" target="_blank">XKCD</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mightor.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mightor.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mightor.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mightor.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mightor.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mightor.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mightor.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mightor.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mightor.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mightor.wordpress.com/246/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=246&subd=mightor&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mightor.wordpress.com/2009/11/06/xkcd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/936a7365b0e638b08dfe384824ab1457?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Xander</media:title>
		</media:content>

		<media:content url="http://imgs.xkcd.com/comics/lego.png" medium="image">
			<media:title type="html">Dad, where is Grandpa right now?</media:title>
		</media:content>
	</item>
		<item>
		<title>I Feel The Need, The Need For Speed&#8230;</title>
		<link>http://mightor.wordpress.com/2009/11/05/i-feel-the-need-the-need-for-speed/</link>
		<comments>http://mightor.wordpress.com/2009/11/05/i-feel-the-need-the-need-for-speed/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 19:58:28 +0000</pubDate>
		<dc:creator>Xander</dc:creator>
				<category><![CDATA[Experiments]]></category>
		<category><![CDATA[Sensors]]></category>

		<guid isPermaLink="false">http://mightor.wordpress.com/2009/11/05/i-feel-the-need-the-need-for-speed/</guid>
		<description><![CDATA[In an earlier article I wrote, I tested how fast I could push the HiTechnic ProtoBoard and the MAX127 ADC under ROBOTC.&#160; In a recent discussion with Deepak from Mindsensors, I2C speeds in ROBOTC on the NXT came up.&#160; The questions arose about the most efficient read size for the NXT and if there was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=243&subd=mightor&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In an <a href="http://mightor.wordpress.com/2008/10/25/taking-i2c-to-the-max-on-the-nxt/" target="_blank">earlier article</a> I wrote, I tested how fast I could push the <a href="http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&amp;key=NPS1055" target="_blank">HiTechnic ProtoBoard</a> and the <a href="http://datasheets.maxim-ic.com/en/ds/MAX127-MAX128B.pdf" target="_blank">MAX127 ADC</a> under <a href="http://www.robotc.net" target="_blank">ROBOTC</a>.&#160; In a recent discussion with Deepak from <a href="http://www.mindsensors.com" target="_blank">Mindsensors</a>, I2C speeds in <a href="http://www.robotc.net" target="_blank">ROBOTC</a> on the NXT came up.&#160; The questions arose about the most efficient read size for the NXT and if there was a ceiling or a cut-off point.</p>
<p>So, rather than taking a guess, I wrote a quick <a href="http://www.robotc.net" target="_blank">ROBOTC</a> program to test the time taken to repeatedly do requests for an ever increasing number of bytes.&#160; The program would do a 1000 reads of 1 byte, time the results, then repeat the same 1000 requests for 2 bytes, all the way up to 16 bytes.&#160; The results were quite interesting and not nearly as linear as you’d expect.&#160; I made use of the new I2C calls “<em>clearI2CStatistics()</em>” and “<em>getI2CDriverStatistics()</em>”.&#160; They allow you to gather information on internal I2C statistics, such as failed pull-up tests, number of retransmits and other things.&#160; You can find more information about them in the &quot;<em>I2CIntrinsics.h</em>&quot; header file included with the latest release of <a href="http://www.robotc.net" target="_blank">ROBOTC</a> (2.00 preview at the time of writing this article).&#160; </p>
<p>So without further ado, here are the results:</p>
<table border="0" cellspacing="0" cellpadding="0" width="675">
<tbody>
<tr>
<td width="126"><strong>Read size (B)</strong></td>
<td width="140"><strong>Time Taken (ms)</strong></td>
<td width="83"><strong>Bytes/s</strong></td>
<td width="178"><strong>Transaction time (ms)</strong></td>
<td width="146"><strong>Transaction/s</strong></td>
</tr>
<tr>
<td width="126">1</td>
<td width="140">1995</td>
<td width="83">501</td>
<td width="178">2.00</td>
<td width="146">501</td>
</tr>
<tr>
<td width="126">2</td>
<td width="140">2000</td>
<td width="83">1000</td>
<td width="178">2.00</td>
<td width="146">500</td>
</tr>
<tr>
<td width="126">3</td>
<td width="140">2000</td>
<td width="83">1500</td>
<td width="178">2.00</td>
<td width="146">500</td>
</tr>
<tr>
<td width="126">4</td>
<td width="140">2994</td>
<td width="83">1336</td>
<td width="178">2.99</td>
<td width="146">334</td>
</tr>
<tr>
<td width="126">5</td>
<td width="140">3000</td>
<td width="83">1667</td>
<td width="178">3.00</td>
<td width="146">333</td>
</tr>
<tr>
<td width="126">6</td>
<td width="140">3000</td>
<td width="83">2000</td>
<td width="178">3.00</td>
<td width="146">333</td>
</tr>
<tr>
<td width="126">7</td>
<td width="140">3989</td>
<td width="83">1755</td>
<td width="178">3.99</td>
<td width="146">251</td>
</tr>
<tr>
<td width="126">8</td>
<td width="140">4000</td>
<td width="83">2000</td>
<td width="178">4.00</td>
<td width="146">250</td>
</tr>
<tr>
<td width="126">9</td>
<td width="140">4000</td>
<td width="83">2250</td>
<td width="178">4.00</td>
<td width="146">250</td>
</tr>
<tr>
<td width="126">10</td>
<td width="140">4549</td>
<td width="83">2198</td>
<td width="178">4.55</td>
<td width="146">220</td>
</tr>
<tr>
<td width="126">11</td>
<td width="140">5000</td>
<td width="83">2200</td>
<td width="178">5.00</td>
<td width="146">200</td>
</tr>
<tr>
<td width="126">12</td>
<td width="140">5000</td>
<td width="83">2400</td>
<td width="178">5.00</td>
<td width="146">200</td>
</tr>
<tr>
<td width="126">13</td>
<td width="140">5347</td>
<td width="83">2431</td>
<td width="178">5.35</td>
<td width="146">187</td>
</tr>
<tr>
<td width="126">14</td>
<td width="140">6000</td>
<td width="83">2333</td>
<td width="178">6.00</td>
<td width="146">167</td>
</tr>
<tr>
<td width="126">15</td>
<td width="140">6000</td>
<td width="83">2500</td>
<td width="178">6.00</td>
<td width="146">167</td>
</tr>
<tr>
<td width="126">16</td>
<td width="140">6011</td>
<td width="83">2662</td>
<td width="178">6.01</td>
<td width="146">166</td>
</tr>
</tbody>
</table>
<p>&#160;</p>
<table border="0" cellspacing="0" cellpadding="2" width="600">
<tbody>
<tr>
<td valign="top" width="200"><a href="http://mightor.files.wordpress.com/2009/11/image.png"><img style="display:inline;" title="[Click to enlarge]" alt="[Click to enlarge]" src="http://mightor.files.wordpress.com/2009/11/image_thumb.png?w=240&#038;h=142" width="240" height="142" /></a></td>
<td valign="top" width="200"><a href="http://mightor.files.wordpress.com/2009/11/image1.png"><img style="display:inline;" title="[Click to enlarge]" alt="[Click to enlarge]" src="http://mightor.files.wordpress.com/2009/11/image_thumb1.png?w=240&#038;h=141" width="240" height="141" /></a></td>
<td valign="top" width="200"><a href="http://mightor.files.wordpress.com/2009/11/image2.png"><img style="display:inline;" title="[Click to enlarge]" alt="[Click to enlarge]" src="http://mightor.files.wordpress.com/2009/11/image_thumb2.png?w=240&#038;h=142" width="240" height="142" /></a></td>
</tr>
<tr>
<td valign="top" width="200">Number of bytes read per second.</td>
<td valign="top" width="200">Average time per I2C transaction.&#160; This includes the time required to send the request and for the reply to be received and read.</td>
<td valign="top" width="200">Number of transactions per second.</td>
</tr>
</tbody>
</table>
<p>So what conclusions can we draw from this?&#160; If it’s sheer bandwidth you need then reading 16 bytes at a time is the way to go.&#160; However, it does reduce the number of total transactions per second to about 166.&#160; If you need to poll a sensor very frequently, it is paramount to keep the number of bytes requested down.&#160; </p>
<p>Tests were done using two sensors, a <a href="http://www.mindsensors.com/index.php?module=pagemaster&amp;PAGE_user_op=view_page&amp;PAGE_id=101" target="_blank">Mindsensors Accel-NX</a> and the <a href="http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&amp;key=NCO1038" target="_blank">HiTechnic Colour Sensor (V1)</a>.&#160; The results were identical (with a deviation of perhaps 4-6 ms).&#160; The sensor was configured as a custom I2C sensor using the fastest possible clock speed.&#160; Please note that a lot of sensors are not guaranteed to work flawlessly at these speeds.&#160; However, neither sensor produced any errors during the test runs.&#160; <a href="http://www.robotc.net" target="_blank">ROBOTC</a> version 2.00 preview was used, the program was compiled with the “release” setting and without a connection to the debugger.&#160; Runs with the debugger connected and with the “debug” setting enabled showed no difference in performance.</p>
<p>Remember, there are three kinds of lies: lies, damned lies, and statistics..&#160; Use the above data with caution!</p>
<p>You can download the source for the program here: [<a href="http://www.breigh.com/xander/I2C_SpeedTest-1.1.c" target="_blank">LINK</a>].</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mightor.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mightor.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mightor.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mightor.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mightor.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mightor.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mightor.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mightor.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mightor.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mightor.wordpress.com/243/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=243&subd=mightor&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mightor.wordpress.com/2009/11/05/i-feel-the-need-the-need-for-speed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/936a7365b0e638b08dfe384824ab1457?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Xander</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/image_thumb.png" medium="image">
			<media:title type="html">[Click to enlarge]</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/image_thumb1.png" medium="image">
			<media:title type="html">[Click to enlarge]</media:title>
		</media:content>

		<media:content url="http://mightor.files.wordpress.com/2009/11/image_thumb2.png" medium="image">
			<media:title type="html">[Click to enlarge]</media:title>
		</media:content>
	</item>
		<item>
		<title>Released: ROBOTC Driver Suite V1.1</title>
		<link>http://mightor.wordpress.com/2009/10/30/released-robotc-driver-suite-v1-1/</link>
		<comments>http://mightor.wordpress.com/2009/10/30/released-robotc-driver-suite-v1-1/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 19:32:55 +0000</pubDate>
		<dc:creator>Xander</dc:creator>
				<category><![CDATA[RobotC Drivers]]></category>
		<category><![CDATA[Sensors]]></category>

		<guid isPermaLink="false">http://mightor.wordpress.com/2009/10/30/released-robotc-driver-suite-v1-1/</guid>
		<description><![CDATA[A new version (1.1) of the ROBOTC driver suite awaits your download from the usual source.     Not as many changes in this release as with the previous one. Changes include:

Added support for the Mindsensors Servo controller, up to 8 servos per controller. 
Added a new function to get the raw uncalibrated [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=236&subd=mightor&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A new version (1.1) of the ROBOTC driver suite awaits your download from the usual <a href="http://rdpartyrobotcdr.sourceforge.net/">source</a>.     <br />Not as many changes in this release as with the previous one. Changes include:</p>
<ul>
<li>Added support for the <a href="http://www.mindsensors.com/index.php?module=pagemaster&amp;PAGE_user_op=view_page&amp;PAGE_id=93">Mindsensors Servo controller</a>, up to 8 servos per controller. </li>
<li>Added a new function to get the raw uncalibrated AD values from the sensors in the <a href="http://www.mindsensors.com/index.php?module=pagemaster&amp;PAGE_user_op=view_page&amp;PAGE_id=111">Mindsensors LineLeader</a> sensor. </li>
<li>Added support for the new <a href="http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&amp;key=NIR1032">HiTechnic IR Receiver</a>, control your robots with a Power Functions remote. </li>
<li>Minor documentation changes. </li>
</ul>
<p> The drivers’ website is here: [<a href="http://rdpartyrobotcdr.sourceforge.net/">LINK</a>].   <br />The documentation can be found here: [<a href="http://rdpartyrobotcdr.sourceforge.net/documentation/index.html">LINK</a>].   <br />You can download the software from the Source Forge page here: [<a href="https://sourceforge.net/projects/rdpartyrobotcdr/">LINK</a>].  </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mightor.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mightor.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mightor.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mightor.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mightor.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mightor.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mightor.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mightor.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mightor.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mightor.wordpress.com/236/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=236&subd=mightor&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mightor.wordpress.com/2009/10/30/released-robotc-driver-suite-v1-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/936a7365b0e638b08dfe384824ab1457?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Xander</media:title>
		</media:content>
	</item>
		<item>
		<title>Released: ROBOTC Driver Suite V1.0</title>
		<link>http://mightor.wordpress.com/2009/10/06/released-robotc-driver-suite-v1-0/</link>
		<comments>http://mightor.wordpress.com/2009/10/06/released-robotc-driver-suite-v1-0/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 20:01:10 +0000</pubDate>
		<dc:creator>Xander</dc:creator>
				<category><![CDATA[RobotC Drivers]]></category>
		<category><![CDATA[Sensors]]></category>

		<guid isPermaLink="false">http://mightor.wordpress.com/2009/10/06/released-robotc-driver-suite-v1-0/</guid>
		<description><![CDATA[After a long time between releases, I am proud to present to you the latest version of the ROBOTC Driver Suite. The biggest new addition to this version is support for the new HiTechnic SMUX sensor. Adding support for this new sensor involved modifying almost every single driver for the HiTechnic sensors to add the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=235&subd=mightor&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After a long time between releases, I am proud to present to you the latest version of the ROBOTC Driver Suite. The biggest new addition to this version is support for the new HiTechnic SMUX sensor. Adding support for this new sensor involved modifying almost every single driver for the HiTechnic sensors to add the ability to poll the sensors through the SMUX. I&#8217;ve tried very hard to make it as easy to use and transparent as possible.    </p>
<p>For example, to use the HiTechnic Colour Sensor V2, you&#8217;d use the following code:</p>
<p><font face="Courier New">#pragma config(Sensor, S1,&#160;&#160;&#160;&#160; HTCS2,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sensorI2CCustomStd)      <br />#include &quot;drivers/common.h&quot;       <br />#include &quot;drivers/HTCS2-driver.h&quot;       <br />task main () {       <br />&#160; int _color = 0;       <br />&#160; eraseDisplay();       <br />&#160; while (true) {       <br />&#160;&#160;&#160; //eraseDisplay();       <br />&#160;&#160;&#160; _color = HTCS2readColor(HTCS2);       <br />&#160; }       <br />}</font></p>
<p>To use the same sensor via the SMUX, you&#8217;d use the following:</p>
<p><font face="Courier New">#pragma config(Sensor, S1,&#160;&#160;&#160;&#160; HTSMUX,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sensorI2CCustomStd)      <br />#include &quot;drivers/common.h&quot;       <br />#include &quot;drivers/HTCS2-driver.h&quot;       <br />task main () {       <br />&#160; int _color = 0;       <br />&#160; HTSMUXinit();       <br />&#160; HTSMUXscanPorts(HTSMUX);       <br />&#160; eraseDisplay();       <br />&#160; while (true) {       <br />&#160;&#160;&#160; //eraseDisplay();       <br />&#160;&#160;&#160; _color = HTCS2readColor(msensor_S1_1);       <br />&#160; }       <br />}</font></p>
<p>As you can see, there&#8217;s not a whole lot of difference. msensor_S1_1 means the SMUX is attached to sensor port S1 and the Colour Sensor is attached to port 1 of the SMUX. To connect to port 4 of the same SMUX, you&#8217;d use msensor_S1_4. All the sensor calls that are supported through the SMUX can be found in the drivers. I recommend you check out the <a href="http://rdpartyrobotcdr.sourceforge.net/documentation/index.html">documentation</a> for more information. </p>
<p>A quick overview of some of the changes in this version:</p>
<ul>
<li>Added support for the new HiTechnic SMUX and created functions for all supported sensors to allow access via the SMUX. </li>
<li>Added support for the new HiTechnic Colour Sensor </li>
<li>Added support for the new HiTechnic Sensor MUX </li>
<li>Added support for the Mindsensors RCX MUX </li>
<li>Added support for the Mindsensors PF Mate </li>
<li>Added support for the latest alpha release of ROBOTC and its ability to distinguish between signed and unsigned. </li>
</ul>
<p>You can download V1.0 here: [<a href="https://sourceforge.net/projects/rdpartyrobotcdr/files/3rdpartyrobotcdrivers/V1.0/ROBOTC-drivers-1.0.zip/download">LINK</a>].   <br />The drivers’ website is here: [<a href="http://rdpartyrobotcdr.sourceforge.net/">LINK</a>].   <br />The documentation can be found here: [<a href="http://rdpartyrobotcdr.sourceforge.net/documentation/index.html">LINK</a>].   <br />You can download the software from the Source Forge page here: [<a href="https://sourceforge.net/projects/rdpartyrobotcdr/">LINK</a>].   </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mightor.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mightor.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mightor.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mightor.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mightor.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mightor.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mightor.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mightor.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mightor.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mightor.wordpress.com/235/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mightor.wordpress.com&blog=3937275&post=235&subd=mightor&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://mightor.wordpress.com/2009/10/06/released-robotc-driver-suite-v1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/936a7365b0e638b08dfe384824ab1457?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Xander</media:title>
		</media:content>
	</item>
	</channel>
</rss>