Quick question on ESP32 pin selections
-
- 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
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.
-
- 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
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
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
-
- 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
Thanks Martin. That's what I thought would be the situation. Digital I/O generally ok. 

-
- 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
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)