WEMOS D1 R32

Arduino Uno-compatible ESP32 board - perfect for developers transitioning from AVR to ESP.

Micro-USB
WEMOS D1 R32 board
68.58 × 53.34 mm
ESP32
MCU
240MHz
clock
4MB
flash
520KB
SRAM
32· 16 ADC
GPIO
BLE 4.2+ WiFi
radio
On this page

WEMOS D1 R32 Pinout

41 pins · 2.54 mm pitch
WEMOS D1 R32 pinout diagram, high resolution: all 41 pins, with GPIO numbers, ADC channels and strapping pins
WEMOS D1 R32 pinout, drawn by ESPboards from the ESP32 Series Datasheet v5.3.
PinGPIOLabelsStatusCapabilitiesNotes
10IO0GPIO0strappingadc · touch · pwmPOWER header, the Uno NC position (ETT schematic pin 8, silk IO0). Strapping pin: LOW at reset enters download mode - the CH340 auto-reset drives it, and a shield that ties NC low stops the board booting. ADC2 - analogRead() fails while WiFi is on (use A2-A5, which are ADC1).
2-5VIOREFpower-The Uno IOREF position, wired to 5V here (ETT schematic). A shield that reads IOREF to set its logic level will pick 5V, but GPIOs are 3.3 V only, NOT 5 V tolerant (ESP32 datasheet abs. max VDD + 0.3 V) - 5 V Uno shields need level shifting.
3-RSTENcontrol-Reset (active LOW), silk RST - the ESP32 EN net shared with the reset button.
4-3V33.3Vpower-3.3 V from the AMS1117 regulator.
5-5Vpower-5 V rail: from USB, or from the MP1482 buck when running on the DC jack.
6-GNDground-Ground
7-GNDground-Ground
8-VINpower-DC jack input (5-12 V per vendor listings), taken before the M7 reverse-polarity diode; feeds the MP1482 buck.
92IO2A0LED_BUILTINstrappingadc · touch · pwmA0 on the Uno header. Blue on-board LED through 1K to GND (ETT schematic). Strapping pin: must be LOW or floating to enter download mode. ADC2 - analogRead() fails while WiFi is on (use A2-A5, which are ADC1).
104IO4A1safeadc · touch · pwmA1 on the Uno header. ADC2 - analogRead() fails while WiFi is on (use A2-A5, which are ADC1).
1135IO35A2strappingadcA2 on the Uno header. ADC1_CH7; input only, no pull-ups.
1234IO34A3strappingadcA3 on the Uno header. ADC1_CH6; input only, no pull-ups.
1336IO36A4VPstrappingadcA4 on the Uno header (SENSOR_VP, ADC1_CH0); input only. Uno shields that use A4 as SDA will not work - I2C is on IO21/IO22.
1439IO39A5VNstrappingadcA5 on the Uno header (SENSOR_VN, ADC1_CH3); input only. Uno shields that use A5 as SCL will not work - I2C is on IO21/IO22.
1522IO22SCLsafei2c · pwmSilk SCL, the Uno SCL position. Default I2C SCL.
1621IO21SDAsafei2c · pwmSilk SDA, the Uno SDA position. Default I2C SDA.
17-RSTENcontrol-The Uno AREF position, silk RST on this board (ETT schematic). A shield that drives or decouples AREF lands on reset here, not on an ADC reference.
18-GNDground-Ground
1918IO18D13SCKsafespi · pwmD13 on the Uno header. VSPI SCK.
2019IO19D12MISOsafespi · pwmD12 on the Uno header. VSPI MISO.
2123IO23D11MOSIsafespi · pwmD11 on the Uno header. VSPI MOSI.
225IO5D10SSstrappingspi · pwmD10 on the Uno header. VSPI SS. Strapping pin (SDIO timing), outputs a PWM burst at boot.
2313IO13D9strappingadc · touch · spi · pwmD9 on the Uno header. HSPI MOSI. ADC2 - analogRead() fails while WiFi is on (use A2-A5, which are ADC1).
2412IO12D8strappingadc · touch · spi · pwmD8 on the Uno header. Strapping pin (MTDI): pulled HIGH at reset it selects 1.8 V flash and the board will not boot - watch shields with a pull-up on D8. ADC2 - analogRead() fails while WiFi is on (use A2-A5, which are ADC1).
2514IO14D7strappingadc · touch · spi · pwmD7 on the Uno header. HSPI SCK; outputs a PWM burst at boot. ADC2 - analogRead() fails while WiFi is on (use A2-A5, which are ADC1).
2627IO27D6safeadc · touch · pwmD6 on the Uno header. ADC2 - analogRead() fails while WiFi is on (use A2-A5, which are ADC1).
2716IO16D5uartuart · pwmD5 on the Uno header. U2RXD IO_MUX pin: UART2 RX in Arduino core 2.x; core 3.x defaults Serial2 to GPIO4/25, so pass 16 explicitly to Serial2.begin().
2817IO17D4uartuart · pwmD4 on the Uno header. U2TXD IO_MUX pin: UART2 TX in Arduino core 2.x; core 3.x defaults Serial2 to GPIO4/25, so pass 17 explicitly to Serial2.begin().
2925IO25D3DAC1safeadc · dac · pwmD3 on the Uno header. DAC1. ADC2 - analogRead() fails while WiFi is on (use A2-A5, which are ADC1).
3026IO26D2DAC2safeadc · dac · pwmD2 on the Uno header. DAC2. ADC2 - analogRead() fails while WiFi is on (use A2-A5, which are ADC1).
311IO1D1TXuartuart · pwmD1 / TX0 on the Uno header: UART0 TX to the CH340C - used for upload and Serial; a shield on D1 can block flashing.
323IO3D0RXuartuart · pwmD0 / RX0 on the Uno header: UART0 RX from the CH340C - used for upload and Serial; a shield on D0 can block flashing.
3315IO15strappingadc · touch · spi · pwmExtra 1 x 3 pad row beside the power header (not an Uno pin; unpopulated). Strapping pin (MTDO): LOW at reset silences boot log output. HSPI SS. ADC2 - analogRead() fails while WiFi is on (use A2-A5, which are ADC1).
3433IO33safeadc · touch · pwmExtra 1 x 3 pad row beside the power header (not an Uno pin; unpopulated). ADC1_CH5 - works with WiFi on.
3532IO32safeadc · touch · pwmExtra 1 x 3 pad row beside the power header (not an Uno pin; unpopulated). ADC1_CH4 - works with WiFi on.
369IO9SD2GPIO9strapping-Extra 1 x 6 pad row by the digital header, wired to the module's SPI flash - do NOT use, the board will crash or fail to boot.
3710IO10SD3GPIO10strapping-Extra 1 x 6 pad row by the digital header, wired to the module's SPI flash - do NOT use, the board will crash or fail to boot.
3811IO11CMDGPIO11strapping-Extra 1 x 6 pad row by the digital header, wired to the module's SPI flash - do NOT use, the board will crash or fail to boot.
396IO6CLKGPIO6strapping-Extra 1 x 6 pad row by the digital header, wired to the module's SPI flash - do NOT use, the board will crash or fail to boot.
407IO7SD0GPIO7strapping-Extra 1 x 6 pad row by the digital header, wired to the module's SPI flash - do NOT use, the board will crash or fail to boot.
418IO8SD1GPIO8strapping-Extra 1 x 6 pad row by the digital header, wired to the module's SPI flash - do NOT use, the board will crash or fail to boot.
Download the WEMOS D1 R32 pinout Free to use and share for non-commercial work, as long as you credit espboards.dev. License.
32 GPIOs broken out 13 free · 13 need care · 6 to avoid

Start with these

13 pins with no boot or system involvement
IO4IO22IO21IO18IO19IO23IO27IO16IO17IO25IO26IO33IO32

Freely assignable - no strapping, flash, USB or JTAG duties. Ideal first picks for buttons, sensors and LEDs.

Fine - with a little care

13 pins · 11 things to know
IO0 Bootstrapping pin (enter bootloader when low); internal pull-up. Strapping

Must be HIGH during boot for normal startup; if held LOW on reset, forces flash programming mode.

IO2 Bootstrapping pin (must be low or floating at reset); internal pull-down. Strapping

If driven HIGH on reset (while IO0 is LOW), selects an unsupported SDIO boot mode, causing boot failure.

IO35IO39 Input-only GPIOs with ADC1 channels - no output driver Other

Cannot be used as output; only suitable for input.

  • IO35Input-only GPIO (no output driver); ADC1 channel 7.
  • IO39Input-only GPIO (no output); ADC1 channel 3, Hall sensor VN.
IO34 Input-only GPIO (no output driver); ADC1 channel 6. Other

Cannot be used as output (no drive capability); only suitable for analog/digital input.

IO36 Input-only GPIO (no output); ADC1 channel 0, Hall sensor VP. Other

Cannot be used as output; only suitable for input (e.g., analog read).

IO5 Bootstrapping pin; internal pull-up; VSPI CS0 (default SPI chip-select); acts as FSPIWP (flash write-protect) on internal-flash variants. Strapping

Must be HIGH during boot; if pulled LOW at reset, alters SDIO slave timing and may prevent normal boot.

IO13 JTAG clock pin (TCK); also ADC2 channel 4 / Touch4 input. JTAG

Used for JTAG debugging (TCK); avoid using as GPIO if JTAG is needed.

IO12 Bootstrapping pin; JTAG TDI; sets flash voltage (VDD_SDIO); also HSPIQ (flash data line). Strapping

Keep LOW during boot (internal PD); pulling HIGH at reset selects 1.8V flash mode, causing flash brownout if 3.3V flash is used.

IO14 JTAG mode select pin (TMS); also HSPI CLK and PWM-capable GPIO. JTAG

Used for JTAG debugging (TMS); driving it as GPIO may interfere with JTAG or produce spurious signals at boot.

IO1IO3 Used by the CH340C USB serial bridge onboard hardware

Wired to the CH340C USB serial bridge on this board. The pin is yours if you give that up, but nothing else can share it.

  • IO1D1 / TX0 on the Uno header: UART0 TX to the CH340C - used for upload and Serial; a shield on D1 can block flashing.
  • IO3D0 / RX0 on the Uno header: UART0 RX from the CH340C - used for upload and Serial; a shield on D0 can block flashing.
IO15 Bootstrapping pin; JTAG TDO; controls UART0 boot log output; also HSPICS0 (secondary SPI CS). Strapping

Keep HIGH during boot (internal PU); if LOW on reset, bootloader log is silenced and boot mode may change.

Only if you know the tricks

6 pins · 4 things to know
IO9IO10 SPI flash/PSRAM data lines SD2 and SD3 (flash HOLD and WP) Flash

Used by internal flash/PSRAM; typically not exposed on modules, avoid using as GPIO.

  • IO9Connected to SPI flash/PSRAM data 2 (SD2, flash HOLD).
  • IO10Connected to SPI flash/PSRAM data 3 (SD3, flash WP).
IO11 Connected to SPI flash command/CS (CMD/CS0). Flash

Used by internal flash (chip select/command); not available for general use.

IO6 Connected to SPI flash clock (SCK/CLK). Flash

Used for internal flash/PSRAM communication; not available for general GPIO.

IO7IO8 SPI flash data lines SD0 and SD1 Flash

Used for internal flash/PSRAM data; not available for general GPIO.

  • IO7Connected to SPI flash data 0 (SD0).
  • IO8Connected to SPI flash data 1 (SD1).
These are recommendations, not hard rules - with the right pull-ups, timing and boot-state awareness most pins can be made to work. When in doubt, start green.

The WEMOS D1 R32 breaks out 41 pins in total: 32 GPIO for your project, with 5V, 3V3, GND and VIN handling power.

Peripheral wiring is straightforward: I²C is mapped to SDA on GPIO21 and SCL on GPIO22; the SPI bus (MOSI, MISO, SCK, SS) is broken out in full; TX/RX on GPIO1 and GPIO3 cover serial logging and flashing.

Beyond plain digital I/O you get 16 ADC-capable pins for sensors and battery monitoring, PWM on 22 pins, 10 capacitive-touch inputs and 2 true DAC outputs.

13 of the exposed pins carry boot-time or system duties on the ESP32 (IO0, IO2, IO35 and 10 more) - check the guidance above before wiring anything to them. IO4, IO22, IO21, IO18 and 9 more are free of any such role - the safest first picks.

Getting started

flash your first firmware in ~2 minutes
Tool:
1
Connect over USB
Uses a CH340 bridge - install the CH340 driver if no port appears. Not detected? Hold BOOT while plugging in.
2
Match & flash
Set the Tools options shown, then click Upload.
3
Verify it runs
GPIO4 toggles - wire an LED and resistor to it, or change the pin to your board's own LED.
Set these in Tools · leave everything else at default
Arduino IDE 2.x - Tools Copy
Board: "ESP32 Dev Module"▸
Flash Size: "4MB (32Mb)"▸
Flash Mode: "DIO"▸
Partition Scheme: "Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)" (default)▸
Upload Speed: "921600"▸
▸ every other Tools option - leave at default
Board: ESP32 Dev Module
Flash Size: 4MB (32Mb)
Flash Mode: DIO
Partition Scheme: Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
Upload Speed: 921600
Find it: Tools ▸ Board ▸ ESP32 Arduino ▸ ESP32 Dev Module
blink.ino Copy
// toggle GPIO4 - wire an LED and resistor to it
void setup() {
  pinMode(4, OUTPUT);
}
void loop() {
  digitalWrite(4, HIGH); delay(500);
  digitalWrite(4, LOW);  delay(500);
}
board to selectesp32dev⧉ copy
platformio.ini Copy
[env:d1_uno32]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
upload_speed = 921600
Find it: PlatformIO Home ▸ Boards, search esp32dev - or type it after board =.
board to selectesp32dev⧉ copy
device.yaml Copy
esp32:
  board: esp32dev
  variant: esp32
  framework:
    type: esp-idf

# blink - GPIO4
output:
  - platform: gpio
    pin: 4
    id: led_out
light:
  - platform: binary
    name: "LED"
    output: led_out
Find it: search ESPHome's board list for esp32dev (same ids as PlatformIO).
esptool doesn't pick board settings - a prebuilt .bin already has them baked in. This is just the raw flash command.
terminal Copy
esptool.py --chip esp32 --port /dev/ttyACM0 \
  --baud 921600 write_flash 0x1000 firmware.bin
--port = your /dev/tty* (macOS/Linux) or COMx (Windows).
Build details: sketch space 1310720 B · data 327680 B · DIO

Downloads

Free for non-commercial use, credit espboards.dev · License
WEMOS D1 R32 board illustration, front

Board illustration

The bare WEMOS D1 R32 board drawn to scale at 68.58 × 53.34 mm, with no pin labels on it. Made for slide decks, wiring diagrams and project write-ups where a photo is too busy. Take the scalable SVG for print or editing, the high-resolution PNG to drop straight in, or the transparent PNG when you need it with no background behind it.

WEMOS D1 R32 pinout diagram

Pinout diagram

Every pin on both sides of the board with its functions, drawn by ESPboards from the ESP32 Series Datasheet v5.3 - the same sheet shown at the top of this page. The PNG is a high-resolution image for screens, the SVG is vector so it stays sharp at any size, and the PDF is laid out to print on A4 or Letter.

Free for non-commercial use, with the credit line kept.

Embed the WEMOS D1 R32 pinout

Paste this where you want the diagram. Keep the credit line - it is what the licence asks for, and it is the only thing we want in return.

<figure>
  <img src="https://cdn.espboards.net/boards/d1-uno32/diagram-1600.png"
       alt="WEMOS D1 R32 pinout diagram" width="1600" loading="lazy">
  <figcaption>
    WEMOS D1 R32 pinout by
    <a href="https://www.espboards.dev/esp32/d1_uno32/">ESPboards</a>,
    <a href="https://creativecommons.org/licenses/by-nc/4.0/">CC BY-NC 4.0</a>
  </figcaption>
</figure>

Using it commercially? Ask us first - it takes one email.

Yours to use, share and adapt for non-commercial work, as long as you credit espboards.dev - the full terms and ready-made credit lines are here.

Specifications

ESP32 · 68.58 × 53.34 mm · vs other ESP32 chips →
Compute
MCU
ESP32
Clock
240 MHz
SRAM · Flash
520 KB · 4MB
Radio
Wi-Fi
802.11 b/g/n
Bluetooth
4.2 LE
Antenna
PCB
I/O
GPIO · ADC
32 · 16
UART · I²C · SPI
3 · 2 · 2
PWM
16 channels
Power
USB
Micro-USB
Serial
CH340
Boot address
0x1000
Electrical
Input
5V USB · 5-12V DC jack
Consumption
-
Regulator
-
Flashing
Upload · OTA
esptool_py · esp_ota
Flash · Boot mode
DIO · DIO
Sketch · Data
1.25 MB · 320 KB

Dimensions

WEMOS D1 R32 board, drawn to scale
53.34 mm68.58 mm
68.58 × 53.34 mm · pin pitch 2.54 mm
The WEMOS D1 R32 uses esptool_py for firmware uploads, esp_ota for over-the-air (OTA) updates. Flash mode is DIO with DIO boot mode. The maximum sketch size is 1.25 MB with 320 KB available for data.

About this board

Inside sits the ESP32 - a dual-core Xtensa with both Bluetooth Classic and BLE.

With 32 GPIO broken out, you get more pins to play with than most ESP32 boards offer.

Around the module: status LEDs (Power, User (GPIO2)) and Reset buttons.

Resources

Similar boards