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.
Hardware
MCU
Most features of the board are provided by the ESP32 SoC. For detailed
information about the ESP32, see section esp32_mcu_esp32 “MCU ESP32”.
Board Configuration
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 7 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.
For detailed information about the configuration of ESP32 boards, see
section esp32_peripherals “Common Peripherals”.
Board Pinout
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.
Warning: The pinout contains the following errors.
Analog Arduino pin A2 with white label IO36 is actually ADC1 Channel7
that is connected to GPIO35 and analog Arduino pin A4 with white label
IO38 is actually ADC1 Channel0 that is connected to GPIO36. That is
the colored labels are correct in the pinout.
Flashing the Device
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-r32makeflash...
For detailed information about ESP32 as well as configuring and compiling
RIOT for ESP32 boards, see esp32_riot.