ESP32C6 ADC and WiFi

ginspe
Posts: 8
Joined: Mon Aug 04, 2025 7:39 am

ESP32C6 ADC and WiFi

Postby ginspe » Fri Sep 26, 2025 12:49 pm

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.

ahsrabrifat
Posts: 201
Joined: Sat Jan 18, 2025 2:31 pm

Re: ESP32C6 ADC and WiFi

Postby ahsrabrifat » Fri Sep 26, 2025 2:16 pm

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.

ginspe
Posts: 8
Joined: Mon Aug 04, 2025 7:39 am

Re: ESP32C6 ADC and WiFi

Postby ginspe » Mon Sep 29, 2025 4:10 am

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.

Who is online

Users browsing this forum: Barkrowler, GPTBot, Qwantbot and 4 guests