<?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>nrf52 obtain battery level using internal bandgap (sdk 14)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34269/nrf52-obtain-battery-level-using-internal-bandgap-sdk-14</link><description>Can anyone give me a tip on porting the code below, which works great in sdk12, to sdk14? I&amp;#39;m using the nrf52832 and the ble_app_hids_keyboard example and need to get a real battery level measurement. The code below was originally found here .</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 May 2018 16:52:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34269/nrf52-obtain-battery-level-using-internal-bandgap-sdk-14" /><item><title>RE: nrf52 obtain battery level using internal bandgap (sdk 14)</title><link>https://devzone.nordicsemi.com/thread/132124?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 16:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2391d10-111b-4585-aa03-f34d619472bd</guid><dc:creator>MattFL</dc:creator><description>&lt;p&gt;As a relative newbie to Nordic, configuring the nrf52 saadc to behave like the nrf51 code above was requiring more reading than I have time for at the moment, but I stumbled upon the eddystone library and used&amp;nbsp;es_battery_voltage_get() from there, which seems to have done the trick.&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 obtain battery level using internal bandgap (sdk 14)</title><link>https://devzone.nordicsemi.com/thread/131922?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 15:30:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58aa17cd-76d0-4531-b50c-003b9df924cd</guid><dc:creator>MattFL</dc:creator><description>&lt;p&gt;Thanks guys for the replies.&amp;nbsp; After looking closer, I see what you mean that the problem is not a difference in sdk, but instead a difference in platform.&amp;nbsp; I was in a hurry and when it didn&amp;#39;t compile I jumped to the conclusion that it was very different, but after looking closer maybe it&amp;#39;s not so different.&amp;nbsp; The code above works on the nrf51 and uses &amp;nbsp;NRF_ADC_Type to configure the ADC, but I need it to work on the nrf52 where NRF_SAADC_Type is used.&amp;nbsp; So perhaps I just need to port the settings over to&amp;nbsp;&lt;span&gt;NRF_SAADC_Type.&amp;nbsp; I&amp;#39;ll give this a shot and post my code if it works.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 obtain battery level using internal bandgap (sdk 14)</title><link>https://devzone.nordicsemi.com/thread/131877?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 12:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e046e0a-1c24-4793-9c54-d22c014118e9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;That is correct. What you are using in the snippet above is not SDK dependent, so it should be the same in SDK14. Have you tested it? Did it not work?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 obtain battery level using internal bandgap (sdk 14)</title><link>https://devzone.nordicsemi.com/thread/131751?ContentTypeID=1</link><pubDate>Sat, 12 May 2018 10:00:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b3dfc99-449b-47ae-bb96-2230ad32a75d</guid><dc:creator>Andre</dc:creator><description>&lt;p&gt;It looks like you&amp;#39;re accessing the peripherals directly, so, not using the SDK, but only the MDK. That would mean&amp;nbsp;this code&amp;nbsp;would run without any adjustments.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>