WEMOS D1 MINI ESP32

ESP32 version of the popular D1 Mini form - great for Wi-Fi-based automation and compact IoT builds.

Micro-USB
WEMOS D1 MINI ESP32 board
39 × 31 mm
ESP32
MCU
240MHz
clock
4MB
flash
520KB
SRAM
32· 7 ADC
GPIO
BLE 4.2+ WiFi
radio
On this page

WEMOS D1 MINI ESP32 Pinout

40 pins · 2.54 mm pitch
WEMOS D1 MINI ESP32 pinout diagram, high resolution: all 40 pins, with GPIO numbers, ADC channels and strapping pins
WEMOS D1 MINI ESP32 pinout, drawn by ESPboards from the ESP32 Series Datasheet v5.3.
WEMOS D1 MINI ESP32 pinout diagram
PinGPIOLabelsStatusCapabilitiesNotes
12IO2GPIO2LED_BUILTINstrapping-On-board blue LED (active-LOW)
21TXDGPIO1uartuartUART0 Transmit (U0_TX)
33RXDGPIO3uartuartUART0 Receive (U0_RX)
421IO21GPIO21SDAD2safei2cI²C Data Line
522IO22GPIO22SCLD1safei2cI²C Clock Line
65IO5GPIO5SSD8strappingspiVSPI Chip-Select
723IO23GPIO23MOSID7safespiVSPI Master-Out Slave-In
819IO19GPIO19MISOD6safespiVSPI Master-In Slave-Out
918IO18GPIO18SCKD5safespiVSPI Clock
1036SVPGPIO36strappingadcADC1 Channel 0
1139SVNGPIO39strappingadcADC1 Channel 3
1232IO32GPIO32safeadc · touchADC1 Channel 4 / Touch 9
1333IO33GPIO33safeadc · touchADC1 Channel 5 / Touch 8
1425IO25GPIO25safedac8-bit Digital-to-Analog Converter 1
1526IO26GPIO26D0safedac8-bit Digital-to-Analog Converter 2
1627IO27GPIO27safetouchTouch 7 / RTC-17
1714TMSGPIO14strappingtouch · spiHSPI SCK / Touch 6
1812TDIGPIO12strappingtouch · spiHSPI MISO / Touch 5
1913TCKGPIO13strappingtouch · spiHSPI MOSI / Touch 4
2015TD0GPIO15strappingtouchBoot-strap Pin / Touch 3
214IO4GPIO4safeadc · touchTouch 0 / ADC2 Channel 0
2216IO16GPIO16RX2D4uartuartUART2 Receive
2317IO17GPIO17TX2D3uartuartUART2 Transmit
240IO0GPIO0strappingtouchBoot-mode Select / Touch 1 (keep HIGH to boot)
2534IO34GPIO34strappingadcADC1 Channel 6 (input-only)
2635IO35GPIO35strappingadcADC1 Channel 7 (input-only)
27-GNDground-Ground connection
28-NCsafe-Not connected
29-NCsafe-Not connected
309SD2GPIO9strapping-Wired to the module's SPI flash - do NOT use, the board will crash or fail to boot
3111CMDGPIO11strapping-Wired to the module's SPI flash - do NOT use, the board will crash or fail to boot
32-RSTcontrol-Chip reset (active LOW) - the same net as the RST button
33-3V33.3Vpower-3.3V power output from the on-board regulator
3410SD3GPIO10strapping-Wired to the module's SPI flash - do NOT use, the board will crash or fail to boot
35-GNDground-Ground connection
368SD1GPIO8strapping-Wired to the module's SPI flash - do NOT use, the board will crash or fail to boot
376CLKGPIO6strapping-Wired to the module's SPI flash - do NOT use, the board will crash or fail to boot
38-GNDground-Ground connection
39-5V5V0power-5V from the USB connector - also the input when powering the board from here
407SD0GPIO7strapping-Wired to the module's SPI flash - do NOT use, the board will crash or fail to boot
Download the WEMOS D1 MINI ESP32 pinout Free to use and share for non-commercial work, as long as you credit espboards.dev. License.
32 GPIOs broken out 13 free · 13 need care · 6 to avoid

Start with these

13 pins with no boot or system involvement
IO21IO22IO23IO19IO18IO32IO33IO25IO26IO27IO4IO16IO17

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
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.

TXDGPIO1 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.

RXDGPIO3 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.

SVPGPIO36 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).

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

Cannot be used as output; only suitable for input.

  • SVNInput-only GPIO (no output); ADC1 channel 3, Hall sensor VN.
  • IO35Input-only GPIO (no output driver); ADC1 channel 7.
TMSGPIO14 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.

TDIGPIO12 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.

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

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

TD0GPIO15 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.

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.

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.

Only if you know the tricks

6 pins · 4 things to know
SD2GPIO9SD3GPIO10 SPI flash/PSRAM data lines SD2 and SD3 (flash HOLD and WP) Flash

Used by internal flash/PSRAM; typically not exposed on modules, avoid using as GPIO.

  • SD2Connected to SPI flash/PSRAM data 2 (SD2, flash HOLD).
  • SD3Connected to SPI flash/PSRAM data 3 (SD3, flash WP).
CMDGPIO11 Connected to SPI flash command/CS (CMD/CS0). Flash

Used by internal flash (chip select/command); not available for general use.

SD1GPIO8SD0GPIO7 SPI flash data lines SD0 and SD1 Flash

Used for internal flash/PSRAM data; not available for general GPIO.

  • SD1Connected to SPI flash data 1 (SD1).
  • SD0Connected to SPI flash data 0 (SD0).
CLKGPIO6 Connected to SPI flash clock (SCK/CLK). Flash

Used for internal flash/PSRAM communication; not available for general GPIO.

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.

Across 40 pins (2.54 mm pitch), the WEMOS D1 MINI ESP32 exposes 32 GPIO plus GND, 3V3 and 5V for power.

For peripherals, I²C is mapped to SDA on GPIO21 and SCL on GPIO22, while the SPI bus (MOSI, MISO, SCK, SS) is broken out in full.

On the analog side there are 7 ADC-capable pins for sensors and battery monitoring, 9 capacitive-touch inputs and 2 true DAC outputs.

If you want zero surprises, IO21, IO22, IO23, IO19 and 9 more are free of any such role - the safest first picks. 13 of the exposed pins carry boot-time or system duties on the ESP32 (IO2, TXD, RXD and 10 more).

Pinout notes The WEMOS D1 mini ESP32 pinout exposes 26 ESP32 GPIOs on the familiar D label headers-making it shield-compatible while retaining the ESP32’s rich peripherals.…

The WEMOS D1 mini ESP32 pinout exposes 26 ESP32 GPIOs on the familiar D label headers-making it shield-compatible while retaining the ESP32’s rich peripherals.

Power rails include 5 V/VIN (USB or external), a regulated 3V3 output, and multiple GND pins. Current draw is typically 80 mA active; the ESP32 chip itself can deep-sleep at ~10 µA, though the CH340 and regulator keep whole-board sleep current well above that.

Default serial lines U0_TX (GPIO1) and U0_RX (GPIO3) connect to the CH340C for programming and logging. Need another UART? Use U2_TX (GPIO17) and U2_RX (GPIO16).

I²C defaults to SDA (GPIO21) and SCL (GPIO22)-changeable in software-and breaks out on the D2/D1 shield pins.

SPI: the primary VSPI bus maps to MOSI GPIO23, MISO GPIO19, SCK GPIO18, and CS GPIO5. An alternate HSPI bus lives on GPIO12-15 when a second SPI device is needed.

Analog: Eight ADC1 channels on GPIO32-GPIO39 remain usable while Wi-Fi is active. Extra ADC2 channels (e.g., GPIO0, 2, 4, 12-15, 25-27) share hardware with Wi-Fi. Dual 8-bit DAC outputs are on GPIO25 and GPIO26.

Capacitive-touch sensing is available on GPIO0, 2, 4, 12-15, 27, 32, 33, perfect for touch-buttons or gesture pads.

Every GPIO can generate PWM up to 40 kHz for LEDs, motors, or buzzers. Watch the boot-strap pins-GPIO0, GPIO2, and GPIO15-which must be at the correct logic level (usually HIGH) at reset to boot normally.

With breadboard-friendly headers, shield compatibility, and the full might of an ESP32 module, the WEMOS D1 mini ESP32 pinout is your compact gateway to advanced connected projects.

Getting started

flash your first firmware in ~2 minutes
Tool:
1
Connect over USB
Install your USB-serial driver (CH340 / CP210x) 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
GPIO21 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 GPIO21 - wire an LED and resistor to it
void setup() {
  pinMode(21, OUTPUT);
}
void loop() {
  digitalWrite(21, HIGH); delay(500);
  digitalWrite(21, LOW);  delay(500);
}
board to selectesp32dev⧉ copy
platformio.ini Copy
[env:d1_mini32]
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 - GPIO21
output:
  - platform: gpio
    pin: 21
    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

Good to know

board-specific quirks worth 60 seconds
Wemos never made this board illustration
Wemos never made this board
Plenty of these boards ship with a Wemos logo on the silkscreen - but check LOLIN's (Wemos') actual catalog: ESP8266 D1 Mini, D32, and the S2/S3/C3 Minis. A classic-ESP32 D1 Mini has never been in it. The design is generally traced to the MH-ET LIVE MiniKit - an ESP32-WROOM-32 squeezed into the D1 Mini footprint - which we cover as its own board. Everything sold as "D1 Mini ESP32", "mini32" or similar is a generic…

Plenty of these boards ship with a Wemos logo on the silkscreen - but check LOLIN's (Wemos') actual catalog: ESP8266 D1 Mini, D32, and the S2/S3/C3 Minis. A classic-ESP32 D1 Mini has never been in it.

The design is generally traced to the MH-ET LIVE MiniKit - an ESP32-WROOM-32 squeezed into the D1 Mini footprint - which we cover as its own board. Everything sold as "D1 Mini ESP32", "mini32" or similar is a generic take on that design, logo or not.

This isn't a counterfeit of a "real" product - there is no original Wemos version to compare against. The boards are what they are: cheap, plentiful, and standardized enough that Arduino and PlatformIO ship a d1_mini32 board definition for them.

D1 Mini shields fit - your code needs updating illustration
D1 Mini shields fit - your code needs updating
The whole point of this board is the footprint: the outer 16 pins match the ESP8266 D1 Mini, so the large ecosystem of D1 Mini shields - OLED displays, relays, sensor boards - stacks right on. The inner pin rows are the ESP32 bonus GPIOs. The catch is in software: the shield positions map to different GPIO numbers than on the ESP8266. It works out nicely for I2C shields - SDA/SCL sit at the same physical corner…

The whole point of this board is the footprint: the outer 16 pins match the ESP8266 D1 Mini, so the large ecosystem of D1 Mini shields - OLED displays, relays, sensor boards - stacks right on. The inner pin rows are the ESP32 bonus GPIOs.

The catch is in software: the shield positions map to different GPIO numbers than on the ESP8266. It works out nicely for I2C shields - SDA/SCL sit at the same physical corner (GPIO21/22 here vs GPIO4/5 on the ESP8266) - but any sketch written for the 8266 D1 Mini needs its pin numbers translated before it runs here.

Shields that bit-bang specific D-pins (relay shields, WS2812 shields) are the ones to double-check - "D1" and "D2" don't mean the same GPIO on the two boards.

Bench board, not battery board
Like other CH340-plus-LDO dev boards, this one keeps sipping power while the ESP32 sleeps: the USB-serial chip, regulator, and LED stay on the 3.3 V rail, so expect board-level deep sleep current in the milliamp range rather than the chip's ~10 µA - the same anatomy measured here on DevKit-style boards. Prototype on this board, then move battery builds to a bare module or a board with a low-quiescent…

Like other CH340-plus-LDO dev boards, this one keeps sipping power while the ESP32 sleeps: the USB-serial chip, regulator, and LED stay on the 3.3 V rail, so expect board-level deep sleep current in the milliamp range rather than the chip's ~10 µA - the same anatomy measured here on DevKit-style boards.

Prototype on this board, then move battery builds to a bare module or a board with a low-quiescent regulator and no serial chip.

Downloads

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

Board illustration

The bare WEMOS D1 MINI ESP32 board drawn to scale at 39 × 31 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 D1 MINI ESP32 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 D1 MINI ESP32 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/d1-mini32/diagram-1600.png"
       alt="WEMOS D1 MINI ESP32 pinout diagram" width="1600" loading="lazy">
  <figcaption>
    WEMOS D1 MINI ESP32 pinout by
    <a href="https://www.espboards.dev/esp32/d1_mini32/">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 · 39 × 31 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 LE
Antenna
PCB
I/O
GPIO · ADC
32 · 7
UART · I²C · SPI
3 · 2 · 2
PWM
16 channels
Power
USB
Micro-USB
Serial
CH340C
Boot address
0x1000
Electrical
Input
5V USB · 5V VIN
Consumption
-
Regulator
-
Flashing
Upload · OTA
esptool_py · esp_ota
Flash · Boot mode
DIO · DIO
Sketch · Data
1.25 MB · 320 KB

Dimensions

WEMOS D1 MINI ESP32 board, drawn to scale
31 mm39 mm
39 × 31 mm · pin pitch 2.54 mm
The WEMOS D1 MINI ESP32 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

At its core is the ESP32 - a dual-core Xtensa with both Bluetooth Classic and BLE.

Expect to pay about $6.00 - less than the ~$20 most ESP32 boards go for.

32 GPIO are broken out - more than most ESP32 boards, so the pin budget is rarely the constraint.

Onboard you'll find Reset buttons.


The D1 Mini ESP32 squeezes a full ESP32-WROOM-32 - dual-core 240 MHz, WiFi and Bluetooth Classic + LE - into the beloved D1 Mini footprint, so it drops straight into the huge ecosystem of D1 Mini shields and mounts.

A quirk of its identity up front: despite the Wemos logo printed on many units, Wemos/LOLIN never actually made this board - their catalog goes from the ESP8266 D1 Mini straight to the D32 and the S2/S3/C3 Minis. The design is generally traced to the MH-ET LIVE MiniKit, and every "D1 Mini ESP32" sold today is a generic take on it. That doesn't make it a worse board - just an unbranded one.

To break out the ESP32's extra GPIOs while keeping the small footprint, the board uses double pin rows: the outer 16 pins match the classic D1 Mini, the inner rows add the rest. Programming runs over Micro-USB through a CH340C USB-serial chip with auto-reset - just mind the driver on a fresh machine.
  • Size: 39 mm x 31.5 mm
  • Weight: 12G
  • Built-in PCB antenna
  • Operating voltage: 5V DC

Where to buy

prices are typical street prices
WEMOS D1 MINI ESP32
WEMOS D1 MINI ESP32
$6.00per unit, typical
As an Amazon Associate, ESPboards earns from qualifying purchases.

Resources

Similar boards