ESP8266 D1 Mini

Board summary

ManufacturerWemos
Board docsD1 mini
Schematicesp8266_d1_mini_v4.0.0_schematic.pdf1
PlatformIOWEMOS d1 MINI ESP322
Arduino pinsd1_mini/pins_arduino.h
ESPHome platformESP8266 Platform
ESPHome configpackages/boards/esp8266d1.yaml3
Frameworkarduino4

ESP8266 D1 Mini ESP8266 D1 Mini underside

ESPHome support

Board config:

esp8266:
  board: d1_mini

Config for status_led:

light:
  - platform: status_led
    name: "Status LED"
    id: esp_status_led
    icon: "mdi:alarm-light"
    restore_mode: ALWAYS_OFF
    pin:
      number: D4
      inverted: true

Pinout

ESP32 D1 mini pinout

Note

This pinout diagram displays the internal pin numbers, not what's printed on the silkscreen

Pins

Silkscreen pinInternal pinInterfaceNotes
A0GPIO17ADC
D0GPIO16Deep-sleep wakeupCan be accessed from RTC, weak pull-down
D1GPIO5I²C SCLHigh impedance
D2GPIO4I²C SDAHigh impedance
D3GPIO0Controls boot mode (strapping pin), weak pull-up5
D4GPIO2Blue LED (inverted)Controls boot mode (strapping pin), weak pull-up
D5GPIO14SPI CLK/SCKWeak pull-up
D6GPIO12SPI MISOWeak pull-up
D7GPIO13SPI MOSIWeak pull-up
D8GPIO15SPI CS/SSControls boot mode (strapping pin), weak-pull-up
RXGPIO3UART Serial RX
TXGPIO1UART Serial TX

The pin number mappings are similar to NodeMCU ESP8266, but the D1 mini has fewer pins, all of which map to internal pin numbers. Has no AUX LED on any boards.

Largely the pin notes from NodeMCU ESP8266 apply to D1 mini, the boot modes and reset causes are the same.

References