atomic14/esp32-s3-pinouts
About
ESP32-S3 pinout quick guide
Developer ToolsMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original📢 This project is moving to a new home
We're winding this repo down and moving the pinout content over to a new, interactive website with searchable pin finders, per-module pages, downloadable footprints and more:
👉 www.atomic14.com/esp32
Jump straight to a module:
The information below will remain here for reference, but new updates and corrections are happening on the website. Thanks to everyone who contributed! 🙏
Is this useful?
Feel free to open an issue or PR if you have any suggestions. And if you found it helpful then you might like to visit one of these links:
- atomic14 YouTube Channel: https://youtube.com/atomic14
- the atomic14 newsletter: https://atomic14.substack.com
- Patreon: https://www.patreon.com/atomic14
You can also pick up ESP32-S3 boards here — these are affiliate links, so buying through them helps support this work at no extra cost to you:
- AliExpress: https://s.click.aliexpress.com/e/_c4dQtFNJ
ESP32-S3 Pinouts
I've always used this Random Nerds page as a reference for which ESP32 pins are safe to use.
But I haven't seen a similar one for the ESP32-S3 - so I thought I should make one!
The majority of this information is taken from the ESP32-S3-WROOM datasheet with additional information from the ESP32-S3 datasheet.

You can download a high resolution PDF version of this image here.
The above image is a WROOM module with the pins labeled. Bold indicates the default behaviour of each pin. I've ommitted some of the more esoteric pins names, but you can find the full list in the datasheet.
There is a lot more flexibility with the ESP32-S3, so most pins can be used for any peripheral. However there are still some pins that have some funny behaviour.
Which modules does this apply to? The diagram is labelled WROOM-2, but the pinout is identical for the ESP32-S3-WROOM-1, -1U and -2 modules - this reference applies to all of them. The differences between variants are flash/PSRAM size and type (the
N../R../Vsuffixes), which affect a handful of pins as noted below.
Power & Boot Notes
- Power supply: Espressif recommend a supply capable of at least 500 mA for the module.
- EN (BOOT/reset): the EN pin is only very weakly pulled high internally (2+ MΩ), which is often not reliable on its own. Add an external pull-up (100 kΩ works well), and consider a proper reset-supervisor IC (e.g. MAX809T) rather than just an RC network, especially with large bulk capacitance on the 3.3V rail.
A note on SPI speed
You can route SPI (and most peripherals) to almost any pin via the GPIO matrix, but doing so limits the SPI clock to 80 MHz. To run faster you must use the dedicated IO_MUX pins. See the SPI master docs.
Strapping Pins
Avoid these unless you have no choice.
| Pin Name | Details |
|---|---|
| GPIO0 | Hold this low during boot to enter firmware download mode. |
| GPIO3 | In combination with eFuses controls the default behaviour of the JTAG pins. Safe to use unless you are messing with eFuses |
| GPIO45 | VDD_SPI - best leave this disconnected |
| GPIO46 | ROM messages printing - best to leave this disconnected as well. Causes issues with firmware download (see Boot Mode Control table below) |
You can use these pins as inputs or outputs once the ESP has booted. But be aware of the pull up/down resistors (see below).
If you want to use them as inputs, make sure you do not conflict with the default configurations during boot.
e.g. it's safe to have a button connected to GPIO0 and use that button in your code. But if you hold the button down during boot, it will enter firmware download mode.
If you want to use them as outputs, then be aware of the default pull up or pull down resistors.
Boot Mode Control
| Boot Mode | GPIO0 | GPIO46 |
|---|---|---|
| SPI Boot (default) | 1 | Any value |
| Download Boot | 0 | 0 |
| Invalid combination | 0 | 1 |
Strapping Pin Pull Up/Down Resistors
| Strapping Pin | Default Configuration | Bit Value |
|---|---|---|
| GPIO0 | Pull-up | 1 |
| GPIO3 | Floating | – |
| GPIO45 | Pull-down | 0 |
| GPIO46 | Pull-down | 0 |
I2S, I2C, SPI, UART, Remote Control etc...
These can use any GPIO pins on the ESP32-S3.
Pins That You Need to be Careful With
USB Data Pins
GPIO19, GPIO20 - these are both used for the USB connection.
PSRAM
For modules that include Octal PSRAM (any module that has 8MB PSRAM) you MUST NOT use GPIO35, GPIO36 or GPIO37.
A quick way to tell: if the chip/module name contains R8 or higher (R8, R8V, R16, ...) it has Octal PSRAM and these pins are off-limits. Espressif only use Octal SPI in WROOM modules when they need to, so modules below R8 are fine to use GPIO35-37.
GPIO33 & GPIO34
GPIO33 and GPIO34 exist on the bare ESP32-S3 chip but are not broken out on the WROOM-1/1U/2 modules - there is no physical module pin for them (which is why they don't appear on the diagram). On modules with Octal SPI PSRAM/flash they are used internally for the Octal interface (see Espressif's GPIO reference).
So you can't wire anything to them, but you should still avoid assigning peripherals to GPIO33/34 in software (or probing them in a pin-scan loop) on a WROOM module - doing so touches the internal Octal PSRAM/flash lines and can lock up the PSRAM or crash the chip.
GPIO47 & GPIO48 Working Voltage (1.8V on "V" modules)
On modules where VDD_SPI is set to 1.8V - the "V" variants such as N8R8V, N16R16V (anything with a trailing V in the name) - the working voltage of GPIO47 and GPIO48 is 1.8V, not 3.3V. This is because VDD_SPI also supplies these two pins. Driving them from, or into, 3.3V logic can damage the part or give unreliable levels. See page 12 of the ESP32-S3-WROOM-2 datasheet.
JTAG Pins
GPIO39, GPIO40, GPIO41, GPIO42
The behaviour of these pins is determined by eFuses in conjunction with GPIO3. By default, if you haven't burnt any eFuses yet, these pins are safe to use*. JTAG will be available over USB.
If you wish to use these pins for JTAG, you must burn some eFuses, and control GPIO3 at start up. See the datasheet section 2.6.4 for full details.
*Some of the JTAG pins start pulled-up at boot:
| JTAG Pin | Download boot | SPI boot (default) |
|---|---|---|
| GPIO39 | Pull-up | Pull-up* |
| GPIO40 | Pull-up | Floating |
| GPIO41 | Floating | Floating |
| GPIO42 | Floating | Floating |
GPIO39 starts pulled-up at boot. This can be fixed by burning EFUSE_DIS_PAD_JTAG (a.k.a. HARD_DIS_JTAG) to permanently disable the JTAG pins. JTAG will still be available over the USB port.
GPIO39 & GPIO40 are also pulled-up when in the 'download boot mode - regardless of eFuse state.
UART Pins
GPIO43, GPIO44
These default to UART0 until they are used by your code. They both start with pull-up resistors enabled.
If you are uploading code and using the serial console over the native USB port (USB-CDC/JTAG), UART0 is free and you can repurpose GPIO43/44 as ordinary GPIOs (e.g. to drive a NeoPixel ring). Just be aware of the boot-time pull-ups, and that any early-boot ROM/bootloader logging still goes to UART0 unless you disable it (ESP_CONSOLE_NONE / route the console to USB).
GPIO9 & GPIO10 are always free (not flash pins on the S3)
GPIO9 and GPIO10 are general-purpose IO on the ESP32-S3-WROOM-1/1U/2 modules, regardless of the flash mode (QIO/QOUT/DIO/DOUT). They are not part of the boot-flash bus.
On the ESP32-S3 the in-package flash/PSRAM runs on the SPI0/1 interface (SPICS0/1, SPICLK, SPID, SPIQ, SPIHD, SPIWP, and the octal SPIIO*/SPIDQS lines), which the datasheet maps to GPIO26–GPIO32. On the WROOM modules those pins are in-package and not broken out, so the flash never touches any pin you can reach. Quad-vs-dual flash mode only changes how many of those internal GPIO26–32 lines are used — it has no effect on GPIO9/GPIO10.
GPIO9 (FSPIHD) and GPIO10 (FSPICS0/FSPIIO4) belong to FSPI (SPI2) — the general-purpose fast-SPI peripheral you can use freely.
⚠️ This is different from the original ESP32. On the classic ESP32 the SPI flash sits on GPIO6–11, and GPIO9/GPIO10 (SD_DATA2/3) can only be reclaimed if the flash is set to DIO instead of QIO. That does not carry over to the ESP32-S3 — its flash bus is on entirely different, in-package pins.
ADC Pins
The ADC channels are all on fixed pins, and if you are using WiFi you cannot use ADC Unit 2
The pins for ADC Unit 1 are:
| GPIO Number | ADC Channel |
|---|---|
| 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 |
The pins for ADC Unit 2 are (remember you cannot use these while WiFi is active):
| GPIO Number | ADC Channel |
|---|---|
| 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 |
DAC Pins
There is NO DAC on the ESP32-S3 - you can simulate analog output using PWM or I2S PDM.
Power Up Glitches
The following pins have glitches during power up.
GPIO1, GPIO2,GPIO3,GPIO4, GPIO5, GPIO6, GPIO7, GPIO8, GPIO9, GPIO10, GPIO11, GPIO12, GPIO13, GPIO14, GPIO15, GPIO16, GPIO17:
- Low-level glitch: the pin is at a low level output status for 60us.
GPIO18:
- Low-level glitch: the pin is at a low level output status for 60us.
- High-level glitch: the pin is at a high level output status for 60us.
GPIO19, GPIO20:
- Low-level glitch: the pin is at a low level output status for 60us.
- Two High-level glitches: the pin is at a high level output status for 60us.
See Table-2-2 here
More about Power Up Glitches
if you see Power Up Glitches on some Pins when runnning "your" Software, but not when running a simple Hello World, then this might be a common Mistake:
gpio_reset_pin(RELAY1_SC);
gpio_set_direction(RELAY1_SC, GPIO_MODE_OUTPUT);
This Syntax can be found e.g. here: blink_example_main.c
instead use this Syntax:
//zero-initialize the config structure.
gpio_config_t io_conf = {};
//disable interrupt
io_conf.intr_type = GPIO_INTR_DISABLE;
//set as output mode
io_conf.mode = GPIO_MODE_OUTPUT;
//bit mask of the pins that you want to set,e.g.GPIO18/19
io_conf.pin_bit_mask = (1ULL << RELAY1_SC);
//disable pull-down mode
io_conf.pull_down_en = 0;
//disable pull-up mode
io_conf.pull_up_en = 0;
//configure GPIO with the given settings
gpio_config(&io_conf);
This Syntax can be found e.g. here: gpio_example_main.c
Further Considerations about Power Up Glitches
there are cases where the Pin is by Default connected to a +3.3V or a +1.8V Power Domain. Examples are GPIO20 (D+) or GPIO48.
you can switch them off in a very early stage in Bootloader:
with e.g. the Following Code:
void bootloader_before_init(void) {
/* Keep in my mind that a lot of functions cannot be called from here
* as system initialization has not been performed yet, including
* BSS, SPI flash, or memory protection. */
ESP_LOGI("HOOK", "This hook is called BEFORE bootloader initialization");
gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[GPIO_NUM_20], PIN_FUNC_GPIO);
esp_rom_gpio_pad_select_gpio(GPIO_NUM_48);
gpio_ll_output_enable (&GPIO, GPIO_NUM_48);
gpio_ll_set_level (&GPIO, GPIO_NUM_48, 0);
}
Source Material
Excel Version With Multiple Modules
There's a really handy spreadsheet here provided by Mark Nowell with lists of ESP32-S3 modules and their pinouts.
Full GPIO Table
- I - input
- O - output
- T - tristate (high impedance)
| Pin Name | Pin Number | Type | Description |
|---|---|---|---|
| GND | 1,40 | P | GND |
| EPAD | 41 | P | GND |
| 3V3 | 2 | P | Power supply |
| EN | 3 | I | High: on, enables the chip. Low: off, the chip powers off. Note: Do not leave the EN pin floating. |
| GPIO0 | 27 | I/O/T | RTC_GPIO0, GPIO0 |
| GPIO1 | 39 | I/O/T | RTC_GPIO1, GPIO1, TOUCH1, ADC1_CH0 |
| GPIO2 | 38 | I/O/T | RTC_GPIO2, GPIO2, TOUCH2, ADC1_CH1 |
| GPIO3 | 15 | I/O/T | RTC_GPIO3, GPIO3, TOUCH3, ADC1_CH2 |
| GPIO4 | 4 | I/O/T | RTC_GPIO4, GPIO4, TOUCH4, ADC1_CH3 |
| GPIO5 | 5 | I/O/T | RTC_GPIO5, GPIO5, TOUCH5, ADC1_CH4 |
| GPIO6 | 6 | I/O/T | RTC_GPIO6, GPIO6, TOUCH6, ADC1_CH5 |
| GPIO7 | 7 | I/O/T | RTC_GPIO7, GPIO7, TOUCH7, ADC1_CH6 |
| GPIO8 | 12 | I/O/T | RTC_GPIO8, GPIO8, TOUCH8, ADC1_CH7, SUBSPICS1 |
| GPIO9 | 17 | I/O/T | RTC_GPIO9, GPIO9, TOUCH9, ADC1_CH8, FSPIHD, SUBSPIHD |
| GPIO10 | 18 | I/O/T | RTC_GPIO10, GPIO10, TOUCH10, ADC1_CH9, FSPICS0, FSPIIO4, SUBSPICS0 |
| GPIO11 | 19 | I/O/T | RTC_GPIO11, GPIO11, TOUCH11, ADC2_CH0, FSPID, FSPIIO5, SUBSPID |
| GPIO12 | 20 | I/O/T | RTC_GPIO12, GPIO12, TOUCH12, ADC2_CH1, FSPICLK, FSPIIO6, SUBSPICLK |
| GPIO13 | 21 | I/O/T | RTC_GPIO13, GPIO13, TOUCH13, ADC2_CH2, FSPIQ, FSPIIO7, SUBSPIQ |
| GPIO14 | 22 | I/O/T | RTC_GPIO14, GPIO14, TOUCH14, ADC2_CH3, FSPIWP, FSPIDQS, SUBSPIWP |
| GPIO15 | 8 | I/O/T | RTC_GPIO15, GPIO15, U0RTS, ADC2_CH4, XTAL_32K_P |
| GPIO16 | 9 | I/O/T | RTC_GPIO16, GPIO16, U0CTS, ADC2_CH5, XTAL_32K_N |
| GPIO17 | 10 | I/O/T | RTC_GPIO17, GPIO17, U1TXD, ADC2_CH6 |
| GPIO18 | 11 | I/O/T | RTC_GPIO18, GPIO18, U1RXD, ADC2_CH7, CLK_OUT3 |
| USB_D- | 13 | I/O/T | RTC_GPIO19, GPIO19, U1RTS, ADC2_CH8, CLK_OUT2, USB_D- |
| USB_D+ | 14 | I/O/T | RTC_GPIO20, GPIO20, U1CTS, ADC2_CH9, CLK_OUT1, USB_D+ |
| GPIO21 | 23 | I/O/T | RTC_GPIO21, GPIO21 |
| SPICS1 | I/O/T | SPICS1, GPIO26 | |
| GPIO33 | I/O/T | GPIO33 | |
| GPIO34 | I/O/T | GPIO34 | |
| GPIO35 | 28 | I/O/T | SPIIO6, GPIO35, FSPID, SUBSPID |
| GPIO36 | 29 | I/O/T | SPIIO7, GPIO36, FSPICLK, SUBSPICLK |
| GPIO37 | 30 | I/O/T | SPIDQS, GPIO37, FSPIQ, SUBSPIQ |
| GPIO38 | 31 | I/O/T | GPIO38, FSPIWP, SUBSPIWP |
| MTCK | 32 | I/O/T | MTCK, GPIO39, CLK_OUT3, SUBSPICS1 |
| MTDO | 33 | I/O/T | MTDO, GPIO40, CLK_OUT2 |
| MTDI | 34 | I/O/T | MTDI, GPIO41, CLK_OUT1 |
| MTMS | 35 | I/O/T | MTMS, GPIO42 |
| U0TXD | 37 | I/O/T | U0TXD, GPIO43, CLK_OUT1 |
| U0RXD | 36 | I/O/T | U0RXD, GPIO44, CLK_OUT2 |
| GPIO45 | 26 | I/O/T | GPIO45 |
| GPIO46 | 16 | I/O/T | GPIO46 |
| GPIO47 | 24 | I/O/T | SPICLK_P_DIFF, GPIO47, SUBSPICLK_P_DIFF |
| GPIO48 | 25 | I/O/T | SPICLK_N_DIFF, GPIO48, SUBSPICLK_N_DIFF |
Video Version
For people who prefer video content - you can watch a video version here:
Explore related projects
Loading…
