Page 1 of 1

ADC voltage coversion accuray error

Posted: Mon Sep 28, 2020 8:42 pm
by makram
Hi Everyone,
I'm trying to covert a the ADC bit count into voltage but my results are not very precise can anyone please correct me
Here my max input voltage is 3.3v that's why I m using 11db

the ESP32 is giving a 2.02V while the multimeter is giving 2.2v

please share your thoughts to improve the accuracy I'm attaching my code and

Re: ADC voltage coversion accuray error

Posted: Mon Sep 28, 2020 9:13 pm
by davef
How is the ADC reference voltage derived in the ESP32? If it is one of the supply voltages to the chip is used as the reference then how accurate is it? If there is an internal reference what is the tolerance on that?

I always end up tweaking the formula to get them to agree.

Re: ADC voltage coversion accuray error

Posted: Mon Sep 28, 2020 9:17 pm
by kevinkk525
The Esp32 adc is not very accurate and not linear at the edges but after some calibration in code it worked rather acceptable in my case.
For me this worked best: adc/4095*3.4 + 0.112
So the maximum voltage at 3.4V and an offset of 0.112V. It will not give you good results at the edges (close to 0V and close to 3.3V) but everything in between is rather accurate (you might need to calibrate your unit with your multimeter but using my formula you'd have a measurement of 2.193V so that is already rather close to the 2.21V of your multimeter)

Re: ADC voltage coversion accuray error

Posted: Tue Sep 29, 2020 1:27 am
by rcolistete