<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPC MicrocontrollersのトピックRe: Computation of temperature using Temp Sensor Lm35 with LPC1768</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Computation-of-temperature-using-Temp-Sensor-Lm35-with-LPC1768/m-p/521994#M4630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Irappa on Tue Sep 10 05:49:12 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please send me code i will work with LPC1769.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:53:22 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:53:22Z</dc:date>
    <item>
      <title>Computation of temperature using Temp Sensor Lm35 with LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Computation-of-temperature-using-Temp-Sensor-Lm35-with-LPC1768/m-p/521990#M4626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by newbie on Sat Aug 17 02:24:34 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have connected a LM35 to ADC channel 1 of LPC1768. getting a value of 306(adc reading). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vref =5V &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For 12 bit ADC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Step size = 5V/4096=1.22mV&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to calculate the output voltage.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vout in mV = adc_reading*Step size&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; = 306*1.22mV= 373.32mV&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LM35 sensor gives an output of 10mV for every 1 degree centigrade.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so the measured temperature is = 373.32/10= 37 degree centigrade&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But bangalore's(Today's temp -17/08/2013) temperature reading is 29 degree centigrade. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Referred Mazidi's AVR Microcontroller and Embedded Systems book, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The digital output from ADC is calculated by the below formula&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vout = analog input voltage/step size&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if Vout is calculated with the above formula then o/p voltage is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vout = 306/1.22=250.819mV&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Voltage to temperature conversion = 250.819mV/10mV = 25.08 degree centigrade.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unable to figure out what is right. Kindly help. Sorry for this silly question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also connected an LDR to ADC channel 0 of LPC1768. Calculated the measured output voltage&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vout = adc_reading*step size.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for adc_reading = 55-&amp;gt; vout = 0.064713&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;adc_reading = 3245-&amp;gt; vout = 3.962149&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;adc_reading = 4095-&amp;gt; vout = 4.999995&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;May be you experts can throw some light on this. confused as to why i am unable to get the right temperature as per my city.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:53:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Computation-of-temperature-using-Temp-Sensor-Lm35-with-LPC1768/m-p/521990#M4626</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Computation of temperature using Temp Sensor Lm35 with LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Computation-of-temperature-using-Temp-Sensor-Lm35-with-LPC1768/m-p/521991#M4627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wmues on Sat Aug 17 04:00:07 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is Vref = 5V inside the valid voltage range?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you check with Vref = 3V3?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe you have an offset error? Measure an input which is connected to ground.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wolfgang&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:53:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Computation-of-temperature-using-Temp-Sensor-Lm35-with-LPC1768/m-p/521991#M4627</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Computation of temperature using Temp Sensor Lm35 with LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Computation-of-temperature-using-Temp-Sensor-Lm35-with-LPC1768/m-p/521992#M4628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Paul on Tue Aug 20 07:38:00 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As Wolfgang has suggested, it looks like you are operating outside the valid voltage range of the ADC in the LPC1768.&amp;nbsp; The maximum voltage on VREFP is VDDA.&amp;nbsp; VDDA is specified to be 3.6V max (see Table 7 in the data sheet).&amp;nbsp; You should also limit the voltage on the ADC inputs to VDDA (see Table 18 in the data sheet).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Operating outside the device specification may damage the device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Paul&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:53:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Computation-of-temperature-using-Temp-Sensor-Lm35-with-LPC1768/m-p/521992#M4628</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Computation of temperature using Temp Sensor Lm35 with LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Computation-of-temperature-using-Temp-Sensor-Lm35-with-LPC1768/m-p/521993#M4629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by newbie on Fri Aug 23 08:55:37 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for pointing the mistake. I had used 5V instead of 3V3. Now getting the right temperature. Thanks again wmues and NXP_Paul.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:53:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Computation-of-temperature-using-Temp-Sensor-Lm35-with-LPC1768/m-p/521993#M4629</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Computation of temperature using Temp Sensor Lm35 with LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Computation-of-temperature-using-Temp-Sensor-Lm35-with-LPC1768/m-p/521994#M4630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Irappa on Tue Sep 10 05:49:12 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please send me code i will work with LPC1769.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:53:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Computation-of-temperature-using-Temp-Sensor-Lm35-with-LPC1768/m-p/521994#M4630</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Computation of temperature using Temp Sensor Lm35 with LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Computation-of-temperature-using-Temp-Sensor-Lm35-with-LPC1768/m-p/521995#M4631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by beetty glvz on Mon Mar 17 13:46:13 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt; how do you get the factor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vref =5V &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For 12 bit ADC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Step size = 5V/4096=1.22mV&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to calculate the output voltage.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vout in mV = adc_reading*Step size&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;= 306*1.22mV= 373.32mV&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:53:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Computation-of-temperature-using-Temp-Sensor-Lm35-with-LPC1768/m-p/521995#M4631</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:53:23Z</dc:date>
    </item>
  </channel>
</rss>

