ESP32-DevKitC-V4 ADC2 pins.

barkolorious
Posts: 2
Joined: Thu Jan 30, 2025 4:21 pm

ESP32-DevKitC-V4 ADC2 pins.

Postby barkolorious » Thu Jan 30, 2025 4:33 pm

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.

User avatar
ESP_krzychb
Posts: 408
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: ESP32-DevKitC-V4 ADC2 pins.

Postby ESP_krzychb » Fri Jan 31, 2025 1:44 am

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.

barkolorious
Posts: 2
Joined: Thu Jan 30, 2025 4:21 pm

Re: ESP32-DevKitC-V4 ADC2 pins.

Postby barkolorious » Fri Jan 31, 2025 7:33 am

Thank you for the answer.

Have a nice day.

Who is online

Users browsing this forum: Bing [Bot] and 43 guests