About two years ago, a cheap five dollar microcontroller has been entering the maker scene, featuring b/g/n wireless LAN. The ESP8266 is manufactured by a Chinese company, called Espressif Systems and became soon very popular as a building-block for home-automation and IoT projects.These modules were distributed on Ebay, the Amazon Marketplace or AliExpress for a few dollars. However, communication with most of the ESP8266 modules requires an external USB-to-Serial-Adapter and a special procedure to bring the device into “flash-mode”, which can be cumbersome in some cases, especially for beginners. With the brand-new WeMos D1 Mini, the setup was significantly simplified, so that it is as easy to use as an Arduino UNO.
The WeMos D1 Mini Board
The WeMos Mini D1 makes use of an ESP8266-E12 microcontroller, and provides access to eight digital and one analog GPIO pin. The device is usually shipped with a set of different male and female pin headers, which must be soldered before first use. The board can be powered both via USB or directly through it’s 5 V pin. Unfortunately, this is not well-documented in the WeMos-Wiki, but there is a linear step-down voltage regulator on board.
|Digital I/O Pins||11|
|Analog Input Pins||1|
The WeMos D1 mini is fully compatible with the Arduino IDE. All you have to do is, to clone the ESP8266 package into the Arduino IDE’s hardware folder, which is as simple as:
cd hardware mkdir esp8266com cd esp8266com git clone https://github.com/esp8266/Arduino.git esp8266
Alternatively, installation can be done though the Arduino-IDE’s board-manager, however this is not recommended. A couple of example sketches can be downloaded from github:
cd <Sketchbook_directory> git clone https://github.com/wemos/D1_mini_Examples.git
Under Windows, you need setup the ch340g driver, before you can use the WeMos board. This is not necessary if you are using Linux. The WeMos D1 mini is compatible with nodemcu. However, it is recommend to use the Arduino-IDE.