F9 breakpoint · Ctrl+Enter run · Esc, Tab leaves the editor
Stopped ·
ESP32 DevKit V1 pinout
The board seen from above, with the antenna at the top and the USB at the bottom, as on the simulator's breadboard. Pick a pin to see its GPIO, functions and precautions.
D2 · GPIO2
- Digital input or output (3.3 V; maximum 3.6 V).
- Analog input: ADC2_CH2 (ADC2 does not work while Wi-Fi is on).
- Capacitive touch: T2.
- Strapping pin: its level at boot picks the startup mode; avoid forcing a level on it when powering the board.
- It comes with pull-down from the factory (floating, it reads 0).
- Onboard blue LED.
GPIO input only power GND strapping
All pins
| Pin | GPIO | Side | Functions and precautions |
|---|---|---|---|
| EN | — | left | Reset (active low) |
| VP | 36 | left | Input only: it cannot be an output and has no internal pull-up/pull-down. Analog input: ADC1_CH0. |
| VN | 39 | left | Input only: it cannot be an output and has no internal pull-up/pull-down. Analog input: ADC1_CH3. |
| D34 | 34 | left | Input only: it cannot be an output and has no internal pull-up/pull-down. Analog input: ADC1_CH6. |
| D35 | 35 | left | Input only: it cannot be an output and has no internal pull-up/pull-down. Analog input: ADC1_CH7. |
| D32 | 32 | left | Digital input or output (3.3 V; maximum 3.6 V). Analog input: ADC1_CH4. Capacitive touch: T9. |
| D33 | 33 | left | Digital input or output (3.3 V; maximum 3.6 V). Analog input: ADC1_CH5. Capacitive touch: T8. |
| D25 | 25 | left | Digital input or output (3.3 V; maximum 3.6 V). Analog input: ADC2_CH8 (ADC2 does not work while Wi-Fi is on). Analog output: DAC1. I2C: I2C(1) SCL default. |
| D26 | 26 | left | Digital input or output (3.3 V; maximum 3.6 V). Analog input: ADC2_CH9 (ADC2 does not work while Wi-Fi is on). Analog output: DAC2. I2C: I2C(1) SDA default. |
| D27 | 27 | left | Digital input or output (3.3 V; maximum 3.6 V). Analog input: ADC2_CH7 (ADC2 does not work while Wi-Fi is on). Capacitive touch: T7. |
| D14 | 14 | left | Digital input or output (3.3 V; maximum 3.6 V). Analog input: ADC2_CH6 (ADC2 does not work while Wi-Fi is on). Capacitive touch: T6. SPI: HSPI SCK. It comes with pull-up from the factory (floating, it reads 1). |
| D12 | 12 | left | Digital input or output (3.3 V; maximum 3.6 V). Analog input: ADC2_CH5 (ADC2 does not work while Wi-Fi is on). Capacitive touch: T5. SPI: HSPI MISO. Strapping pin: its level at boot picks the startup mode; avoid forcing a level on it when powering the board. It comes with pull-down from the factory (floating, it reads 0). High at boot can keep the board from starting. |
| D13 | 13 | left | Digital input or output (3.3 V; maximum 3.6 V). Analog input: ADC2_CH4 (ADC2 does not work while Wi-Fi is on). Capacitive touch: T4. SPI: HSPI MOSI. |
| GND | — | left | The board's two GND pins are the same node. |
| VIN | — | left | 5 V from the USB (or an external input) Do not connect it to a GPIO pin: GPIOs withstand 3.6 V at most. |
| D23 | 23 | right | Digital input or output (3.3 V; maximum 3.6 V). SPI: VSPI MOSI. |
| D22 | 22 | right | Digital input or output (3.3 V; maximum 3.6 V). SCL in the Arduino convention. |
| TX0 | 1 | right | Digital input or output (3.3 V; maximum 3.6 V). Serial: UART0 TX. Serial/REPL over USB — avoid using as GPIO. |
| RX0 | 3 | right | Digital input or output (3.3 V; maximum 3.6 V). Serial: UART0 RX. Serial/REPL over USB — avoid using as GPIO. |
| D21 | 21 | right | Digital input or output (3.3 V; maximum 3.6 V). SDA in the Arduino convention. |
| D19 | 19 | right | Digital input or output (3.3 V; maximum 3.6 V). I2C: I2C(0) SDA default. SPI: VSPI MISO. |
| D18 | 18 | right | Digital input or output (3.3 V; maximum 3.6 V). I2C: I2C(0) SCL default. SPI: VSPI SCK. |
| D5 | 5 | right | Digital input or output (3.3 V; maximum 3.6 V). SPI: VSPI CS (convention). Strapping pin: its level at boot picks the startup mode; avoid forcing a level on it when powering the board. It comes with pull-up from the factory (floating, it reads 1). |
| TX2 | 17 | right | Digital input or output (3.3 V; maximum 3.6 V). Serial: UART2 TX. Used by the PSRAM on WROVER modules. |
| RX2 | 16 | right | Digital input or output (3.3 V; maximum 3.6 V). Serial: UART2 RX. Used by the PSRAM on WROVER modules. |
| D4 | 4 | right | Digital input or output (3.3 V; maximum 3.6 V). Analog input: ADC2_CH0 (ADC2 does not work while Wi-Fi is on). Capacitive touch: T0. |
| D2 | 2 | right | Digital input or output (3.3 V; maximum 3.6 V). Analog input: ADC2_CH2 (ADC2 does not work while Wi-Fi is on). Capacitive touch: T2. Strapping pin: its level at boot picks the startup mode; avoid forcing a level on it when powering the board. It comes with pull-down from the factory (floating, it reads 0). Onboard blue LED. |
| D15 | 15 | right | Digital input or output (3.3 V; maximum 3.6 V). Analog input: ADC2_CH3 (ADC2 does not work while Wi-Fi is on). Capacitive touch: T3. Strapping pin: its level at boot picks the startup mode; avoid forcing a level on it when powering the board. It comes with pull-up from the factory (floating, it reads 1). |
| GND | — | right | The board's two GND pins are the same node. |
| 3V3 | — | right | 3.3 V regulator output |
Sources: MicroPython ESP32 quick reference, ESP32 datasheet (Espressif) and the DevKit V1 (DOIT) silkscreen. Factory pull checked on a DevKit V1.