Quick question on ESP32 pin selections

For general Flowcode discussion that does not belong in the other sections.
Post Reply
canary_wharfe
Posts: 105
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 3:54 pm
Has thanked: 6 times
Been thanked: 12 times

Quick question on ESP32 pin selections

Post by canary_wharfe »

Having trawled info from the web I gather that when Wi-Fi is enabled on ESP32 the ADC2 pins should not be used. I believe GPIO 0, 2, 15 are strapping pins and cannot be used freely but I'm not sure about the other pins on ADC2. Does the general advice mean they should never be used in any shape or form when Wi-Fi is activated or is it that they shouldn't be used as analog inputs? Would appreciate some clarification from anyone more knowledgeable on the subject. TIA.

mnfisher
Valued Contributor
Posts: 1546
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 138 times
Been thanked: 737 times

Re: Quick question on ESP32 pin selections

Post by mnfisher »

It seems to depend on the esp32 model.

Generally it looks as though ADC readings will be either wrong (or blocked) but digital I/O should be okay. Newer variants seem to have less conflicts.
If the WiFi (and Bluetooth) is disabled then they are available for use . I think, favour ADC1 in the first instance.

As mentioned before - test with a serial monitor and helpful messages may be given (unless you've modified the config file)

Martin

canary_wharfe
Posts: 105
Joined: Thu Dec 10, 2020 3:54 pm
Has thanked: 6 times
Been thanked: 12 times

Re: Quick question on ESP32 pin selections

Post by canary_wharfe »

Thanks Martin. That's what I thought would be the situation. Digital I/O generally ok. :-)

Xbiotec
Posts: 216
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 35 times
Been thanked: 26 times

Re: Quick question on ESP32 pin selections

Post by Xbiotec »

Which ESP32 are you using ?
Seb

canary_wharfe
Posts: 105
Joined: Thu Dec 10, 2020 3:54 pm
Has thanked: 6 times
Been thanked: 12 times

Re: Quick question on ESP32 pin selections

Post by canary_wharfe »

At the moment using the Wemos LoLin 32 lite (or to be exact it will be a clone module as Wemos don't mfr it any longer)

Post Reply