<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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/"><channel><title>I keep receiving 0 from one of lm35 sensors</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/47945/i-keep-receiving-0-from-one-of-lm35-sensors</link><description> Hello everyone, I&amp;#39;m trying to read the temperature of two LM35 sensors and send them to my phone using HC06 bluetooth module. I&amp;#39;ve successfully received the temperature of one the sensors on my phone, but when I added the second sensor I received only</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: I keep receiving 0 from one of lm35 sensors</title><link>https://community.arm.com/thread/168403?ContentTypeID=1</link><pubDate>Sat, 31 Oct 2020 15:03:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3ce2df38-9fc3-420b-abea-5b25020fd50a</guid><dc:creator>Ali_Kermani </dc:creator><description>&lt;p&gt;The sensor by the way gives the correct voltage and I swapped those two sensors, so I believe the sensors work fine too&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I keep receiving 0 from one of lm35 sensors</title><link>https://community.arm.com/thread/168401?ContentTypeID=1</link><pubDate>Sat, 31 Oct 2020 15:01:11 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1519761e-c62d-43f5-a8b8-268b2ed25ed9</guid><dc:creator>Ali_Kermani </dc:creator><description>&lt;p&gt;Thanks for the answer. As I said&amp;nbsp; I realized in the debug mode that I receive zero from one of the ADC channels when they are working together before receiving them by my phone app. So I believe that I receive zero from the ADC&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I keep receiving 0 from one of lm35 sensors</title><link>https://community.arm.com/thread/168398?ContentTypeID=1</link><pubDate>Sat, 31 Oct 2020 14:55:37 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:65095a16-a87c-4927-ae07-e6e2c959621d</guid><dc:creator>Andy Neil</dc:creator><description>[quote userid="66048" url="~/developer/tools-software/tools/f/keil-forum/47945/i-keep-receiving-0-from-one-of-lm35-sensors"] I keep receiving 0 from the second sensor[/quote]
&lt;p&gt;It&amp;#39;s an analogue sensor - are you saying that it&amp;#39;s giving a zero output?&lt;/p&gt;
&lt;p&gt;Or, as&amp;nbsp;&lt;a href="/members/sillfsxa" class="internal-link view-user-profile"&gt;SillFsxa&lt;/a&gt;&amp;nbsp;suggests, do you mean that you are getting a zero reading from the ADC?&lt;/p&gt;
&lt;p&gt;Or, if the ADC is reading OK, maybe it&amp;#39;s getting &amp;quot;lost&amp;quot; somewhere in the Bluetooth transmission or the phone app?&lt;/p&gt;
&lt;p&gt;It&amp;#39;s really important to learn to think about these things, and track down what is happening, and where.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;a href="https://www.avrfreaks.net/comment/2418156#comment-2418156" rel="noopener noreferrer" target="_blank"&gt;How To Debug&lt;/a&gt;.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I keep receiving 0 from one of lm35 sensors</title><link>https://community.arm.com/thread/168397?ContentTypeID=1</link><pubDate>Sat, 31 Oct 2020 14:13:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9f6a96b8-05b9-4366-95e6-2258f35b0d21</guid><dc:creator>Ali_Kermani </dc:creator><description>&lt;p&gt;Thank you, I&amp;#39;ll give that a try&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I keep receiving 0 from one of lm35 sensors</title><link>https://community.arm.com/thread/168396?ContentTypeID=1</link><pubDate>Sat, 31 Oct 2020 13:52:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2f97f15b-239b-42ec-9252-f017bcbef2f9</guid><dc:creator>SillFsxa</dc:creator><description>&lt;p&gt;I&amp;#39;m not familiar with this MCU so I skipped reading your code, but it sounds like you haven&amp;#39;t enabled the scanning of the ADC channels. There should be something like scanning of the ADC channels that you might have forgotten to enable it. Read the reference manual carefully.&amp;nbsp;Find a register that sets the ADC to get the data for all channels.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>