WeMos D1 mini (Type C) - 4M bytes development board based ESP8266

SKU: CT6002
WeMos D1 mini Type-C ESP8266 board, front and back, with male and female header strips

WeMos D1 mini (Type C) - 4M bytes development board based ESP8266

SKU: CT6002
Default
Regular price $9.99
/
  • Free shipping on all orders over $100
  • Secure payments
  • In stock, ready to ship
  • Inventory on the way

Add $93.01 more for free shipping

Tax included. Shipping calculated at checkout.

You'll also need

Choose a quantity and add it to your cart.

USB Cable - Type C
$2.9910+ in stock
Breadboard 400 holes
$4.4910+ in stock
Breadboard Jumper Wire - 140pcs
$11.9910+ in stock

A compact ESP8266 Wi-Fi development board in the WeMos D1 mini format, with a USB-C port and 4 MB of flash.

The WeMos D1 mini (Type C) carries an ESP8266MOD Wi-Fi module on a small 16-pin board with 11 digital I/O pins and one analog input. It programs from the Arduino IDE over USB-C and is a good starting point for small Wi-Fi projects such as sensor nodes and web-controlled switches.

Module
ESP8266MOD
Wi-Fi
802.11 b/g/n, 2.4 GHz
Flash
4 MB
USB
USB-C

Why choose it

  • Small Wi-Fi board — 16 pins, 3.3 V logic, with 11 digital I/O pins and 1 analog input on a board about the size of a postage stamp.
  • USB-C programming — one reversible USB-C connector for power, uploading code and the Serial Monitor.
  • Works with the Arduino IDE — supported by the open-source ESP8266 Arduino core, which includes this board as "LOLIN(WEMOS) D1 R2 & mini".

Specifications

Core
Wi-Fi module ESP8266MOD (ESP8266EX)
CPU Tensilica L106 32-bit, up to 160 MHz
Flash memory 4 MB
Wi-Fi 802.11 b/g/n (HT20), 2.4 GHz
Wi-Fi modes Station, SoftAP, SoftAP + Station
Wi-Fi security WPA / WPA2
Power and I/O
I/O voltage 3.3 V (all I/O pins)
Digital I/O pins 11 (interrupt, PWM and I2C supported except on D0)
Analog input 1 (A0), 3.2 V maximum input
USB connector USB-C
Serial interfaces UART, SPI, I2C
Pin labels and GPIO numbers (ESP8266 Arduino core, D1 mini)
D0 GPIO16 (no PWM, I2C or interrupt; HIGH at boot, used to wake from deep sleep)
D1 / D2 GPIO5 / GPIO4 (default I2C: SCL = D1, SDA = D2)
D3 GPIO0 (boot fails if pulled LOW)
D4 GPIO2 (on-board LED pin; HIGH at boot, boot fails if pulled LOW)
D5 / D6 / D7 GPIO14 / GPIO12 / GPIO13 (default SPI: SCK = D5, MISO = D6, MOSI = D7)
D8 GPIO15 (boot fails if pulled HIGH)
TX / RX GPIO1 / GPIO3 (serial for uploading and debugging)
A0 Analog input only, cannot be used as an output

Compatibility

Platform Works Notes
Arduino IDE ✓ Yes Install the "esp8266" board package, then choose LOLIN(WEMOS) D1 R2 & mini
ESP8266 / ESP32 (3.3 V) ✓ Yes Same 3.3 V logic level
Arduino UNO / Nano (5 V) ◐ With adapter I/O pins are 3.3 V. Use a level shifter on any 5 V signal.
WeMos D1 mini shields (dual base, OLED) ✓ Yes Same pin layout

In the box

Included
  • 1 × WeMos D1 mini (Type C) ESP8266 development board
  • 2 × 8-pin long female header
  • 2 × 8-pin short female header
  • 2 × 8-pin male pin header

Applications

  • Wi-Fi sensor nodes that send readings to your network
  • Small web pages that switch an LED or relay from a phone
  • Learning ESP8266 and Arduino programming

Tutorial

Part 1 — Set up the Arduino IDE (once only)

1
Install the Arduino IDE
Download it from arduino.cc/en/software and install it. You need a USB-C data cable (some cables only charge).
2
Add the ESP8266 board address
Open File → Preferences (on macOS: Arduino IDE → Settings). In Additional boards manager URLs paste https://arduino.esp8266.com/stable/package_esp8266com_index.json and click OK. (official install guide)
3
Install the board package
Open Tools → Board → Boards Manager, search for esp8266, and click Install on the package by ESP8266 Community. This takes a few minutes.
4
Choose the board and port
Plug the board into your computer with the USB-C cable. Go to Tools → Board → ESP8266 Boards and choose LOLIN(WEMOS) D1 R2 & mini. Then open Tools → Port and choose the new port that appears. If no port appears, try a different data cable and install the USB driver for your board.

Part 2 — Upload your first sketch

5
Paste the example
Open a new sketch (File → New Sketch), delete everything in it and paste in Example 1 below.
▸ Example 1 — Blink the on-board LED
// WeMos D1 mini (ESP8266) - first upload: blink the on-board LED
// Wiring: none, just the USB-C cable.
const uint8_t LED_PIN = LED_BUILTIN;   // on-board LED, GPIO2 (D4)
const unsigned long BLINK_MS = 500;    // you can change this

bool ledState = false;

void setup() {
  Serial.begin(115200);                // Serial Monitor speed
  delay(200);
  Serial.println();
  Serial.println("OK - epartners.co.nz test");
  pinMode(LED_PIN, OUTPUT);
}

void loop() {
  ledState = !ledState;                // flip the state
  digitalWrite(LED_PIN, ledState ? HIGH : LOW);
  Serial.println(ledState ? "LED pin HIGH" : "LED pin LOW");
  delay(BLINK_MS);
}
6
Upload
Click the Upload button (the right arrow). Wait for “Done uploading”.
7
Open the Serial Monitor
Open Tools → Serial Monitor and set the speed to 115200 baud.

✓ Check: The Serial Monitor prints "OK - epartners.co.nz test" once, then "LED pin HIGH" and "LED pin LOW" every half second, and the on-board LED blinks.

Part 3 — Your first Wi-Fi project

8
Enter your Wi-Fi details
Paste Example 2 into a new sketch and change WIFI_SSID and WIFI_PASS to your router’s name and password. The board connects to 2.4 GHz Wi-Fi only.
▸ Example 2 — Control the LED from a web page
// WeMos D1 mini (ESP8266) - Wi-Fi web page that flips the on-board LED
// Wiring: none, just the USB-C cable.
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>

const char* WIFI_SSID = "your-ssid";       // you can change this
const char* WIFI_PASS = "your-password";   // you can change this
const uint8_t LED_PIN = LED_BUILTIN;       // on-board LED, GPIO2 (D4)

ESP8266WebServer server(80);
bool ledOn = false;

void applyLed() {
  // If the LED does the opposite of the web page, swap LOW and HIGH here.
  digitalWrite(LED_PIN, ledOn ? LOW : HIGH);
}

void sendPage() {
  String page = "<h1>WeMos D1 mini</h1><p>LED is ";
  page += ledOn ? "ON" : "OFF";
  page += "</p><p><a href=\"/toggle\">Flip the LED</a></p>";
  server.send(200, "text/html", page);
}

void handleToggle() {
  ledOn = !ledOn;
  applyLed();
  sendPage();
}

void setup() {
  Serial.begin(115200);
  delay(200);
  Serial.println();
  Serial.println("OK - epartners.co.nz test");
  pinMode(LED_PIN, OUTPUT);
  applyLed();

  WiFi.mode(WIFI_STA);                     // join your router
  WiFi.begin(WIFI_SSID, WIFI_PASS);
  Serial.print("Connecting");
  while (WiFi.status() != WL_CONNECTED) {  // wait until connected
    delay(500);
    Serial.print(".");
  }
  Serial.println();
  Serial.print("Open this address in a browser: http://");
  Serial.println(WiFi.localIP());

  server.on("/", sendPage);
  server.on("/toggle", handleToggle);
  server.begin();
}

void loop() {
  server.handleClient();                   // answer browser requests
}
9
Upload and find the address
Upload the sketch and open the Serial Monitor at 115200 baud. After a few seconds it prints an address such as http://192.168.1.50.
10
Open the page
On a phone or computer connected to the same Wi-Fi network, type that address into a browser and tap Flip the LED.

✓ Check: The page shows “LED is ON” or “LED is OFF” and the LED changes each time you tap the link.

Troubleshooting

Problem Likely cause Fix
No port appears under Tools → Port Charge-only cable, or the USB driver is missing Use a USB-C data cable and install the USB driver for your board, then reconnect it.
Upload fails or stops part-way Upload speed too high for the cable or port Choose a lower Tools → Upload Speed (for example 115200) and upload again.
Serial Monitor shows unreadable characters Wrong baud rate Set the Serial Monitor to 115200 baud, the same as Serial.begin(115200).
Wi-Fi never connects (only dots appear) Wrong name or password, or a 5 GHz-only network Check the SSID and password (they are case-sensitive) and use a 2.4 GHz network.
Board does not start after you wire something to D3, D4 or D8 These pins set the boot mode Disconnect the wire, press RST, and use other pins (D1, D2, D5, D6, D7) where you can.

Spotted a problem in this tutorial? Email support@epartners.co.nz and we'll check it and update the tutorial.

Good to know
  • All I/O pins run at 3.3 V. A higher voltage can damage the board, and the analog input A0 accepts 3.2 V at most.
  • D3 (GPIO0), D4 (GPIO2) and D8 (GPIO15) affect boot. Avoid holding D3 or D4 LOW, or D8 HIGH, at power-up.
  • Test the code upload and the Wi-Fi connection before soldering.

Video guide

Datasheet

Key figures from the manufacturer's datasheet for the ESP8266EX, the Wi-Fi chip inside the ESP8266MOD module on this board.

ESP8266EX Wi-Fi SoC
Core Tensilica L106 32-bit processor
Maximum CPU clock 160 MHz
Wi-Fi standard 802.11 b/g/n (HT20)
Frequency range 2.4 GHz – 2.5 GHz (2400 MHz – 2483.5 MHz)
Wi-Fi modes Station / SoftAP / SoftAP + Station
Security WPA / WPA2
Operating voltage 2.5 V – 3.6 V
Operating temperature −40 °C to +125 °C
GPIO pins 17
ADC 10-bit SAR ADC, input range 0 – 1.0 V
Interfaces 2 × SPI, 1 × I2C, I2S, 2 × UART, slave SDIO, 4 × PWM
Deep-sleep current 20 µA (RTC only)
Package QFN32 (5 mm × 5 mm)

Download the ESP8266EX datasheet (PDF, 1.2 MB)

▸ Preview the datasheet

If the preview does not load on your device, use the download link above.

Source: Espressif Systems, ESP8266EX Datasheet, version 7.1.

Resources

Which one should I choose?

Product Key difference Best for
This product (WeMos D1 mini Type C) ESP8266MOD, 2.4 GHz Wi-Fi only, 4 MB flash, 11 digital I/O pins, USB-C Small, simple Wi-Fi projects
ESP32 Development Board 38 Pins ESP32-WROOM-32 with a dual-core 240 MHz processor, 4 MB flash, Wi-Fi and Bluetooth 4.2, 38 pins, Micro-USB Projects that need Bluetooth or more pins

FAQ

▸ Which board do I select in the Arduino IDE?

Select LOLIN(WEMOS) D1 R2 & mini under Tools → Board → ESP8266 Boards, after installing the esp8266 board package.

▸ Does it have Bluetooth?

No. The ESP8266EX datasheet lists Wi-Fi (802.11 b/g/n) only. For Bluetooth, see the ESP32 board in the table above.

▸ Can I connect 5 V sensors or modules?

Not directly to the signal pins. All I/O pins are 3.3 V, so use a level shifter for any 5 V signal. Power a 5 V module from the 5V pin and keep its signal at 3.3 V.

▸ Which pins should I avoid?

Avoid D3 (GPIO0), D4 (GPIO2) and D8 (GPIO15) for anything that could hold them in the wrong state at power-up, because they set the boot mode. D0 (GPIO16) has no PWM, I2C or interrupt support.

▸ Why does no port appear on my computer?

Use a USB-C data cable, not a charge-only cable, and install the USB driver for your board. Then unplug and reconnect the board.

Technical question about this part? Email support@epartners.co.nz with your board and wiring, and we'll help you get it working.

Shipping: $5.99 urban, $9.99 rural. Free shipping on orders of $100 or more.

Order by 10:30am (NZT), Monday to Friday, and we dispatch the same day. Orders placed after 10:30am, on weekends or on public holidays are dispatched the next business day.

Delivery usually takes 1–2 business days after dispatch (2–3 for rural addresses). See our Shipping Policy for full details.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.

Recently viewed