do I have a chance to activate oversample for an ADC by using Arduine IDE?
See my answer in your previous question. You will have to modify the RBL Arduino library.
thanks for your answer. Do you have any hint on examplary code?
Maybe with sandeepmistry's libraries?
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)
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?
Please have a look at this answer from the SAADC designer.