Page 1 of 1

How to disable WiFi driver to allow access ADC2?

Posted: Tue Feb 16, 2021 9:31 pm
by Simpler1
I have an ESP32-CAM (ESP32-S) and I'm trying to use the Analog Digital Converter (ADC) to report the battery voltage, but there are no ADC pins available by default.

The documentation states:
ADC2 is used by the Wi-Fi driver. Therefore the application can only use ADC2 when the Wi-Fi driver has not started.
I'm not interested in using Wi-Fi, so how can I avoid starting (or stop) the Wi-Fi driver to get access to the ADC2 pins?

I would also be fine with disabling the camera temporarily to get access to an ADC1 pin and then reenabling the camera.

Thanks

Re: How to disable WiFi driver to allow access ADC2?

Posted: Wed Feb 17, 2021 11:01 am
by ESP_Sprite
In ESP-IDF? If you don't do anything WiFi-related, WiFi won't start.