Wemos D1 mini
The small ESP8266 Wi-Fi board
LOLIN (Wemos) D1 mini · ESP8266
The small ESP8266 Wi-Fi board: an ESP-8266EX with 4 MB flash, 11 digital pins (D0–D8, RX, TX) and one analog input, all at 3.3 V.
- Chip
- ESP-8266EX
- Digital
- 11
- Analog
- 1 (A0, 3 V)
- Flash
- 4 MB
Every header pin at a glance
- 5 safe I/O
- 3 use with care
- 3 avoid
- 0 not available
- 5 power, ground & other
01Pinout
Every pin, live
Labelled as on the board (D0–D8, RX, TX, A0); the detail card shows each pin's GPIO.
16 of 16 pins match
Hover or tap any pin on the board
LEFT header · pin 4
D5
Safe to use
Nothing else on the board depends on this pin. A good first choice for sensors, LEDs and buttons.
Can be used as
- PWM out
- External interrupt
- SPI (direct)
Signals on this pad
- GPIO14
- D5
- SCK
Full header tables (LEFT, RIGHT)
LEFT · left side
| No. | Pin | Signals | Status |
|---|---|---|---|
| 1 | RST | Pull LOW to reset, the same as the reset button. | |
| 2 | A0 | The only analog input, up to 3.2 V. | |
| 3 | D0 | D0, WAKE | Caution |
| 4 | D5 | D5, SCK | OK |
| 5 | D6 | D6, MISO | OK |
| 6 | D7 | D7, MOSI | OK |
| 7 | D8 | D8, CS | Avoid |
| 8 | 3V3 | 3.3 V output. |
RIGHT · right side
| No. | Pin | Signals | Status |
|---|---|---|---|
| 1 | TX | TXD0 | Caution |
| 2 | RX | RXD0 | Caution |
| 3 | D1 | D1, SCL | OK |
| 4 | D2 | D2, SDA | OK |
| 5 | D3 | D3 | Avoid |
| 6 | D4 | D4, LED_BUILTIN | Avoid |
| 7 | GND | Ground | |
| 8 | 5V | USB 5 V, or a 5 V input. |
02Safety
Pins to avoid, and why
Three boot pins need care: D3, D4 and D8.
Avoid
3 pins
Read at power-up to choose how the chip boots. Wired wrong, the board won't start.
- D3Boot pin: must be HIGH. D3 (GPIO0) is read at power-up and must be HIGH for your sketch to start. Anything that pulls it LOW at boot stops the board running your code.
- D4Boot pin: must be HIGH. D4 (GPIO2) is read at power-up and must be HIGH for your sketch to start. Anything that pulls it LOW at boot stops the board running your code.
- D8Boot pin: must be LOW. GPIO15 must be LOW at power-up for a normal boot. A module that pulls it HIGH stops the board starting.
Use with care
3 pins
Usable with a catch: shared with USB serial, or the limited D0.
- TXUSB serial. Shared with uploads and the Serial Monitor.
- RXUSB serial. Shared with uploads; a module here can block them.
- D0Limited pin. D0 doesn't support interrupts, PWM, I2C or one-wire.
03Layout
How the board fits together
USB + USB-serial
Uploads and Serial
ESP-8266EX
Wi-Fi · 4 MB flash
11 digital pins
D0–D8, RX, TX
A0
Up to 3.2 V
04Specs
Full specifications
Chip
- SoC
- ESP-8266EX2.4 GHz Wi-Fi.
- Flash
- 4 MB
Power
- Logic level
- 3.3 VAll IO pins run at 3.3 V.
- Inputs
- USB or the 5V pin
Peripherals
- Digital IO
- 11, with interrupt/PWM/I2C except D0
- Analog
- A0, up to 3.2 V
- LED
- D4 (GPIO2)
05Buses
Where each bus lives
I2C (Wire)
SDA on D2 (GPIO4), SCL on D1 (GPIO5).
SPI
SCK D5, MISO D6, MOSI D7, CS D8 (a boot pin that must be LOW at power-up).
UART
Serial on TX/RX, shared with USB.
Analog
A0, up to 3.2 V.
06Power & start
Power it up and get connected
Power options
- USB5 V in, uploads and Serial.
- 5V pin5 V in or out.
- 3V3 pin3.3 V output.
- 1
Install ESP8266 support
Tools → Board → esp8266 → LOLIN(WEMOS) D1 R2 & miniThen pick the new port (install the CH340 driver if none appears).
- 2
Blink
File → Examples → ESP8266 → BlinkLED_BUILTIN is D4 (GPIO2).
- 3
No board on your desk?
Open a D1 mini circuit in the SolderHub Simulator below.
07Gotchas
Things that trip people up
01
Board won't boot with a module attached
Check D3, D4 and D8. D3 and D4 must be HIGH at power-up and D8 must be LOW.
02
D0 is limited
No interrupts, PWM or I2C on D0.
03
It's a 3.3 V board
All IO runs at 3.3 V; A0 tops out at 3.2 V.
08SolderHub Simulator
Wire up the Wemos D1 mini without the hardware
Build and run circuits in the SolderHub Simulator, right in your browser.
Board Basics
Introduction, pinout, and protocols — all in one guide.
Sensor Modules & Library
Wiring sensors and modules, plus the library you need to talk to them.
Sensor Integration
Coming soon
Library & Setup
Coming soon
Projects
More From This Board
6More Wemos D1 mini guides worth reading.
XIAO ESP32S3 Pinout: D0–D10, ADC, Touch, I2C, SPI and Battery
7m
ESP32 Dual Core and FreeRTOS: Tasks on Core 0 and Core 1, Queues and Mutexes
6m
MicroPython ESP32 Deep Sleep: Timer, Button, Touch Wake-Up and RTC Memory
10m
ESP32 MicroPython Weather Web Server: Live DHT22 Readings with Auto-Refresh
17m
MicroPython ESP32 Web Server: Control an LED or Relay from Your Browser
16m
ESP32 MQTT Tutorial: Publish and Subscribe with Arduino IDE
12m