Wemos D1 mini (ESP8266) pinout

Wemos / LOLIN D1 mini (v4, USB-C), ESP8266EX, 3.3 V logic, 25.4×34.3 mm, 20 pins

partly verified15.10.2026

PWM on every GPIO, no GPIO tolerates 5 V, outlined: default in ESP8266 Arduino core.

Top view, USB at the bottom, antenna at the top.

CompareDownload PNG
Chip
ESP8266EX
Logic
3.3 V
Power
USB-C (v4) / micro-USB (v3) 4.75-5.25 V5V 4.5-6 V3V3 3-3.6 V
Defaults in ESP8266 Arduino core (LOLIN(WEMOS) D1 R2 & mini)
I2C: SDA 4, SCL 5SPI: MOSI 13, MISO 12, SCK 14, SS 15UART: TX 1, RX 3LED: 2

Which Wemos D1 mini (ESP8266) pins are safe to use

Free to use

GPIO3-5, GPIO12-14, GPIO16

Use with care

  • GPIO0, GPIO2, GPIO15: strapping: the level at power-up selects the boot mode.
  • GPIO1: signal at boot.
  • A0: analog input only.

Important

  • 3.3 V logic, do not apply 5 V to a GPIO (the datasheet VIH limit is 3.6 V).
  • Boot: GPIO15 (D8) = 0, GPIO2 (D4) = 1, GPIO0 (D3) = 1 runs from flash; GPIO0 = 0 is firmware download mode. Do not connect anything to these pins at power-up that pulls them the wrong way.
  • Interrupts on all GPIO except GPIO16 (D0). Software PWM on GPIO0–16.
  • To wake from deep sleep, connect D0 (GPIO16) to RST.
  • Pin labels on the v4 top side are almost not printed (only RST and I2C are visible), names are from the Wemos table. Labels are not shown in the drawing.
  • Rows are 0.9 inch (22.86 mm) apart. D1 mini shields fit on the same rows.
  • Holes: y measured from a render (±0.2 mm). Small components are drawn approximately.

Revisions and clones

  • v3.x: micro-USB, board 34.2×25.6 mm, no I2C connector, RST button on top. Same pins.
  • D1 mini clones (often v2/v3 with an ESP-12 module or a bare chip) usually repeat the pinout, but pull-ups and the LED may differ.

All pins

LabelNumberFunctionsLimitsCheck
RSTReset (low = reset)onboard buttonverified
A0TOUT, Arduino A0ADC0 (A0), 10 bitanalog input onlynot 5 V tolerantonboard voltage dividerverified
D0GPIO16, Arduino D0 (16)XPD_DCDC: wake from deep sleep (connect to RST)PWM (software)not 5 V tolerantno interruptsverified
D5GPIO14, Arduino D5 (14)interruptPWM (software)HSPI SCKnot 5 V tolerantverified
D6GPIO12, Arduino D6 (12)interruptPWM (software)HSPI MISOnot 5 V tolerantverified
D7GPIO13, Arduino D7 (13)interruptPWM (software)HSPI MOSIUART0 RX (Serial.swap)not 5 V tolerantverified
D8GPIO15, Arduino D8 (15)interruptPWM (software)HSPI CS (SS)UART0 TX (Serial.swap)not 5 V tolerantaffects boot (strapping)onboard pull-downverified
3V33.3 Vpower inputpower outputverified
TXGPIO1, Arduino TX (1)interruptPWM (software)UART0 TXnot 5 V tolerantoutputs a signal at bootverified
RXGPIO3, Arduino RX (3)interruptPWM (software)UART0 RXnot 5 V tolerantverified
D1GPIO5, Arduino D1 (5)interruptPWM (software)I2C SCLnot 5 V tolerantverified
D2GPIO4, Arduino D2 (4)interruptPWM (software)I2C SDAnot 5 V tolerantverified
D3GPIO0, Arduino D3 (0)interruptPWM (software)not 5 V tolerantaffects boot (strapping)onboard pull-upverified
D4GPIO2, Arduino D4 (2)interruptPWM (software)UART1 TX (Serial1, transmit only)not 5 V tolerantaffects boot (strapping)onboard pull-uponboard LEDverified
GGroundverified
5V5 Vpower inputpower outputverified
GNDGroundnot from manufacturer
SDAGPIO4, Arduino SDA (4)interruptPWM (software)I2C SDAnot 5 V tolerantnot from manufacturer
SCLGPIO5, Arduino SCL (5)interruptPWM (software)I2C SCLnot 5 V tolerantnot from manufacturer
3V33.3 Vpower outputnot from manufacturer

Sources

Not verified against the manufacturer: 4 of 20 pins. The pin card says what confirms each one and where sources disagree.

Size: from the v4.0.0 drawing (25.6×34.2 on the Wemos site).

FAQ

Which Wemos D1 mini (ESP8266) pins are I2C, SPI and UART?
By default in ESP8266 Arduino core (LOLIN(WEMOS) D1 R2 & mini): I2C: SDA GPIO4, SCL GPIO5; SPI: MOSI GPIO13, MISO GPIO12, SCK GPIO14, SS GPIO15; UART: TX GPIO1, RX GPIO3.
Which pin is the Wemos D1 mini (ESP8266) LED on?
Blue LED on GPIO2 (D4), lit when LOW.
Are the Wemos D1 mini (ESP8266) pins 5 V tolerant?
No. The logic is 3.3 V and the pins are not 5 V tolerant: use a divider or a level shifter for 5 V signals.

You might also need

Similar boards

Next

Need firmware or a device built on ESP8266? I'll build it to order