-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Open
Labels
Type: Bugbugs in IDFbugs in IDF
Description
Hi,
I'm testing the ESP32's ADC on the SparkFun ESP32 Thing.
Currently my measure seems very noisy, it constantly varies on the 5 first bits, and the zero value is around 90mV.
Is there a way to achieve better accuracy?
My test code :
adc1_config_width(ADC_WIDTH_12Bit);
adc1_config_channel_atten(ADC1_CHANNEL_7, ADC_ATTEN_0db);
while (true) {
vTaskDelay(300 / portTICK_PERIOD_MS);
printf("ADC value : %x\n", adc1_get_voltage(ADC1_CHANNEL_7));
}
Thank you in advance for your help.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: Bugbugs in IDFbugs in IDF