Page 1 of 1

ESP32-DevKitC-V4 ADC2 pins.

Posted: Thu Jan 30, 2025 4:33 pm
by barkolorious
Hello guys,
This is my first post in esp32 forum, so if I'm doing anything wrong please let me know.

I have an ESP32-DevKitC-V4 with ESP32-WROOM-32U on it. I was wondering that can I use the GPIO's labeled with ADC2 while I'm using WI-FI. I won't use them for ADC purposes, some I will use as digital inputs, some as Software Serial Rx and Tx.

Following statement https://docs.espressif.com/projects/esp ... gpio.html# isn't really clear in my opinion:
ADC2: ADC2 pins cannot be used when Wi-Fi is used. So, if you are having trouble getting the value from an ADC2 GPIO while using Wi-Fi, you may consider using an ADC1 GPIO instead, which should solve your problem. For more details, please refer to Hardware Limitations of ADC Continuous Mode and Hardware Limitations of ADC Oneshot Mode.
When I searched this, other people usually asked can they use the pins for ADC purposes.

I hope I made sense.
Thank you all in advance.

Re: ESP32-DevKitC-V4 ADC2 pins.

Posted: Fri Jan 31, 2025 1:44 am
by ESP_krzychb
Hi barkolorious,

Welcome to the forum!

The short answer is yes, you can use the GPIO pins labeled as ADC2 for digital inputs and Software Serial Rx and Tx while using Wi-Fi, as long as you're not using them for ADC (Analog-to-Digital Converter) functionality.

The statement you quoted is specifically referring to the ADC functionality of these pins. When Wi-Fi is active, the ADC2 unit cannot be used for analog readings. However, this limitation does not apply to the general-purpose input/output (GPIO) functionality of these pins.

Re: ESP32-DevKitC-V4 ADC2 pins.

Posted: Fri Jan 31, 2025 7:33 am
by barkolorious
Thank you for the answer.

Have a nice day.