ADC Calibrated Value still not correct?
Posted: Wed Feb 21, 2018 4:56 pm
Hello Everyone!
I've been playing and testing esp32 for a month now and tried to use the ADC peripheral. I was aware at the beginning about the problems it has so I tried us use the calibration method given in this page (http://esp-idf.readthedocs.io/en/latest ... s/adc.html). I have successfully measured the Vref (1083mV) and used it in the esp_adc_cal_get_characteristics() function. I tried to use adc1_to_voltage() to get my calibrated value but still I am not getting the right voltage. On my Voltmeter I am measuring ~1.27v but on the calibrated ADC I am getting 1.241v. =(
I tried to look for other tutorials on the net and found one that was giving me a very close value. I got it from G6EJD. Here's his sample code (https://github.com/G6EJD/ESP32-ADC-Accu ... curate.ino). He made an equation out of the curve he got. Using this code I am getting 1.268v. Very much closer.
I am actually confused now on ESP's ADC Calibration Fix on whether it's really working or if whether I am doing something wrong.
Could anyone shed some light on this issue? I mean basing from my results/method the ESP fix was not giving me the right voltage.
Summary of Measurments:
Voltmeter Value: ~1270mV
ESP Fix: ~1240mV
G6EJD: ~ 1268mV
I've been playing and testing esp32 for a month now and tried to use the ADC peripheral. I was aware at the beginning about the problems it has so I tried us use the calibration method given in this page (http://esp-idf.readthedocs.io/en/latest ... s/adc.html). I have successfully measured the Vref (1083mV) and used it in the esp_adc_cal_get_characteristics() function. I tried to use adc1_to_voltage() to get my calibrated value but still I am not getting the right voltage. On my Voltmeter I am measuring ~1.27v but on the calibrated ADC I am getting 1.241v. =(
I tried to look for other tutorials on the net and found one that was giving me a very close value. I got it from G6EJD. Here's his sample code (https://github.com/G6EJD/ESP32-ADC-Accu ... curate.ino). He made an equation out of the curve he got. Using this code I am getting 1.268v. Very much closer.
I am actually confused now on ESP's ADC Calibration Fix on whether it's really working or if whether I am doing something wrong.
Could anyone shed some light on this issue? I mean basing from my results/method the ESP fix was not giving me the right voltage.
Summary of Measurments:
Voltmeter Value: ~1270mV
ESP Fix: ~1240mV
G6EJD: ~ 1268mV