Skip to content

Instantly share code, notes, and snippets.

@carljdp
Last active December 30, 2025 13:29
Show Gist options
  • Select an option

  • Save carljdp/e6a3f5a11edea63c2c14312b534f4e53 to your computer and use it in GitHub Desktop.

Select an option

Save carljdp/e6a3f5a11edea63c2c14312b534f4e53 to your computer and use it in GitHub Desktop.
Getting started with the D1 mini (ESP8266)

Wesmos D1 Mini (ESP8266)

1. Getting Started

1.1. Install the IDE:

In any web browser:

  • From the Arduino website, download & install the latest Arduino IDE (v1.8 or later). Available for Windows, Mac, Linux & ARM.

1.2. Add the ESP8266 module libraries:

In the Arduino IDE: (original instructions)

  • From File > Preferences, add a Boards Manager URL http://arduino.esp8266.com/stable/package_esp8266com_index.json
  • From Tools > Board > Board Manager, search for D1 mini and install (+/- 150MB)

1.3. Connecting:

Before connecting the D1 Mini, make a note of the currently connected COM devices. In your terminal run:

  • Windows: mode or goto Device Manager > Ports
  • Mac ls /dev/tty.* && ls /dev/cu.* or ls /dev/*
  • Linux ls /dev/tty.* && ls /dev/cu. or dmesg | grep tty*

After connecting the D1 Mini, recheck the COM port assignments to identify the port# assigned to the device.

  • From Tools > Port select the correct COM port# as assigned to the device.

1.4. Testing:

  • From File > Examples > ESP8266 open the Blink Sketch
  • Double check the pin asignment (For the D1 mini it should be <pin# here>)
  • Compile the Sketch (check mark)
  • Burn code to the module (right arrow) The LED on the device should blink!

2. The D1 Mini module

NB - Runs at 3.3V! - fortunately the module includes a onboard 3.3V regulator.

Wesmos

USB Drivers

Module Variants

  • Originals: Wesmos Logo, HC-340 USB chip, ESP8266-12S
  • Fakes: No Wesmos logo, HL-340 USB chip, ESP8266-12N

3. The ESP8266

4. Other Links

ESP8266 Arduino Project

ESP8266 Community Forums

5. Definitions in the world of Arduino

  • sketch - A complete Arduino solution

  • setup - Setup before the main loop (runs once)

  • loop - The main program (runs continuously)

  • ESP8266 - A WiFi enabled microcontroller, not an officially supported Arduino chip. The ESP8266 Arduino project has implemented an Arduino Core library for the ESP8266 Chip

@carljdp
Copy link
Author

carljdp commented Apr 4, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment