<?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>iPod + Arduino</title>
	<atom:link href="http://www.anaiid.com/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anaiid.com/code</link>
	<description>This site is where i post all the resources and code related to working with iPod and Arduino. If this code is helpful or you have questions or want to tell me about your code and projects contact me.</description>
	<lastBuildDate>Thu, 02 Jul 2009 01:38:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>hello iPod!</title>
		<link>http://www.anaiid.com/code/2009/07/01/hello-ipod/</link>
		<comments>http://www.anaiid.com/code/2009/07/01/hello-ipod/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 00:49:23 +0000</pubDate>
		<dc:creator>anaid</dc:creator>
				<category><![CDATA[ipod & arduino]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[byte]]></category>
		<category><![CDATA[checksum]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[modes]]></category>

		<guid isPermaLink="false">http://www.anaiid.com/code/?p=37</guid>
		<description><![CDATA[The iPod requires instructions to follow a specific order and to be in hexadecimal notation. This instructions look something like this: The structure in this sentence is very important. The first two bytes are the header. It always expects this header to start listening. Then it expects the length of what is going to follow. [...]]]></description>
			<content:encoded><![CDATA[<p>The iPod requires instructions to follow a specific order and to be in hexadecimal notation.</p>
<p>This instructions look something like this:</p>
<p style="text-align: center;"><strong><img class="alignnone size-full wp-image-42" title="structure" src="http://www.anaiid.com/code/wp-content/uploads/2009/07/structure.png" alt="structure" width="494" height="105" /><br />
</strong></p>
<p style="text-align: left;">The structure in this sentence is very important. The first two bytes are the header. It always expects this header to start listening.</p>
<p style="text-align: left;">Then it expects the length of what is going to follow.</p>
<p style="text-align: left;">Next is a mode. There are 5 available modes:</p>
<p style="text-align: left;"><strong>byte          mode</strong></p>
<p style="text-align: left;"><strong>0&#215;00 </strong> mode switching</p>
<p style="text-align: left;"><strong>0&#215;01 </strong> voice recorder</p>
<p style="text-align: left;"><strong>0&#215;02 </strong> simple remote</p>
<p style="text-align: left;"><strong>0&#215;03</strong> request mode status</p>
<p style="text-align: left;"><strong>0&#215;04 </strong> advanced remote mode (AiR)</p>
<p>Next is a command. The command is the specific instruction in the mode. The list of commands will follow.</p>
<p>The next part is the parameter, some modes use the parameters and others don&#8217;t.</p>
<p>Finally there is a checksum that completes the byte structure. This is calculated with a formula:</p>
<p>int checkSum(int len, int mode, int command, int parameter(s)) {<br />
int checksum = 0&#215;100 &#8211; ((len + mode + command + parameter(s)) &amp; 0xFF);<br />
return checksum;<br />
Serial.println (&#8220;checksum&#8221;);<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anaiid.com/code/2009/07/01/hello-ipod/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Basic conections</title>
		<link>http://www.anaiid.com/code/2009/07/01/basic-conections/</link>
		<comments>http://www.anaiid.com/code/2009/07/01/basic-conections/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 00:27:30 +0000</pubDate>
		<dc:creator>anaid</dc:creator>
				<category><![CDATA[ipod & arduino]]></category>
		<category><![CDATA[ipod breakout board]]></category>
		<category><![CDATA[pinout]]></category>

		<guid isPermaLink="false">http://www.anaiid.com/code/?p=31</guid>
		<description><![CDATA[The basic connection requires 4 pins: 1 and 11 go to ground. 12 is TX and it goes to RX on Arduino, which is digital pin 0 on the Decimila Board. 13 is RX and it goes to TX on Arduino, which is digital pin 1 on the Decimila board. You can read the full [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-33" title="iPodBreakout" src="http://www.anaiid.com/code/wp-content/uploads/2009/07/iPodBreakout1.gif" alt="iPodBreakout" width="404" height="173" /></p>
<p>The basic connection requires 4 pins:</p>
<p>1 and 11 go to ground.</p>
<p>12 is TX and it goes to RX on Arduino, which is digital pin 0 on the Decimila Board.</p>
<p>13 is RX and it goes to TX on Arduino, which is digital pin 1 on the Decimila board.</p>
<p>You can read the full pinout at <a href="http://pinouts.ru/Devices/ipod_pinout.shtml" target="_blank">pinouts.ru</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anaiid.com/code/2009/07/01/basic-conections/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>To start</title>
		<link>http://www.anaiid.com/code/2009/07/01/to-start/</link>
		<comments>http://www.anaiid.com/code/2009/07/01/to-start/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 23:44:38 +0000</pubDate>
		<dc:creator>anaid</dc:creator>
				<category><![CDATA[ipod & arduino]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[ipod breakout board]]></category>
		<category><![CDATA[ipod connector]]></category>
		<category><![CDATA[materials]]></category>

		<guid isPermaLink="false">http://www.anaiid.com/code/?p=28</guid>
		<description><![CDATA[To talk to the iPod through an Arduino you need a way to interface with it. This is where the iPod breakout board comes in. You can buy it from Sparkfun here. You can chose to solder wires straight into it or put some headers on it so you can change them around. If the [...]]]></description>
			<content:encoded><![CDATA[<p>To talk to the iPod through an Arduino you need a way to interface with it. This is where the iPod breakout board comes in. You can buy it from Sparkfun <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8295" target="_blank">here</a>. You can chose to solder wires straight into it or put some <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=115" target="_blank">headers</a> on it so you can change them around. If the breakout board seems too big for your final project you can use the <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=704" target="_blank">iPod connector instead</a> but I don&#8217;t recommend this for beginners to soldering since the pins are tiny.</p>
<p>You will also need an Arduino connected to your computer, a breadboard (optional), some wire and wirestrippers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anaiid.com/code/2009/07/01/to-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPod code online</title>
		<link>http://www.anaiid.com/code/2009/06/30/ipod-code-online/</link>
		<comments>http://www.anaiid.com/code/2009/06/30/ipod-code-online/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 19:46:17 +0000</pubDate>
		<dc:creator>anaid</dc:creator>
				<category><![CDATA[ipod & arduino]]></category>

		<guid isPermaLink="false">http://www.anaiid.com/code/?p=21</guid>
		<description><![CDATA[Adrian Game&#8217;s iPod Accessory Serial Protocol page and iPod Linux have great information on the commands and the structure used to send instructions to iPod. This is not Arduino specific. Rosie Daniel&#8217;s blog has information on controlling the iPod remote with Arduino. This is great if you&#8217;re wanting to use the &#8220;basic&#8221; iPod functionalities, namely [...]]]></description>
			<content:encoded><![CDATA[<p>Adrian Game&#8217;s <a href="http://www.adriangame.co.uk/ipod-acc-pro.html" target="_blank">iPod Accessory Serial Protocol page</a> and <a href="http://ipodlinux.org/wiki/Apple_Accessory_Protocol#iPod_Remote_.28Mode_2.29" target="_blank">iPod Linux</a> have great information on the commands and the structure used to send instructions to iPod. This is not Arduino specific.</p>
<p><a href="http://www.rosiedaniel.com/2008/08/ipod-remotes-step-by-step.html" target="_blank">Rosie Daniel&#8217;s blog</a> has information on controlling the iPod remote with Arduino. This is great if you&#8217;re wanting to use the &#8220;basic&#8221; iPod functionalities, namely play/pause, next, previous, volume up, and volume down.</p>
<p>The instructions from the Arduino to the iPod are all going to happen in hexadecimal so you might want to familiarize yourself with the way it works. This <a href="http://home2.paulschou.net/tools/xlate/" target="_blank">translator</a> often helped me put the instructions into perspective.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anaiid.com/code/2009/06/30/ipod-code-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

