The Wemos D1 R32 puts an ESP32-WROOM-32 on an Arduino Uno-shaped board, so Uno shields physically fit. But every header pin is now an ESP32 GPIO at 3.3 V, and the Uno names hide a few ESP32 rules that catch people out.
Quick answer: A0 = GPIO2, A1 = GPIO4 (ADC2: no readings while Wi-Fi is on). A2–A5 = GPIO35, 34, 36, 39 (ADC1, input only). I2C is GPIO21/22 on the Uno SDA/SCL pins. SPI is D10–D13 (GPIO5, 23, 19, 18). D8 (GPIO12) and A0 (GPIO2) are strapping pins. The LED is on GPIO2.
Highlighted on the SolderHub Simulator Wemos D1 R32. Explore every pin on the Wemos D1 R32 board page.
What's Actually on the Board
At the USB end: the reset button, a micro-USB socket, the USB-serial chip and the DC jack. At the other end, the ESP32-WROOM-32 module with its antenna. The headers follow the Uno R3 layout, and the on-board LED is on GPIO2.
Uno Name → ESP32 GPIO
| Uno pin | GPIO | Notes | Uno pin | GPIO | Notes | |
|---|---|---|---|---|---|---|
| D0 / RX | 3 | USB serial | D9 | 13 | ADC2 | |
| D1 / TX | 1 | USB serial | D10 / SS | 5 | Strapping (soft) | |
| D2 | 26 | ADC2 | D11 / MOSI | 23 | ||
| D3 | 25 | ADC2 | D12 / MISO | 19 | ||
| D4 | 17 | D13 / SCK | 18 | |||
| D5 | 16 | A0 | 2 | ADC2, strapping, LED | ||
| D6 | 27 | ADC2 | A1 | 4 | ADC2 | |
| D7 | 14 | ADC2 | A2 | 35 | ADC1, input only | |
| D8 | 12 | Strapping, ADC2 | A3 | 34 | ADC1, input only | |
| SDA | 21 | I2C | A4 | 36 | ADC1, input only | |
| SCL | 22 | I2C | A5 | 39 | ADC1, input only |
31 of 31 pins match
Hover or tap any pin on the board
DIGITAL header · pin 1
IO22
Safe to use
I2C SCL (Wire).
Nothing else on the board depends on this pin. A good first choice for sensors, LEDs and buttons.
Can be used as
- PWM out
- I2C
Signals on this pad
- GPIO22
- SCL
The Analog Trap: ADC1 vs ADC2
Espressif's docs are blunt: ADC2 pins can't be used while Wi-Fi is on. On the D1 R32, A0 and A1 are ADC2 (GPIO2, GPIO4), so a Uno sketch that reads A0 and also uses Wi-Fi gets nothing useful. A2–A5 are ADC1, which keeps working, but GPIO34–39 are input only and have no internal pull-ups or pull-downs.
Highlighted on the SolderHub Simulator Wemos D1 R32. Explore every pin on the Wemos D1 R32 board page.
Highlighted on the SolderHub Simulator Wemos D1 R32. Explore every pin on the Wemos D1 R32 board page.
Work with Wi-Fi on
Blocked while Wi-Fi is on
Strapping Pins on the Header
The ESP32 reads some pins at reset. Two reach this board's headers in awkward places:
- D8 = GPIO12 (MTDI) sets the flash voltage. Pulled HIGH at boot, it can stop the board starting, and some Uno shields do exactly that.
- A0 = GPIO2 is sampled with GPIO0 to pick the boot mode; pulled HIGH at reset it can block flashing. It's also the LED.
- D10 = GPIO5 is a softer strapping pin: keep it from being pulled LOW at boot.
Highlighted on the SolderHub Simulator Wemos D1 R32. Explore every pin on the Wemos D1 R32 board page.
I2C, SPI and Serial
- I2C: SDA GPIO21, SCL GPIO22 (the Uno SDA/SCL pins).
- SPI: SS D10 (GPIO5), MOSI D11 (GPIO23), MISO D12 (GPIO19), SCK D13 (GPIO18).
- Serial: D0/RX (GPIO3) and D1/TX (GPIO1), shared with the USB port for uploads.
Highlighted on the SolderHub Simulator Wemos D1 R32. Explore every pin on the Wemos D1 R32 board page.
Highlighted on the SolderHub Simulator Wemos D1 R32. Explore every pin on the Wemos D1 R32 board page.
Try your pin plan on a virtual Wemos D1 R32. The SolderHub Simulator has the same Wemos D1 R32 you see in these figures, so you can check the wiring before you touch real hardware.
FAQ
Is the D1 R32 5 V tolerant like an Uno? No: ESP32 I/O is 3.3 V.
Why does analogRead(A0) return garbage with Wi-Fi on? A0 is GPIO2 on ADC2, which Wi-Fi uses. Use A2–A5.
Can I use A2–A5 as digital outputs? No, GPIO34–39 are input only.
Which pin is the LED? GPIO2, which is also A0.

