LOLIN S2 Mini Development Board

Code name: LOLIN_S2_MINI

LOLIN S2 Mini development board is based on esp32s2 microcontroller and uses xtensa architecture. This board has a maximum CPU frequency of 240 MHz and a flash size of 4MB.

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

Starting from

5$ per unit

Amazon com
Amazon.com Ships worldwide
View Price
Amazon de
Amazon.de Ships to EU
View Price

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

Technical Specifications

πŸ›°οΈ 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

  • 48 digital IO pins
  • 46 external interrupt pins
  • 20 analog input pins
  • 24 PWM pins

LOLIN S2 Mini Pinout

βœ… Safe Pins to Use

For general GPIO usage, these are the safest and most flexible choices:

πŸ”Ή IO1
πŸ”Ή IO2
πŸ”Ή IO3
πŸ”Ή IO4
πŸ”Ή IO5
πŸ”Ή IO6
πŸ”Ή IO7
πŸ”Ή IO8
πŸ”Ή IO17
πŸ”Ή IO18
πŸ”Ή IO21

Why Are These Pins Safe?

  • Not involved in bootstrapping β†’ No impact on device boot mode or system startup
  • Not linked to flash memory or PSRAM β†’ Won't interfere with storage or memory access
  • Not dedicated to USB or JTAG β†’ Free for general use without affecting debugging
  • No special hardware connections β†’ Freely assignable without internal conflicts

⚠️ Pins to Avoid or Use with Caution

Some pins are reserved for critical functions like bootstrapping, JTAG debugging, USB communication, and flash memory operations. Misusing these pins may lead to boot failures, programming issues, USB conflicts, or disruptions in flash storage.

Critical Pin Categories:

  • πŸ› οΈ Strapping Pins: Control boot behavior and flash voltage selection
  • πŸ”— JTAG Debugging Pins: Required for low-level debugging
  • πŸ”Œ USB Communication Pins: Used for USB Serial/JTAG communication
  • ⚑ Flash Memory & SPI Pins: Connected to SPI flash memory and PSRAM
  • πŸ“‘ UART Serial Communication Pins: Used for debugging and firmware uploads
PINLabelReasonFunction
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

LOLIN S2 Mini Pin Mappings

This development board provides 48 digital IO pins, out of which 46 can be used as external interrupt pins , 20 as analog input pins and 24 pins have Pulse-Width Modulation (PWM) .

PinFunctionESP PinInput/OutputDescription
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
Function Pin Function
ESP Pin Pin on ESP32
I/O Input/Output Pin
Description Pin Description

LOLIN S2 Mini Pins Mapping Arduino IDE

Below you can find the LOLIN S2 Mini pinout. This development board provides 48 digital IO pins, out of which 46 can be used as external interrupt pins, 20 as analog input pins and 24 pins have Pulse-Width Modulation (PWM).

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
Analog Analog input pins
Touch Touch pins
Function Function pins
RX / TX Receive/Transmit
LED_BUILTIN Built-in LED
PWM Pulse-Width Modulation

Default Tools

Bootloader toolesptool_py
Uploader toolesptool_py
Network uploader toolesp_ota
Bootloader address0x1000
Flash modedio
Boot modeqio
Maximum upload size
1280 Kb
(1310720 B)
Maximum data size
320 Kb
(327680 B)

The LOLIN S2 Mini development board by default uses esptool_py uploader tool, esp_ota network uploader tool for Over-the-air (OTA) uploads and esptool_py bootloader tool. The bootloader starts at address "0x1000". Flash mode and boot mode for LOLIN S2 Mini development board by default is dio and qio respectively.