<?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>SAADC noise issue with Bluetooth softdevice (nRF52840)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86341/saadc-noise-issue-with-bluetooth-softdevice-nrf52840</link><description>Hi folks, 
 SAADC peripheral gives me good results in acquiring &amp;amp; converting a DC signal related to current consumption. 
 I am using the 12-bits configuration over the internal reference with 1/5 gain (input signal ranging from 0 to 3v). We perform sampling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Apr 2022 09:32:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86341/saadc-noise-issue-with-bluetooth-softdevice-nrf52840" /><item><title>RE: SAADC noise issue with Bluetooth softdevice (nRF52840)</title><link>https://devzone.nordicsemi.com/thread/364890?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2022 09:32:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9437120-2e53-4e90-8a3a-991a647e558c</guid><dc:creator>Sebastien DRI</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;Thank you again for your answer.&lt;/p&gt;
&lt;p&gt;More generally, thank for high level support you show at Nordic.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t do any periodic offset calibration at all but we plan to further characterize&amp;nbsp; acquisition chain offset to correct in a software&amp;nbsp;way.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;We don&amp;#39;t check if offset samples corresponds with radio activity but we&amp;#39;re pretty sure it does since it is the only difference between the twwo generated firmwares.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will contact you in a short time after being coming back on that subject in order to confirm/or not that hypothesis based on the method you mentionned.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you again.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC noise issue with Bluetooth softdevice (nRF52840)</title><link>https://devzone.nordicsemi.com/thread/362883?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 13:48:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9179c5ce-88ed-4b82-8c3f-6c4e822ab752</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for posting the raw samples. It looks like you have a difference of 14 symbols between min and max sampled value, which corresponds to ~0.34% with 12 bit resolution. I think this is well within the specifications of the SAADC peripheral (there is a gain error of +/-3%, calibrated offset error of +/- 8 LSB12b, etc).&lt;/p&gt;
&lt;p&gt;Are you running any (periodic) offset calibration in your application?&lt;/p&gt;
&lt;p&gt;Have you checked if the &amp;quot;offset&amp;quot; samples corresponds with radio activity, etc? You can use the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/radio_notif/radio_notification.html"&gt;radio notification&lt;/a&gt;&amp;nbsp;feature or the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.3.0/structble__common__opt__pa__lna__t.html"&gt;PA &amp;amp; LNA GPIO toggle&lt;/a&gt;&lt;span&gt;&amp;nbsp;feature to see when the radio is active. If you use this to toggle GPIOs on radio activity and do the same when the SAADC SAMPLE task is triggered, you can see the GPIO toggling using a logic analyzer, to see if the sampling overlaps with the radio activity.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Radio activity, flash activity, and high current consumption may cause more noise on the SAADC sampling.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC noise issue with Bluetooth softdevice (nRF52840)</title><link>https://devzone.nordicsemi.com/thread/361602?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 15:14:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be605ec7-e4d7-4a0e-aadb-be33ba88a782</guid><dc:creator>Sebastien DRI</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll find hereunder the updated spreadsheet with ADC raw data displayed (simple linear voltage=&amp;gt;current transformation).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ADCCurrent_5F00_bis.xlsx"&gt;devzone.nordicsemi.com/.../ADCCurrent_5F00_bis.xlsx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC noise issue with Bluetooth softdevice (nRF52840)</title><link>https://devzone.nordicsemi.com/thread/361282?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 16:02:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0834ba35-24f2-40aa-a583-86c0ec9c37ce</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="sebastopolix"]&lt;p&gt;&lt;em&gt;When you say &amp;quot;just by starting softdevice (+8dbm level selected)&amp;quot;, do you mean that the softdevice is enabled, but not transmitting/receiving anything, i.e. no BLE roles enabled?&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, just advertising (Peripheral role) in long range mode with the extra +8dbm power emission. I&amp;nbsp;run two measurement sessions with/without softdevice enabled.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Ok, that makes more sense than just enabling the Softdevice without any radio activity.&lt;/p&gt;
[quote user="sebastopolix"]No, I don&amp;#39;t see any softdevice action to activate the DCDC regulator in our code. We use external LDO[/quote]
&lt;p&gt;You can enable the DCDC regulator using the Softdevice API&amp;nbsp;&lt;a title="sd_power_dcdc_mode_set" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.3.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=4_7_4_1_2_7_2_13#ga84bd6a0e8f55a7aa85a5ec608edd61fe"&gt;sd_power_dcdc_mode_set&lt;/a&gt;(NRF_POWER_DCDC_ENABLE), but the DCDC regulator will likely cause even more noise, so I was mainly asking if it was enabled.&lt;/p&gt;
[quote user="sebastopolix"]&lt;p&gt;&lt;em&gt;Can you post the raw samples from the case with and without softdevice, to better see the difference?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Yes of course, hereafter are freshly new raw samples for a given current consumption on our&amp;nbsp;board:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7416.ADCCurrent.xlsx"&gt;ADCCurrent.xlsx&lt;/a&gt;&lt;/p&gt;[/quote]
&lt;p&gt;The document seems to contain numbers with decimals, which I believe are somehow processed from the raw samples. Do you have the int16_t results form the SAADC buffer, without any processing/calculations?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC noise issue with Bluetooth softdevice (nRF52840)</title><link>https://devzone.nordicsemi.com/thread/361107?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 21:58:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8752fdd7-ff89-4065-be6c-5269cd37cbd4</guid><dc:creator>Sebastien DRI</dc:creator><description>&lt;p&gt;Hi J&lt;span&gt;&amp;oslash;&lt;/span&gt;rgen,&lt;/p&gt;
&lt;p&gt;Sor&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;ry for the l&lt;/span&gt;ate reply;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;When you say &amp;quot;just by starting softdevice (+8dbm level selected)&amp;quot;, do you mean that the softdevice is enabled, but not transmitting/receiving anything, i.e. no BLE roles enabled?&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, just advertising (Peripheral role) in long range mode with the extra +8dbm power emission. I&amp;nbsp;run two measurement sessions with/without softdevice enabled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you have the DCDC regulator enabled in your application?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No, I don&amp;#39;t see any softdevice action to activate the DCDC regulator in our code. We use external LDO&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is also for information the Nordic schematic for the supply part:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1648764108407v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;You can consider enabling oversampling in the SAADC to reduce noise, but this will take more time, and should have given similar results to what you get if averaging manually.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, for sure. In fact the second pattern noise pattern added by activating BLE acts as a second noise source apart from the histogram given with no BLE.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Can you post the raw samples from the case with and without softdevice, to better see the difference?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Yes of course, hereafter are freshly new raw samples for a given current consumption on our&amp;nbsp;board:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ADCCurrent.xlsx"&gt;devzone.nordicsemi.com/.../ADCCurrent.xlsx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you again for your support.&lt;/p&gt;
&lt;p&gt;The best.&lt;/p&gt;
&lt;p&gt;Sebastien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SAADC noise issue with Bluetooth softdevice (nRF52840)</title><link>https://devzone.nordicsemi.com/thread/360579?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 13:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b4a980a-a418-4123-b8fc-647e1d296150</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When you say &amp;quot;&lt;span&gt;just by starting softdevice (+8dbm level selected)&amp;quot;, do you mean that the softdevice is enabled, but not transmitting/receiving anything, i.e. no BLE roles enabled?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you have roles enabled, do you sample the SAADC during transmission, or between BLE events?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you have the DCDC regulator enabled in your application?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can consider enabling oversampling in the SAADC to reduce noise, but this will take more time, and should have given similar results to what you get if averaging manually.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you post the raw samples from the case with and without softdevice, to better see the difference?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>