Doubts with ESP32 - ADC

jakarman12
Posts: 8
Joined: Fri Oct 30, 2020 6:46 pm

Doubts with ESP32 - ADC

Postby jakarman12 » Fri Oct 30, 2020 7:07 pm

Hello everyone, I hope you are doing very well. :)

I am about to start a project using ESP32 but I have some doubts and would like to know if you can help me, please.

I intend to use the ESP32-WROOM-32 module.

The doubts are more focused on the ADCs and are the following:

1.- As far as I understand from what I have read, it is not possible to use the pins of the ADC2 when using WiFi ... but ... if I use those pins for another function than ADC, they can be used or they are prohibited pins if WiFi is used?

2.- Regarding the ADC1, the pins of ADC1_4 and ADC1_5 have the option of XTAL_32 ... that leaves me with doubt, are those pins used for some internal clock crystal? can I use those pins as ADC?

I hope you can help me.

Have a nice day. :D

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

Re: Doubts with ESP32 - ADC

Postby ESP_Sprite » Sat Oct 31, 2020 7:21 am

1. Only the ADC functionality of these pins is disabled. You can use them for anything else.
2. You can optionally use these pins for a 32KHz RTC crystal. This is useful for better timekeeping in deep sleep as well as the bluetooth low power mode, but again, entirely optional if you don't need those features. In that case, you can use them for anything else, including ADC pins.

Who is online

Users browsing this forum: No registered users and 140 guests