1. Introduction
The TZT Wemos D1 Mini ESP8266 ESP-12F is a compact and versatile Wi-Fi enabled development board, ideal for Internet of Things (IoT) projects. It integrates the powerful ESP8266 ESP-12F module, offering Wi-Fi connectivity and ample processing power for various applications. This board is compatible with the Arduino IDE and NodeMCU Lua, making it accessible for both beginners and experienced developers. It is available in both Type-C and Micro USB variants, featuring the CH340G USB-to-serial chip for easy programming and communication.
2. Features
- Based on ESP-8266EX Wi-Fi SoC.
- Arduino IDE compatible for easy programming.
- 3.3V I/O pins.
- One (1) Analog-to-Digital Converter (ADC) pin with 0-3.3V input range.
- Supports Over-The-Air (OTA) firmware updates.
- Onboard 5V 1A switching power supply, supporting input up to 24V.
- Compact SMD package design.
- Customizable for various project needs.
3. Package Contents
Each package typically includes the following components:
- 1x D1 Mini ESP-12F Development Board (Type-C or Micro USB variant)
- 2x Long Female Pin Headers
- 2x Short Female Pin Headers
- 2x Male Pin Headers


4. Setup Instructions
Follow these steps to set up your TZT Wemos D1 Mini development board for programming with the Arduino IDE.
4.1. Driver Installation
- Install CH340G Driver: The D1 Mini uses a CH340G USB-to-serial chip. Ensure the appropriate driver for CH340G is installed on your computer. This driver allows your computer to recognize the board when connected via USB.
- Verify COM Port: After connecting the board to your computer, check your device manager (Windows) or system information (macOS/Linux) to confirm that a COM port is assigned to the CH340G device.
4.2. Arduino IDE Configuration
- Install Arduino IDE: If you haven't already, download and install the latest version of the Arduino IDE from the official Arduino website.
- Add ESP8266 Board Manager URL:
- Open Arduino IDE.
- Go to
File > Preferences(orArduino > Preferenceson macOS). - In the 'Additional Boards Manager URLs' field, add the following URL:
http://arduino.esp8266.com/stable/package_esp8266com_index.json - Click 'OK'.

Figure 3: Adding the ESP8266 Boards Manager URL in Arduino IDE Preferences. - Install ESP8266 Boards:
- Go to
Tools > Board > Boards Manager... - Search for "ESP8266" and install the "esp8266 by ESP8266 Community" package.

Figure 4: Installing the ESP8266 board package via Boards Manager. - Go to
- Select Board:
- Go to
Tools > Board. - Under the "ESP8266 Boards" section, select "LOLIN(WEMOS) D1 mini Pro" or "WeMos D1 R2 & mini" (depending on the specific board variant and available options).

Figure 5: Selecting the D1 Mini board in the Arduino IDE. - Go to
- Select COM Port: Go to
Tools > Portand select the COM port corresponding to your D1 Mini board.
4.3. Pinout Diagram
Refer to the following table and diagram for the pin assignments of the D1 Mini board:

| PIN | Description | IC Internal Pin |
|---|---|---|
| D0 | I/O, Interrupt, PWM, I2C and 1-wire are not supported | GPIO16 |
| D1 | I/O, SCL of I2C in default mode | GPIO5 |
| D2 | I/O, SDA of I2C in default mode | GPIO4 |
| D3 | I/O, Pull up and enter flash mode at low power | GPIO0 |
| D4 | I/O, Pull up | GPIO2 |
| D5 | I/O, SPI clock | GPIO14 |
| D6 | I/O, SPI MISO | GPIO12 |
| D7 | I/O, SPI MOSI | GPIO13 |
| D8 | I/O, dropdown, SPI, default slice selection (SS) | GPIO15 |
| A0 | AD Input, 0-3.3V | ADC |
| TX | Serial transmission | GPIO1 |
| RX | Serial reception | GPIO3 |
| RST | Reset | RST |
| 3V3 | Power supply 3.3V | 3.3V |
| G | Ground | GND |
| 5V | Power supply 5V | External power supply |
Note: All I/O working levels are 3.3V, and can withstand 5V in an instant. All I/O supports interrupt, PWM, I2C and 1-wire except D0.
5. Operating Instructions
5.1. Basic Programming and Upload
- Open an Example Sketch: In the Arduino IDE, go to
File > Examples > ESP8266WiFi > WiFiScan. This example will scan for available Wi-Fi networks. - Compile and Upload: Click the 'Verify' button (checkmark icon) to compile the code, then click the 'Upload' button (right arrow icon) to upload it to your D1 Mini board.
- Monitor Serial Output: Open the Serial Monitor (
Tools > Serial Monitor). Ensure the baud rate in the Serial Monitor matches the baud rate specified in the sketch (usually 115200). You should see the D1 Mini scanning for and listing nearby Wi-Fi networks.

5.2. Connecting to a Wi-Fi Network
- Open Wi-Fi Client Example: Open the
File > Examples > ESP8266WiFi > WiFiClientsketch. - Modify Network Credentials: Locate the lines in the code that define the Wi-Fi SSID and password. Update them with your network's credentials:
const char * ssid = "YOUR_SSID"; const char * password = "YOUR_PASSWORD"; - Compile and Upload: Upload the modified sketch to your D1 Mini board.
- Verify Connection: Open the Serial Monitor. The board should attempt to connect to your specified Wi-Fi network. Upon successful connection, it will display its assigned IP address.
5.3. Web Server Example (GPIO Control)
To demonstrate network control, you can use a simple web server sketch to control GPIO pins:
- Open Web Server Example: Open the
File > Examples > ESP8266WiFi > WiFiWebServersketch. - Upload Sketch: Compile and upload the sketch to your D1 Mini.
- Access Web Interface: Once the board is connected to Wi-Fi and the sketch is running, open a web browser on a device connected to the same network.
- Control GPIO: Enter the board's IP address followed by
/gpio/0or/gpio/1in the browser's address bar to control GPIO2 (e.g.,http://192.168.1.100/gpio/0). It is recommended to connect an LED to GPIO2 to visually observe the state changes.

5.4. Connecting Peripherals
The D1 Mini can be easily connected to various sensors and modules. Below are examples of connecting an OLED display and a DHT11 temperature/humidity sensor.

6. Specifications
| Feature | Specification |
|---|---|
| Microcontroller | ESP8266 ESP-12F |
| USB-to-Serial Chip | CH340G |
| Operating Voltage | 3.3V (I/O Logic) |
| Input Power Supply | 5V (via USB), up to 24V (via 5V pin with onboard regulator) |
| Wi-Fi Standard | 802.11 b/g/n |
| Wi-Fi Frequency | 2.4 GHz |
| Transmit Power | +25dBm PA |
| Flash Memory | 4MB (32Mbit) |
| Digital I/O Pins | 11 (all support interrupt/PWM/I2C/1-Wire, except D0) |
| Analog Input Pins | 1 (A0, 0-3.3V input) |
| Dimensions | 34.0mm x 25.50mm |
| Weight | Approx. 8.80g |
| Package Type | SMD |

7. Maintenance
The TZT Wemos D1 Mini is a robust development board, but proper handling and care will ensure its longevity:
- Storage: Store the board in an anti-static bag when not in use to prevent damage from electrostatic discharge.
- Cleaning: If necessary, clean the board with a soft, dry brush or compressed air. Avoid using liquids or abrasive materials.
- Power Supply: Always ensure your power supply voltage is within the specified limits (5V via USB, up to 24V via 5V pin). Incorrect voltage can damage the board.
- Connections: Double-check all wiring connections before applying power to prevent short circuits or incorrect signal routing.
8. Troubleshooting
If you encounter issues with your D1 Mini board, consider the following common problems and solutions:
8.1. Flashing Errors
- "Failed to write to target RAM (checksum error)": This often indicates an issue with the connection, incorrect board selection, or an outdated driver.
- Ensure the correct COM port is selected in the Arduino IDE.
- Verify that the correct board (e.g., "LOLIN(WEMOS) D1 mini Pro") is selected under
Tools > Board. - Reinstall or update your CH340G driver.
- Try a different USB cable or USB port.
- Ensure no other software is using the COM port.
- Board not recognized or defective: If the board is not detected by your computer or consistently fails to flash, it might be a hardware issue.
8.2. Wi-Fi Connection Issues
- "Can't connect to the Wi-Fi network, errors all the time":
- Double-check your Wi-Fi SSID and password in your code for typos.
- Ensure the board is within range of your Wi-Fi router.
- Verify that your router is operating on a 2.4GHz band, as ESP8266 does not support 5GHz.
- Check for network interference.
9. User Tips
- Reliable Flashing: Many users report that flashing firmware via the Arduino IDE is a highly reliable method. If you encounter issues with other tools (e.g., WLED), try using the Arduino IDE.
- Automatic Firmware Updates (OTA): The board supports Over-The-Air updates, which can be convenient for deploying new firmware without physically connecting the board.
- Performance: Users have noted faster write speeds compared to older NodeMCU boards using CP2102 USB-to-serial chips.
- Community Support: The ESP8266 community is vast. Utilize online forums and resources for project ideas, code examples, and troubleshooting assistance.
10. Warranty and Support
For warranty information and technical support, please refer to the seller's policies or contact the seller directly. Keep your purchase records for any warranty claims.