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.
Pinout
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
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.
On-board connections
| GPIO15 | LED (LED1, active high through 2 kΩ)12 |
| GPIO0 | Button 0 (SW2, to GND)1 |
| GPIO18 | 10 kΩ pull-up to 3.3 V (R4)1 |
Things to know
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
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
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
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 | # | Label | GPIO | Functions |
|---|---|---|---|---|
| J21 | 1 | EN | EN | |
| J2 | 2 | 3 | GPIO3 | ADC1_CH2 TOUCH3 |
| J2 | 3 | 5 | GPIO5 | ADC1_CH4 TOUCH5 |
| J2 | 4 | 7 | GPIO7 | SCK ADC1_CH6 TOUCH7 |
| J2 | 5 | 9 | GPIO9 | MISO ADC1_CH8 TOUCH9 |
| J2 | 6 | 11 | GPIO11 | MOSI ADC2_CH0 TOUCH11 |
| J2 | 7 | 12 | GPIO12 | SS ADC2_CH1 TOUCH12 |
| J2 | 8 | 3.3V | 3.3V | |
| J51 | 1 | 1 | GPIO1 | ADC1_CH0 TOUCH1 |
| J5 | 2 | 2 | GPIO2 | ADC1_CH1 TOUCH2 |
| J5 | 3 | 4 | GPIO4 | ADC1_CH3 TOUCH4 |
| J5 | 4 | 6 | GPIO6 | ADC1_CH5 TOUCH6 |
| J5 | 5 | 8 | GPIO8 | ADC1_CH7 TOUCH8 |
| J5 | 6 | 10 | GPIO10 | ADC1_CH9 TOUCH10 |
| J5 | 7 | 13 | GPIO13 | ADC2_CH2 TOUCH13 |
| J5 | 8 | 14 | GPIO14 | ADC2_CH3 TOUCH14 |
| J41 | 1 | 40 | GPIO40 | JTAG |
| J4 | 2 | 38 | GPIO38 | |
| J4 | 3 | 36 | GPIO36 | |
| J4 | 4 | 34 | GPIO34 | |
| J4 | 5 | 21 | GPIO21 | |
| J4 | 6 | 17 | GPIO17 | ADC2_CH6 DAC |
| J4 | 7 | GND | GND | |
| J4 | 8 | 15 | GPIO15 | ADC2_CH4 LED XTAL_32K |
| J31 | 1 | 39 | GPIO39 | TX JTAG |
| J3 | 2 | 37 | GPIO37 | RX |
| J3 | 3 | 35 | GPIO35 | SCL |
| J3 | 4 | 33 | GPIO33 | SDA |
| J3 | 5 | 18 | GPIO18 | ADC2_CH7 DAC 10k pull-up |
| J3 | 6 | 16 | GPIO16 | ADC2_CH5 XTAL_32K |
| J3 | 7 | GND | GND | |
| J3 | 8 | VBUS | VBUS |
Specifications
| Board | |
|---|---|
| Module / chip | ESP32-S2FH4 chip soldered directly on the board (no module)41 |
| Flash | 4 MB, in the chip package (ESP32-S2FH4)45 |
| PSRAM | — |
| USB | USB Type-C wired to the ESP32-S2 USB OTG pins GPIO19 (D−) and GPIO20 (D+)4 |
| USB-to-UART bridge | — |
| LEDs | One LED (LED1) on GPIO15 through a 2 kΩ resistor to GND, so it lights on HIGH12 |
| Buttons | SW1 on EN (reset) and SW2 on GPIO0, both to GND1 |
| Size | 34.3 × 25.4 mm, 2.4 g4 |
| Power | 5 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.
- 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”
- 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”
- 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”
- 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”
- 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.”