<?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>Adc pin getting different results in during charging of board.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64854/adc-pin-getting-different-results-in-during-charging-of-board</link><description>Hi, I am working with custom board in that, trying to read NTC sensor value using 2 (NTC+ and NTC-) ADC pins. Applied Steinhart formula to convert temperature. In that, After charging board unplugged and trying to read then, I am getting it&amp;#39;s 37,36 value</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Aug 2022 07:16:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64854/adc-pin-getting-different-results-in-during-charging-of-board" /><item><title>RE: Adc pin getting different results in during charging of board.</title><link>https://devzone.nordicsemi.com/thread/384047?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 07:16:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d66d912-bf15-4e60-81d9-56743cbf4357</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Zuhaib,&lt;br /&gt;&lt;br /&gt;This case is over 2 years old so I think the chance for an answer from the original poster is very low. If you require technical support, or have any issues with your setup then I highly recommend that you create a new ticket to ask about this instead :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open a new ticket for your inquiry.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adc pin getting different results in during charging of board.</title><link>https://devzone.nordicsemi.com/thread/383634?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 10:18:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d747d594-eaee-4619-a837-94a1d684f205</guid><dc:creator>zuhaib</dc:creator><description>&lt;p&gt;can you let me know about the correct schematic&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adc pin getting different results in during charging of board.</title><link>https://devzone.nordicsemi.com/thread/268428?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 08:08:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f209f76-2d8b-419c-aa12-1087aaa000ea</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="jpatel"]Sorry for the late. Now, I am getting value from ADC.&lt;br /&gt;The problem was the wrong&amp;nbsp;Schematic.&lt;br /&gt;So, I have discussed with the client and after providing a new schematic In that, I am able to read the value.[/quote]
&lt;p&gt;No worries at all, I am happy that you were able to resolve your issue!&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open a new ticket if you should encounter any issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adc pin getting different results in during charging of board.</title><link>https://devzone.nordicsemi.com/thread/268390?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 04:28:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7ae7002-9df8-4798-a5fa-b63906b4047d</guid><dc:creator>jaimin</dc:creator><description>&lt;p&gt;Thanks, Karl,&lt;/p&gt;
&lt;p&gt;Sorry for the late. Now, I am getting value from ADC.&lt;br /&gt;The problem was the wrong&amp;nbsp;Schematic.&lt;br /&gt;So, I have discussed with the client and after providing a new schematic In that, I am able to read the value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adc pin getting different results in during charging of board.</title><link>https://devzone.nordicsemi.com/thread/265230?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 07:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47a7c197-64c7-42ec-8b09-66122b47eb2a</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="jpatel"]Band has single NTC sensor with 2 input NTC+ and NTC-. I am trying to read both pin based on analog pin Ain1 and Ain2 and difference out that value.&lt;br /&gt;&lt;br /&gt;In that has this NTC :&lt;a href="http://www.semitec.co.jp/english/products/thermo/thermistor/et/#anc-et"&gt;http://www.semitec.co.jp/english/products/thermo/thermistor/et/#anc-et&lt;/a&gt;&lt;br /&gt;part no:&amp;nbsp;&lt;span&gt;503ET-3H&lt;/span&gt;[/quote]
&lt;p&gt;Thank you for clarifying.&lt;/p&gt;
[quote user="jpatel"]I have brought band from one of company. with that provided firmware sensor is works .So, i don&amp;#39;t think hardware connection issue.But it&amp;#39;s maybe possible configuration of the SAADC issue.[/quote]
&lt;p&gt;This sounds like it could indeed be the SAADC configuration who is wrong, and not the hardware connections.&lt;/p&gt;
[quote user="jpatel"]Ok i wil check and update you results.I will check one by one channel voltage and based on that will verify resistance value.[/quote]
&lt;p&gt;Great!&lt;br /&gt;From the datasheet you linked it seems like you should be able to see a voltage drop corresponding to ~50k Ohm resistance at 25 C if the raw measurements are correct.&lt;br /&gt;I look forward to hearing the results of the test!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adc pin getting different results in during charging of board.</title><link>https://devzone.nordicsemi.com/thread/265181?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 16:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a682d4a7-25e5-4102-9eca-bcdaa714fcb9</guid><dc:creator>jaimin</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/64854/adc-pin-getting-different-results-in-during-charging-of-board/265149"]Just so I have understood you correctly: are you using two NTC with single ended inputs, or a single NTC sensor with differential input?&lt;br /&gt;I.e are you looking at the difference in temperature between two points, or are you attempting to measure temperature at two different locations?[/quote]
&lt;p&gt;Band has single NTC sensor with 2 input NTC+ and NTC-. I am trying to read both pin based on analog pin Ain1 and Ain2 and difference out that value.&lt;br /&gt;&lt;br /&gt;In that has this NTC :&lt;a href="http://www.semitec.co.jp/english/products/thermo/thermistor/et/#anc-et"&gt;http://www.semitec.co.jp/english/products/thermo/thermistor/et/#anc-et&lt;/a&gt;&lt;br /&gt;part no:&amp;nbsp;&lt;span&gt;503ET-3H&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/64854/adc-pin-getting-different-results-in-during-charging-of-board/265149"]So, it seems either the hardware connection to the NTC is not correct, or the configuration of the SAADC to measure the NTC is incorrect.&lt;br /&gt;Do you have the datasheet of the NTC sensor, so that you may verify that connections between your sensor and your nRF is correct?[/quote]
&lt;p&gt;I have brought band from one of company. with that provided firmware sensor is works .So, i don&amp;#39;t think hardware connection issue.But it&amp;#39;s maybe possible configuration of the SAADC issue.&lt;br /&gt;Yes,I have datasheet.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/64854/adc-pin-getting-different-results-in-during-charging-of-board/265149"].e if you on channel 0 sample close to 3 V, then the thermistors resistance must be zero which corresponds to some reasonable temperature level. These are all random numbers, but could you see if you are able to read this out, to verify whether the results coming out of the SAADC are correct or not?&lt;br /&gt;If we could verify that these results are reasonable, then we may move on to debugging the Steinhart forumla implementation.[/quote]
&lt;p&gt;Ok i wil check and update you results.I will check one by one channel voltage and based on that will verify resistance value.&lt;br /&gt;&lt;br /&gt;Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adc pin getting different results in during charging of board.</title><link>https://devzone.nordicsemi.com/thread/265149?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 14:15:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d3ae2ac-045e-471c-a363-e0b6464c97be</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="jpatel"]No, Karl, I have just searched in the browser and found a formula to read the NTC temperature using&amp;nbsp;steinhart and I have applied that. Below link for formula.[/quote]
&lt;p&gt;I see. I am not familiar with this module and repository, but it seems to account for the resolution of the SAADC, so I suppose it is meant to receive raw saadc output.&lt;/p&gt;
[quote user="jpatel"]Ok but, I have check AIN1 and AIN2, raw AADC&amp;nbsp;value not getting vary based on temperature.&lt;br /&gt;I have tried to print Buff[0] and Buff[1] raw value of SAADC for AIN1 and AIN2 but that value not changed.&amp;nbsp; I provided high or low&amp;nbsp;heat using flashlight&amp;nbsp;on&amp;nbsp;the sensor&amp;nbsp;to check the raw value of Ain pin but that not changed getting fixed value buff[0] = 700 and buff[1] = 350 around values.[/quote]
&lt;p&gt;&amp;nbsp;Just so I have understood you correctly: are you using two NTC with single ended inputs, or a single NTC sensor with differential input?&lt;br /&gt;I.e are you looking at the difference in temperature between two points, or are you attempting to measure temperature at two different locations?&lt;/p&gt;
[quote user="jpatel"]So, I think&amp;nbsp; ADC was not configured properly. To verify that, I have just change Ntc to battery voltage AIN pin and In that, I have to see Raw value changed based on increased or decreased battery voltage. So, Adc is fine.[/quote]
&lt;p&gt;So, it seems either the hardware connection to the NTC is not correct, or the configuration of the SAADC to measure the NTC is incorrect.&lt;br /&gt;Do you have the datasheet of the NTC sensor, so that you may verify that connections between your sensor and your nRF is correct?&lt;/p&gt;
[quote user="jpatel"]as I think at least Raw value needs to be changed based on temperature vary but not here.&amp;nbsp;&amp;nbsp;And I have a third party band and in that, I am trying to read the temperature.&lt;br /&gt;In third party firmware, and in that temperature also vary based on&amp;nbsp;heat. So, I think problem only with me.[/quote]
&lt;p&gt;It could be that your connections to the sensor differ from what the manufacturer had intended.&lt;br /&gt;To rule out the possibility that it is just the Steinhart forumla that is incorrectly implemented, could you write out the actual measured Voltage level for each of the channel, and see if that fits with the resistance curve in the datasheet?&lt;br /&gt;I.e if you on channel 0 sample close to 3 V, then the thermistors resistance must be zero which corresponds to some reasonable temperature level. These are all random numbers, but could you see if you are able to read this out, to verify whether the results coming out of the SAADC are correct or not?&lt;br /&gt;If we could verify that these results are reasonable, then we may move on to debugging the Steinhart forumla implementation.&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adc pin getting different results in during charging of board.</title><link>https://devzone.nordicsemi.com/thread/264971?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 04:51:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4801aa6-1235-49b4-bb5d-4e2071e90365</guid><dc:creator>jaimin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/64854/adc-pin-getting-different-results-in-during-charging-of-board/264891"]I would not think that you could do this. Are you sure this is the right way to go?&lt;br /&gt;[/quote]
&lt;p&gt;No, Karl, I have just searched in the browser and found a formula to read the NTC temperature using&amp;nbsp;steinhart and I have applied that. Below link for formula.&lt;br /&gt;&lt;a href="https://github.com/panStamp/thermistor/blob/master/thermistor.cpp"&gt;https://github.com/panStamp/thermistor/blob/master/thermistor.cpp&amp;nbsp;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/64854/adc-pin-getting-different-results-in-during-charging-of-board/264891"]You can uses the&amp;nbsp;&lt;em&gt;ADC_RESULT_IN_MILLI_VOLTS&amp;nbsp;&lt;/em&gt;macro from the SAADC example to convert the raw SAADC output to millivolts.[/quote]
&lt;p&gt;Ok but, I have check AIN1 and AIN2, raw AADC&amp;nbsp;value not getting vary based on temperature.&lt;br /&gt;I have tried to print Buff[0] and Buff[1] raw value of SAADC for AIN1 and AIN2 but that value not changed.&amp;nbsp; I provided high or low&amp;nbsp;heat using flashlight&amp;nbsp;on&amp;nbsp;the sensor&amp;nbsp;to check the raw value of Ain pin but that not changed getting fixed value buff[0] = 700 and buff[1] = 350 around values.&lt;br /&gt;&lt;br /&gt;So, I think&amp;nbsp; ADC was not configured properly. To verify that, I have just change Ntc to battery voltage AIN pin and In that, I have to see Raw value changed based on increased or decreased battery voltage. So, Adc is fine.&lt;br /&gt;&lt;br /&gt;as I think at least Raw value needs to be changed based on temperature vary but not here.&amp;nbsp;&amp;nbsp;And I have a third party band and in that, I am trying to read the temperature.&lt;br /&gt;In third party firmware, and in that temperature also vary based on&amp;nbsp;heat. So, I think problem only with me.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/64854/adc-pin-getting-different-results-in-during-charging-of-board/264891"]What custom module are you working with?&lt;br /&gt;How is the USB 5V power routed compared to the battery power?[/quote]
&lt;p&gt;No, Idea sir, We brought the band and In that load our custom firmware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adc pin getting different results in during charging of board.</title><link>https://devzone.nordicsemi.com/thread/264891?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 13:24:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad568f61-802a-4a4b-8b15-b4a6b1a6e40c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="jpatel"]thanks for the reply[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="jpatel"]I am direct given the SAADC raw value to the &lt;span&gt;Steinhart&amp;nbsp;&lt;/span&gt;formula.&amp;nbsp;[/quote]
&lt;p&gt;I would not think that you could do this. Are you sure this is the right way to go?&lt;br /&gt;The raw SAADC output will vary greatly based on the SAADC and channel configuration - I can not imagine that the formula accounts / scales for this.&lt;br /&gt;Glancing over&amp;nbsp;the Wikipedia page for&amp;nbsp;&lt;a href="https://en.wikipedia.org/wiki/Steinhart%E2%80%93Hart_equation"&gt;the Steinhart-Hart equation&lt;/a&gt;&amp;nbsp;( if I am not mistaken ) it seems clear to me that you will need to provide the actual resistance value of the thermistors.&lt;br /&gt;You can uses the&amp;nbsp;&lt;em&gt;ADC_RESULT_IN_MILLI_VOLTS&amp;nbsp;&lt;/em&gt;macro from the SAADC example to convert the raw SAADC output to millivolts.&lt;/p&gt;
[quote user="jpatel"]And based on heat not changed value of temperature also.[/quote]
&lt;p&gt;I am sorry, but I do not understand what you mean by this.&lt;/p&gt;
[quote user="jpatel"]If charging a band using USB and the same time if I read value then getting 0 value but after unplugged USB and read then different value of temperature.[/quote]
&lt;p&gt;Is the only difference whether you connect a USB or not? This does indeed sound strange.&lt;br /&gt;What custom module are you working with?&lt;br /&gt;How is the USB 5V power routed compared to the battery power?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adc pin getting different results in during charging of board.</title><link>https://devzone.nordicsemi.com/thread/264841?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 11:26:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e0417df-f0aa-4678-98e2-60344a94f44a</guid><dc:creator>jaimin</dc:creator><description>&lt;p&gt;Hi, Karl thanks for the reply,&lt;br /&gt;&lt;br /&gt;I have a wrist band and that has an NTC sensor and NTC+&amp;nbsp; and NTC- are given in AIN1 and AIN2 (NRF52832), and charge band using USB(5V). I have attached the NTC screenshot here.&lt;br /&gt;I have read the SAADC data and applied steinhart formula.&lt;br /&gt;I have attached the file for code.&lt;br /&gt;If charging a band using USB and the same time if I read value then getting 0 value but after unplugged USB and read then different value of temperature.&lt;br /&gt;I am direct given the SAADC raw value to the &lt;span&gt;Steinhart&amp;nbsp;&lt;/span&gt;formula.&amp;nbsp;&lt;br /&gt;And based on heat not changed value of temperature also.&lt;br /&gt;Please suggest I am in the right direction or not?&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/NTC.PNG" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/11830.main.c"&gt;devzone.nordicsemi.com/.../11830.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adc pin getting different results in during charging of board.</title><link>https://devzone.nordicsemi.com/thread/264828?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 10:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4535805-889f-4aef-9314-197a6cdbd846</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]I am working with custom board in that, trying to read NTC sensor value using 2 (NTC+ and NTC-) ADC pins.[/quote]
&lt;p&gt;I understand that you are using a differential NTC sensor to measure temperature, so far so good.&lt;br /&gt;Is it a particular NTC sensor you are working with, do you have its data sheet?&lt;/p&gt;
[quote user=""]After charging board unplugged and trying to read then, I am getting it&amp;#39;s 37,36 value of temperature. But during charging It&amp;#39;s I am getting 0 temperature value.[/quote]
&lt;p&gt;Here things get a little more unclear. Could you please elaborate what you mean when you say &amp;quot;during charging&amp;quot; here, do you mean when the board is powered by USB as opposed to the coin cell battery, or what?&lt;br /&gt;Which pins are you using for the measurements, and what is your SAADC and Channel&amp;#39;s configuration? If you could provide a schematic or other document to indicate how you have connected your custom board with the NTC sensors, that would be helpful.&lt;br /&gt;Please use the &amp;quot;Insert -&amp;gt; Code&amp;quot; option if you are going to share code.&lt;/p&gt;
[quote user=""]I have see during charging adc pin of (ntc+) = -2 around value and (Ntc-) = around 50 value get.&lt;br /&gt;After charging unplugged and checked in that (ntc+) = 700 around and (ntc-) = 350 around value I am getting.&lt;br /&gt;I have applied SAADC code from example/peripheral and configuration is internal reference voltage 0.6 and gain 1/6.&lt;br /&gt;And Input charging is 5V. I don&amp;#39;t know why I am getting 0 during Charging mode.&lt;br /&gt;Can you please help?[/quote]
&lt;p&gt;I am not sure I have understood the situation you refer to when you say that you are charging, but seeing as you mention 5 V input when charging I suspect that you refer to the board being powered by USB?&lt;/p&gt;
[quote user=""]Applied Steinhart formula to convert temperature.[/quote]
&lt;p&gt;Are you first converting your samples to voltages, before inputting them to the Steinhart forumla? Or, are you providing the steinhart forumla with raw SAADC outputs?&lt;br /&gt;&lt;br /&gt;Looking forward to resolve this issue together,&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>