Espressif ESP32-S2-DevKitM-1
by Espressif
Compact official ESP32-S2 board with secure boot - great for secure IoT prototyping and embedded dev.

On this page
Pinout
42 pins · 2.54 mm pitch| Pin | GPIO | Labels | Status | Capabilities | Notes |
|---|---|---|---|---|---|
| 1 | - | 3V33.3V | power | - | 3.3V regulated output |
| 2 | 0 | IO0 | strapping | pwm | BOOT button; RTC |
| 3 | 1 | IO1A0T1 | safe | adc · touch · pwm | ADC1_CH0; Touch1; RTC |
| 4 | 2 | IO2A1T2 | safe | adc · touch · pwm | ADC1_CH1; Touch2; RTC |
| 5 | 3 | IO3A2T3 | safe | adc · touch · pwm | ADC1_CH2; Touch3; RTC |
| 6 | 4 | IO4A3T4 | safe | adc · touch · pwm | ADC1_CH3; Touch4; RTC |
| 7 | 5 | IO5A4T5 | safe | adc · touch · pwm | ADC1_CH4; Touch5; RTC |
| 8 | 6 | IO6A5T6 | safe | adc · touch · pwm | ADC1_CH5; Touch6; RTC |
| 9 | 7 | IO7A6T7 | safe | adc · touch · pwm | ADC1_CH6; Touch7; RTC |
| 10 | 8 | IO8A7T8SDA | safe | adc · touch · i2c · pwm | Default I2C SDA; ADC1_CH7; Touch8 |
| 11 | 9 | IO9A8T9SCL | strapping | adc · touch · i2c · pwm | Default I2C SCL; ADC1_CH8; Touch9; FSPIHD |
| 12 | 10 | IO10A9T10 | strapping | adc · touch · pwm | ADC1_CH9; Touch10; FSPICS0 |
| 13 | 11 | IO11A10T11 | strapping | adc · touch · pwm | ADC2_CH0; Touch11; FSPID |
| 14 | 12 | IO12A11T12 | strapping | adc · touch · pwm | ADC2_CH1; Touch12; FSPICLK |
| 15 | 13 | IO13A12T13 | strapping | adc · touch · pwm | ADC2_CH2; Touch13; FSPIQ |
| 16 | 14 | IO14A13T14 | strapping | adc · touch · pwm | ADC2_CH3; Touch14; FSPIWP |
| 17 | 15 | IO15A14 | strapping | adc · pwm | ADC2_CH4; U0RTS; XTAL_32K_P |
| 18 | 16 | IO16A15 | strapping | adc · pwm | ADC2_CH5; U0CTS; XTAL_32K_N |
| 19 | 17 | IO17A16DAC1 | safe | adc · dac · pwm | DAC1; ADC2_CH6; U1TXD |
| 20 | - | 5V | power | - | 5V input (from USB) / output |
| 21 | - | GND | ground | - | Ground |
| 22 | - | GND | ground | - | Ground |
| 23 | - | RSTEN | control | - | Chip reset (active low) |
| 24 | 46 | IO46 | strapping | - | Input-only GPIO |
| 25 | 45 | IO45 | strapping | pwm | General-purpose GPIO |
| 26 | 44 | IO44RX | uart | uart · pwm | UART0 RX (default Serial); CLK_OUT2 |
| 27 | 43 | IO43TX | uart | uart · pwm | UART0 TX (default Serial); CLK_OUT1 |
| 28 | 42 | IO42 | strapping | pwm | JTAG MTMS |
| 29 | 41 | IO41 | strapping | pwm | JTAG MTDI; CLK_OUT1 |
| 30 | 40 | IO40 | strapping | pwm | JTAG MTDO; CLK_OUT2 |
| 31 | 39 | IO39 | strapping | pwm | JTAG MTCK; CLK_OUT3 |
| 32 | 38 | IO38 | strapping | pwm | FSPIWP |
| 33 | 37 | IO37MISO | strapping | spi · pwm | Default SPI MISO; FSPIQ; SPIDQS |
| 34 | 36 | IO36SCK | strapping | spi · pwm | Default SPI SCK; FSPICLK; SPIIO7 |
| 35 | 35 | IO35MOSI | strapping | spi · pwm | Default SPI MOSI; FSPID; SPIIO6 |
| 36 | 34 | IO34SS | strapping | spi · pwm | Default SPI SS; FSPICS0; SPIIO5 |
| 37 | 33 | IO33 | strapping | pwm | FSPIHD; SPIIO4 |
| 38 | 26 | IO26 | strapping | pwm | General-purpose GPIO |
| 39 | 21 | IO21 | safe | pwm | General-purpose GPIO; RTC |
| 40 | 20 | IO20A19 | uart | adc · pwm | Native USB D+; ADC2_CH9; U1CTS; RTC |
| 41 | 19 | IO19A18 | uart | adc · pwm | Native USB D-; ADC2_CH8; U1RTS; RTC |
| 42 | 18 | IO18A17DAC2 | safe | adc · dac · pwm | Onboard RGB LED; DAC2; ADC2_CH7; U1RXD |
Start with these
13 pins with no boot or system involvementFreely assignable - no strapping, flash, USB or JTAG duties. Ideal first picks for buttons, sensors and LEDs.
Fine - with a little care
sampled at boot or shared with debug/serial| Pin | Label | What to know | Role |
|---|---|---|---|
| IO0 | GPIO0 | Must be pulled high for normal boot; pulling low at reset enters bootloader (download mode). Also serves as SPI flash data-in (SPID) line when using external flash memory. | Strapping |
| IO15 | XTAL_32K_P | If an external 32 kHz crystal is used for RTC, this pin is dedicated to the crystal and cannot be used as GPIO. | Other |
| IO16 | XTAL_32K_N | If using an external 32 kHz crystal, this pin is connected to the crystal and should not be used as general I/O. | Other |
| IO46 | GPIO46 | If pulled high during boot, it can disable bootloader log output (depending on eFuse settings). Cannot drive output (input-only pin). | Strapping |
| IO45 | GPIO45 | Must be set correctly at boot (usually low for 3.3 V); improper level can cause boot failure or flash malfunction. | Strapping |
| IO42 | MTMS | JTAG TMS pin; should not be repurposed if JTAG debugging or programming via JTAG is required. | Other |
| IO41 | MTDI | Part of JTAG interface (TDI); avoid using as GPIO to retain ability for JTAG debug. | Other |
| IO40 | MTDO | Part of JTAG interface (TDO); should be avoided as GPIO if JTAG debugging is needed. | Other |
| IO39 | MTCK | Used for JTAG debugging interface; using this pin for other purposes will disable JTAG clock input. | Other |
Only if you know the tricks
wired to flash or USB - expect a fight| Pin | Label | What to know | Role |
|---|---|---|---|
| IO9 | FSPIHD | Typically used as flash/PSRAM IO line in certain configurations; avoid using as GPIO if flash or PSRAM is present. | Flash |
| IO10 | FSPICS0 | Often used as flash chip select in some designs; not available for GPIO when controlling flash. | Flash |
| IO11 | FSPID | Used for flash data transfer in certain configurations; should be avoided for general use if flash is connected. | Flash |
| IO12 | FSPICLK | Used as flash clock line in some boards; not free for GPIO if driving flash. | Flash |
| IO13 | FSPIQ | Used for flash data output in certain configurations; avoid using as GPIO if connected to flash. | Flash |
| IO14 | FSPIWP | Used as flash write-protect/data line on some modules; not recommended for other usage. | Flash |
| IO38 | FSPIWP | Reserved for flash/PSRAM in ESP32-S2 modules with internal memory; not recommended for general I/O. | Flash |
| IO37 | FSPIQ | Used for internal flash/PSRAM data in some models; should not be repurposed for GPIO. | Flash |
| IO36 | FSPICLK | May be connected to internal flash or used for high-speed SPI; not intended for general GPIO use. | Flash |
| IO35 | FSPID | Used by internal flash/PSRAM on some ESP32-S2 variants; avoid using as GPIO to prevent conflicts. | Flash |
| IO34 | SPIWP | Connected to SPI flash (write-protect/data line); not recommended for other use. | Flash |
| IO33 | SPIHD | Connected to SPI flash (hold/data line); not available for general-purpose use. | Flash |
| IO26 | SPICS1 | Used to connect external PSRAM (or second SPI memory); should be avoided as GPIO if such memory is present. | Flash |
| IO20 | USB_D+ | Dedicated to USB interface; repurposing as GPIO may disrupt USB connectivity. | USB |
| IO19 | USB_D- | Used for USB communication; using this pin as general GPIO can interfere with USB functionality. | USB |
Pinout notes Across 42 pins (2.54 mm pitch), the Espressif ESP32-S2-DevKitM-1 exposes 37 GPIO plus 3V3 , 5V and GND for power. For peripherals, I²C is mapped to SDA on…
Across 42 pins (2.54 mm pitch), the Espressif ESP32-S2-DevKitM-1 exposes 37 GPIO plus 3V3, 5V and GND for power.
For peripherals, I²C is mapped to SDA on GPIO8 and SCL on GPIO9; the SPI bus (MOSI, MISO, SCK, SS) is broken out in full; TX/RX on GPIO43 and GPIO44 cover serial logging and flashing.
On the analog side there are 20 ADC-capable pins for sensors and battery monitoring, PWM on 36 pins, 14 capacitive-touch inputs and 2 true DAC outputs.
If you want zero surprises, IO1, IO2, IO3, IO4 and 9 more are free of any such role - the safest first picks. 9 of the exposed pins carry boot-time or system duties on the ESP32-S2 (IO0, IO15, IO16 and 6 more).
Getting started
flash your first firmware in ~2 minutesBoard: Esp32 S2 Devkitm 1
Flash Size: 4MB · DIO
Upload Speed: 921600
// blink
pinMode(1, OUTPUT);
digitalWrite(1, LOW); // on (often inverted)[env:esp32-s2-devkitm-1]
platform = espressif32
board = esp32-s2-saola-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600esp32:
board: esp32-s2-saola-1
variant: esp32_s2_devkitm_1
framework:
type: esp-idf
# blink - GPIO1
output:
- platform: gpio
pin: 1
id: led_out
light:
- platform: binary
name: "LED"
output: led_outesptool.py --chip esp32s2 --port /dev/ttyACM0 \
write_flash 0x0 firmware.binSpecifications
ESP32-S2 · 54 × 25.4 mmAbout this board
At its core is the ESP32-S2 - a single-core Xtensa with native USB-OTG and no Bluetooth.
Expect to pay about $8.00 - less than the ~$20 most ESP32-S2 boards go for.
37 GPIO are broken out - more than most ESP32-S2 boards, so the pin budget is rarely the constraint.
Onboard you'll find an addressable RGB LED (GPIO18) and Boot/Reset buttons.
Where to buy
prices are typical street prices
Resources
Similar boards




