Wemos S2 Mini (ESP32-S2) pinout

WEMOS LOLIN S2 Mini (ESP32-S2), ESP32-S2, 3.3 V logic, 25.4×34.3 mm, 32 pins

verified17.10.2026

Which Wemos S2 Mini (ESP32-S2) pins are safe to use

Free to use

GPIO1-14, GPIO16-18, GPIO21, GPIO33-40

Use with care

  • GPIO15: onboard LED.

Important

  • 3.3 V logic, don't put 5 V on the GPIO.
  • There is no USB-UART bridge: USB-C is the ESP32-S2's own USB. If the program hangs or the port disappears, flash like this: hold 0, press and release RST, release 0.
  • The two outer rows match the D1 mini in position: D1 mini shields fit, but the pin functions are different.
  • ADC: ADC1 on GPIO1-10, ADC2 on 11-20 (may not work with Wi-Fi). DAC: GPIO17, 18. Touch: GPIO1-14.
  • Strapping: GPIO0 (button), 45 and 46 are not broken out to the header.
  • Silkscreen labels are GPIO numbers; row positions are taken from photos and the D1 mini, there is no exact row drawing.

Revisions and clones

  • "S2 mini" clones copy the board; some have the LED on another GPIO or no PSRAM (ESP32-S2FN4).

All pins

LabelNumberFunctionsLimitsCheck
ENCHIP_PU: enable and reset (low = reset)onboard pull-uponboard buttonverified
3GPIO3interruptPWM (LEDC)ADC1_CH2RTC_GPIO3TOUCH3not 5 V tolerantverified
5GPIO5interruptPWM (LEDC)ADC1_CH4RTC_GPIO5TOUCH5not 5 V tolerantverified
7GPIO7interruptPWM (LEDC)ADC1_CH6RTC_GPIO7TOUCH7SPI SCKnot 5 V tolerantverified
9GPIO9interruptPWM (LEDC)ADC1_CH8RTC_GPIO9TOUCH9SPI MISOnot 5 V tolerantverified
11GPIO11interruptPWM (LEDC)ADC2_CH0RTC_GPIO11TOUCH11FSPIDSPI MOSIADC2 doesn't work with Wi-Fi onnot 5 V tolerantverified
12GPIO12interruptPWM (LEDC)ADC2_CH1RTC_GPIO12TOUCH12FSPICLKSPI SSADC2 doesn't work with Wi-Fi onnot 5 V tolerantverified
3V33.3 Vpower inputpower outputverified
1GPIO1interruptPWM (LEDC)ADC1_CH0RTC_GPIO1TOUCH1not 5 V tolerantverified
2GPIO2interruptPWM (LEDC)ADC1_CH1RTC_GPIO2TOUCH2not 5 V tolerantverified
4GPIO4interruptPWM (LEDC)ADC1_CH3RTC_GPIO4TOUCH4not 5 V tolerantverified
6GPIO6interruptPWM (LEDC)ADC1_CH5RTC_GPIO6TOUCH6not 5 V tolerantverified
8GPIO8interruptPWM (LEDC)ADC1_CH7RTC_GPIO8TOUCH8not 5 V tolerantverified
10GPIO10interruptPWM (LEDC)ADC1_CH9RTC_GPIO10TOUCH10FSPICS0not 5 V tolerantverified
13GPIO13interruptPWM (LEDC)ADC2_CH2RTC_GPIO13TOUCH13FSPIQADC2 doesn't work with Wi-Fi onnot 5 V tolerantverified
14GPIO14interruptPWM (LEDC)ADC2_CH3RTC_GPIO14TOUCH14FSPIWPADC2 doesn't work with Wi-Fi onnot 5 V tolerantverified
40GPIO40interruptPWM (LEDC)JTAG MTDOCLK_OUT2not 5 V tolerantverified
38GPIO38interruptPWM (LEDC)FSPIWPnot 5 V tolerantverified
36GPIO36interruptPWM (LEDC)not 5 V tolerantverified
34GPIO34interruptPWM (LEDC)not 5 V tolerantverified
21GPIO21interruptPWM (LEDC)RTC_GPIO21not 5 V tolerantverified
17GPIO17interruptPWM (LEDC)ADC2_CH6RTC_GPIO17DAC1U1TXDADC2 doesn't work with Wi-Fi onnot 5 V tolerantverified
GNDGroundverified
15GPIO15interruptPWM (LEDC)ADC2_CH4RTC_GPIO15XTAL_32K_PU0RTSADC2 doesn't work with Wi-Fi onnot 5 V tolerantonboard LEDverified
39GPIO39interruptPWM (LEDC)JTAG MTCKCLK_OUT3Serial1 TXnot 5 V tolerantverified
37GPIO37interruptPWM (LEDC)Serial1 RXnot 5 V tolerantverified
35GPIO35interruptPWM (LEDC)I2C SCLnot 5 V tolerantverified
33GPIO33interruptPWM (LEDC)SPIIO4 / FSPIHDI2C SDAnot 5 V tolerantverified
18GPIO18interruptPWM (LEDC)ADC2_CH7RTC_GPIO18DAC2U1RXDCLK_OUT3ADC2 doesn't work with Wi-Fi onnot 5 V tolerantverified
16GPIO16interruptPWM (LEDC)ADC2_CH5RTC_GPIO16XTAL_32K_NU0CTSADC2 doesn't work with Wi-Fi onnot 5 V tolerantverified
GNDGroundverified
VBUS5 Vpower inputpower outputverified

Sources

Every pin is verified against the manufacturer's documents.

  • WEMOS: S2 mini (documentation)user guide, checked 17.10.2026ESP32-S2FN4R2, 4 MB flash, 2 MB PSRAM, USB-C, 27 GPIO, size 34.3×25.4 mm, compatible with D1 mini shields
  • WEMOS S2 mini V1.0.0 schematic (KiCad)schematic, checked 17.10.2026nets J2 (EN, IO3, 5, 7, 9, 11, 12, 3V3), J5 (IO1, 2, 4, 6, 8, 10, 13, 14), J4 (IO40, 38, 36, 34, 21, 17, GND, 15), J3 (IO39, 37, 35, 33, 18, 16, GND, VBUS); ME6211C33, EN and IO0 buttons, LED on IO15 via 2 kΩ
  • WEMOS S2 mini V1.0.0 dimensionsboard drawing, checked 17.10.202634.30×25.40 mm, cutout in the lower left corner, 2.0 mm holes: 2.5 mm from the edge and 20.4 mm apart
  • arduino-esp32: variants/lolin_s2_mini/pins_arduino.hArduino core, checked 17.10.2026LED_BUILTIN 15, TX 39, RX 37, SDA 33, SCL 35, SS 12, MOSI 11, MISO 9, SCK 7, USB VID:PID 303a:80c2
  • ESP32-S2 Series Datasheet (Espressif)datasheet, checked 17.10.2026pin functions: ADC1_CH0-9 on GPIO1-10, ADC2_CH0-9 on GPIO11-20, TOUCH1-14, DAC on GPIO17/18, USB OTG GPIO19/20, JTAG GPIO39-42, UART0 GPIO43/44, strapping GPIO0/45/46, GPIO46 input only
  • ESP-IDF: GPIO (ESP32-S2)user guide, checked 17.10.2026GPIO26-32 are used by SPI flash and PSRAM, GPIO46 is input only, strapping pins, RTC GPIO0-21
  • arduino-esp32: variants/esp32s2/pins_arduino.hArduino core, checked 17.10.2026defaults: TX 43, RX 44, SDA 8, SCL 9, SS 34, MOSI 35, MISO 37, SCK 36

Size: per the Wemos dimension drawing; rows as on the D1 mini, their position taken from photos.

FAQ

Which Wemos S2 Mini (ESP32-S2) pins are I2C, SPI and UART?
By default in arduino-esp32 (board "LOLIN S2 Mini"): I2C: SDA GPIO33, SCL GPIO35; SPI: MOSI GPIO11, MISO GPIO9, SCK GPIO7, SS GPIO12; UART: TX GPIO39, RX GPIO37.
Which pin is the Wemos S2 Mini (ESP32-S2) LED on?
Blue LED on GPIO15.
Are the Wemos S2 Mini (ESP32-S2) pins 5 V tolerant?
No. The logic is 3.3 V and the pins are not 5 V tolerant: use a divider or a level shifter for 5 V signals.
Does ADC2 on the Wemos S2 Mini (ESP32-S2) work with Wi-Fi on?
No. ADC2 pins (GPIO11-18) can't read analog while Wi-Fi is on. With Wi-Fi, use GPIO1-10 for the ADC.

You might also need

Similar boards

Next

Need firmware or a device built on ESP32? I'll build it to order