WEMOS LOLIN S2 Mini

A 34.3 × 25.4 mm ESP32-S2FH4 board (4 MB in-package flash, no PSRAM) in the D1 mini footprint, with native USB on Type-C and no USB-to-UART chip. Its 32 pins sit in two double rows, 27 of them GPIOs.

Module / chip41ESP32-S2FH4
Flash454 MB
PSRAM—
USB4USB Type-C wired to the ESP32-S2 USB OTG pins GPIO19
USB-UART—

Pinout

WEMOS LOLIN S2 Mini pinouttop view · not to scale · arduino-esp32 3.3.12 defaults · espsss.fyi/reference/boards/lolin-s2-mini/ESP32-S2USBENGPIO3ADC1_CH2TOUCH3GPIO5ADC1_CH4TOUCH5GPIO7SCKADC1_CH6TOUCH7GPIO9MISOADC1_CH8TOUCH9GPIO11MOSIADC2_CH0TOUCH11GPIO12SSADC2_CH1TOUCH123.3VGPIO1ADC1_CH0TOUCH1GPIO2ADC1_CH1TOUCH2GPIO4ADC1_CH3TOUCH4GPIO6ADC1_CH5TOUCH6GPIO8ADC1_CH7TOUCH8GPIO10ADC1_CH9TOUCH10GPIO13ADC2_CH2TOUCH13GPIO14ADC2_CH3TOUCH14GPIO40JTAGGPIO38GPIO36GPIO34GPIO21GPIO17ADC2_CH6DACGNDGPIO15ADC2_CH4LEDXTAL_32KGPIO39TXJTAGGPIO37RXGPIO35SCLGPIO33SDAGPIO18ADC2_CH7DAC10k pull-upGPIO16ADC2_CH5XTAL_32KGNDVBUSGPIOArduino defaultADCTouchDACPowerGroundControlJTAGOn-board part
Top view, not to scale. Pin order: maker's documentation11111. ADC and touch channels from ESP-IDF v5.5.5, defaults from arduino-esp32 3.3.12. Download SVG.

Which pins to use

Free to use (23)

  • GPIO1
  • GPIO2
  • GPIO3
  • GPIO4
  • GPIO5
  • GPIO6
  • GPIO7
  • GPIO8
  • GPIO9
  • GPIO10
  • GPIO11 — ADC2 is shared with Wi-Fi: reads can fail while Wi-Fi is on
  • GPIO12 — ADC2 is shared with Wi-Fi: reads can fail while Wi-Fi is on
  • GPIO13 — ADC2 is shared with Wi-Fi: reads can fail while Wi-Fi is on
  • GPIO14 — ADC2 is shared with Wi-Fi: reads can fail while Wi-Fi is on
  • GPIO16 — ADC2 is shared with Wi-Fi: reads can fail while Wi-Fi is on
  • GPIO17 — ADC2 is shared with Wi-Fi: reads can fail while Wi-Fi is on
  • GPIO21
  • GPIO33
  • GPIO34
  • GPIO35
  • GPIO36
  • GPIO37
  • GPIO38

Usable, with care (4)

  • GPIO15 — on-board: LED (LED1, active high through 2 kΩ); ADC2 is shared with Wi-Fi: reads can fail while Wi-Fi is on
  • GPIO18 — on-board: 10 kΩ pull-up to 3.3 V (R4); ADC2 is shared with Wi-Fi: reads can fail while Wi-Fi is on
  • GPIO39 — JTAG pin
  • GPIO40 — JTAG pin

Avoid (0)

  • —

Derived from the chip and board data on this site (pin roles, strapping pins, on-board parts). “Free” still means: check the pin table for ADC/touch channels. Try your own combination in the pin planner.

Arduino IDE

Tools → BoardLOLIN S2 Mini3
FQBNesp32:esp32:lolin_s2_mini
Variantlolin_s2_mini

Default pins from the variant's pins_arduino.h in arduino-esp32 3.3.12; this is what Wire.begin(), SPI.begin() and Serial0 use without arguments.

TXGPIO392
RXGPIO372
SDAGPIO332
SCLGPIO352
SSGPIO122
MOSIGPIO112
MISOGPIO92
SCKGPIO72
LED_BUILTINGPIO152

On-board connections

GPIO15LED (LED1, active high through 2 kΩ)12
GPIO0Button 0 (SW2, to GND)1
GPIO1810 kΩ pull-up to 3.3 V (R4)1

Things to know

Native USB only: download mode by hand

There is no USB-to-UART chip and no auto-reset circuit; the schematic has only the two buttons (SW1 on EN, SW2 on GPIO0). To enter the bootloader by hand, hold button 0 (GPIO0) and press RST: GPIO0 low at reset, with GPIO46 at its default weak pull-down, selects joint download boot mode, which includes USB-OTG download.51

GPIO19 and GPIO20 are taken by USB

The Type-C connector uses GPIO19 and GPIO20 (USB D−/D+), so they are not on the headers, although pins_arduino.h still lists them as A18 and A19.12

GPIO18 has a pull-up

The schematic shows R4 (10 kΩ) from GPIO18 to 3.3 V. GPIO18 is also DAC_2 (DAC2 in pins_arduino.h), so a DAC or analog signal on this pin works against that pull-up.12

Strapping pins

The ESP32-S2 strapping pins are GPIO0, GPIO45 and GPIO46. GPIO0 is the on-board button; GPIO45 and GPIO46 are not on the headers.5

Pin table

Header#LabelGPIOFunctions
J211ENEN
J223GPIO3ADC1_CH2 TOUCH3
J235GPIO5ADC1_CH4 TOUCH5
J247GPIO7SCK ADC1_CH6 TOUCH7
J259GPIO9MISO ADC1_CH8 TOUCH9
J2611GPIO11MOSI ADC2_CH0 TOUCH11
J2712GPIO12SS ADC2_CH1 TOUCH12
J283.3V3.3V
J5111GPIO1ADC1_CH0 TOUCH1
J522GPIO2ADC1_CH1 TOUCH2
J534GPIO4ADC1_CH3 TOUCH4
J546GPIO6ADC1_CH5 TOUCH6
J558GPIO8ADC1_CH7 TOUCH8
J5610GPIO10ADC1_CH9 TOUCH10
J5713GPIO13ADC2_CH2 TOUCH13
J5814GPIO14ADC2_CH3 TOUCH14
J41140GPIO40JTAG
J4238GPIO38
J4336GPIO36
J4434GPIO34
J4521GPIO21
J4617GPIO17ADC2_CH6 DAC
J47GNDGND
J4815GPIO15ADC2_CH4 LED XTAL_32K
J31139GPIO39TX JTAG
J3237GPIO37RX
J3335GPIO35SCL
J3433GPIO33SDA
J3518GPIO18ADC2_CH7 DAC 10k pull-up
J3616GPIO16ADC2_CH5 XTAL_32K
J37GNDGND
J38VBUSVBUS

Specifications

Board
Module / chipESP32-S2FH4 chip soldered directly on the board (no module)41
Flash4 MB, in the chip package (ESP32-S2FH4)45
PSRAM—
USBUSB Type-C wired to the ESP32-S2 USB OTG pins GPIO19 (D−) and GPIO20 (D+)4
USB-to-UART bridge—
LEDsOne LED (LED1) on GPIO15 through a 2 kΩ resistor to GND, so it lights on HIGH12
ButtonsSW1 on EN (reset) and SW2 on GPIO0, both to GND1
Size34.3 × 25.4 mm, 2.4 g4
Power5 V from USB or the VBUS pin, ME6211C33 3.3 V regulator; 3.3 V operating voltage1

Product page: https://www.wemos.cc/en/latest/s2/s2_mini.html

Sources

Each number on this page links here. Open “What it confirms” to see the exact quote behind every value. Checked 2026-11-28.

  1. WEMOS: S2 mini schematic V1.0.0 (sch_s2_mini_v1.0.0.pdf) primary
    What it confirms (19)
    • WEMOS LOLIN S2 Mini: header J2 pins “J2 … EN IO3 IO5 IO7 IO9 IO11 IO12 +3V3”
    • WEMOS LOLIN S2 Mini: header J5 pins “J5 … IO1 IO2 IO4 IO6 IO8 IO10 IO13 IO14”
    • WEMOS LOLIN S2 Mini: header J4 pins “J4 … IO40 IO38 IO36 IO34 IO21 IO17 GND IO15”
    • WEMOS LOLIN S2 Mini: header J3 pins “J3 … IO39 IO37 IO35 IO33 IO18 IO16 GND VBUS”
    • WEMOS LOLIN S2 Mini: orientation “J2 … EN IO3 IO5 IO7 IO9 IO11 IO12 +3V3 … J5 … IO1 IO2 IO4 IO6 IO8 IO10 IO13 IO14 … IO40 IO38 IO36 IO34 IO21 IO17 GND IO15 … IO39 IO37 IO35 IO33 IO18 IO16 GND VBUS”
    • WEMOS LOLIN S2 Mini: Module / chip “ESP32-S2FH4”
    • WEMOS LOLIN S2 Mini: LED (LED1, active high through 2 kΩ) “LED1 … IO15”
    • WEMOS LOLIN S2 Mini: Button 0 (SW2, to GND) “SW2 … IO0”
    • WEMOS LOLIN S2 Mini: 10 kΩ pull-up to 3.3 V (R4) “IO18 … R4 … 10k”
    • WEMOS LOLIN S2 Mini: Native USB only: download mode by hand “SW2 … IO0”
    • WEMOS LOLIN S2 Mini: GPIO19 and GPIO20 are taken by USB “GPIO19/USB_D- … GPIO20/USB_D+”
    • WEMOS LOLIN S2 Mini: GPIO18 has a pull-up “IO18 … R4 … GPIO18/DAC_2”
    • WEMOS LOLIN S2 Mini: header J2 “J2 … EN IO3 IO5 IO7 IO9 IO11 IO12 +3V3”
    • WEMOS LOLIN S2 Mini: header J5 “J5 … IO1 IO2 IO4 IO6 IO8 IO10 IO13 IO14”
    • WEMOS LOLIN S2 Mini: header J4 “J4 … IO40 IO38 IO36 IO34 IO21 IO17 GND IO15”
    • WEMOS LOLIN S2 Mini: header J3 “J3 … IO39 IO37 IO35 IO33 IO18 IO16 GND VBUS”
    • WEMOS LOLIN S2 Mini: LEDs “LED1 … LED_0603_B … R5 2k … IO15”
    • WEMOS LOLIN S2 Mini: Buttons “SW1 … SW2 … SW_2x4x3.5”
    • WEMOS LOLIN S2 Mini: Power “ME6211C33 … Operating Voltage … 3.3V”
  2. arduino-esp32 3.3.12: variants/lolin_s2_mini/pins_arduino.h primary
    What it confirms (13)
    • WEMOS LOLIN S2 Mini: TX “static const uint8_t TX = 39;”
    • WEMOS LOLIN S2 Mini: RX “static const uint8_t RX = 37;”
    • WEMOS LOLIN S2 Mini: SDA “static const uint8_t SDA = 33;”
    • WEMOS LOLIN S2 Mini: SCL “static const uint8_t SCL = 35;”
    • WEMOS LOLIN S2 Mini: SS “static const uint8_t SS = 12;”
    • WEMOS LOLIN S2 Mini: MOSI “static const uint8_t MOSI = 11;”
    • WEMOS LOLIN S2 Mini: MISO “static const uint8_t MISO = 9;”
    • WEMOS LOLIN S2 Mini: SCK “static const uint8_t SCK = 7;”
    • WEMOS LOLIN S2 Mini: LED_BUILTIN “#define LED_BUILTIN LED_BUILTIN”
    • WEMOS LOLIN S2 Mini: LED (LED1, active high through 2 kΩ) “LED_BUILTIN = 15”
    • WEMOS LOLIN S2 Mini: GPIO19 and GPIO20 are taken by USB “A18 = 19 … A19 = 20”
    • WEMOS LOLIN S2 Mini: GPIO18 has a pull-up “DAC2 = 18”
    • WEMOS LOLIN S2 Mini: LEDs “LED_BUILTIN = 15”
  3. arduino-esp32 3.3.12: boards.txt primary
    What it confirms (1)
    • WEMOS LOLIN S2 Mini: Arduino board “lolin_s2_mini.name=LOLIN S2 Mini”
  4. WEMOS documentation: S2 mini primary
    What it confirms (4)
    • WEMOS LOLIN S2 Mini: Module / chip “based ESP32-S2FH4 WIFI IC”
    • WEMOS LOLIN S2 Mini: Flash “4MB Flash”
    • WEMOS LOLIN S2 Mini: USB “Type-C USB … USB_C_16P … GPIO19/USB_D- … GPIO20/USB_D+”
    • WEMOS LOLIN S2 Mini: Size “34.3*25.4mm … 2.4g”
  5. ESP32-S2 Series Datasheet v1.9 primary
    What it confirms (3)
    • WEMOS LOLIN S2 Mini: Flash “ESP32-S2FH4 4 MB (Quad SPI) —”
    • WEMOS LOLIN S2 Mini: Native USB only: download mode by hand “Joint download boot mode 2 0 0 … USB-OTG Download Boot … GPIO46 Weak pull-down 0”
    • WEMOS LOLIN S2 Mini: Strapping pins “GPIO0, GPIO45, GPIO46 : Strapping pins.”