Unexpected ADC offset in ESP32
Posted: Thu Mar 12, 2020 9:21 am
Hi,
I have detected an unexpected offset when measuring values with the adc in the module huzzah32 (esp32).
For example, when trying the get the battery value:
- 3781 mV acquired in the ESP32
- 4113 mV measured with the multimeter.
I am taking 3300 mV as reference (VREF) for adc conversions. 12 bit (4095 adc steps).
Being calculaed as follows:
voltage = value * (VREF / ADC_STEPS);
The same happened when using a TMP36 sensor for acquiring temperature values.
TMP36 -> pin 39 (A3 - ADC1)
VBAT/2 -> pin 35 (A13)
Any of you have experienced anything similar?
Regards, Ramon.
I have detected an unexpected offset when measuring values with the adc in the module huzzah32 (esp32).
For example, when trying the get the battery value:
- 3781 mV acquired in the ESP32
- 4113 mV measured with the multimeter.
I am taking 3300 mV as reference (VREF) for adc conversions. 12 bit (4095 adc steps).
Being calculaed as follows:
voltage = value * (VREF / ADC_STEPS);
The same happened when using a TMP36 sensor for acquiring temperature values.
TMP36 -> pin 39 (A3 - ADC1)
VBAT/2 -> pin 35 (A13)
Any of you have experienced anything similar?
Regards, Ramon.