Language: EN

wemos-d1-mini-una-genial-placa-de-desarrollo-con-esp8266

Wemos D1 Mini, a great development board with ESP8266

In the previous entry of the ESP8266 section, we saw the NodeMCU. This time we are going to look at what is surely my favorite development board based on the popular ESP8266 SoC, the fantastic Wemos D1 Mini.

The Wemos D1 Mini board is the smaller version of its bigger sister, the Wemos D1, which we will see in a future entry. With dimensions of 34.2mm x 25.6mm and a weight of 3g, it is one of the smallest boards based on the ESP8266.

wemos-d1-mini-esp8266

The Wemos D1 Mini is only slightly larger than using an ESP12 module directly and offers many advantages, such as incorporating a Micro SD port and serial converter, a voltage regulator that allows it to be powered at 5V, and terminals to connect our devices.

In addition, the Wemos D1 Mini has the philosophy of allowing functionality to be expanded through the connection of Shields. There is a wide variety of Shields available, such as motor controllers, relay modules, OLED displays, temperature or humidity sensors.

arduino-wemos-d1-mini-shields

On the downside, the biggest disadvantage of the Wemos D1 Mini is that it has fewer available pins. It only exposes 11 GPIO pins compared to the 17 available on the ESP12 or the NodeMCU, although in most projects this is not a major issue.

Features of the Wemos D1 Mini

As we said, the Wemos D1 Mini is based on the ESP12E, so its features come directly from it. In summary, these are some of the main features:

  • Speed: 80MHz/160MHz

  • Flash: 4M bytes

  • Operating voltage: 3.3V

  • Digital inputs and outputs: 11, all (except D0) with PWM, interrupts, and I2C

  • Analog inputs: 1 (Max. 3.2V)

  • Micro-USB connector

Price

The price is one of the strong points of the Wemos D1 Mini. We can find it for about 2-2.20€. Therefore, it is even more affordable than a NodeMCU and only slightly more expensive than buying the module alone (to which we would have to add components, etc.).

wemos-mini-top-bottom

That is, the Wemos D1 Mini has a truly unbeatable price.

It is worth noting that there is a version, the Wemos D1 Mini Pro (next image, on the right), which increases the memory to 16MB, and costs quite a bit more, around 4-5€.

wemos-d1-mini-wemos-pro

Be careful if you try to buy a Wemos D1 Mini Pro; verify that it has 16Mb and not 4Mb, because some sellers sell a physically identical model but with 4Mb. That is, the same as the “non-Pro”.

Pinout of the Wemos D1 Mini

As we are getting used to, one of the biggest headaches when working with development boards based on the ESP8266 is the lack of consensus in designating the pins. Therefore, it is even more important to have a good pinout diagram of the board nearby.

Here you have the Pinout of the Wemos D1 Mini:

pinout-wemos-mini-d1

And here is a summary table of the pins and their main functions.

PinESP-8266 PinFunction
TXTXDTXD
RXRXDRXD
A0A0Analog input (max 3.2V)
D0GPIO16IO
D1GPIO5IO, PWM, Interrupt, I2C, SCL
D2GPIO4IO, PWM, Interrupt, I2C, SDA
D3GPIO0IO 10k Pull-up, PWM, Interrupt, I2C
D4GPIO2IO 10k Pull-up, PWM, Interrupt, I2C, BUILTIN_LED
D5GPIO14IO, PWM, Interrupt, I2C, SCK
D6GPIO12IO, PWM, Interrupt, I2C,, MISO
D7GPIO13IO, PWM, Interrupt, I2C,, MOSI
D8GPIO15IO 10k Pull-down, PWM, Interrupt, I2C,, SS
GGNDGround
5V-5V
3V33.3V3.3V
RSTRSTReset

Programming the Wemos D1 Mini

Programming the Wemos D1 Mini from the Arduino environment is easy and straightforward, just like for the other ESP8266 boards. The process is identical to what we saw in How to program ESP8266 with the Arduino IDE, so if you have any doubts, visit that entry.

We just need to make sure to select the board “Wemos D1 R2 or Mini”:

arduino-wemos-d1-mini-ide

This concludes the tutorial on this excellent board based on the ESP8266. As I said, it is one of my favorite development boards. With the price it has, we can afford to integrate it into any project.