<?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>Activate oversample in Arduino IDE for nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24333/activate-oversample-in-arduino-ide-for-nrf52832</link><description>Hi, 
 do I have a chance to activate oversample for an ADC by using Arduine IDE? 
 Best regards,
Christian</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Aug 2017 09:38:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24333/activate-oversample-in-arduino-ide-for-nrf52832" /><item><title>RE: Activate oversample in Arduino IDE for nrf52832</title><link>https://devzone.nordicsemi.com/thread/95785?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2017 09:38:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f020448-0e5e-4ab7-99c8-3c12cfe5d9e2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Please have a look at &lt;a href="https://devzone.nordicsemi.com/question/70115/nrf52-saadc-noise/?answer=70166#post-id-70166"&gt;this answer&lt;/a&gt; from the SAADC designer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Activate oversample in Arduino IDE for nrf52832</title><link>https://devzone.nordicsemi.com/thread/95784?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2017 09:33:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8301271d-ad25-4620-ac54-ded585fc41cc</guid><dc:creator>Christian</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have taken your code and put it into mine. It seems to work. With a resolution of 14 bit and 4x Oversampling the noise is cut to half. But it is still a very high noise. For higher oversampling rates the reading hardly gets better.
Is any further trick for less noise available?&lt;/p&gt;
&lt;p&gt;Best regards,
Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Activate oversample in Arduino IDE for nrf52832</title><link>https://devzone.nordicsemi.com/thread/95783?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2017 06:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f73d9760-aa67-40b5-a417-2afbca6b9861</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Something like this should work (based on the RedBear library):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/wiring_5F00_analog.cpp"&gt;wiring_analog.cpp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/wiring_5F00_analog.h"&gt;wiring_analog.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can then set oversampling using &lt;code&gt;analogReadOversample(uint16_t oversample)&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(I have not tested the code, so please let me know if there are any errors)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Activate oversample in Arduino IDE for nrf52832</title><link>https://devzone.nordicsemi.com/thread/95781?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 20:26:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea95dd8e-e4e3-4bc1-8f33-84b8e8f53de9</guid><dc:creator>Christian</dc:creator><description>&lt;p&gt;Hi Jørgen,
thanks for your answer. Do you have any hint on examplary code?
Maybe with sandeepmistry&amp;#39;s libraries?
&lt;a href="https://github.com/sandeepmistry/arduino-nRF5/blob/master/cores/nRF5/SDK/components/device/nrf52.h"&gt;github.com/.../nrf52.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;BR,
Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Activate oversample in Arduino IDE for nrf52832</title><link>https://devzone.nordicsemi.com/thread/95782?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 15:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c73fbe99-6b30-49bb-98bc-a601cf1610c7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;See my answer in your &lt;a href="https://devzone.nordicsemi.com/question/163286/fast-measurement-of-pf-capacity-nrf52832-high-adc-noise/?answer=163429#post-id-163429"&gt;previous question&lt;/a&gt;. You will have to modify the RBL Arduino library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>