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)

D1 Mini (ESP8266)

Wesmos D1 Mini

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) or docs here

  • 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)
    Arduino Boards Manager

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>)
  • Verify the Sketch (check mark)
  • Upload the code to the module (right arrow) The LED on the device should blink!
    Arduino IDE buttons

2. The D1 Mini module

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

Pin Assignments

here

NodeMCU (similar)

Wesmos (the original)

Module Variants (Like the illegitimate D1 Mini Node MCU look-alike from robotics.org.za)

  • Original Wesmos: Wesmos Logo, HC-340 USB chip, ESP8266-12S
  • NodeMCU: (see website)
  • Fakes: No Wesmos or NodeMCU logo, HL-340 USB chip, ESP8266-12N

3. The ESP8266 Chip

ESP8266 Chip

4. Other Links

Youtube
EEVblog #998 - How To Program ESP8266 WiFi With Arduino (Video)

ESP8266 Arduino Project

ESP8266 Community Forums

NodeMCU

Definitions

(in the world of Arduino)

  • sketch - A complete Arduino program
  • setup - The setup routine run before the main loop (runs once)
  • loop - The main program that runs continuously
@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