LOLIN S2 Mini image

LOLIN S2 Mini

Development Board

Code name: LOLIN_S2_MINI

LOLIN S2 Mini is a development board based on the ESP32S2 microcontroller using XTENSA architecture.

This board features a maximum CPU frequency of 240 MHz and 4MB flash memory.

About LOLIN S2 Mini

Compact ESP32-S2 board by Wemos with USB-C and LiPo charging - perfect for space-saving embedded builds.

Where to Buy LOLIN S2 Mini

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specifications

Complete technical specification details for LOLIN S2 Mini

Connectivity

WiFi 802.11 b/g/n 2.4 GHz
Bluetooth -
BLE -

Microcontroller

Model esp32s2
Clock Speed 240 MHz
Flash Size 4MB
Architecture xtensa

Features & Pins

Digital IO 48
Analog Input 20
PWM 24
Interrupts 46

Quick Setup

Copy-paste configs for LOLIN S2 Mini - auto‑generated from this board's exact hardware specs.

ESP32S2 240 MHz 4MB DIO Xtensa

In Arduino IDE 2 select Lolin S2 Mini from the esp32 by Espressif package. In PlatformIO use board = esp32-s2-saola-1. ESP32S2 · 240 MHz · 4MB · DIO.

Tools menu settings
Board (select in Arduino IDE) Lolin S2 Mini
CPU Frequency 240 MHz
Flash Size 4MB
Flash Mode DIO
Upload Speed 921600
Architecture Xtensa

In Arduino IDE 2, open Boards Manager, search "esp32" by Espressif and install it. Then go to Tools → Board and select "Lolin S2 Mini" for the LOLIN S2 Mini.

LOLIN S2 Mini Pinout Diagram

Complete pin reference for LOLIN S2 Mini

LOLIN S2 Mini pinout diagram

Safe Pins to Use

These pins are safe for general GPIO usage without boot or system conflicts

IO1
IO2
IO3
IO4
IO5
IO6
IO7
IO8
IO17
IO18
IO21

Why Are These Pins Safe?

No boot sequence involvement
No flash/PSRAM connections
No USB or JTAG conflicts
Freely assignable without issues

Pins to Avoid or Use with Caution

Reserved for critical functions. Misuse may cause boot failures, programming issues, or system conflicts.

Strapping Pins

Boot behavior & flash voltage

JTAG Debugging

Low-level debugging interface

USB Pins

USB Serial/JTAG communication

Flash/SPI Pins

Memory & PSRAM connections

UART Serial

Debugging & firmware uploads

PINLabelWhy AvoidType
IO9FSPIHDTypically used as flash/PSRAM IO line in certain configurations; avoid using as GPIO if flash or PSRAM is present.⚡ Flash
IO10FSPICS0Often used as flash chip select in some designs; not available for GPIO when controlling flash.⚡ Flash
IO11FSPIDUsed for flash data transfer in certain configurations; should be avoided for general use if flash is connected.⚡ Flash
IO12FSPICLKUsed as flash clock line in some boards; not free for GPIO if driving flash.⚡ Flash
IO13FSPIQUsed for flash data output in certain configurations; avoid using as GPIO if connected to flash.⚡ Flash

Useful Links

Datasheets and resources for LOLIN S2 Mini

LOLIN S2 Mini Custom Pin Mapping

Pin configuration and GPIO mapping for LOLIN S2 Mini

48
Digital I/O Pins
46
Interrupt Pins
20
Analog Inputs
24
PWM Pins
PinFunctionESP PinI/O TypeDescription
15V5VPOWER INPUT5V power input for the board
2GNDGNDPOWER GROUNTGround connection
33V33.3VPOWER OUTPUT3.3V power output
5IO1GPIO1BIDIRECTIONALGPIO
6IO2GPIO2BIDIRECTIONALGPIO, ADC
7IO3GPIO3BIDIRECTIONALGPIO
8IO4GPIO4BIDIRECTIONALGPIO, ADC
9IO5GPIO5BIDIRECTIONALGPIO
10IO6GPIO5BIDIRECTIONALGPIO
11IO7GPIO5BIDIRECTIONALGPIO
12IO8GPIO5BIDIRECTIONALGPIO
13IO9GPIO5BIDIRECTIONALGPIO
14IO10GPIO5BIDIRECTIONALGPIO
15IO11GPIO5BIDIRECTIONALGPIO
16IO12GPIO12BIDIRECTIONALGPIO, ADC
17IO13GPIO13BIDIRECTIONALGPIO, ADC
18IO14GPIO14BIDIRECTIONALGPIO, ADC
19IO15GPIO15BIDIRECTIONALGPIO, ADC
20IO16GPIO16BIDIRECTIONALGPIO
21IO17GPIO17BIDIRECTIONALGPIO
22IO18GPIO18BIDIRECTIONALGPIO
23IO21GPIO21BIDIRECTIONALGPIO
24IO33GPIO33BIDIRECTIONALGPIO, ADC
25IO34GPIO34INPUTGPIO, ADC
26IO35GPIO35INPUTGPIO, ADC
27IO36GPIO36INPUTGPIO, ADC
28IO37GPIO37INPUTGPIO, ADC
29IO38GPIO38INPUTGPIO, ADC
30IO39GPIO39INPUTGPIO, ADC
31IO40GPIO40INPUTGPIO, ADC
Legend
Function Pin role
GPIO ESP32 pin
I/O Direction
# Pin number

Pin Mappings

Complete pinout and GPIO mapping for LOLIN S2 Mini

48
Digital I/O Pins
46
Interrupt Pins
20
Analog Inputs
24
PWM Pins
PinAnalogTouchPWMOther
1A0T1PWM
2A1T2PWM
3A2T3PWM
4A3T4PWM
5A4T5PWM
6A5T6PWM
7A6T7PWMSCK
8A7T8PWM
9A8T9PWMMISO
10A9T10PWM
11A10T11PWMMOSI
12A11T12PWMSS
13A12T13PWM
14A13T14PWM
15A14PWMLED_BUILTIN
16A15PWM
17A16PWMDAC1
18A17PWMDAC2
19A18PWM
20A19PWM
33PWMSDA
35PWMSCL
37PWMRX
39PWMTX
0x00000000USB_FW_MSC_SERIAL_NUMBER
Legend
A0 Analog input
T0 Touch sensor
PWM PWM capable
RX/TX Serial pins
LED Built-in LED
# Pin number

Default Tools & Configuration

Build and upload settings for LOLIN S2 Mini

SettingValue
Bootloader toolesptool_py
Uploader toolesptool_py
Network uploader toolesp_ota
Bootloader address0x1000
Flash modedio
Boot modeqio
Maximum upload size
1280 KB (1310720 bytes)
Maximum data size
320 KB (327680 bytes)
Configuration Summary

The LOLIN S2 Mini uses esptool_py for uploads , esp_ota for OTA updates, and esptool_py bootloader at 0x1000.

Flash mode: dio | Boot mode: qio

Max sketch size: 1280 KB | Max data size: 320 KB