ESP32, ESP8266, Pico & STM32 Pinout Reference
NOVOMicrocontroller pinout reference for ESP32 DevKit, ESP8266 NodeMCU, Raspberry Pi Pico and STM32 Blue Pill: safe pins, boot pins, ADC, PWM and buses.
Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.
Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.
ESP32 DevKit (ESP32-WROOM-32) — ESP32-D0WD dual-core Xtensa @ up to 240 MHz, lógica de 3.3 V
- GPIO:
- 34 on the chip; ~25 usable on a DevKit (6–11 are flash)
- ADC:
- 18 channels, 12-bit: ADC1 on 32–39, ADC2 on 0, 2, 4, 12–15, 25–27
- DAC:
- 2 × 8-bit on GPIO25, GPIO26
- Touch:
- 10 capacitive touch inputs (T0–T9)
- PWM:
- LEDC on any output-capable GPIO (16 channels)
- Interrupts:
- All GPIOs
- Current per pin:
- Keep to ~20 mA (configurable drive strength, max ~40 mA) — see the datasheet
Pinos e limites para ficar atento
- 3.3 V logic — the ESP32 is not 5 V tolerant. Level-shift 5 V signals.
- GPIO6–11 are wired to the SPI flash: never use them.
- GPIO34–39 are input-only and have no internal pull-up/down resistors.
- ADC2 (GPIO0, 2, 4, 12–15, 25–27) cannot be used while Wi-Fi is on — use ADC1 pins (32–39) for analog reads.
- Strapping pins 0, 2, 5, 12, 15 must be at their default level at reset; external pull-ups/downs there can stop the board from booting.
- Physical header order differs between 30-pin and 38-pin DevKit boards — check the silkscreen.
Diagrama dos conectores (agrupados por função, não na ordem física — toque em um pino para consultá-lo)
Strapping pins
Input-only
Flash (do not use)
Safe general-purpose
UART0 + power
- Alimentação / controle
- Entrada analógica (ADC)
- PWM
- I2C
- SPI
- UART / Serial
- Boot / strapping
- Evitar / reservado
36 de 36 pinos
| Pino | No código | Funções | Observações |
|---|---|---|---|
| GPIO0 | 0 | E/S digitalPWMInterrupçãoEntrada analógica (ADC)ToqueBoot / strapping | Strapping pin: LOW at reset = download (flash) mode; wired to the BOOT button; ADC2_CH1; touch T1⚠ Must be HIGH (floating/pulled up) at reset for normal boot. ADC2 cannot be read while Wi-Fi is active |
| GPIO1 | 1 | E/S digitalInterrupçãoUART / SerialEvitar / reservado | U0TXD — Serial TX to the USB-serial chip⚠ Used for uploading and Serial; boot log is printed here |
| GPIO2 | 2 | E/S digitalPWMInterrupçãoEntrada analógica (ADC)ToqueBoot / strappingLED da placa | Strapping pin; on-board LED on many DevKit clones; ADC2_CH2; touch T2⚠ Must be LOW or floating at reset to enter download mode. ADC2 cannot be read while Wi-Fi is active |
| GPIO3 | 3 | E/S digitalInterrupçãoUART / SerialEvitar / reservado | U0RXD — Serial RX from the USB-serial chip⚠ Used for uploading and Serial |
| GPIO4 | 4 | E/S digitalPWMInterrupçãoEntrada analógica (ADC)Toque | ADC2_CH0; touch T0⚠ ADC2 cannot be read while Wi-Fi is active |
| GPIO5 | 5 | E/S digitalPWMInterrupçãoBoot / strappingSPI | Strapping pin (SDIO timing); default VSPI SS⚠ Outputs a PWM signal at boot |
| GPIO6 | 6 | Evitar / reservado | Connected to the module's SPI flash (CLK)⚠ Do not use — touching these pins crashes the board |
| GPIO7 | 7 | Evitar / reservado | Connected to the module's SPI flash (SD0)⚠ Do not use — touching these pins crashes the board |
| GPIO8 | 8 | Evitar / reservado | Connected to the module's SPI flash (SD1)⚠ Do not use — touching these pins crashes the board |
| GPIO9 | 9 | Evitar / reservado | Connected to the module's SPI flash (SD2)⚠ Do not use — touching these pins crashes the board |
| GPIO10 | 10 | Evitar / reservado | Connected to the module's SPI flash (SD3)⚠ Do not use — touching these pins crashes the board |
| GPIO11 | 11 | Evitar / reservado | Connected to the module's SPI flash (CMD)⚠ Do not use — touching these pins crashes the board |
| GPIO12 | 12 | E/S digitalPWMInterrupçãoEntrada analógica (ADC)ToqueBoot / strappingDepuração (JTAG/SWD)SPI | MTDI strapping pin: selects flash voltage; HSPI MISO; JTAG TDI; ADC2_CH5; touch T5⚠ HIGH at reset selects 1.8 V flash and the WROOM-32 fails to boot — keep it LOW at reset. ADC2 cannot be read while Wi-Fi is active |
| GPIO13 | 13 | E/S digitalPWMInterrupçãoEntrada analógica (ADC)ToqueDepuração (JTAG/SWD)SPI | HSPI MOSI; JTAG TCK; ADC2_CH4; touch T4⚠ ADC2 cannot be read while Wi-Fi is active |
| GPIO14 | 14 | E/S digitalPWMInterrupçãoEntrada analógica (ADC)ToqueDepuração (JTAG/SWD)SPI | HSPI SCK; JTAG TMS; ADC2_CH6; touch T6⚠ Outputs a PWM signal at boot. ADC2 cannot be read while Wi-Fi is active |
| GPIO15 | 15 | E/S digitalPWMInterrupçãoEntrada analógica (ADC)ToqueBoot / strappingDepuração (JTAG/SWD)SPI | MTDO strapping pin (LOW at reset silences the boot log); HSPI SS; JTAG TDO; ADC2_CH3; touch T3⚠ Outputs a PWM signal at boot. ADC2 cannot be read while Wi-Fi is active |
| GPIO16 | 16 | E/S digitalPWMInterrupçãoUART / Serial | Serial2 RX (default)⚠ Used by PSRAM on WROVER modules — not available there |
| GPIO17 | 17 | E/S digitalPWMInterrupçãoUART / Serial | Serial2 TX (default)⚠ Used by PSRAM on WROVER modules — not available there |
| GPIO18 | 18 | E/S digitalPWMInterrupçãoSPI | VSPI SCK — default SPI SCK in Arduino |
| GPIO19 | 19 | E/S digitalPWMInterrupçãoSPI | VSPI MISO — default SPI MISO in Arduino |
| GPIO21 | 21 | E/S digitalPWMInterrupçãoI2C | Default I2C SDA (Wire) |
| GPIO22 | 22 | E/S digitalPWMInterrupçãoI2C | Default I2C SCL (Wire) |
| GPIO23 | 23 | E/S digitalPWMInterrupçãoSPI | VSPI MOSI — default SPI MOSI in Arduino |
| GPIO25 | 25 | E/S digitalPWMInterrupçãoEntrada analógica (ADC)DAC (saída analógica) | DAC channel 1 (8-bit, dacWrite(25, …)); ADC2_CH8⚠ ADC2 cannot be read while Wi-Fi is active |
| GPIO26 | 26 | E/S digitalPWMInterrupçãoEntrada analógica (ADC)DAC (saída analógica) | DAC channel 2 (8-bit); ADC2_CH9⚠ ADC2 cannot be read while Wi-Fi is active |
| GPIO27 | 27 | E/S digitalPWMInterrupçãoEntrada analógica (ADC)Toque | ADC2_CH7; touch T7⚠ ADC2 cannot be read while Wi-Fi is active |
| GPIO32 | 32 | E/S digitalPWMInterrupçãoEntrada analógica (ADC)Toque | 32 kHz crystal input (XTAL_32K_P) on some boards; ADC1_CH4 (works with Wi-Fi on); touch T9 |
| GPIO33 | 33 | E/S digitalPWMInterrupçãoEntrada analógica (ADC)Toque | 32 kHz crystal output (XTAL_32K_N) on some boards; ADC1_CH5 (works with Wi-Fi on); touch T8 |
| GPIO34 | 34 | E/S digitalInterrupçãoEntrada analógica (ADC)Somente entrada | Input only — no output driver, no internal pull-up/down; ADC1_CH6 (works with Wi-Fi on) |
| GPIO35 | 35 | E/S digitalInterrupçãoEntrada analógica (ADC)Somente entrada | Input only — no output driver, no internal pull-up/down; ADC1_CH7 (works with Wi-Fi on) |
| GPIO36 | 36 | E/S digitalInterrupçãoEntrada analógica (ADC)Somente entrada | SENSOR_VP (labelled VP). Input only, no pull-up/down; ADC1_CH0 (works with Wi-Fi on) |
| GPIO39 | 39 | E/S digitalInterrupçãoEntrada analógica (ADC)Somente entrada | SENSOR_VN (labelled VN). Input only, no pull-up/down; ADC1_CH3 (works with Wi-Fi on) |
| EN | — | Alimentação / controle | Chip enable / reset (EN button) — pull LOW to reset |
| 3V3 | — | Alimentação / controle | 3.3 V from the on-board regulator |
| VIN / 5V | — | Alimentação / controle | 5 V input (or USB 5 V) to the regulator |
| GND | — | Alimentação / controle | Ground |
Fonte: Espressif ESP32 datasheet and ESP32-WROOM-32 datasheet (strapping pins, IO_MUX table), arduino-esp32 default pin definitions. Revisões da placa e clones variam — confira o datasheet e o esquema da sua placa exata antes de ligar os fios.
Exemplos rápidos
Entradas típicas e os resultados que esta ferramenta gera.
Visão geral
This MCU pinout reference answers the questions that cause most “my board won’t boot” and “analogRead returns nothing” problems on popular 3.3 V dev boards. It covers the ESP32 DevKit (WROOM-32), the ESP8266 NodeMCU, the Raspberry Pi Pico (RP2040) and the STM32F103 “Blue Pill”.
For each GPIO you get its ADC channel, PWM, touch, SPI, I2C and UART roles plus warnings: ESP32 strapping pins 0, 2, 5, 12 and 15, input-only GPIO34–39, ADC2 being unusable with Wi-Fi, and flash pins 6–11; NodeMCU D-labels versus GPIO numbers and its boot pins; the Pico’s GP numbers, ADC0–2 and power pins; and which Blue Pill pins are 5 V tolerant. Search by pin or function and copy any filtered table as Markdown.
Data comes from the Espressif, Raspberry Pi and STMicroelectronics datasheets. It all runs in your browser; check your exact board revision before wiring.
Por que usar esta ferramenta?
- Avoid strapping and flash pins that stop booting
- Find ADC pins that still work with Wi-Fi on
- Translate NodeMCU D-labels to GPIO numbers
- Check 5 V tolerance before connecting modules
- Four popular boards in one place
Recursos
Pins to avoid
Boot/strapping, flash, USB, SWD and serial pins are tagged with the reason to avoid them.
ADC channels
ADC1/ADC2 channel per ESP32 pin, the Pico’s ADC0–ADC2, Blue Pill ADC12_IN0–9.
Bus functions
Default and alternative SPI, I2C and UART pins, including every RP2040 function-select option.
5 V tolerance
STM32 FT pins are marked; ESP and RP2040 boards are flagged as 3.3 V only.
Header diagram
Physical layout for the NodeMCU and Pico, function groups for the ESP32 and Blue Pill.
Markdown export
Copy the filtered pin table for your project notes.
Como usar
Choose the board
Pick ESP32, NodeMCU, Pico or Blue Pill in the Board list.
Search or filter
Type a pin (GPIO25, D4, GP15, PA9) or pick a Function such as Analog in.
Check warnings
Read the warnings box and the ⚠ notes before choosing a pin.
Copy
Use Copy as Markdown to save the result.