Does esp_adc_cal_characterize() work on ESP32S3?
Posted: Tue Jul 18, 2023 3:42 pm
Hi
Chip: ESP32S3
IDE: MS Visual Studio with VMicro plugin
Arduino ESP32 core : 2.0.10
I am calling to learn how vref deviates from 1100mV on my ESP32S3 Dev Module.
Code snippet as follows:
Result of vref is 0.0 on ESP32S3. However, the same code runs on an old ESP32 PICO D4 returns 1100.
Does esp_adc_cal_characterize() work on esp32s3?
John
Chip: ESP32S3
IDE: MS Visual Studio with VMicro plugin
Arduino ESP32 core : 2.0.10
I am calling
Code: Select all
esp_adc_cal_characterize()
Code snippet as follows:
Code: Select all
#include "esp_adc_cal.h"
//...
void setup()
{
esp_adc_cal_characteristics_t adc_chars;
esp_adc_cal_characterize(ADC_UNIT_1, ADC_ATTEN_DB_11, ADC_WIDTH_BIT_12, 1100, &adc_chars);
float vref = adc_chars.vref; // Obtain the device ADC reference voltage
Serial.print(F("vref is : ")); Serial.println(vref);
}
Does esp_adc_cal_characterize() work on esp32s3?
John