adc not stable

NisimK
Posts: 3
Joined: Tue Nov 22, 2016 3:54 pm

adc not stable

Postby NisimK » Thu Jul 27, 2017 1:15 pm

I try to read voltage with ADC1_0 but I always get unstable values.
Anybody work with adc in esp32 and can help?
Thanks

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: adc not stable

Postby ESP_Sprite » Fri Jul 28, 2017 1:43 am

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.

NisimK
Posts: 3
Joined: Tue Nov 22, 2016 3:54 pm

Re: adc not stable

Postby NisimK » Sun Jul 30, 2017 5:03 pm

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?

Who is online

Users browsing this forum: No registered users and 61 guests