Search for your product name or keyword, or use the product categories below

D1 Mini NodeMCU and Arduino WiFi LUA ESP8266 ESP-12 WeMos Microcontroller

< All Topics

D1 Mini NodeMCU and Arduino WiFi LUA ESP8266 ESP-12 WeMos MicrocontrollerThis D1 Mini is a WeMos and Arduino compatible ESP8266EX-based microcontroller featuring 11 digital input/output pins, a single analog input pin. It offers the convenience of a micro-USB connection for both power and data (running at 3.3V), and despite its size has built-in WiFi and 4MB of flash memory. It can be programmed with Arduino or LUA, and supports both serial and OTA programming.

Features and Specifications:

  • Microcontroller: ESP-8266EX
  • Operating Voltage: 3.3V Max (5V power from MicroUSB connector is internally converted to 3.3V)
  • Digital I/O Pins: 11, all pins have interrupt/PWMI2C/one-wire support except D0
  • Analog Input: 1 (3.2V max input)
  • Connector: MicroUSB 
  • Clock Speed: 80MHz/160MHz
  • Flash: 4M bytes
  • Dimensions: 34mm x 25,5mm x 6.8mm
  • Weight: Approx. 5g excluding connectors

This D1 Mini comes with 3 different types of header connectors to support various configurations: Female, Male, and Female/Male (long female). In most cases, the female headers are the best choice as they allow you to install the various shields that are available.

In order to use the D1 Mini with the Arduino IDE, you must first:

  1. Install the CH340G Drivers on your computer. See the section below on install the CH340 drivers.
  2. Install the Arduino IDE software:
  3. Install the ESP8266 Board Manager in the Arduino IDE *
  4. Install the ESP8266 Library *
  5. Install the Board *
  6. Connect & Select the D1 Mini * 

The installation and setup process is well documented in the following tutorial and Youtube videos:

D1 Mini setup tutorial on Averagemaker:

WeMos Getting Started Guide on Instructables:

WeMos D1 Mini ESP8266 Getting Started with Arduino on Youtube:

Additional Resources and Guides:

Espressif Resources:

NodeMCU Firmware:

ESP8266 Arduino Core’s Documentation:

ESP8266 and Arduino on Github:

Lua Loader:

ESP8266 Datasheet:

ESP8266 Chipset Datasheet: 

Getting Started with Arduino:

The CH340G USB drivers may need to be installed on your computer before using this D1 Mini board with the Arduino IDE. If the Arduino IDE cannot communicate with your board, it is probably because the CH340G driver is not installed on your computer.

To install the CH340G driver on your computer:

The CH340 USB IC is made by WCH. You can find the latest version of their drivers in their English translated website here:

Click on the “download” button on the WCH page to download the file to your computer.

Unzip (extract) the file.

Run the Setup application in the CH341SER folder of the unzipped file. See the screenshot below:

Click the “Uninstall” button first to remove any old versions, then click on the “Install” button.

CH340G Driver Verification for Windows:

To verify that your CH340G driver is working, you should see a difference in the Windows Device Manager and Arduino IDE Ports after plugging the D1 Mini board with a CH340 into a USB port on your computer.

Device Manager

To check that the CH340 associates to a COM port, open the Windows Device Manager. You can click the Start or ⊞ (Windows) button and type “device manager” to search for the application.

After opening the Device Manager, you will need to open the Ports (COM & LPT) tree. The CH340 should show up as USB-SERIAL CH340 (COM##). Depending on your computer, the COM port may show up as a different number.

Arduino IDE

If you have the Arduino IDE installed, you should also see a change in the number of available COM Ports (you may need to restart the Arduino IDE for the board to populate). Without the CH340 connected to your computer, in the IDE click on Tools > Port. Take note of the Serial Ports available:

Connect the D1 Mini board with the CH340 to your computer’s USB port. Click somewhere else on the screen for the menu to refresh itself. Then go back to Tools > Port. A new COM port should appear. By process of elimination, the CH340 should have associated to the new COM port. Select this COM port in order to connect the IDE to your D1 Mini board.

In the example shown in these two screen shots, the new D1 Mini CH340 board is associated to COM Port 3.

Copyright © 2018-2021 Envistia Mall


Table of Contents