with this code I can know if two point calibration and Vref calibration are supported:
Code: Select all
#include <driver/adc.h>
#include <esp_adc_cal.h>
//...............................................................................................
void setup() {
Serial.begin(115200);
delay(3000);
Serial.println("--------------------------");
Serial.println(" ADC CALIBRATION ");
Serial.println("--------------------------");
Serial.println("");
//Controllo se i due punti di calibrazione sono presenti
if (esp_adc_cal_check_efuse(ESP_ADC_CAL_VAL_EFUSE_TP) == ESP_OK)
{
Serial.println("eFuse Two Point: Supported");
}
else
{
Serial.println("eFuse Two Point: NOT supported");
}
//Verifico se il reale VREF è stato misurato
if (esp_adc_cal_check_efuse(ESP_ADC_CAL_VAL_EFUSE_VREF) == ESP_OK)
{
Serial.println("eFuse Vref: Supported");
}
else
{
Serial.println("eFuse Vref: NOT supported");
}
}
//...............................................................................................
void loop() {
// put your main code here, to run repeatedly:
}
eFuse Two Point: NOT supported
eFuse Vref: Supported
This means that real Vref value (not 1100) will be used to do calculation but caratteristic is still non linear?
Are value use in this article useful for all when your chip don't have two point calculation?
If not someone know this value?
Thanks