WEMOS LOLIN32

Compact ESP32 board with Wi-Fi, BLE, and built-in LiPo charging - ideal for portable, low-power IoT and battery-powered projects.

Micro-USB
WEMOS LOLIN32 board
58 × 25.4 mm
ESP32
MCU
240MHz
clock
4MB
flash
520KB
SRAM
26· 16 ADC
GPIO
BLE 4.2+ WiFi
radio
On this page

WEMOS LOLIN32 Pinout

36 pins · 2.54 mm pitch
WEMOS LOLIN32 pinout diagram, high resolution: all 36 pins, with GPIO numbers, ADC channels and strapping pins
WEMOS LOLIN32 pinout, drawn by ESPboards from the ESP32 Series Datasheet v5.3.
PinGPIOLabelsStatusCapabilitiesNotes
1-3V33V3.3Vpower-3.3 V rail from the ME6211 regulator (P2 pin 1)
2-ENRSTcontrol-ESP32 chip enable: 10k pull-up, 1 uF to GND and the RESET button to GND. Pull LOW to reset
336IO36GPIO36VPSENSOR_VPA0strappingadcADC1_CH0; input only, no internal pull-up/down
439IO39GPIO39VNSENSOR_VNA3strappingadcADC1_CH3; input only, no internal pull-up/down
532IO32GPIO32A4T9safeadc · touch · pwmADC1_CH4; Touch 9
633IO33GPIO33A5T8safeadc · touch · pwmADC1_CH5; Touch 8
734IO34GPIO34A6strappingadcADC1_CH6; input only, no internal pull-up/down
835IO35GPIO35A7strappingadcADC1_CH7; input only, no internal pull-up/down
925IO25GPIO25DAC1A18safeadc · dac · pwmADC2_CH8 (unusable while Wi-Fi is on); DAC1
1026IO26GPIO26DAC2A19safeadc · dac · pwmADC2_CH9 (unusable while Wi-Fi is on); DAC2
1127IO27GPIO27A17T7safeadc · touch · pwmADC2_CH7 (unusable while Wi-Fi is on); Touch 7
1214IO14GPIO14HSPI_CLKA16T6strappingadc · touch · spi · pwmJTAG MTMS; ADC2_CH6 (unusable while Wi-Fi is on); Touch 6
1312IO12GPIO12HSPI_MISOA15T5strappingadc · touch · spi · pwmstrapping pin (MTDI): HIGH at boot selects 1.8 V flash and stops a 3.3 V module booting - keep it LOW at reset; ADC2_CH5 (unusable while Wi-Fi is on); Touch 5
1413IO13GPIO13HSPI_MOSIA14T4strappingadc · touch · spi · pwmJTAG MTCK; ADC2_CH4 (unusable while Wi-Fi is on); Touch 4
15-5VVUSBpower-The +5V rail: USB VBUS through the CJ2301 ideal-diode switch (Q1, driven by the BCM857BC mirror). A 5 V output while USB is plugged in; fed from here instead, it reaches the regulator through the B5819 and charges the battery
16-GNDground-Ground
17-GNDground-Ground
181IO1GPIO1TXTXD0uartuart · pwmUART0 TX to the USB-serial chip (boot log, uploads)
193IO3GPIO3RXRXD0uartuart · pwmUART0 RX from the USB-serial chip (uploads)
20-3V33V3.3Vpower-3.3 V rail from the ME6211 regulator (P3 pin 4)
2122IO22GPIO22SCLsafei2c · pwmI2C SCL (Arduino default)
2221IO21GPIO21SDAsafei2c · pwmI2C SDA (Arduino default)
23-GNDground-Ground
24-GNDground-Ground
2519IO19GPIO19MISOsafespi · pwmVSPI MISO
2623IO23GPIO23MOSIsafespi · pwmVSPI MOSI
2718IO18GPIO18SCKsafespi · pwmVSPI SCK
285IO5GPIO5SSLED_BUILTINstrappingspi · pwmOn-board user LED (LED2, active LOW: 3V3 - R9 2k - LED - IO5); VSPI SS; strapping pin (SDIO timing), must be HIGH at boot
29-3V33V3.3Vpower-3.3 V rail from the ME6211 regulator (P3 pin 13)
3017IO17GPIO17TX2uartuart · pwmUART2 TX (Arduino core 2.x default)
3116IO16GPIO16RX2uartuart · pwmUART2 RX (Arduino core 2.x default)
324IO4GPIO4A10T0safeadc · touch · pwmADC2_CH0 (unusable while Wi-Fi is on); Touch 0
330IO0GPIO0A11T1strappingadc · touch · pwmstrapping pin: LOW at reset enters the ROM bootloader; the auto-flash transistors drive it from DTR/RTS; ADC2_CH1 (unusable while Wi-Fi is on); Touch 1
34-GNDground-Ground
352IO2GPIO2A12T2strappingadc · touch · pwmstrapping pin: must be LOW or floating to enter the bootloader; ADC2_CH2 (unusable while Wi-Fi is on); Touch 2
3615IO15GPIO15HSPI_CSA13T3strappingadc · touch · spi · pwmstrapping pin (MTDO): LOW at boot silences the ROM boot log; ADC2_CH3 (unusable while Wi-Fi is on); Touch 3
Download the WEMOS LOLIN32 pinout Free to use and share for non-commercial work, as long as you credit espboards.dev. License.
26 GPIOs broken out 13 free · 13 need care · 0 to avoid

Start with these

13 pins with no boot or system involvement
IO32IO33IO25IO26IO27IO22IO21IO19IO23IO18IO17IO16IO4

Freely assignable - no strapping, flash, USB or JTAG duties. Ideal first picks for buttons, sensors and LEDs.

Fine - with a little care

13 pins · 12 things to know
IO36 Input-only GPIO (no output); ADC1 channel 0, Hall sensor VP. Other

Cannot be used as output; only suitable for input (e.g., analog read).

IO39IO35 Input-only GPIOs with ADC1 channels - no output driver Other

Cannot be used as output; only suitable for input.

  • IO39Input-only GPIO (no output); ADC1 channel 3, Hall sensor VN.
  • IO35Input-only GPIO (no output driver); ADC1 channel 7.
IO34 Input-only GPIO (no output driver); ADC1 channel 6. Other

Cannot be used as output (no drive capability); only suitable for analog/digital input.

IO14 JTAG mode select pin (TMS); also HSPI CLK and PWM-capable GPIO. JTAG

Used for JTAG debugging (TMS); driving it as GPIO may interfere with JTAG or produce spurious signals at boot.

IO12 Bootstrapping pin; JTAG TDI; sets flash voltage (VDD_SDIO); also HSPIQ (flash data line). Strapping

Keep LOW during boot (internal PD); pulling HIGH at reset selects 1.8V flash mode, causing flash brownout if 3.3V flash is used.

IO13 JTAG clock pin (TCK); also ADC2 channel 4 / Touch4 input. JTAG

Used for JTAG debugging (TCK); avoid using as GPIO if JTAG is needed.

IO1 Default UART0 TX pin for USB-serial programming and console. UART

Connected to on-board USB-UART for uploading and logs; drives serial output at boot, so using as GPIO can disrupt programming or console.

IO3 Default UART0 RX pin for USB-serial programming (console input). UART

Used for receiving data from USB-UART (programming); also pulled HIGH at boot for console communication, so using as GPIO can disrupt uploads.

IO5 Bootstrapping pin; internal pull-up; VSPI CS0 (default SPI chip-select); acts as FSPIWP (flash write-protect) on internal-flash variants. Strapping

Must be HIGH during boot; if pulled LOW at reset, alters SDIO slave timing and may prevent normal boot.

IO0 Bootstrapping pin (enter bootloader when low); internal pull-up. Strapping

Must be HIGH during boot for normal startup; if held LOW on reset, forces flash programming mode.

IO2 Bootstrapping pin (must be low or floating at reset); internal pull-down. Strapping

If driven HIGH on reset (while IO0 is LOW), selects an unsupported SDIO boot mode, causing boot failure.

IO15 Bootstrapping pin; JTAG TDO; controls UART0 boot log output; also HSPICS0 (secondary SPI CS). Strapping

Keep HIGH during boot (internal PU); if LOW on reset, bootloader log is silenced and boot mode may change.

These are recommendations, not hard rules - with the right pull-ups, timing and boot-state awareness most pins can be made to work. When in doubt, start green.

The WEMOS LOLIN32 breaks out 36 pins in total: 26 GPIO for your project, with 3V3, 5V and GND handling power.

Peripheral wiring is straightforward: I²C is mapped to SDA on GPIO21 and SCL on GPIO22; the SPI bus (MOSI, MISO, SCK, SS) is broken out in full; TX/RX on GPIO1 and GPIO3 cover serial logging and flashing.

Beyond plain digital I/O you get 16 ADC-capable pins for sensors and battery monitoring, PWM on 22 pins, 10 capacitive-touch inputs and 2 true DAC outputs.

13 of the exposed pins carry boot-time or system duties on the ESP32 (IO36, IO39, IO34 and 10 more) - check the guidance above before wiring anything to them. IO32, IO33, IO25, IO26 and 9 more are free of any such role - the safest first picks.

Getting started

flash your first firmware in ~2 minutes
Tool:
1
Connect over USB
Uses a CP2104 bridge - install the CP210x driver if no port appears. Not detected? Hold BOOT while plugging in.
2
Match & flash
Set the Tools options shown, then click Upload.
3
Verify it runs
GPIO32 toggles - wire an LED and resistor to it, or change the pin to your board's own LED.
Set these in Tools · leave everything else at default
Arduino IDE 2.x - Tools Copy
Board: "ESP32 Dev Module"▸
Flash Size: "4MB (32Mb)"▸
Flash Mode: "DIO"▸
Partition Scheme: "Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)" (default)▸
Upload Speed: "921600"▸
▸ every other Tools option - leave at default
Board: ESP32 Dev Module
Flash Size: 4MB (32Mb)
Flash Mode: DIO
Partition Scheme: Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
Upload Speed: 921600
Find it: Tools ▸ Board ▸ ESP32 Arduino ▸ ESP32 Dev Module
blink.ino Copy
// toggle GPIO32 - wire an LED and resistor to it
void setup() {
  pinMode(32, OUTPUT);
}
void loop() {
  digitalWrite(32, HIGH); delay(500);
  digitalWrite(32, LOW);  delay(500);
}
board to selectesp32dev⧉ copy
platformio.ini Copy
[env:lolin32]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
upload_speed = 921600
Find it: PlatformIO Home ▸ Boards, search esp32dev - or type it after board =.
board to selectesp32dev⧉ copy
device.yaml Copy
esp32:
  board: esp32dev
  variant: esp32
  framework:
    type: esp-idf

# blink - GPIO32
output:
  - platform: gpio
    pin: 32
    id: led_out
light:
  - platform: binary
    name: "LED"
    output: led_out
Find it: search ESPHome's board list for esp32dev (same ids as PlatformIO).
esptool doesn't pick board settings - a prebuilt .bin already has them baked in. This is just the raw flash command.
terminal Copy
esptool.py --chip esp32 --port /dev/ttyACM0 \
  --baud 921600 write_flash 0x1000 firmware.bin
--port = your /dev/tty* (macOS/Linux) or COMx (Windows).
Build details: sketch space 1310720 B · data 327680 B · DIO

Downloads

Free for non-commercial use, credit espboards.dev · License
WEMOS LOLIN32 board illustration, front

Board illustration

The bare WEMOS LOLIN32 board drawn to scale at 58 × 25.4 mm, with no pin labels on it. Made for slide decks, wiring diagrams and project write-ups where a photo is too busy. Take the scalable SVG for print or editing, the high-resolution PNG to drop straight in, or the transparent PNG when you need it with no background behind it.

WEMOS LOLIN32 pinout diagram

Pinout diagram

Every pin on both sides of the board with its functions, drawn by ESPboards from the ESP32 Series Datasheet v5.3 - the same sheet shown at the top of this page. The PNG is a high-resolution image for screens, the SVG is vector so it stays sharp at any size, and the PDF is laid out to print on A4 or Letter.

Free for non-commercial use, with the credit line kept.

Embed the WEMOS LOLIN32 pinout

Paste this where you want the diagram. Keep the credit line - it is what the licence asks for, and it is the only thing we want in return.

<figure>
  <img src="https://cdn.espboards.net/boards/lolin32/diagram-1600.png"
       alt="WEMOS LOLIN32 pinout diagram" width="1600" loading="lazy">
  <figcaption>
    WEMOS LOLIN32 pinout by
    <a href="https://www.espboards.dev/esp32/lolin32/">ESPboards</a>,
    <a href="https://creativecommons.org/licenses/by-nc/4.0/">CC BY-NC 4.0</a>
  </figcaption>
</figure>

Using it commercially? Ask us first - it takes one email.

Yours to use, share and adapt for non-commercial work, as long as you credit espboards.dev - the full terms and ready-made credit lines are here.

Specifications

ESP32 · 58 × 25.4 mm · vs other ESP32 chips →
Compute
MCU
ESP32
Clock
240 MHz
SRAM · Flash
520 KB · 4MB
Radio
Wi-Fi
802.11 b/g/n
Bluetooth
4.2 Classic + LE
Antenna
PCB
I/O
GPIO · ADC
26 · 16
UART · I²C · SPI
3 · 2 · 2
PWM
16 channels
Power
USB
Micro-USB
Serial
CP2104
Boot address
0x1000
Electrical
Input
5V USB · 3.7V LiPo
Consumption
-
Regulator
-
Flashing
Upload · OTA
esptool_py · esp_ota
Flash · Boot mode
DIO · DIO
Sketch · Data
1.25 MB · 320 KB

Dimensions

WEMOS LOLIN32 board, drawn to scale
25.4 mm58 mm
58 × 25.4 mm · pin pitch 2.54 mm
The WEMOS LOLIN32 uses esptool_py for firmware uploads, esp_ota for over-the-air (OTA) updates. Flash mode is DIO with DIO boot mode. The maximum sketch size is 1.25 MB with 320 KB available for data.

About this board

Inside sits the ESP32 - a dual-core Xtensa with both Bluetooth Classic and BLE.

Around the module: battery charging (TP4054) via JST-PH 2.0, status LEDs (Blue (GPIO5), Charge) and Reset buttons.

Resources

Similar boards