Hi,
do I have a chance to activate oversample for an ADC by using Arduine IDE?
Best regards, Christian
Hi,
do I have a chance to activate oversample for an ADC by using Arduine IDE?
Best regards, Christian
See my answer in your previous question. You will have to modify the RBL Arduino library.
Hi Jørgen, thanks for your answer. Do you have any hint on examplary code? Maybe with sandeepmistry's libraries? github.com/.../nrf52.h
BR, Christian
Hi,
Something like this should work (based on the RedBear library):
You can then set oversampling using analogReadOversample(uint16_t oversample)
.
(I have not tested the code, so please let me know if there are any errors)
Best regards,
Jørgen
Hi,
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?
Best regards, Christian
Please have a look at this answer from the SAADC designer.