Simvik

ESP32-S3 DevKitC-1 pinout

The ESP32-S3 DevKitC-1 (ESP32-S3) 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 Xtensa LX7, 2 cores, 240 MHz
  • SRAM: 512 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: Wi-Fi 4 (2.4 GHz), Bluetooth LE 5
  • GPIO: 45 (GPIO0–21, 26–48); GPIO26–32 run the flash and PSRAM
  • Analog inputs: 12-bit, 20 channels: ADC1 on GPIO1–10, ADC2 on GPIO11–20
  • Touch: 14 channels, GPIO1–14
  • USB: USB OTG and USB Serial/JTAG on GPIO19 (D-) and GPIO20 (D+)
  • Serial (UART0): TX GPIO43, RX GPIO44
  • I2C (Wire): SDA GPIO8, SCL GPIO9
  • SPI: SCK GPIO12, MISO GPIO13, MOSI GPIO11, SS GPIO10
  • On-board LED: Addressable RGB LED on GPIO48

Pins

PinFunctionsNotes
IO0GPIO0, BOOTStrapping pin (the BOOT button): Selects the boot mode: low at reset enters download mode.
IO1GPIO1, A0, ADC1_CH0, T1Analog input: analogRead(A0) reads ADC1_CH0. Capacitive touch: touchRead(T1).
IO2GPIO2, A1, ADC1_CH1, T2Analog input: analogRead(A1) reads ADC1_CH1. Capacitive touch: touchRead(T2).
IO3GPIO3, A2, ADC1_CH2, T3, STRAPAnalog input: analogRead(A2) reads ADC1_CH2. Capacitive touch: touchRead(T3). Strapping pin: Selects where JTAG comes from at boot. Floating by default.
IO4GPIO4, A3, ADC1_CH3, T4Analog input: analogRead(A3) reads ADC1_CH3. Capacitive touch: touchRead(T4).
IO5GPIO5, A4, ADC1_CH4, T5Analog input: analogRead(A4) reads ADC1_CH4. Capacitive touch: touchRead(T5).
IO6GPIO6, A5, ADC1_CH5, T6Analog input: analogRead(A5) reads ADC1_CH5. Capacitive touch: touchRead(T6).
IO7GPIO7, A6, ADC1_CH6, T7Analog input: analogRead(A6) reads ADC1_CH6. Capacitive touch: touchRead(T7).
IO8GPIO8, A7, ADC1_CH7, T8, SDAAnalog input: analogRead(A7) reads ADC1_CH7. Capacitive touch: touchRead(T8). Default I2C SDA for Wire.
IO9GPIO9, A8, ADC1_CH8, T9, SCLAnalog input: analogRead(A8) reads ADC1_CH8. Capacitive touch: touchRead(T9). Default I2C SCL for Wire.
IO10GPIO10, A9, ADC1_CH9, T10, SSAnalog input: analogRead(A9) reads ADC1_CH9. Capacitive touch: touchRead(T10). Default SPI SS for the SPI library.
IO11GPIO11, A10, ADC2_CH0, T11, MOSIAnalog input: analogRead(A10) reads ADC2_CH0. Capacitive touch: touchRead(T11). Default SPI MOSI for the SPI library.
IO12GPIO12, A11, ADC2_CH1, T12, SCKAnalog input: analogRead(A11) reads ADC2_CH1. Capacitive touch: touchRead(T12). Default SPI SCK for the SPI library.
IO13GPIO13, A12, ADC2_CH2, T13, MISOAnalog input: analogRead(A12) reads ADC2_CH2. Capacitive touch: touchRead(T13). Default SPI MISO for the SPI library.
IO14GPIO14, A13, ADC2_CH3, T14Analog input: analogRead(A13) reads ADC2_CH3. Capacitive touch: touchRead(T14).
IO15GPIO15, A14, ADC2_CH4, XTAL_32K_PAnalog input: analogRead(A14) reads ADC2_CH4. Can take one end of a 32.768 kHz crystal for the low-power clock.
IO16GPIO16, A15, ADC2_CH5, XTAL_32K_NAnalog input: analogRead(A15) reads ADC2_CH5. Can take one end of a 32.768 kHz crystal for the low-power clock.
IO17GPIO17, A16, ADC2_CH6Analog input: analogRead(A16) reads ADC2_CH6.
IO18GPIO18, A17, ADC2_CH7Analog input: analogRead(A17) reads ADC2_CH7.
IO19GPIO19, A18, ADC2_CH8, USB D-Analog input: analogRead(A18) reads ADC2_CH8. USB Serial/JTAG D-. Using it as a GPIO turns off the chip's own USB port.
IO20GPIO20, A19, ADC2_CH9, USB D+Analog input: analogRead(A19) reads ADC2_CH9. USB Serial/JTAG D+. Using it as a GPIO turns off the chip's own USB port.
IO21GPIO21
IO35GPIO35Used by octal PSRAM or flash on modules that have it (R8 and Octal variants); leave it free there.
IO36GPIO36Used by octal PSRAM or flash on modules that have it (R8 and Octal variants); leave it free there.
IO37GPIO37Used by octal PSRAM or flash on modules that have it (R8 and Octal variants); leave it free there.
IO38GPIO38
IO39GPIO39, MTCKJTAG MTCK when JTAG is taken from the pins instead of USB.
IO40GPIO40, MTDOJTAG MTDO when JTAG is taken from the pins instead of USB.
IO41GPIO41, MTDIJTAG MTDI when JTAG is taken from the pins instead of USB.
IO42GPIO42, MTMSJTAG MTMS when JTAG is taken from the pins instead of USB.
IO43GPIO43, TXUART0 transmit: Serial output and the boot messages.
IO44GPIO44, RXUART0 receive: Serial input.
IO45GPIO45, STRAPStrapping pin: Selects the flash voltage (VDD_SPI). Keep it low at reset on 3.3 V flash modules.
IO46GPIO46, STRAPStrapping pin: Sampled at reset for the boot mode and ROM messages. Keep it low or floating at power-up.
IO47GPIO47
IO48GPIO48, RGB LEDDrives the on-board addressable RGB LED: rgbLedWrite(48, r, g, b).
3V33V33.3 V supply from the on-board regulator. Keep the load small.
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 GPIO0 low; keep strapping pins free of loads that change their level at power-up.
  • ADC2 is shared with Wi-Fi: analogRead() on GPIO11–20 can fail while Wi-Fi is running.
  • In the simulator, RST and NC connect to nothing.