<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Infrared remote control receiver for Arduino</title>
	<atom:link href="http://www.5volt.eu/archives/14/feed" rel="self" type="application/rss+xml" />
	<link>http://www.5volt.eu/archives/14</link>
	<description>A mean to organize, document and share some of the things I do</description>
	<lastBuildDate>Mon, 01 Mar 2010 11:05:01 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: admin</title>
		<link>http://www.5volt.eu/archives/14/comment-page-1#comment-366</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 19 Feb 2010 09:21:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.5volt.eu/archives/14#comment-366</guid>
		<description>Thanks for sharing, Tom.
I&#039;m Happy this could help.
Best regards
A.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing, Tom.<br />
I&#8217;m Happy this could help.<br />
Best regards<br />
A.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://www.5volt.eu/archives/14/comment-page-1#comment-365</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Thu, 18 Feb 2010 16:57:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.5volt.eu/archives/14#comment-365</guid>
		<description>THANKS! I&#039;ve been smashing my head against a desk for 3 days trying to get an ATTiny13 to understand any remote codes at all, I&#039;ve modified this one to work! 

Again thanks!</description>
		<content:encoded><![CDATA[<p>THANKS! I&#8217;ve been smashing my head against a desk for 3 days trying to get an ATTiny13 to understand any remote codes at all, I&#8217;ve modified this one to work! </p>
<p>Again thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.5volt.eu/archives/14/comment-page-1#comment-363</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 17 Feb 2010 13:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.5volt.eu/archives/14#comment-363</guid>
		<description>You&#039;re welcome. Thanks for sharing !
Best regards
A.</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome. Thanks for sharing !<br />
Best regards<br />
A.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veli</title>
		<link>http://www.5volt.eu/archives/14/comment-page-1#comment-360</link>
		<dc:creator>Veli</dc:creator>
		<pubDate>Sun, 14 Feb 2010 20:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.5volt.eu/archives/14#comment-360</guid>
		<description>As a beginner I spent a lot of time with the rc5 stack from mikrocontroller.net triying to get it to work as an arduino sketch for a &quot;quick&quot; testing the TSOP4138 on Arduino Diecimila
With your script, at first no LED went on, no serial output, &quot;It cannot be that easy&quot;, I thought, the highlight came with the oldest of my three remote controls (for some generic TV).  It works! :D Thanks a lot.</description>
		<content:encoded><![CDATA[<p>As a beginner I spent a lot of time with the rc5 stack from mikrocontroller.net triying to get it to work as an arduino sketch for a &#8220;quick&#8221; testing the TSOP4138 on Arduino Diecimila<br />
With your script, at first no LED went on, no serial output, &#8220;It cannot be that easy&#8221;, I thought, the highlight came with the oldest of my three remote controls (for some generic TV).  It works! <img src='http://www.5volt.eu/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.5volt.eu/archives/14/comment-page-1#comment-359</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 14 Feb 2010 18:57:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.5volt.eu/archives/14#comment-359</guid>
		<description>The IR receiver should be fine: to the datasheet your receiver is active low, not high. I mean : when 38kHz IR is received the output goes low. The same logic applies to the IR receivers I tried.
Please read the comments and check if any of them helps you, otherwise please return. At this stage I can&#039; t help.
Best regards</description>
		<content:encoded><![CDATA[<p>The IR receiver should be fine: to the datasheet your receiver is active low, not high. I mean : when 38kHz IR is received the output goes low. The same logic applies to the IR receivers I tried.<br />
Please read the comments and check if any of them helps you, otherwise please return. At this stage I can&#8217; t help.<br />
Best regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: on4tux</title>
		<link>http://www.5volt.eu/archives/14/comment-page-1#comment-358</link>
		<dc:creator>on4tux</dc:creator>
		<pubDate>Sat, 13 Feb 2010 17:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.5volt.eu/archives/14#comment-358</guid>
		<description>I&#039;m a real newbie (got my board yesterday :) ) but already playing with RC5 on my mega board. The code is not working, but I&#039;m not sure if it is due to my IR controller (IRM38bl) which is active high? Only if it receives IR, the pulses make it go low.</description>
		<content:encoded><![CDATA[<p>I&#8217;m a real newbie (got my board yesterday <img src='http://www.5volt.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) but already playing with RC5 on my mega board. The code is not working, but I&#8217;m not sure if it is due to my IR controller (IRM38bl) which is active high? Only if it receives IR, the pulses make it go low.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.5volt.eu/archives/14/comment-page-1#comment-349</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 24 Jan 2010 16:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.5volt.eu/archives/14#comment-349</guid>
		<description>Mark,
      Ah, great find ! I&#039;m adding a few lines in the post. I&#039;m not correcting the pde though because I can&#039;t test it now. Still have to understand how it could work on my STK500-Arduino or work for a few interrupts on other reader&#039;s platforms and the Arduino DK compile it regularly.
Again thank you a lot for sharing
&lt;em&gt;A presto&lt;/em&gt; (talk to you soon)
Alessandro</description>
		<content:encoded><![CDATA[<p>Mark,<br />
      Ah, great find ! I&#8217;m adding a few lines in the post. I&#8217;m not correcting the pde though because I can&#8217;t test it now. Still have to understand how it could work on my STK500-Arduino or work for a few interrupts on other reader&#8217;s platforms and the Arduino DK compile it regularly.<br />
Again thank you a lot for sharing<br />
<em>A presto</em> (talk to you soon)<br />
Alessandro</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Arduino</title>
		<link>http://www.5volt.eu/archives/14/comment-page-1#comment-348</link>
		<dc:creator>Mark Arduino</dc:creator>
		<pubDate>Sun, 24 Jan 2010 12:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.5volt.eu/archives/14#comment-348</guid>
		<description>Hi Alessandro,

Thanks for replying.
Been doing a little more digging and it seems that this may be a porting issue between the ATtiny24 and the ATmega168/328.

For the ATmega168/328, the timer compare vector is defined as &quot;TIMER0_COMPA_vect&quot; and not &quot;TIM0_COMPA_vect&quot;.

When an interrupt is received and no ISR can be found, the device will reset. I think this explains some of the issues others such as CaviaR and Matt Baker have been seeing.

Mark.</description>
		<content:encoded><![CDATA[<p>Hi Alessandro,</p>
<p>Thanks for replying.<br />
Been doing a little more digging and it seems that this may be a porting issue between the ATtiny24 and the ATmega168/328.</p>
<p>For the ATmega168/328, the timer compare vector is defined as &#8220;TIMER0_COMPA_vect&#8221; and not &#8220;TIM0_COMPA_vect&#8221;.</p>
<p>When an interrupt is received and no ISR can be found, the device will reset. I think this explains some of the issues others such as CaviaR and Matt Baker have been seeing.</p>
<p>Mark.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.5volt.eu/archives/14/comment-page-1#comment-347</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 24 Jan 2010 10:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.5volt.eu/archives/14#comment-347</guid>
		<description>Ciao Mark,
      great to know you solved the problem, thanks for sharing your solution also !
Your assumption at 1) is correct except that - I&#039;m going by heart here - I&#039;m masking the toggle bit which could be 1 or 0.
You are right also at 2). Just wanted to be the one to decide where and what should loop forever....
Best regards
Alessandro</description>
		<content:encoded><![CDATA[<p>Ciao Mark,<br />
      great to know you solved the problem, thanks for sharing your solution also !<br />
Your assumption at 1) is correct except that &#8211; I&#8217;m going by heart here &#8211; I&#8217;m masking the toggle bit which could be 1 or 0.<br />
You are right also at 2). Just wanted to be the one to decide where and what should loop forever&#8230;.<br />
Best regards<br />
Alessandro</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Arduino</title>
		<link>http://www.5volt.eu/archives/14/comment-page-1#comment-345</link>
		<dc:creator>Mark Arduino</dc:creator>
		<pubDate>Sat, 23 Jan 2010 20:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.5volt.eu/archives/14#comment-345</guid>
		<description>Hi,

Thanks for all the replies.
I have figured out that the problem with the Arduino resetting is that instead of the &quot;TIM0_COMPA_vect&quot; ISR running when the timer match occurs the device was restetting - not sure why yet.

Adding the following line to the top of the code solves the problem :-

ISR_ALIAS(_vector_default, TIM0_COMPA_vect);

A few questions :-

1) Once you have 14 bits - why are you testing the data-word against 0x37C0? Is this to ensure that only RCU&#039;s with address 0 will work? Why are you also masking the top bit of the command code?

2) why do you have the &quot;for(;;)&quot; in the main loop - &quot;loop&quot; is called continually - so do you really need this?

Mark.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for all the replies.<br />
I have figured out that the problem with the Arduino resetting is that instead of the &#8220;TIM0_COMPA_vect&#8221; ISR running when the timer match occurs the device was restetting &#8211; not sure why yet.</p>
<p>Adding the following line to the top of the code solves the problem :-</p>
<p>ISR_ALIAS(_vector_default, TIM0_COMPA_vect);</p>
<p>A few questions :-</p>
<p>1) Once you have 14 bits &#8211; why are you testing the data-word against 0&#215;37C0? Is this to ensure that only RCU&#8217;s with address 0 will work? Why are you also masking the top bit of the command code?</p>
<p>2) why do you have the &#8220;for(;;)&#8221; in the main loop &#8211; &#8220;loop&#8221; is called continually &#8211; so do you really need this?</p>
<p>Mark.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
