<?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>Am I not configuring right my SAADC handler for low power?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24263/am-i-not-configuring-right-my-saadc-handler-for-low-power</link><description>Hello, 
 I would like to sample the battery level of my nrf52832 DK and send it through BLE. I have started from the example ble_app_hrs for SDK12.2 since the service was already present and I had just to modify the battery simulator there present by</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Aug 2017 14:37:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24263/am-i-not-configuring-right-my-saadc-handler-for-low-power" /><item><title>RE: Am I not configuring right my SAADC handler for low power?</title><link>https://devzone.nordicsemi.com/thread/95518?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 14:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9afe7cf-f7a6-45c3-ba03-5d01a3e1d8e8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Did you solve this issue in this &lt;a href="https://devzone.nordicsemi.com/question/163055/what-is-the-right-factor-to-convert-voltate-using-saadc/?answer=163343#post-id-163343"&gt;post&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Am I not configuring right my SAADC handler for low power?</title><link>https://devzone.nordicsemi.com/thread/95519?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 06:36:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:084bc428-52d4-4108-a4dc-c56410dd0f51</guid><dc:creator>ndarkness</dc:creator><description>&lt;p&gt;HI Sigurd, thanks for replying&lt;/p&gt;
&lt;p&gt;I have used ble_app_proximity as guideline to implement the SAADC measurements, I managed to make it running. however, I think my settings for measuring VDD input are not completely correct. I see how the ADC saturates ( it gives back its Vref = 0.6V) instead the expected voltage, around 3.3V since I am powering it from the micro usb of the DK. I know that this has to do with the &lt;code&gt;ADC_GAIN&lt;/code&gt; to be set, in order to perform the right conversion. What is the gain that I should set to achieve such a conversion? Currently I use something like this &lt;code&gt;adc_val / ((adc_gain / ADC_REFERENCE_VOLTAGE) * pow(2, ADC_RESOLUTION_BITS))&lt;/code&gt; with &lt;code&gt;adc_gain = NRF_SAADC_GAIN1&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Am I not configuring right my SAADC handler for low power?</title><link>https://devzone.nordicsemi.com/thread/95517?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2017 12:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19f54562-d36b-4381-b67c-d26c231f58be</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You would have to take a look at what error code you are getting in the app_error_fault_handler. See &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;here&lt;/a&gt; on how to debug and find the error code. As mentioned &lt;a href="https://devzone.nordicsemi.com/question/162275/what-is-the-pin-for-the-battery-voltage-on-nrf52pca1040-dk/?answer=162668#post-id-162668"&gt;here&lt;/a&gt;, &lt;strong&gt;I recommend taking a look at the ble_app_proximty example&lt;/strong&gt;. This example uses the saadc, and not the simulator that is used in the hrs example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>