

The Wemos D1 R32 is a versatile microcontroller board based on the powerful ESP32 chip. It combines Wi-Fi and Bluetooth capabilities, making it an excellent choice for Internet of Things (IoT) projects. The board features multiple GPIO pins, allowing seamless interfacing with a wide range of sensors, actuators, and other peripherals. Its compact design and robust performance make it suitable for both hobbyist and professional applications.








The Wemos D1 R32 is designed to provide high performance and flexibility. Below are its key technical details:
| Specification | Details |
|---|---|
| Microcontroller | ESP32 (dual-core, 32-bit Xtensa LX6 processor) |
| Clock Speed | Up to 240 MHz |
| Flash Memory | 4 MB |
| SRAM | 520 KB |
| Wi-Fi | 802.11 b/g/n |
| Bluetooth | Bluetooth 4.2 (Classic and BLE) |
| Operating Voltage | 3.3V |
| Input Voltage (VIN) | 5V (via USB or external power supply) |
| GPIO Pins | 34 (including ADC, DAC, PWM, I2C, SPI, UART) |
| ADC Channels | 18 (12-bit resolution) |
| DAC Channels | 2 |
| Communication Interfaces | UART, SPI, I2C, I2S, CAN |
| USB Interface | Micro-USB |
| Dimensions | 68.6 mm x 53.4 mm |
The Wemos D1 R32 features a rich set of pins for various functionalities. Below is the pinout description:
| Pin Name | Function | Description |
|---|---|---|
| VIN | Power Input | Accepts 5V input for powering the board. |
| GND | Ground | Common ground for the circuit. |
| 3V3 | Power Output | Provides 3.3V output for external components. |
| GPIO0–GPIO39 | General Purpose I/O | Configurable as digital input/output, ADC, PWM, etc. |
| ADC1/ADC2 | Analog-to-Digital Converter | 12-bit ADC channels for analog input. |
| DAC1/DAC2 | Digital-to-Analog Converter | 8-bit DAC channels for analog output. |
| TX/RX | UART Communication | Serial communication pins (TX: transmit, RX: receive). |
| SCL/SDA | I2C Communication | Clock (SCL) and data (SDA) lines for I2C communication. |
| MOSI/MISO | SPI Communication | SPI data lines (MOSI: Master Out Slave In, MISO: Master In). |
| EN | Enable | Enables or disables the ESP32 chip. |
| BOOT | Boot Mode | Used to enter bootloader mode for firmware flashing. |
The Wemos D1 R32 is easy to use and highly adaptable for various projects. Follow the steps below to get started:
Tools > Board.Below is an example of how to blink an LED connected to GPIO2:
// Example: Blink an LED connected to GPIO2 on the Wemos D1 R32
// Define the GPIO pin for the LED
const int ledPin = 2;
void setup() {
// Set the LED pin as an output
pinMode(ledPin, OUTPUT);
}
void loop() {
// Turn the LED on
digitalWrite(ledPin, HIGH);
delay(1000); // Wait for 1 second
// Turn the LED off
digitalWrite(ledPin, LOW);
delay(1000); // Wait for 1 second
}
Board Not Detected by Computer
Code Upload Fails
Wi-Fi Connection Issues
GPIO Pin Not Working
Q: Can I power the board using a battery?
A: Yes, you can power the board using a 3.7V LiPo battery connected to the 3V3 pin or a 5V source connected to the VIN pin.
Q: How do I reset the board?
A: Press the RESET button on the board to restart the microcontroller.
Q: Can I use the Wemos D1 R32 with MicroPython?
A: Yes, the ESP32 chip supports MicroPython. Flash the MicroPython firmware to the board and use a compatible IDE like Thonny.
Q: Are all GPIO pins available for use?
A: Not all GPIO pins are available for general use. Some are reserved for specific functions. Refer to the ESP32 datasheet for details.
By following this documentation, you can effectively utilize the Wemos D1 R32 for your projects.