<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Decoding IR-signals, what is the best approach?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15009/decoding-ir-signals-what-is-the-best-approach</link><description>Hello, I have to implement infrared sending and receiving of a modulated signal in pre-existing code. 
 I have managed to implement infrared sending thanks to the ble_app_uart_IR.zip -example that Torbj&amp;#248;rn &amp;#216;vrebekk made available in this post. 
 The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Sep 2016 05:01:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15009/decoding-ir-signals-what-is-the-best-approach" /><item><title>RE: Decoding IR-signals, what is the best approach?</title><link>https://devzone.nordicsemi.com/thread/57266?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 05:01:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23ac485d-f933-4753-8d25-7ba52ae50a5f</guid><dc:creator>Tushar</dc:creator><description>&lt;p&gt;Hi All, I also managed to implement infrared sending thanks to the ble_app_uart_IR.zip-example that Torbjørn Øvrebekk made available in this post. Is it running to 38Khz frequency ? Because data I am getting is correct receiver side, still I am not able to act on IR device correctly.Please help me out. Thanks. Also please tell how to change frequency with change of prescaler with IR_CARRIER_LOW_US &amp;amp; IR_CARRIER_HIGH_US value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decoding IR-signals, what is the best approach?</title><link>https://devzone.nordicsemi.com/thread/57265?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 08:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63042bc7-0948-4b34-877f-3d1cd67a3756</guid><dc:creator>Martin Sivertsen</dc:creator><description>&lt;p&gt;Thank you. We managed to create a decoder using the &lt;a href="https://devzone.nordicsemi.com/attachment/3c83ef6ff922768b05292b96593ac99d"&gt;frequency_counter&lt;/a&gt;-example from &lt;a href="https://devzone.nordicsemi.com/question/48293/how-to-use-timer1-capture-function/"&gt;this&lt;/a&gt; post and modifying it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decoding IR-signals, what is the best approach?</title><link>https://devzone.nordicsemi.com/thread/57264?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2016 10:28:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cd9383f-d3a2-43e2-a408-19421cd16f78</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In general your receiver circuit will filter out the 38 kHz (or so) pulse, so what is left is detecting the digital signal.&lt;/p&gt;
&lt;p&gt;On the nRF52 you have access to two timers, one based on the HFCLK called TIMER and one based on the LFCLK called RTC or App timer. The LFCLK is the more energy efficient of the two.&lt;/p&gt;
&lt;p&gt;For the applciation timer we have a tutorial available &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In this post you can find some &lt;a href="https://devzone.nordicsemi.com/question/76996/nrf52-1-4-mhz-clock-needed/"&gt;simple code&lt;/a&gt; on using PPI and TIMER to generate constant 4 MHz output.&lt;/p&gt;
&lt;p&gt;Essentially you need to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Trigger/start a timer on positive edge&lt;/li&gt;
&lt;li&gt;Read the timer on negative edge&lt;/li&gt;
&lt;li&gt;Decode the information in accordance with the IR protocol&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The most energy efficient way of doing this is using the RTC (possibly through app timer) along with PPI. Consult the infocenter on &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/ppi.html?cp=2_2_0_21#concept_sxf_21l_1s"&gt;PPI&lt;/a&gt; and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/rtc.html?cp=2_2_0_24#concept_rvn_vkj_sr"&gt;RTC&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>