Simvik

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

PinFunctionsNotes
IO0GPIO0, SDA, XTAL_32K_PDefault I2C SDA for Wire. Can take one end of a 32.768 kHz crystal for the low-power clock.
IO1GPIO1, A0, ADC1_CH0, SCL, XTAL_32K_NAnalog 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.
IO2GPIO2, A1, ADC1_CH1, STRAP, MTMS, LP_SDAAnalog 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).
IO3GPIO3, A2, ADC1_CH2, MTDI, LP_SCLAnalog input: analogRead(A2) reads ADC1_CH2. JTAG MTDI when JTAG is taken from the pins instead of USB. Low-power I2C SCL (Wire1).
IO4GPIO4, A3, ADC1_CH3, MTCK, LP_RXAnalog input: analogRead(A3) reads ADC1_CH3. JTAG MTCK when JTAG is taken from the pins instead of USB. Low-power UART RX.
IO5GPIO5, A4, ADC1_CH4, MTDO, LP_TXAnalog input: analogRead(A4) reads ADC1_CH4. JTAG MTDO when JTAG is taken from the pins instead of USB. Low-power UART TX.
IO6GPIO6, A5, ADC1_CH5, SSAnalog input: analogRead(A5) reads ADC1_CH5. Default SPI SS for the SPI library.
IO7GPIO7, STRAPStrapping pin: Selects where JTAG comes from at boot. It has no pull resistor, so keep its level defined.
IO8GPIO8, MOSIDefault SPI MOSI for the SPI library.
IO9GPIO9, MISODefault SPI MISO for the SPI library.
IO10GPIO10, SCKDefault SPI SCK for the SPI library.
IO11GPIO11, TXUART0 transmit: Serial output and the boot messages.
IO12GPIO12, RXUART0 receive: Serial input.
IO13GPIO13, USB D-USB Serial/JTAG D-. Using it as a GPIO turns off the chip's own USB port.
IO14GPIO14, USB D+USB Serial/JTAG D+. Using it as a GPIO turns off the chip's own USB port.
IO15GPIO15
IO23GPIO23
IO24GPIO24
IO25GPIO25, STRAPStrapping pin: Sampled at reset; avoid driving it at power-up.
IO26GPIO26
IO27GPIO27, RGB LED, STRAPDrives 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.
IO28GPIO28, BOOTStrapping pin (the BOOT button): Selects the boot mode: low at reset enters download mode.
3V33V33.3 V supply from the on-board regulator. Keep the load small.
5V5V5 V supply: from USB, or from the regulator when the board is powered through VIN.
GNDGNDGround (0 V).
GNDGNDGround (0 V).
GNDGNDGround (0 V).
GNDGNDGround (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.