<?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>Random thoughts of an overloaded mind &#187; cdr</title>
	<atom:link href="http://blog.amarkulo.com/tag/cdr/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.amarkulo.com</link>
	<description>Yet another technical blog about iOS, Windows, Linux, Arduino and everything else</description>
	<lastBuildDate>Tue, 13 Dec 2011 16:56:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Arduino wired remote code scanner for Alpine</title>
		<link>http://blog.amarkulo.com/arduino-wired-remote-code-scanner-for-alpine</link>
		<comments>http://blog.amarkulo.com/arduino-wired-remote-code-scanner-for-alpine#comments</comments>
		<pubDate>Sun, 22 Nov 2009 23:27:26 +0000</pubDate>
		<dc:creator>amar</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Audio]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[alpine]]></category>
		<category><![CDATA[cdr]]></category>
		<category><![CDATA[codes]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[wired]]></category>

		<guid isPermaLink="false">http://blog.amarkulo.com/?p=238</guid>
		<description><![CDATA[Currently I&#8217;m working on project of interfacing Alpine with Peugeot steering wheel audio controls. I have founded some codes on mp3car.com but not all of them are working on my Alpine CDE-9880R. Because some of them doesn&#8217;t work on my &#8230; <a href="http://blog.amarkulo.com/arduino-wired-remote-code-scanner-for-alpine">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Currently I&#8217;m working on project of interfacing Alpine with Peugeot steering wheel audio controls. I have founded some codes on <a title="Mp3car.com - Need Alpine wired remote control pinout" href="http://www.mp3car.com/vbulletin/input-devices/131147-need-alpine-wired-remote-control-pinout.html#post1314327">mp3car.com</a> but not all of them are working on my <a title="Alpine CDE-9880R" href="http://blog.amarkulo.com/new-toy-alpine-cde-9880r">Alpine CDE-9880R</a>.</p>
<p>Because some of them doesn&#8217;t work on my HU I had first to build Arduino scanner to scan for those missing remote codes.</p>
<p>Although I&#8217;m sending codes as binaries it was easier for me to work with decimals on the serial console and then latter convert them to binary so I have wrote function for that as well.</p>
<p>Because the first part of signal is always the same there was not need to convert it at all, and it&#8217;s stored in variable <strong>iHello</strong>, so the part that is changed is the second part or 3 decimal numbers.</p>
<p>Now because there are <strong>255*255*255 = 16 581 375</strong> possible combinations I had to bring this to some reasonable number otherwise it would take very much time to find right codes so I have limited combinations a bit.</p>
<p>I took the lowest and the highest values from codes from link above for the first and the second decimals, and limited the third one to 2 possible numbers that I&#8217;m sending as finish 85 or 213.</p>
<p>Here are those codes that I have founded working on my HU:</p>
<ol>
<li>87  253   85 ( 01010111  11111101  01010101 ) &#8211; Pause</li>
<li>107 247   85 ( 01101011  11110111  01010101 ) &#8211; Band/ta</li>
<li>111  237   85 ( 01101111  11101101  01010101 ) &#8211; Defeat</li>
<li>119 235   85 ( 01110111  11101011  01010101 ) &#8211; Power</li>
<li>173 238 213 ( 10101101  11101110  11010101 ) &#8211; Mute</li>
<li>183 219   85 ( 10101101  11101110  11010101 ) &#8211; Source</li>
<li>187 218 213 ( 10111011  11011010  11010101 ) &#8211; Next Track</li>
<li>93  250 213 ( 01011101  11111010  11010101 ) &#8211; Previous track</li>
<li>219 214 213 ( 11011011  11010110  11010101 ) &#8211; Volume up</li>
<li>109 246 213 ( 01101101  11110110  11010101 ) &#8211; Volume down</li>
<li>171 239 85 ( 10101011  11101111  01010101 ) &#8211; Folder/memory up</li>
<li>85 255 85   ( 01010101  11111111  01010101 ) &#8211; Folder/Memory down</li>
</ol>
<p>Now because I have IR remote for my HU and defeat is not on it I assume that it&#8217;s possible to find even more codes for it but I didn&#8217;t those so I stopped here where I have everything for my first project.</p>
<p>Here are pictures of the interface that I have built for testing of codes. It consists of 5 buttons which have been assigned different functions and 3.5 mm female audio jack which I use for connection with HU. HU has the same 3.5 mm female jack on the back so I can use regular 3.5mm stereo cable for testing without any modifications on HU or Arduino board.</p>

<a href='http://blog.amarkulo.com/arduino-wired-remote-code-scanner-for-alpine/img_0256-copy' title='IMG_0256 copy'><img width="150" height="150" src="http://blog.amarkulo.com/wp-content/uploads/2009/11/IMG_0256-copy-150x150.jpg" class="attachment-thumbnail" alt="IMG_0256 copy" title="IMG_0256 copy" /></a>
<a href='http://blog.amarkulo.com/arduino-wired-remote-code-scanner-for-alpine/img_0257-copy' title='IMG_0257 copy'><img width="150" height="150" src="http://blog.amarkulo.com/wp-content/uploads/2009/11/IMG_0257-copy-150x150.jpg" class="attachment-thumbnail" alt="IMG_0257 copy" title="IMG_0257 copy" /></a>
<a href='http://blog.amarkulo.com/arduino-wired-remote-code-scanner-for-alpine/img_0258-copy' title='IMG_0258 copy'><img width="150" height="150" src="http://blog.amarkulo.com/wp-content/uploads/2009/11/IMG_0258-copy-150x150.jpg" class="attachment-thumbnail" alt="IMG_0258 copy" title="IMG_0258 copy" /></a>
<a href='http://blog.amarkulo.com/arduino-wired-remote-code-scanner-for-alpine/img_0259-copy' title='IMG_0259 copy'><img width="150" height="150" src="http://blog.amarkulo.com/wp-content/uploads/2009/11/IMG_0259-copy-150x150.jpg" class="attachment-thumbnail" alt="IMG_0259 copy" title="IMG_0259 copy" /></a>
<a href='http://blog.amarkulo.com/arduino-wired-remote-code-scanner-for-alpine/img_0260-copy' title='IMG_0260 copy'><img width="150" height="150" src="http://blog.amarkulo.com/wp-content/uploads/2009/11/IMG_0260-copy-150x150.jpg" class="attachment-thumbnail" alt="IMG_0260 copy" title="IMG_0260 copy" /></a>
<a href='http://blog.amarkulo.com/arduino-wired-remote-code-scanner-for-alpine/img_0261-copy' title='IMG_0261 copy'><img width="150" height="150" src="http://blog.amarkulo.com/wp-content/uploads/2009/11/IMG_0261-copy-150x150.jpg" class="attachment-thumbnail" alt="IMG_0261 copy" title="IMG_0261 copy" /></a>

<p>Here is the Arduino <a class="downloadlink" href="http://blog.amarkulo.com/wp-content/plugins/download-monitor/download.php?id=1" title="Version0.24 downloaded 408 times" >Alpine scanner (408)</a> sketch file with all functions that I have used for scanning, saving and displaying codes on serial console.</p>
<p>Here are the instructions how to use this sketch to find codes.</p>
<ol>
<li>First you need to erase eeprom with erase function to be sure that it&#8217;s clean on the start of scan.</li>
<li>Now comment out function for erase and uncomment function for saving combination on eeprom</li>
<li>Now you are ready for scan, so when you connect Arduino to your HU just press button 4 to start scan</li>
<li>When you see some change on HU you need to press button 4 to stop scan</li>
<li>Using buttons 1 and 3 you can go back or forward to find that combination that you discovered</li>
<li>When you find it you can verify it with button 2 which repeats it again</li>
<li>If that is combination that you are looking fore press button 5 to save it to eeprom</li>
<li>When you have found all combinations that you are interested of connect Arduino to computer and on serial console you will have all combinations that you have found, so copy and paste them in iFounded array</li>
<li>Comment out functions for saving, previous and next button and uncomment functions for import of combinations, sending of previous and next combinations</li>
<li>Now when you power up Arduino press button nr 5 to import combinations and cycle them with buttons 1 or 2 to confirm that you have right combinations saved</li>
</ol>
<p>Now when I have all of the codes needed to control HU I can finish the first project and the post about it is coming soon.</p>
<p>Any comments are welcome.</p>
<hr>
<p><div class="entry-utility">If you don't already have a <a href="http://db.tt/aqrG0tY">Dropbox</a> account then you can create it by clicking on my <a href="http://db.tt/aqrG0tY">affiliate link</a>. You will receive 2GB free account + 250 MB extra and I will receive 250 MB as well. Win-Win :-)</div></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amarkulo.com/arduino-wired-remote-code-scanner-for-alpine/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

