Page 1 of 1

ESP32C6 ADC and WiFi

Posted: Fri Sep 26, 2025 12:49 pm
by ginspe
I'm dealing with a problem that when I run esp_wifi_start() I get an ADC continuous reading drop of ~30 raw ticks. I'm using esp32c6 devkit m1 ADC_UNIT_1, atten_12.
This problem persists even when I flash code with that line commented out. Only when power is cycled with commented code does it disappear. It appears again when the line is run again.

Re: ESP32C6 ADC and WiFi

Posted: Fri Sep 26, 2025 2:16 pm
by ahsrabrifat
Use the ESP-IDF adc_cali_* APIs (ADC calibration driver).

Capture a new baseline once Wi-Fi is active, and subtract that from your continuous readings.

Re: ESP32C6 ADC and WiFi

Posted: Mon Sep 29, 2025 4:10 am
by ginspe
Use the ESP-IDF adc_cali_* APIs (ADC calibration driver).

Capture a new baseline once Wi-Fi is active, and subtract that from your continuous readings.
Yes, that is one way to fix the issue. Doesn't tell us why this happens though! The root cause is what's interesting.