<?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>Battery volatge Problem  in nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25701/battery-volatge-problem-in-nrf51822</link><description>hi, In my setup, I have a 3.7 V battery divided down to the bandgap range using a 100k and 100k resistors, so the voltage at the ADC input is 3.7 * (100/200) = 1.85 V. I am getting constant high voltage. can any suggest me plz? Details of the code given</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 07 Oct 2017 19:46:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25701/battery-volatge-problem-in-nrf51822" /><item><title>RE: Battery volatge Problem  in nrf51822</title><link>https://devzone.nordicsemi.com/thread/101242?ContentTypeID=1</link><pubDate>Sat, 07 Oct 2017 19:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbb33944-8afe-4e0d-8e60-7c870636280c</guid><dc:creator>Rahul Sahu</dc:creator><description>&lt;p&gt;Hi john,
I have gone through the link sent by you... I have changed the adc configuration and it&amp;#39;s working now.
Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery volatge Problem  in nrf51822</title><link>https://devzone.nordicsemi.com/thread/101241?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2017 15:56:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b0d66f3-0f56-4d66-9801-b0bea5959df1</guid><dc:creator>Rahul Sahu</dc:creator><description>&lt;p&gt;Thanks John..I will check it and update you the result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery volatge Problem  in nrf51822</title><link>https://devzone.nordicsemi.com/thread/101240?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2017 06:41:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f7bb3a8-b48b-47e9-b8f5-6ace37aa4660</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello Rahul Sahu&lt;/p&gt;
&lt;p&gt;You have set your prescaling to 1 and your reference to VDD/2. If you see table 311, page 165 of the nRF51 series &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.1.pdf"&gt;reference manual&lt;/a&gt; you will see that with those settings the ADC will have a range of 0-1.5 V. Your battery voltage is therefore outside the ADC&amp;#39;s range and the result will always return as maximum. You will either have to change the ADC settings, or reduce the AIN voltage. I recommend you read &lt;a href="https://devzone.nordicsemi.com/blogs/30/measuring-lithium-battery-voltage-with-nrf51/"&gt;this blogpost&lt;/a&gt; for guidance on battery measurements using the ADC of the nRF51.&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>