ESP32-C5 DevKitC-1 pinout
The ESP32-C5 DevKitC-1 (ESP32-C5) pinout: what each pin does, from GPIO, analog inputs and PWM to UART, I2C and SPI, with the notes that catch people out.
The board
- Processor: 32-bit RISC-V, 1 core, 240 MHz
- SRAM: 384 KB
- Flash: 4 MB as simulated (real modules carry 4–32 MB)
- Logic level: 3.3 V; the pins are not 5 V tolerant
- Radio: Dual-band Wi-Fi 6 (2.4 and 5 GHz), Bluetooth LE 5, 802.15.4 (Thread, Zigbee)
- GPIO: 29 (GPIO0–28); GPIO16–22 run the flash and PSRAM
- Analog inputs: 12-bit, 6 channels: ADC1 on GPIO1–6
- Serial (UART0): TX GPIO11, RX GPIO12
- I2C (Wire): SDA GPIO0, SCL GPIO1; low-power I2C (Wire1) SDA GPIO2, SCL GPIO3
- SPI: SCK GPIO10, MISO GPIO9, MOSI GPIO8, SS GPIO6
- On-board LED: Addressable RGB LED on GPIO27
Pins
| Pin | Functions | Notes |
|---|---|---|
| IO0 | GPIO0, SDA, XTAL_32K_P | Default I2C SDA for Wire. Can take one end of a 32.768 kHz crystal for the low-power clock. |
| IO1 | GPIO1, A0, ADC1_CH0, SCL, XTAL_32K_N | Analog input: analogRead(A0) reads ADC1_CH0. Default I2C SCL for Wire. Can take one end of a 32.768 kHz crystal for the low-power clock. |
| IO2 | GPIO2, A1, ADC1_CH1, STRAP, MTMS, LP_SDA | Analog input: analogRead(A1) reads ADC1_CH1. Strapping pin: Sampled at reset; avoid driving it at power-up. JTAG MTMS when JTAG is taken from the pins instead of USB. Low-power I2C SDA (Wire1). |
| IO3 | GPIO3, A2, ADC1_CH2, MTDI, LP_SCL | Analog input: analogRead(A2) reads ADC1_CH2. JTAG MTDI when JTAG is taken from the pins instead of USB. Low-power I2C SCL (Wire1). |
| IO4 | GPIO4, A3, ADC1_CH3, MTCK, LP_RX | Analog input: analogRead(A3) reads ADC1_CH3. JTAG MTCK when JTAG is taken from the pins instead of USB. Low-power UART RX. |
| IO5 | GPIO5, A4, ADC1_CH4, MTDO, LP_TX | Analog input: analogRead(A4) reads ADC1_CH4. JTAG MTDO when JTAG is taken from the pins instead of USB. Low-power UART TX. |
| IO6 | GPIO6, A5, ADC1_CH5, SS | Analog input: analogRead(A5) reads ADC1_CH5. Default SPI SS for the SPI library. |
| IO7 | GPIO7, STRAP | Strapping pin: Selects where JTAG comes from at boot. It has no pull resistor, so keep its level defined. |
| IO8 | GPIO8, MOSI | Default SPI MOSI for the SPI library. |
| IO9 | GPIO9, MISO | Default SPI MISO for the SPI library. |
| IO10 | GPIO10, SCK | Default SPI SCK for the SPI library. |
| IO11 | GPIO11, TX | UART0 transmit: Serial output and the boot messages. |
| IO12 | GPIO12, RX | UART0 receive: Serial input. |
| IO13 | GPIO13, USB D- | USB Serial/JTAG D-. Using it as a GPIO turns off the chip's own USB port. |
| IO14 | GPIO14, USB D+ | USB Serial/JTAG D+. Using it as a GPIO turns off the chip's own USB port. |
| IO15 | GPIO15 | |
| IO23 | GPIO23 | |
| IO24 | GPIO24 | |
| IO25 | GPIO25, STRAP | Strapping pin: Sampled at reset; avoid driving it at power-up. |
| IO26 | GPIO26 | |
| IO27 | GPIO27, RGB LED, STRAP | Drives the on-board addressable RGB LED: rgbLedWrite(27, r, g, b). Strapping pin: Boot mode: must be high at reset (it has a pull-up) for download mode. |
| IO28 | GPIO28, BOOT | Strapping pin (the BOOT button): Selects the boot mode: low at reset enters download mode. |
| 3V3 | 3V3 | 3.3 V supply from the on-board regulator. Keep the load small. |
| 5V | 5V | 5 V supply: from USB, or from the regulator when the board is powered through VIN. |
| GND | GND | Ground (0 V). |
| GND | GND | Ground (0 V). |
| GND | GND | Ground (0 V). |
| GND | GND | Ground (0 V). |
Good to know
- Pin numbers in code are GPIO numbers: digitalWrite(8, HIGH) drives GPIO8.
- The pins run at 3.3 V and are not 5 V tolerant. Each drives about 20 mA by default (40 mA at most).
- Any GPIO can do PWM (analogWrite() or ledcAttach()) and raise an interrupt (attachInterrupt()), and the GPIO matrix can route UART, I2C and SPI to almost any pin. The bus pins shown are the Arduino defaults.
- Strapping pins are read at reset to choose how the chip boots. The BOOT button pulls GPIO28 low; keep strapping pins free of loads that change their level at power-up.
- In the simulator, RST and NC connect to nothing.
- Arduino Uno pinout
- Arduino Nano pinout
- Arduino Mega pinout
- ATtiny85 pinout
- ESP32-C3 DevKitM-1 pinout
- ESP32-S3 DevKitC-1 pinout
- ESP32-C6 DevKitC-1 pinout
- ESP32-H2 DevKitM-1 pinout
- ESP32-P4 Function-EV pinout
- Blue Pill (STM32F103C8) pinout
- Nucleo-F030R8 pinout
- Nucleo-G071RB pinout
- Nucleo-F401RE pinout
- Nucleo-F446RE pinout
- Nucleo-F767ZI pinout
- Nucleo-H743ZI2 pinout
- Nucleo-WBA55CG pinout
- Nucleo-L552ZE-Q pinout
- Black Pill (STM32F411CE) pinout
- Raspberry Pi Pico pinout
- Raspberry Pi Pico W pinout
- Raspberry Pi Pico 2 pinout
- Raspberry Pi Pico 2 W pinout