<?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>AAA voltage measurement</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32057/aaa-voltage-measurement</link><description>Hi, 
 
 I&amp;#39;m using a NRF52832. I&amp;#39;m looking to measure the battery voltage. I&amp;#39;m using 2XAAA cells in serie (voltage range between 2V and 3V). 
 Below is the configuration to measure the voltage (To simplify the example, I have voluntarily removed protections</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Mar 2018 18:02:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32057/aaa-voltage-measurement" /><item><title>RE: AAA voltage measurement</title><link>https://devzone.nordicsemi.com/thread/124445?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 18:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f0e11ab-d243-4bd8-8f61-509adf8f4bfa</guid><dc:creator>julienh</dc:creator><description>&lt;p&gt;thanks for your answer. Regarding the LiPo measuring guide, something like 10nF seems to be good.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AAA voltage measurement</title><link>https://devzone.nordicsemi.com/thread/124242?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 19:38:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d32b11f-e480-46a0-9049-ea4434f49dfa</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Here is the bit from the spec on reference selection and input voltage range:&lt;/p&gt;
&lt;p&gt;37.8 Reference&lt;br /&gt;The ADC can use two different references, controlled in the REFSEL field of the CH[n].CONFIG register.&lt;br /&gt;These are:&lt;br /&gt;&amp;bull; Internal reference&lt;br /&gt;&amp;bull; VDD as reference&lt;br /&gt;The internal reference results in an input range of &amp;plusmn;0.6 V on the ADC core. VDD as reference results in an&lt;br /&gt;input range of &amp;plusmn;VDD/4 on the ADC core. The gain block can be used to change the effective input range of&lt;br /&gt;the ADC.&lt;br /&gt;Input range = (+- 0.6 V or +-VDD/4)/Gain&lt;br /&gt;For example, choosing VDD as reference, single ended input (grounded negative input), and a gain of 1/4&lt;br /&gt;the input range will be:&lt;br /&gt;Input range = (VDD/4)/(1/4) = VDD&lt;br /&gt;With internal reference, single ended input (grounded negative input), and a gain of 1/6 the input range will&lt;br /&gt;be:&lt;br /&gt;Input range = (0.6 V)/(1/6) = 3.6 V&lt;br /&gt;The AIN0-AIN7 inputs cannot exceed VDD, or be lower than VSS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AAA voltage measurement</title><link>https://devzone.nordicsemi.com/thread/124241?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 19:33:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd6af7cd-d6bd-45eb-a476-76fbf8e1d5ee</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Since Vbat should never be greater than VDD, you can just hook it up directly. Realistically Vbat needs to be within Vthreshold of VDD.&amp;nbsp; Basically you want to make sure the top fet in the CMOS doesn&amp;#39;t turn on by providing an input voltage greater than VDD + Vthreshold. Normally this shows in spec&amp;#39;s as VDD + 0.3V. for max.&lt;/p&gt;
&lt;p&gt;The SAADC is a switched capacitive input that successive approximation is done against.&amp;nbsp; When it is not sampling you are looking at a turned off fet. So very, very high impedance.&lt;/p&gt;
&lt;p&gt;Nordic normally specify 1Mohm, but often state is is significantly larger than that. Since you don&amp;#39;t need the resistor then you don&amp;#39;t need the cap.&amp;nbsp; Just hook it up directly.&lt;/p&gt;
&lt;p&gt;If you are worried about having Ain sitting directly on Vbat which customers touch when swapping out the batteries then follow the guidelines for LiPo measurement but just lose the bottom half of the voltage divider so you won&amp;#39;t have any leakage.&lt;/p&gt;
&lt;p&gt;The input cap on the SAADC is very small ( a few pF) so without giving it much thought you could just choose 100kohm and 1nF. The SAADC and the 1nF do coulomb sharing.&amp;nbsp; So you can always fix the acquisition time to compensate.&lt;/p&gt;
&lt;p&gt;LiPo guide if you wish to look at it: &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52"&gt;devzone.nordicsemi.com/.../measuring-lithium-battery-voltage-with-nrf52&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AAA voltage measurement</title><link>https://devzone.nordicsemi.com/thread/124239?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 19:12:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:134ee858-83aa-4dc3-9c4f-7604febe65de</guid><dc:creator>julienh</dc:creator><description>&lt;p&gt;It&amp;#39;s because I&amp;#39;m using other external devices like buzzer etc...I&amp;#39;m also using some specific sensors which&amp;nbsp;are not working below 3V.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AAA voltage measurement</title><link>https://devzone.nordicsemi.com/thread/124238?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 19:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57838644-23f4-4e67-ba8b-21efe5aafb9c</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;If it&amp;#39;s a gpio issue that forces you to run the nRF at 3v constant, then I suggest you take a close look at your peripheral IC&amp;#39;s.&amp;nbsp; Most devices have a wide operating range. As long as all the peripherals use the same VDD the comms voltages will all be the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AAA voltage measurement</title><link>https://devzone.nordicsemi.com/thread/124237?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 19:02:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17e1e472-4542-4050-9d43-1b4316c3afd0</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;That just begs more questions.&amp;nbsp; Why do you need to boost anything?&lt;/p&gt;
&lt;p&gt;The nRF will operate from 1.8V to 3.6V on it&amp;#39;s internal DC/DC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AAA voltage measurement</title><link>https://devzone.nordicsemi.com/thread/124234?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 18:54:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:384d8087-afe4-44f8-9607-43c18ddd518b</guid><dc:creator>julienh</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I have over simplified my example regarding the real schematic. In my case, the nRF is powered by a boost circuit (3V) so I need hardware to do the battery voltage measurement.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AAA voltage measurement</title><link>https://devzone.nordicsemi.com/thread/124233?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 18:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e479db3f-ca0d-46bf-9809-e2f80dead2b9</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;I assume you are actually powering the nRF with the 2xAAA batteries, if so there is no reason to provide an external connection to the batteries.&amp;nbsp; You can configure the SAADC to measure the nRF VDD via its register settings. It has internal hardware connections to VDD to facilitate this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>