Page 1 of 1

adc not stable

Posted: Thu Jul 27, 2017 1:15 pm
by NisimK
I try to read voltage with ADC1_0 but I always get unstable values.
Anybody work with adc in esp32 and can help?
Thanks

Re: adc not stable

Posted: Fri Jul 28, 2017 1:43 am
by ESP_Sprite
Unstable as in the values jitter a lot? What you can do is try oversampling, that is, take a bunch of measurements and take the average of them. We're working on ADC stability, so we may add things to esp-idf to help with this in the future, but for now this is something you can do.

Re: adc not stable

Posted: Sun Jul 30, 2017 5:03 pm
by NisimK
Thank for reply.
I get 2 different values in adc read the first after wake up from deep sleep and the second after ~5 seconds.
The difference is very big.
Does anyone have any idea what the problem is?