<?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>Removing noise from TSOP1738 IR Receiver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21110/removing-noise-from-tsop1738-ir-receiver</link><description>I am trying to implement IR reception using TSOP1738, more specifically Vishay&amp;#39;s SM0038. 
 I have set the GPIO pin to call an interrupt whenever there is any change in the GPIO pin. The problem is that, the TSOP generates some random pulse and so, the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Apr 2017 08:46:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21110/removing-noise-from-tsop1738-ir-receiver" /><item><title>RE: Removing noise from TSOP1738 IR Receiver</title><link>https://devzone.nordicsemi.com/thread/82585?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 08:46:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43386bd9-273b-4750-b1d4-ed43ae0de372</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello Insaf&lt;/p&gt;
&lt;p&gt;In the datasheet for the TSOP1738 there is a recommended reference schematic where a 4.7 uF capacitor and a 100 ohm resistor is included to reduce power supply disturbances. I would recommend you try adding the components to try to filter out the unwanted pulses you are seeing.&lt;/p&gt;
&lt;p&gt;Normal GPIO pins are not level sensitive beyond sensing level high or low, for this you would have to use a comparator to trigger at a certain voltage level, or use an ADC and analyze its results.&lt;/p&gt;
&lt;p&gt;Another possibility, if the random pulses have a short duration, is to use the GPIO to trigger a timer with a duration longer than the random pulses. Then make a second check of the GPIO level. If the GPIO level is still high after the timer expires, you can assume it is a real transmission pulse. This would be similar to how a button debounce would function.
The datasheet for the TSOP1738 contains information on valid pulse durations you can use as reference.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jørn Frøysa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>