← ESP32-WROOM-32 pinout

ESP32 GPIO2

GPIO2 / ADC2_CH2 / TOUCH2

Use with care - Fine for many uses, but check the warnings below first.

What GPIO2 can do

Warnings for GPIO2

ADC2 unusable with WiFi

ADC2 is used by the WiFi driver. Any analogRead() on an ADC2 pin returns errors while WiFi is active. Use ADC1 pins (GPIO32-39) for analog readings when WiFi is on.

Strapping pin

This pin is sampled at boot to configure the chip. GPIO2 must be LOW or floating during download mode. On many DevKit boards the onboard LED is on GPIO2 - the 10 kΩ pull-down can interfere with boot if an external device drives it HIGH.

Open the interactive ESP32 pinout →

All ESP32 pins

GPIO0 · GPIO1 · GPIO2 · GPIO3 · GPIO4 · GPIO5 · GPIO6 · GPIO7 · GPIO8 · GPIO9 · GPIO10 · GPIO11 · GPIO12 · GPIO13 · GPIO14 · GPIO15 · GPIO16 · GPIO17 · GPIO18 · GPIO19 · GPIO21 · GPIO22 · GPIO23 · GPIO25 · GPIO26 · GPIO27 · GPIO32 · GPIO33 · GPIO34 · GPIO35 · GPIO36 · GPIO39

ESP32 Pinout Studio - free interactive pinout reference. Pin data generated from Espressif's official KiCad libraries. esp32pin.com