Skip to content
Board reference

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

RSTA0D0D5D6D7D83V3TXRXD1D2D3D4GND5V

Hover or tap any pin on the board

LEFT header · pin 4

D5

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.PinSignalsStatus
1RSTPull LOW to reset, the same as the reset button.
2A0The only analog input, up to 3.2 V.
3D0D0, WAKECaution
4D5D5, SCKOK
5D6D6, MISOOK
6D7D7, MOSIOK
7D8D8, CSAvoid
83V33.3 V output.

RIGHT · right side

No.PinSignalsStatus
1TXTXD0Caution
2RXRXD0Caution
3D1D1, SCLOK
4D2D2, SDAOK
5D3D3Avoid
6D4D4, LED_BUILTINAvoid
7GNDGround
85VUSB 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. 1

    Install ESP8266 support

    Tools → Board → esp8266 → LOLIN(WEMOS) D1 R2 & mini

    Then pick the new port (install the CH340 driver if none appears).

  2. 2

    Blink

    File → Examples → ESP8266 → Blink

    LED_BUILTIN is D4 (GPIO2).

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

Board basics guide coming soon

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

No Wemos D1 mini projects yet — we're adding them soon