<?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>%XVBAT Accuracy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43730/xvbat-accuracy</link><description>We&amp;#39;re looking to use the nRF91 to measure the LiPo battery voltage to determine battery health. We would want to know what the accuracy and range of %XVBAT is. Looking at the module, it is either able to use 0.6V as a reference or VDD / 4 as a reference</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Feb 2019 13:00:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43730/xvbat-accuracy" /><item><title>RE: %XVBAT Accuracy</title><link>https://devzone.nordicsemi.com/thread/171391?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 13:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54b88c68-a9c2-4ef3-bbd3-54502cfd4d04</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Correction&lt;/strong&gt;: Using the&amp;nbsp;&lt;span&gt;%XVBAT command, measuring battery voltage up to 5.5V is supported.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Max input on GPIOs is VDD_GPIO, meaning upper voltage is limited to this when using the SAADC. Currently the documentation is not correct with regards to this, and this is to be fixed. Note that for engineering revisions, &lt;a href="https://www.nordicsemi.com/DocLib/Content/Errata/nRF9160_EngA/latest/ERR/nRF9160/EngineeringA/latest/anomaly_160_16"&gt;errata 16&lt;/a&gt; applies.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: %XVBAT Accuracy</title><link>https://devzone.nordicsemi.com/thread/171254?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 22:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffbee2a5-d717-46fa-9cfb-dce5d3a11dc8</guid><dc:creator>awneil</dc:creator><description>[quote userid="77324" url="~/f/nordic-q-a/43730/xvbat-accuracy/171235"]It doesn&amp;#39;t quite answer my question.[/quote]
&lt;p&gt;True.&lt;/p&gt;
&lt;p&gt;The point is that&amp;nbsp;the whole idea of using battery voltage to gauge remaining capacity is deeply flawed - so&amp;nbsp;you may be better pursuing a better approach rather than messing about with trying to perfect the voltage reading ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: %XVBAT Accuracy</title><link>https://devzone.nordicsemi.com/thread/171235?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 20:13:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9e73a42-94c2-4941-8203-a8d78af6a854</guid><dc:creator>ProfHindsight</dc:creator><description>&lt;p&gt;Thank you for the quick response awneil!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t quite answer my question. The nRF91 is able to take an input voltage of 3.0 - 5.5 on the VDD pin. The LiPo battery will have a range of roughly 3.3 - 4.5V.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The AT command in question can be found under section 4.23 of nrf91_at_commands_v0.7&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The full-scale resolution note of 3.6V is found in section 6.12.8 of nRF9160_OPS_v0.7.1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;One question is whether VDD as referenced by the SAADC is VDD, VDD_GPIO, or some other internal regulator on the nRF91.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We currently have the STC3117 in the design but testing it has showed it to be not that accurate in current-voltage mode and the voltage mode seems to measure the voltage and compare against a lookup table. It&amp;#39;s possible it does more calculations under the hood - we would include both methods in the design and run a comparison.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: %XVBAT Accuracy</title><link>https://devzone.nordicsemi.com/thread/171233?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 19:54:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3af92d98-ebbc-44dc-ba95-58796ca4169b</guid><dc:creator>awneil</dc:creator><description>[quote userid="77324" url="~/f/nordic-q-a/43730/xvbat-accuracy"]measure the LiPo battery voltage to determine battery health[/quote]
&lt;p&gt;See:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/43707/calculating-battery-remaining-capacity/171088#171088"&gt;devzone.nordicsemi.com/.../171088&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>