<?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>SDK 14.2 SAADC and SDK17.02 SAADC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80767/sdk-14-2-saadc-and-sdk17-02-saadc</link><description>Hi, 
 I have used &amp;quot;es_battery_voltage_saadc&amp;quot; in SDK 14.2 to read the voltage of battery, now I&amp;#39;m using SDK 17.02, but there is no es_battery_voltage_saadc. 
 Is there a better way to read the voltage of battey in SDK17.02?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Oct 2021 09:08:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80767/sdk-14-2-saadc-and-sdk17-02-saadc" /><item><title>RE: SDK 14.2 SAADC and SDK17.02 SAADC</title><link>https://devzone.nordicsemi.com/thread/334794?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 09:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb51dbd2-473d-4333-a1ee-53eb67c7ed15</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="ColorPen"]Thanks for you reply Karl.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="ColorPen"]We are using Li-Battery .Actually, we just need to get the voltage of battery(3.6-4.2V).&amp;nbsp;[/quote]
&lt;p&gt;In that case I highly recommend that you read through and follow the Lithium-ion battery measurement guide that I linked in my previous comment. Lithium-ion battery voltages can not be applied directly to the nRF52810 pins, since &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52810%2Fabs_max_ratings.html"&gt;this exceeds it absolute maximum ratings&lt;/a&gt;&amp;nbsp;and may therefore damage the chip.&lt;/p&gt;
[quote user="ColorPen"]In my application, I create a timer to get the voltage, so we don&amp;#39;t use the SAADC_PPI example.[/quote]
&lt;p&gt;Sure. The method demonstrated in the SAADC example is primarily aimed at precisely periodic measurements. When you are not using the PPI peripheral to trigger sampling your sampling will have to wait for the CPU to be available, which would make periodic measurements miss their timing. In your case, where you only want to take a measurement every now and then, without any hard real-time constraints, it is fine to have the CPU trigger the sampling directly.&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: SDK 14.2 SAADC and SDK17.02 SAADC</title><link>https://devzone.nordicsemi.com/thread/334679?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 16:55:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a17f255-57cf-49ae-b659-345ecac8df15</guid><dc:creator>Taylor</dc:creator><description>&lt;p&gt;Thanks for you reply Karl.&lt;/p&gt;
&lt;p&gt;We are using Li-Battery .Actually, we just need to get the voltage of battery(3.6-4.2V).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In my application, I create a timer to get the voltage, so we don&amp;#39;t use the SAADC_PPI example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14.2 SAADC and SDK17.02 SAADC</title><link>https://devzone.nordicsemi.com/thread/334634?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 13:18:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53e212b8-f242-4352-af4f-4681c79185f6</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]I have used &amp;quot;es_battery_voltage_saadc&amp;quot; in SDK 14.2 to read the voltage of battery, now I&amp;#39;m using SDK 17.02, but there is no&amp;nbsp;&lt;span&gt;es_battery_voltage_saadc.&lt;/span&gt;[/quote]
&lt;p&gt;You could still find this function in SDK_ROOT\components\ble\ble_services\eddystone\es_battery_voltage_saadc.c&lt;br /&gt;Looking into the function it seems that it is just retrieving a single sample of the SAADC, without any conversion or mapping to a discharge curve of a battery (at least not that I immediately can see), so I am not sure how accurate the battery measurement would be from using this alone - unless some postprocessing of the returned value is also done somewhere.&lt;br /&gt;If you would like to see the general approach for &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_proximity.html"&gt;measuring a non-lipo battery you could take a look in the BLE proximity peripheral example from the SDK&lt;/a&gt;. For &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/measuring-lithium-battery-voltage-with-nrf52"&gt;the Li-Po battery measurement case we have got this guide&lt;/a&gt;, which could be helpful to take a look at.&lt;/p&gt;
[quote user=""]Is there a better way to read the voltage of battey in&amp;nbsp; SDK17.02?[/quote]
&lt;p&gt;What kind of a battery will you be using?&lt;br /&gt;In general, you will need to create your own mapping for the discharge curve of the specific battery you are working with - unless you are working with the CR2032 which ships with the nRF52 DK&amp;#39;s (we have already made the discharge curve mapping for this particular battery).&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>