<?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>Andrius Šutas’s blog &#187; Projects</title>
	<atom:link href="http://sutas.lt/category/projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://sutas.lt</link>
	<description>Computer science is my lifestyle, electronics - hobby...</description>
	<lastBuildDate>Sun, 25 Apr 2010 12:31:18 +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>Rubik&#8217;s Cube Solving Robot (RDRK) (Project#2)</title>
		<link>http://sutas.lt/rubiks-cube-solving-robot-rdrk/</link>
		<comments>http://sutas.lt/rubiks-cube-solving-robot-rdrk/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 20:12:02 +0000</pubDate>
		<dc:creator>Andrius Šutas</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[rdrk]]></category>

		<guid isPermaLink="false">http://sutas.lt/?p=9</guid>
		<description><![CDATA[RDRK is acronym in my language (Lithuanian) for &#8220;Robotas Dėliojantis Rubiko Kubą&#8220;. This is my second project involving microcontrollers μC (the zeroth was LED blinkie and the first one was RC5 decoder). Intro: Up to now I have used only atmel AVR microcontrollers, so this bot is no exception with: ATmega16. Firmware is written entirely in C, also [...]]]></description>
			<content:encoded><![CDATA[<p>RDRK is acronym in my language (<em>Lithuanian</em>) for &#8220;<em>Robotas Dėliojantis Rubiko Kubą</em>&#8220;. This is my second project involving <span style="text-decoration: line-through;">microcontrollers</span> μC (the zeroth was LED blinkie and the first one was <a title="RC5 practical use" href="http://www.youtube.com/watch?v=Bd_Oeux-i7w" target="_blank">RC5 decoder</a>).</p>
<p><span id="more-9"></span></p>
<h1>Intro:</h1>
<p><span style="font-weight: normal; font-size: 13px;">Up to now I have used <em>only</em> <a href="http://en.wikipedia.org/wiki/Atmel_AVR" target="_blank">atmel AVR</a> microcontrollers, so this bot is no exception with: <strong><em>ATmega16</em></strong>. Firmware is written entirely in <strong><em>C</em></strong>, also <strong><a href="http://www.mil.ufl.edu/~chrisarnold/components/microcontrollerBoard/AVR/avrlib/"><em>avrlib</em></a></strong> library for <em>timing</em>/<em>PWM</em>/<em>UART</em> was used. Although program is written with <strong><em>wxWidgets</em></strong> (C++) library, it won&#8217;t compile under <em>Windows</em> because the system calls in serial communication part, thought if you remove it, it <em>should</em> build with no hassle.</span></p>
<h1>In action:</h1>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="295" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/ThMd9YR1MAg&amp;hl=en&amp;fs=1&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="295" src="http://www.youtube.com/v/ThMd9YR1MAg&amp;hl=en&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<h1>The build:</h1>
<p><span style="font-weight: normal; font-size: 13px;">Basic communication scheme: (USB-to-RS232 (PL-2303))-&gt;MAX232-&gt;UART</span></p>
<p><span style="font-weight: normal; font-size: 13px;">Power: for servos and logic I&#8217;ve used <em>L7805</em> with big heatsink (and yes, at operation time it was necessity) and <em>DSA-20R-12</em> switching adapter</span></p>
<p><span style="font-weight: normal; font-size: 13px;">Servos: 2x<em>MG995</em>&#8216;s for main arms and  for 2x<em>HXT900</em> &#8220;claws&#8221;</span></p>
<p><span style="font-weight: normal; font-size: 13px;">uC: atmega16; 7.3728Mhz; LF: 3f, HF: de</span></p>
<h1>Other thoughts:</h1>
<p>In order to use <em>make</em> with firmware you should export avrlib directory with:</p>
<blockquote><p>export AVRLIB=/path/to/avrlib</p></blockquote>
<p>Color recognition <em>would be</em> nice, but because it&#8217;s easy to do (as in: no challenge) and <em>some</em> cross platform problems (Unix/Linux) with webCAM I didn&#8217;t implement it (also partly because it&#8217;s not intended for daily use, and You should know that programmers are lazy)</p>
<p>Any questions? ASK!</p>
<h1><strong>Source files (tl;dr):</strong></h1>
<ul>
<li>Firmware: <em><a href="http://sutas.lt/files/rdrk/rdrk_firmware.2009-09-11.zip">rdrk_fimware.2009-09-11.zip</a></em></li>
<li>Software: <em>soon</em></li>
<li>CAD: <em><a title="corelDraw+AutoCAD" href="http://sutas.lt/files/rdrk/drawings.zip">cdr+dwg</a></em></li>
<li>Eagle schematics/board: <em>soon</em></li>
</ul>
<h1>Extra:</h1>
<ul>
<li>video: <a href="http://sutas.lt/files/rdrk/rdrk.mov"><em>rdrk.mov</em></a></li>
<li>soundtrack:<em> </em><em><a href="http://www.deepskydivers.com/audio/momentum.mp3">deep skydivers &#8211; </a></em><em><a href="http://www.deepskydivers.com/audio/momentum.mp3">momentum.mp3</a></em> (<em><a href="http://www.deepskydivers.com/" target="_blank">official site</a></em>)</li>
</ul>
<pre>P.S. everything is under GNU GENERAL PUBLIC LICENSE.</pre>
]]></content:encoded>
			<wfw:commentRss>http://sutas.lt/rubiks-cube-solving-robot-rdrk/feed/</wfw:commentRss>
		<slash:comments>59</slash:comments>
<enclosure url="http://sutas.lt/files/rdrk/rdrk.mov" length="59407756" type="video/quicktime" />
<enclosure url="http://www.deepskydivers.com/audio/momentum.mp3" length="2203648" type="audio/mpeg" />
		</item>
	</channel>
</rss>
