Skip to content

Guide

Wemos D1 R32 Pinout: Uno Headers on an ESP32 (and the Traps)

A complete Wemos D1 R32 pinout: the Uno header names and the ESP32 GPIO behind each, ADC1 vs ADC2, input-only pins, strapping pins and shield compatibility.

Wemos D1 R32 Pinout: Uno Headers on an ESP32 (and the Traps)

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.

Wemos D1 R32 pinout diagram
IOREFRESET3.3V5VGNDGNDVINIO2IO4IO35IO34IO36IO39IO22IO21AREFGNDIO18IO19IO23IO5IO13IO12IO14IO27IO16IO17IO25IO26IO1IO3

Highlighted on the SolderHub Simulator Wemos D1 R32. Explore every pin on the Wemos D1 R32 board page.

Every header pin on the SolderHub Simulator D1 R32, labelled with its ESP32 GPIO (IO numbers); the Uno names are in the explorer. Amber pins need care (ADC2, input-only, serial), orange pins are strapping pins.

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.

What’s on a D1 R32: reset button, USB-serial chip, ESP32-WROOM-32, micro-USB, DC jack and the LED on GPIO2, labelled on the SolderHub Simulator D1 R32

Uno Name → ESP32 GPIO

Uno pinGPIONotesUno pinGPIONotes
D0 / RX3USB serialD913ADC2
D1 / TX1USB serialD10 / SS5Strapping (soft)
D226ADC2D11 / MOSI23
D325ADC2D12 / MISO19
D417D13 / SCK18
D516A02ADC2, strapping, LED
D627ADC2A14ADC2
D714ADC2A235ADC1, input only
D812Strapping, ADC2A334ADC1, input only
SDA21I2CA436ADC1, input only
SCL22I2CA539ADC1, input only
Interactive D1 R32 pinout: tap any pin

31 of 31 pins match

IOREFRESET3.3V5VGNDGNDVINIO2IO4IO35IO34IO36IO39IO22IO21AREFGNDIO18IO19IO23IO5IO13IO12IO14IO27IO16IO17IO25IO26IO1IO3

Hover or tap any pin on the board

DIGITAL header · pin 1

IO22

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
Tap or hover any pin for its functions and warnings.

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.

A0 and A1: ADC2, unusable while Wi-Fi is on
IOREFRESET3.3V5VGNDGNDVINIO2IO4IO35IO34IO36IO39IO22IO21AREFGNDIO18IO19IO23IO5IO13IO12IO14IO27IO16IO17IO25IO26IO1IO3

Highlighted on the SolderHub Simulator Wemos D1 R32. Explore every pin on the Wemos D1 R32 board page.

A2–A5: ADC1 (work with Wi-Fi), input only
IOREFRESET3.3V5VGNDGNDVINIO2IO4IO35IO34IO36IO39IO22IO21AREFGNDIO18IO19IO23IO5IO13IO12IO14IO27IO16IO17IO25IO26IO1IO3

Highlighted on the SolderHub Simulator Wemos D1 R32. Explore every pin on the Wemos D1 R32 board page.

Analog pins that still read with Wi-Fi on
All Uno analog (A0–A5)
6 pins
ADC1: A2–A5
4 pins

Work with Wi-Fi on

ADC2: A0, A1
2 pins

Blocked while Wi-Fi is on

From the d1_uno32 pin map and Espressif’s ESP-IDF GPIO/ADC notes.

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.
Strapping pins on the header: D8 (GPIO12), A0 (GPIO2), D10 (GPIO5)
IOREFRESET3.3V5VGNDGNDVINIO2IO4IO35IO34IO36IO39IO22IO21AREFGNDIO18IO19IO23IO5IO13IO12IO14IO27IO16IO17IO25IO26IO1IO3

Highlighted on the SolderHub Simulator Wemos D1 R32. Explore every pin on the Wemos D1 R32 board page.

Will my Uno shield work on the D1 R32?
You plug in an Uno shield
Q1 Does the shield drive its outputs at 5 V?
yes → ESP32 pins are 3.3 V. Level-shift, or use a 3.3 V shield.
no
Q2 Does it read analog on A0 or A1 while you use Wi-Fi?
yes → Those are ADC2. Move the sensor to A2–A5.
no
Q3 Does it need an output or a pull-up on A2–A5?
yes → GPIO34–39 are input only with no pull-ups. Add external resistors or use other pins.
no
Q4 Does the board fail to boot with the shield fitted?
yes → Check D8 (GPIO12) and A0 (GPIO2): a shield pulling them HIGH at reset blocks booting or flashing.
no
The shield should be fine electrically.
From the d1_uno32 pin map, Espressif’s GPIO docs and the ESP32 datasheet’s strapping pins.

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.
I2C: SDA GPIO21, SCL GPIO22
IOREFRESET3.3V5VGNDGNDVINIO2IO4IO35IO34IO36IO39IO22IO21AREFGNDIO18IO19IO23IO5IO13IO12IO14IO27IO16IO17IO25IO26IO1IO3

Highlighted on the SolderHub Simulator Wemos D1 R32. Explore every pin on the Wemos D1 R32 board page.

SPI: D10–D13 (GPIO5, 23, 19, 18)
IOREFRESET3.3V5VGNDGNDVINIO2IO4IO35IO34IO36IO39IO22IO21AREFGNDIO18IO19IO23IO5IO13IO12IO14IO27IO16IO17IO25IO26IO1IO3

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.

Continue learning

Related articles

All articles

Signal In

Built from what makers search for

The lookups piling up in SolderHub's search bar every day shape what we publish next — new component pages, board guides, and firmware notes, sent out as they go live.

By subscribing you agree to our Privacy Policy. Unsubscribe anytime.