How to Setup the WeMos D1 Mini in Arduino IDE

Call me Ishmael, or whatever you like depending on if you get your WeMos D1 mini working from my tutorial. By now you’ve probably figured out the micro USB is used to connect the D1 to the USB on your laptop or desktop.

Shopping List

WeMos D1 Mini

From here you will want to download the Arduino IDE, this can be located at the following web address: You can select the download that best suits your computer platform and continue to install the app.

Now that your development environment is installed once you load the app the first time you will be presented with a screen similar to the one below.

There are a few things you will need to do to have your computer communicating with your WeMos Mini.


    1. Plugging the D1 Mini into the computer via usb should start downloading the CH340 drivers necessary automatically. 
    2. Configure the development environment to use ESP8266 and include support for the D1 Mini Board. Go to “File” from the top menu and select preferences and enter the following url: in the Additional Boards Manager Urls field as shown below, then click “OK”.

    3. Support for the WeMos D1 Mini can now be installed by opening “Tools” from the top and then “Board:” from the dropdown and clicking on “Boards Manager” on the slide out.

    4. Type “esp8266” in the search field and select the ESP8266 Board Package and click “install”.

    5. After installing the board package you will want to select it as the option for your development environment by going to back to “Tools” on the top menu, then selecting “Board:”  Then “WeMos D1 R2 & mini”.

    6. Now you are ready to create a simple first test app. Add the following code to a sketch and upload it to the D1 mini. Note: Ensure you have also selected the correct COM port under the “Tools” top menu under “Port”.  

void setup() {
  // put your setup code here, to run once:
  Serial.println("It Works!");

void loop() {
  // put your main code here, to run repeatedly:


  1. If you are successful you should see the “It Works!” string shown up in the Serial Monitor. To view the Serial monitor click on the top right button with the magnifying glass. If you don’t see anything right away you may need to press the reset button on the WeMos.



Leave a comment

Please note, comments must be approved before they are published