Skip to content

Wemos D1 R32 (ESPDuino-32)

Support for the Wemos D1 R32 (ESPDuino-32) board

Related Boards

The Wemos D1 R32 board is an ESP32 board in the Arduino Uno format that uses the ESP32-WROOM-32 module. It is exactly the same board that is also known as ESPDuino-32 on the market. The board is pin compatible with the Arduino Uno board. The peripheral configuration corresponds to the Arduino Uno pinout and guaranties the compatibility with Arduino Uno Shields.

WeMos D1 R32 ESPDuino32

Most features of the board are provided by the ESP32 SoC. For detailed information about the ESP32, see section MCU ESP32.

The board configuration guarantees that the board is compatible with Arduino Uno Shield. The board configuration provides:

  • 6 x ADC channels
  • 2 x DAC channels
  • 2 x PWM devices with a total of 6 channels
  • 1 x SPI device
  • 1 x I2C device
  • 2 x UART devices

The following table shows the default board configuration, which is sorted according to the defined functionality of GPIOs.

Function GPIOs Arduino Pin Configuration
ADC_LINE(0) GPIO2 A0 ADC Channels
ADC_LINE(1) GPIO4 A1 ADC Channels
ADC_LINE(2) GPIO35 A2 ADC Channels
ADC_LINE(3) GPIO34 A3 ADC Channels
ADC_LINE(4) GPIO36 A4 ADC Channels
ADC_LINE(5) GPIO39 A5 ADC Channels
DAC_LINE(0) GPIO25 D3 DAC Channels
DAC_LINE(1) GPIO26 D2 DAC Channels
I2C_DEV(0):SDA GPIO21 SDA I2C Interfaces
I2C_DEV(0):SCL GPIO22 SCL I2C Interfaces
LED GPIO2 A0 -
PWM_DEV(0):0 GPIO25 D3 PWM Channels
PWM_DEV(0):1 GPIO16 D5 PWM Channels
PWM_DEV(0):2 GPIO27 D6 PWM Channels
PWM_DEV(0):3 GPIO13 D9 PWM Channels
PWM_DEV(1):0 GPIO5 D10 PWM Channels
PWM_DEV(1):1 GPIO23 D11 PWM Channels
SPI_DEV(0):CLK GPIO18 D13 SPI Interfaces
SPI_DEV(0):MISO GPIO19 D12 SPI Interfaces
SPI_DEV(0):MOSI GPIO23 D11 SPI Interfaces
SPI_DEV(0):CS0 GPIO5 D10 SPI Interfaces
UART_DEV(0):TxD GPIO1 D1 UART interfaces
UART_DEV(0):RxD GPIO3 D0 UART interfaces
UART_DEV(1):TxD GPIO10 D4 UART interfaces
UART_DEV(1):RxD GPIO9 D5 UART interfaces

For detailed information about the configuration of ESP32 boards, see section Common Peripherals.

The following figure shows the pinout of the Wemos D1 R32 board. It is exactly the same as for the ESPDuino-32 board. The corresponding board schematics can be found here.

Wemos D1 R32 ESPDuino Pinout

Flashing RIOT is quite easy. The board has a Micro-USB connector with reset/boot/flash logic. Just connect the board to your host computer and type using the programming port:

Terminal window
BOARD=esp32-wemos-d1-r32 make flash ...

For detailed information about ESP32 as well as configuring and compiling RIOT for ESP32 boards, see ESP32 SoC Series.


Author: Gunar Schorcht