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
- RSTbuttonReset
- A0TOUTanalogADC0
- D0GPIO1616XPD_DCDC
- D5GPIO1414HSPI SCK
- D6GPIO1212HSPI MISO
- D7GPIO1313HSPI MOSIUART0 RX
- D8GPIO1515BOOTHSPI CSUART0 TX
- 3V33.3 V
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
| Label | Number | Functions | Limits | Check |
|---|---|---|---|---|
| RST | Reset (low = reset) | onboard button | verifiedRST button on the side of the board. | |
| A0 | TOUT, Arduino A0 | ADC0 (A0), 10 bit | analog input onlynot 5 V tolerantonboard voltage divider | verifiedOn the chip itself the range is 0–1.0 V. Boards add a divider, which widens the range (see the board note).The board has a 220 kΩ / 100 kΩ divider: A0 range 0-3.2 V (Wemos: "3.2V Max"). |
| D0 | GPIO16, Arduino D0 (16) | XPD_DCDC: wake from deep sleep (connect to RST)PWM (software) | not 5 V tolerantno interrupts | verifiedGPIO16 is in the RTC domain: no interrupts and no pull-up (only INPUT_PULLDOWN_16). To wake from deep sleep, connect it to RST.A jumper on the board (v4: JP1 + 470 Ω, v3: SJ1 "Deep_Sleep") connects D0 to RST for waking from deep sleep. Open by default. |
| D5 | GPIO14, Arduino D5 (14) | interruptPWM (software)HSPI SCK | not 5 V tolerant | verified |
| D6 | GPIO12, Arduino D6 (12) | interruptPWM (software)HSPI MISO | not 5 V tolerant | verified |
| D7 | GPIO13, Arduino D7 (13) | interruptPWM (software)HSPI MOSIUART0 RX (Serial.swap) | not 5 V tolerant | verified |
| D8 | GPIO15, Arduino D8 (15) | interruptPWM (software)HSPI CS (SS)UART0 TX (Serial.swap) | not 5 V tolerantaffects boot (strapping)onboard pull-down | verifiedMust be low at reset (boards have a pull-down). Do not pull up.12 kΩ pull-down to ground on the board (for boot). |
| 3V3 | 3.3 V | power inputpower output | verifiedME6211 3.3 V output (up to 500 mA). | |
| TX | GPIO1, Arduino TX (1) | interruptPWM (software)UART0 TX | not 5 V tolerantoutputs a signal at boot | verifiedPrints the bootloader log at boot (74880 baud).Connected to the CH340C: busy during flashing and Serial. |
| RX | GPIO3, Arduino RX (3) | interruptPWM (software)UART0 RX | not 5 V tolerant | verifiedUsed for UART flashing.Connected to the CH340C: busy during flashing and Serial. |
| D1 | GPIO5, Arduino D1 (5) | interruptPWM (software)I2C SCL | not 5 V tolerant | verified |
| D2 | GPIO4, Arduino D2 (4) | interruptPWM (software)I2C SDA | not 5 V tolerant | verified |
| D3 | GPIO0, Arduino D3 (0) | interruptPWM (software) | not 5 V tolerantaffects boot (strapping)onboard pull-up | verifiedAt reset: low = firmware download mode, high is needed for a normal boot.12 kΩ pull-up to 3.3 V on the board. |
| D4 | GPIO2, Arduino D4 (2) | interruptPWM (software)UART1 TX (Serial1, transmit only) | not 5 V tolerantaffects boot (strapping)onboard pull-uponboard LED | verifiedMust be high at reset, otherwise the board will not start.12 kΩ pull-up to 3.3 V. Blue LED on the board: lit when LOW. LED_BUILTIN = 2. |
| G | Ground | verified | ||
| 5V | 5 V | power inputpower output | verified5 V from USB (through a fuse and a diode) or a 5 V input.Labelled on other revisions as: VBUS | |
| GND | Ground | not from manufacturerConnector pin order from the v4 schematic (GND, SDA, SCL, 3V3), but which edge it starts from was not checked against the drawing. | ||
| SDA | GPIO4, Arduino SDA (4) | interruptPWM (software)I2C SDA | not 5 V tolerant | not from manufacturerThe pin position in the connector was not checked against the drawing. |
| SCL | GPIO5, Arduino SCL (5) | interruptPWM (software)I2C SCL | not 5 V tolerant | not from manufacturerThe pin position in the connector was not checked against the drawing. |
| 3V3 | 3.3 V | power output | not from manufacturerThe pin position in the connector was not checked against the drawing. |
Sources
Not verified against the manufacturer: 4 of 20 pins. The pin card says what confirms each one and where sources disagree.
- WEMOS D1 mini (v4.0.0), board pageuser guide, checked 15.10.2026pin table TX, RX, A0, D0-D8, G, 5V, 3V3, RST; A0 up to 3.2 V; size 34.2×25.6
- D1 mini v4.0.0 schematicschematic, checked 15.10.2026USB-C, CH340C, ME6211, A0 divider 220k/100k, 12 kΩ pull-ups on GPIO0/2/15, LED on GPIO2, JP1 RST-GPIO16, I2C connector (GND, SDA, SCL, 3V3)
- D1 mini v4.0.0 dimensionsboard drawing, checked 15.10.202634.30×25.40 mm, rows 0.9 inch apart (x 1.27 and 24.13), row center 17.70 mm from the bottom edge, Ø2.0 holes at x 2.5 and 22.9
- D1 mini v3.0.0 schematic (2018-01-23)schematic, checked 15.10.2026same pins; micro-USB, W25Q32, SJ1 Deep_Sleep, 12 kΩ pull-ups
- esp8266/Arduino: variants/d1_mini/pins_arduino.hArduino core, checked 15.10.2026D0–D8 ↔ GPIO, SDA 4, SCL 5, LED_BUILTIN 2
- ESP8266EX Datasheet (Espressif)datasheet, checked 15.10.2026pins and functions, TOUT (ADC 0–1.0 V), HSPI, UART0/UART1, strapping GPIO0/2/15, flash pins, GPIO16 XPD_DCDC
- ESP8266 Arduino Core: Reference (GPIO, PWM, interrupts, Serial)Arduino core, checked 15.10.2026PWM on GPIO0–16, interrupts on all except GPIO16, GPIO6–11 used by flash, Serial1 TX only on GPIO2, Serial.swap on 15/13
- esp8266/Arduino: variants/nodemcu/pins_arduino.h and common.hArduino core, checked 15.10.2026D0–D8 ↔ GPIO, SDA 4, SCL 5, SS 15, MOSI 13, MISO 12, SCK 14, LED_BUILTIN 2
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



