ESP32-S3 Pinout Guide: GPIOs, Safe Pins, USB, ADC, SPI, I2C, UART, and Boot Pins

Published
Updated
The ESP32-S3 is a powerful Wi-Fi and Bluetooth LE microcontroller from Espressif. It is commonly used in IoT projects, USB devices, displays, sensors, TinyML, and embedded projects that need more GPIOs than smaller ESP32 variants. However, the ESP32-S3 pinout can be confusing because many pins have multiple functions, some pins affect boot mode, and some pins are connected to USB, flash, PSRAM, or onboard LEDs depending on the exact development board.
This guide explains the ESP32-S3 pinout in a practical way. It covers safe GPIO pins, power pins, ADC pins, I2C, SPI, UART, USB pins, strapping pins, and pins you should use with caution.
ESP32-S3 Pinout Overview
The ESP32-S3 chip has many general-purpose input/output pins. On common ESP32-S3 development boards such as the ESP32-S3-DevKitC-1, most GPIO pins are broken out to the side headers, but the exact header layout depends on the board version and module used.
The most important thing to remember is that the ESP32-S3 uses a flexible GPIO matrix. This means many digital peripherals, such as UART, I2C, SPI, PWM, and interrupt inputs, can be assigned to different GPIO pins in software. Unlike older microcontrollers where one function is often locked to one physical pin, the ESP32-S3 gives you more routing flexibility.
That flexibility does not mean every pin is equally safe. Some pins are used during boot, some are connected to USB, and some may be tied to flash or PSRAM on certain modules.
ESP32-S3 Pinout Quick Answer
For many beginner projects, the safest ESP32-S3 pins to start with are:
| Use Case | Recommended Pins | Notes |
|---|---|---|
| General digital I/O | GPIO4, GPIO5, GPIO6, GPIO7, GPIO15, GPIO16, GPIO17, GPIO18, GPIO21 | Good starting pins for LEDs, buttons, and simple modules |
| ADC input | GPIO1–GPIO10, GPIO11–GPIO20 depending on ADC unit | Use ADC pins for analog sensors |
| I2C SDA/SCL | Almost any safe GPIO pair | Common choices are GPIO8/GPIO9 or GPIO41/GPIO42, depending on board layout |
| SPI | GPIO35–GPIO38 or other assignable GPIOs | Check whether your module uses some pins for flash/PSRAM |
| UART | GPIO17/GPIO18, GPIO43/GPIO44, or other assignable GPIOs | GPIO43/GPIO44 are often used as default TX/RX on DevKit boards |
| USB | GPIO19 and GPIO20 | Used for native USB D-/D+ |
| Onboard RGB LED | GPIO48 on ESP32-S3-DevKitC-1 | Board-specific |
Pins to be careful with include GPIO0, GPIO3, GPIO19, GPIO20, GPIO45, GPIO46, and GPIO35–GPIO37 on some module variants.
ESP32-S3 Power Pins
Most ESP32-S3 development boards include these power pins:
| Pin | Function | Notes |
|---|---|---|
| 3V3 | 3.3 V power | Can power the ESP32-S3 or provide 3.3 V to small external modules, depending on board design |
| 5V / VBUS / VIN | 5 V input | Usually connected to USB 5 V or regulator input |
| GND / G | Ground | Common ground for all connected parts |
| EN / RST | Enable or reset | Pulling this low resets or disables the chip |
The ESP32-S3 is a 3.3 V device. Its GPIO pins are not 5 V tolerant. Do not connect 5 V logic directly to an ESP32-S3 GPIO pin. Use a level shifter or voltage divider when connecting 5 V sensors or modules.
ESP32-S3 GPIO Pins
The ESP32-S3 has GPIO pins from GPIO0 to GPIO21 and GPIO26 to GPIO48. GPIO22 to GPIO25 are not used on the ESP32-S3.
Most GPIOs can be used for:
- Digital input
- Digital output
- PWM output
- External interrupt input
- I2C
- SPI
- UART
- LED control
- Button input
Because of the GPIO matrix, many peripheral functions can be assigned in software. In Arduino code, for example, you can often choose your own SDA and SCL pins for I2C, or choose custom TX and RX pins for Serial1.
ESP32-S3 ADC Pins
The ESP32-S3 has analog input channels on several GPIO pins. These are commonly used for potentiometers, analog sensors, battery voltage sensing, light sensors, and other analog signals.
| GPIO | ADC Function |
|---|---|
| GPIO1 | ADC1_CH0 |
| GPIO2 | ADC1_CH1 |
| GPIO3 | ADC1_CH2 |
| GPIO4 | ADC1_CH3 |
| GPIO5 | ADC1_CH4 |
| GPIO6 | ADC1_CH5 |
| GPIO7 | ADC1_CH6 |
| GPIO8 | ADC1_CH7 |
| GPIO9 | ADC1_CH8 |
| GPIO10 | ADC1_CH9 |
| GPIO11 | ADC2_CH0 |
| GPIO12 | ADC2_CH1 |
| GPIO13 | ADC2_CH2 |
| GPIO14 | ADC2_CH3 |
| GPIO15 | ADC2_CH4 |
| GPIO16 | ADC2_CH5 |
| GPIO17 | ADC2_CH6 |
| GPIO18 | ADC2_CH7 |
| GPIO19 | ADC2_CH8 |
| GPIO20 | ADC2_CH9 |
For beginner projects, GPIO4 to GPIO10 are usually easier choices for analog input because they are not the USB pins and are commonly broken out on development boards.
ESP32-S3 I2C Pins
The ESP32-S3 does not force you to use only one fixed I2C pin pair. You can assign I2C SDA and SCL to many different GPIO pins.
Common I2C choices include:
| Signal | Example GPIO |
|---|---|
| SDA | GPIO8 |
| SCL | GPIO9 |
You can also use other safe GPIO pairs, especially if your board layout makes GPIO8 and GPIO9 inconvenient. The important rule is to avoid boot-sensitive pins or pins used by onboard hardware unless you know what you are doing.
Example Arduino I2C setup:
#include <Wire.h>
#define SDA_PIN 8
#define SCL_PIN 9
void setup() {
Wire.begin(SDA_PIN, SCL_PIN);
}
void loop() {
}
ESP32-S3 SPI Pins
SPI pins on the ESP32-S3 are also flexible, but you must be more careful because some pins may be used internally for flash or PSRAM, especially on modules with octal flash or PSRAM.
A typical SPI connection needs:
| SPI Signal | Function |
|---|---|
| SCK | Clock |
| MOSI | Data from ESP32-S3 to peripheral |
| MISO | Data from peripheral to ESP32-S3 |
| CS | Chip select |
On some ESP32-S3 boards, pins around GPIO35 to GPIO38 may appear as SPI-related pins. However, GPIO35, GPIO36, and GPIO37 may not be available for external use on some ESP32-S3 module variants because they can be used internally for flash or PSRAM communication.
For external SPI devices, choose pins that are exposed on your board and not reserved by the module.
ESP32-S3 UART Pins
The ESP32-S3 supports UART communication for serial modules such as GPS receivers, RS485 adapters, GSM modules, and other microcontrollers.
On ESP32-S3 development boards, GPIO43 and GPIO44 are often labeled TX and RX:
| Board Label | GPIO | Function |
|---|---|---|
| TX | GPIO43 | U0TXD |
| RX | GPIO44 | U0RXD |
You can also assign another UART to different pins. For example:
HardwareSerial MySerial(1);
void setup() {
MySerial.begin(9600, SERIAL_8N1, 18, 17); // RX = GPIO18, TX = GPIO17
}
void loop() {
}
When connecting UART modules, remember to cross TX and RX:
| ESP32-S3 | External Module |
|---|---|
| TX | RX |
| RX | TX |
| GND | GND |
ESP32-S3 USB Pins
The ESP32-S3 has native USB support. On the chip, the USB pins are:
| GPIO | USB Function |
|---|---|
| GPIO19 | USB D- |
| GPIO20 | USB D+ |
These pins are useful for native USB, USB serial, USB HID, USB MIDI, USB JTAG, and other USB-related features. However, if your board uses GPIO19 and GPIO20 for the USB connector, avoid using them as ordinary GPIO pins unless you are not using native USB.
ESP32-S3 Boot and Strapping Pins
Some ESP32-S3 pins affect the boot process. These are called strapping pins. Their logic level during reset helps determine how the chip boots.
Important strapping pins include:
| GPIO | Caution |
|---|---|
| GPIO0 | Boot/download mode pin |
| GPIO3 | Strapping pin |
| GPIO45 | Strapping pin on ESP32-S3 |
| GPIO46 | Strapping pin on ESP32-S3 |
GPIO0 is especially important because it is commonly connected to the BOOT button. Holding BOOT while resetting the board puts the ESP32-S3 into firmware download mode.
Avoid connecting strong pull-up or pull-down circuits to strapping pins unless you understand the required boot levels. A wrong external circuit can prevent the board from booting or uploading code.
ESP32-S3 Pins to Avoid or Use With Caution
| Pin | Why Be Careful |
|---|---|
| GPIO0 | Boot mode / BOOT button |
| GPIO3 | Strapping pin |
| GPIO19 | USB D- |
| GPIO20 | USB D+ |
| GPIO35, GPIO36, GPIO37 | May be used internally on some flash/PSRAM module variants |
| GPIO45 | Strapping pin |
| GPIO46 | Strapping pin |
| GPIO48 | Often connected to onboard RGB LED on DevKitC-1 |
This does not mean these pins are unusable. It means you should not use them blindly for beginner projects.
ESP32-S3 Onboard RGB LED Pin
On the ESP32-S3-DevKitC-1, the onboard addressable RGB LED is connected to GPIO48. This is different from many older ESP32 boards, where the onboard LED may be on GPIO2 or may not exist at all.
A simple NeoPixel-style test may look like this, depending on your library:
#include <Adafruit_NeoPixel.h>
#define LED_PIN 48
#define NUM_LEDS 1
Adafruit_NeoPixel rgb(NUM_LEDS, LED_PIN, NEO_GRB + NEO_KHZ800);
void setup() {
rgb.begin();
rgb.setPixelColor(0, rgb.Color(255, 0, 0));
rgb.show();
}
void loop() {
}
If this does not work, check your exact ESP32-S3 board. Some clone boards use a different onboard LED pin or do not include an addressable RGB LED.
ESP32-S3 PWM Pins
The ESP32-S3 can output PWM on many GPIO pins using the LEDC peripheral. PWM is useful for:
- LED brightness control
- Motor speed control
- Servo signal generation
- Buzzer tones
- Backlight dimming
Use safe general-purpose pins such as GPIO4, GPIO5, GPIO6, GPIO7, GPIO15, GPIO16, GPIO17, GPIO18, or GPIO21 for PWM projects.
Example LED PWM code:
#define LED_PIN 5
void setup() {
ledcAttach(LED_PIN, 5000, 8);
}
void loop() {
for (int duty = 0; duty <= 255; duty++) {
ledcWrite(LED_PIN, duty);
delay(10);
}
for (int duty = 255; duty >= 0; duty--) {
ledcWrite(LED_PIN, duty);
delay(10);
}
}
ESP32-S3 Touch Pins
Several ESP32-S3 GPIOs support capacitive touch input. These are useful for touch buttons, sliders, and simple touch-sensitive controls.
Common touch-capable pins include GPIO1 to GPIO14, depending on the exact function mapping. These pins are often labeled TOUCH1, TOUCH2, and so on in datasheets and pinout diagrams.
Touch input is sensitive to board design, wire length, grounding, and nearby noise. For reliable touch projects, keep touch pads short and avoid running them next to noisy signals.
ESP32-S3 External Interrupt Pins
Most ESP32-S3 GPIO pins can be used as interrupt inputs. This is useful for:
- Buttons
- Rotary encoders
- Motion sensors
- Flow sensors
- Pulse counters
- Wake-up signals
For simple interrupt projects, choose normal GPIO pins that are not boot pins, USB pins, or flash/PSRAM pins.
Good interrupt pin choices include GPIO4, GPIO5, GPIO6, GPIO7, GPIO15, GPIO16, GPIO17, GPIO18, and GPIO21.
ESP32-S3 DevKitC-1 Header Pin Reference
The ESP32-S3-DevKitC-1 has two main header rows, usually referred to as J1 and J3 in Espressif documentation.
J1 Header
| Header Pin | Label | Main Function |
|---|---|---|
| 1 | 3V3 | 3.3 V |
| 2 | 3V3 | 3.3 V |
| 3 | RST | Reset / EN |
| 4 | GPIO4 | GPIO, Touch, ADC1 |
| 5 | GPIO5 | GPIO, Touch, ADC1 |
| 6 | GPIO6 | GPIO, Touch, ADC1 |
| 7 | GPIO7 | GPIO, Touch, ADC1 |
| 8 | GPIO15 | GPIO, ADC2 |
| 9 | GPIO16 | GPIO, ADC2 |
| 10 | GPIO17 | GPIO, UART, ADC2 |
| 11 | GPIO18 | GPIO, UART, ADC2 |
| 12 | GPIO8 | GPIO, Touch, ADC1 |
| 13 | GPIO3 | GPIO, Touch, ADC1, strapping caution |
| 14 | GPIO46 | GPIO, strapping caution |
| 15 | GPIO9 | GPIO, Touch, ADC1, SPI-related |
| 16 | GPIO10 | GPIO, Touch, ADC1, SPI-related |
| 17 | GPIO11 | GPIO, ADC2, SPI-related |
| 18 | GPIO12 | GPIO, ADC2, SPI-related |
| 19 | GPIO13 | GPIO, ADC2, SPI-related |
| 20 | GPIO14 | GPIO, ADC2, SPI-related |
| 21 | 5V | 5 V |
| 22 | GND | Ground |
J3 Header
| Header Pin | Label | Main Function |
|---|---|---|
| 1 | GND | Ground |
| 2 | TX / GPIO43 | UART TX |
| 3 | RX / GPIO44 | UART RX |
| 4 | GPIO1 | GPIO, Touch, ADC1 |
| 5 | GPIO2 | GPIO, Touch, ADC1 |
| 6 | GPIO42 | GPIO, JTAG-related |
| 7 | GPIO41 | GPIO, JTAG-related |
| 8 | GPIO40 | GPIO, JTAG-related |
| 9 | GPIO39 | GPIO, JTAG-related |
| 10 | GPIO38 | GPIO, SPI-related |
| 11 | GPIO37 | GPIO, may be reserved on some modules |
| 12 | GPIO36 | GPIO, may be reserved on some modules |
| 13 | GPIO35 | GPIO, may be reserved on some modules |
| 14 | GPIO0 | Boot / strapping pin |
| 15 | GPIO45 | Strapping pin |
| 16 | GPIO48 | Onboard RGB LED on DevKitC-1 |
| 17 | GPIO47 | GPIO |
| 18 | GPIO21 | GPIO |
| 19 | GPIO20 | USB D+ |
| 20 | GPIO19 | USB D- |
| 21 | GND | Ground |
| 22 | GND | Ground |
Best ESP32-S3 Pins for Beginners
For LEDs, buttons, relays, buzzers, and simple modules, start with:
- GPIO4
- GPIO5
- GPIO6
- GPIO7
- GPIO15
- GPIO16
- GPIO17
- GPIO18
- GPIO21
These pins are commonly usable as general-purpose GPIOs on ESP32-S3 development boards.
For analog sensors, start with:
- GPIO4
- GPIO5
- GPIO6
- GPIO7
- GPIO8
- GPIO9
- GPIO10
For UART modules, try:
- TX: GPIO17
- RX: GPIO18
For I2C modules, try:
- SDA: GPIO8
- SCL: GPIO9
Always confirm with your exact board pinout before wiring, especially if you are using a clone board or a compact ESP32-S3 module.
Common ESP32-S3 Pinout Mistakes
Using 5 V on GPIO Pins
The ESP32-S3 uses 3.3 V logic. A 5 V signal connected directly to a GPIO pin can damage the chip.
Using GPIO0 Incorrectly
GPIO0 is tied to boot mode. If your external circuit pulls it to the wrong level during reset, the board may fail to boot normally.
Using USB Pins as Normal GPIO
GPIO19 and GPIO20 are used for native USB. If you use the USB port for programming, serial, or JTAG, avoid connecting other circuits to these pins.
Assuming All ESP32-S3 Boards Have the Same Pinout
ESP32-S3 boards can have different layouts. The ESP32-S3-DevKitC-1, ESP32-S3-WROOM boards, ESP32-S3 mini boards, and ESP32-S3 camera boards may expose different pins.
Ignoring Flash and PSRAM Pins
Some ESP32-S3 modules use certain GPIOs internally for flash or PSRAM. These pins may not be safe for external circuits.
ESP32-S3 Pinout Summary
The ESP32-S3 is more flexible than many traditional microcontrollers because most digital functions can be routed to different GPIO pins. For most projects, choose safe general-purpose GPIO pins first, avoid boot and USB pins unless needed, and always check your exact board layout.
Use GPIO4, GPIO5, GPIO6, GPIO7, GPIO15, GPIO16, GPIO17, GPIO18, and GPIO21 for beginner-friendly digital I/O. Use GPIO1 to GPIO10 for analog input when available. Use GPIO19 and GPIO20 only when you specifically need native USB. Be careful with GPIO0, GPIO3, GPIO45, and GPIO46 because they can affect boot behavior.
Once you understand these rules, the ESP32-S3 pinout becomes much easier to work with, whether you are connecting sensors, displays, motors, serial modules, or USB devices.
