Home / Pinout / ESP32-S2

ESP32-S2 pinout & GPIO reference

A single-core chip with native USB OTG and no Bluetooth — ideal for USB HID keyboards, USB cameras, or pure Wi-Fi connected devices. 43 GPIOs sound generous, but GPIO 26–32 are consumed by flash/PSRAM and GPIO46 is fixed pull-down and input-only.

Data verified:2026-10-20 · Cross-checked against Espressif datasheets and the ESP-IDF programming guide. Always confirm with the official document before finalizing a design.

Official documentation:link 1 · link 2

Verify against official docs:Exact SRAM size (varies by part number and revision) · Which pins are actually broken out on each module (WROOM / MINI / devkit)

Key specifications

CoreXtensa LX7 single-core (7-stage pipeline)
ClockUp to 240 MHz
SRAM320 KB SRAM + 16 KB RTC SRAM (verify against official docs)
WirelessWi-Fi 802.11 b/g/n · no Bluetooth
USBNative USB 1.1 OTG (GPIO19/20, full-speed)
ADC2 × 13-bit SAR, 20 channels (GPIO1–20)
DAC2 × 8-bit (GPIO17 / GPIO18)
Touch14 capacitive touch channels (GPIO1–14)
GPIO43 physical GPIOs: 0–21 and 26–46 (22–25 do not exist)
StrappingGPIO0 / GPIO45 / GPIO46

Traps that cost you a board respin

Full GPIO table

GPIOStatusAlternate functions
GPIO0UsableStrapping (boot mode)RTC_GPIO0
GPIO1UsableADC1_CH0TOUCH1
GPIO2UsableADC1_CH1TOUCH2
GPIO3UsableADC1_CH2TOUCH3
GPIO4UsableADC1_CH3TOUCH4
GPIO5UsableADC1_CH4TOUCH5
GPIO6UsableADC1_CH5TOUCH6
GPIO7UsableADC1_CH6TOUCH7
GPIO8UsableADC1_CH7TOUCH8
GPIO9UsableADC1_CH8TOUCH9
GPIO10UsableADC1_CH9TOUCH10
GPIO11UsableADC2_CH0TOUCH11
GPIO12UsableADC2_CH1TOUCH12
GPIO13UsableADC2_CH2TOUCH13
GPIO14UsableADC2_CH3TOUCH14
GPIO15UsableADC2_CH4
GPIO16UsableADC2_CH5
GPIO17UsableDAC1ADC2_CH6
GPIO18UsableDAC2ADC2_CH7
GPIO19UsableUSB D−ADC2_CH8
GPIO20UsableUSB D+ADC2_CH9
GPIO21UsableGeneral GPIO
GPIO26UnusableSPI0/1 · flash / PSRAM
GPIO27UnusableSPI0/1 · flash / PSRAM
GPIO28UnusableSPI0/1 · flash / PSRAM
GPIO29UnusableSPI0/1 · flash / PSRAM
GPIO30UnusableSPI0/1 · flash / PSRAM
GPIO31UnusableSPI0/1 · flash / PSRAM
GPIO32UnusableSPI0/1 · flash / PSRAM
GPIO33UsableGeneral GPIO
GPIO34UsableGeneral GPIO
GPIO35UsableGeneral GPIO
GPIO36UsableGeneral GPIO
GPIO37UsableGeneral GPIO
GPIO38UsableGeneral GPIO
GPIO39UsableMTCK · internal JTAG
GPIO40UsableMTDO · internal JTAG
GPIO41UsableMTDI · internal JTAG
GPIO42UsableMTMS · internal JTAG
GPIO43UsableUART0 TX
GPIO44UsableUART0 RX
GPIO45UsableStrapping (VDD_SPI voltage)
GPIO46Input onlyStrapping · fixed pull-down, input-only

Individual GPIO pages

Related