User Tools

Site Tools


Sidebar

Modtronix.com
Sitemap

tutorials:wireless:esp:esp8266:wemos_d1r2


This is a quick tutorial how to get started with your new WeMos D1 R2 bought from Modtronix or BestBay.

For additional information on the “WeMos D1 R2”, see http://www.wemos.cc/Products/d1_r2.html

The main processor modules on the “WeMos D1 R2” is the ESP-12F. This module normally contains some firmware that was used for testing the module, and will not be useful for the end user. The most popular options are to use the “WeMos D1 R2” with Arduino or the NodeMCU firmware - see sections below for details.

When you connect your new “WeMos D1 R2” to your PC, it will create a virtual com port. You can use a serial terminal(like CoolTerm, PuTTY, YAT…) to send and receive data to and from the module. In it's default state, it will output what seems like garbage to the serial terminal (connected to PC via USB). This is however status information sent at 76800 BAUD. Most serial terminals do not support this BAUD rate. The only one we could find for Windows to support 76800 was PuTTY. To view this data, use PuTTY serial terminal, and configure it for 76800 BAUD, 1 Stop Bit and no parity.

Using with NodeMCU Firmware and Lua Interpreter

The official NodeMCU firmware contains the Lua Interpreter. Lua is an interactive programming language which allows you to experiment and build simple working programs without a lot of effort. If you are not familiar with Lua, you will find that it is not hard to learn, at least for the simple tasks needed to get started.

For details how to use and flash the WeMos D1 R2, see this page on our Wiki.
Note that the WeMos D1 R2 does NOT have a firmware button! It is not required.

Using with Arduino IDE

Since Arduino IDE 1.6.4, it is possible adding the ESP8266 Board Package to the IDE.

For details, see Using with Arduino.

Trouble Shooting

Check USB Drivers are installed correctly

Ensure the CH340 USB driver is installed correctly. The driver should be located here. If not, google it.

Module always writes garbage out on serial port after reset

When you connect most ESP8266 Modules with USB to your PC, it will create a virtual com port. You can use a serial terminal(like CoolTerm, PuTTY, YAT…) to send and receive data to and from the module. In it's default state, most modules will output what seems like garbage to the serial terminal (connected to PC via USB). This is however status information sent at 76800 BAUD. Most serial terminals do not support this BAUD rate. The only one we could find for Windows to support 76800 was PuTTY. To view this data, use PuTTY serial terminal, and configure it for 76800 BAUD, 1 Stop Bit and no parity.

tutorials/wireless/esp/esp8266/wemos_d1r2.txt · Last modified: 2017/01/06 02:40 by modtronix