How to disable WiFi driver to allow access ADC2?

Simpler1
Posts: 1
Joined: Tue Feb 16, 2021 9:19 pm

How to disable WiFi driver to allow access ADC2?

Postby Simpler1 » Tue Feb 16, 2021 9:31 pm

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

ESP_Sprite
Posts: 9746
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Wed Feb 17, 2021 11:01 am

In ESP-IDF? If you don't do anything WiFi-related, WiFi won't start.

Who is online

Users browsing this forum: No registered users and 113 guests