
XIAO ESP32S3 Pinout: GPIO, Camera, and Power Pins
Answer in brief: The XIAO ESP32S3 gives you 11 GPIO pins, named D0 through D10. It also gives you native USB, I2C, SPI, UART, and ADC on those same pins. The Sense version adds a camera and a microSD card on a rear connector. This guide maps each pin and its shared uses.
Quick Facts
| Item | Detail | Source |
|---|---|---|
| Board | XIAO ESP32S3 | Seeed Studio XIAO ESP32S3 wiki |
| GPIO pins | 11 pins, D0 to D10 | Seeed Studio XIAO ESP32S3 wiki |
| Logic voltage | 3.3 volts | Seeed Studio XIAO ESP32S3 wiki |
| USB port | USB-C, native USB | Seeed Studio XIAO ESP32S3 wiki |
| Native USB pins | GPIO19 D- and GPIO20 D+ | Seeed Studio XIAO ESP32S3 wiki |
| Boot pin | GPIO0 | Seeed Studio XIAO ESP32S3 wiki |
| I2C pins | D4 SDA and D5 SCL | Seeed Studio XIAO ESP32S3 wiki |
| SPI pins | D8 SCK, D9 MISO, D10 MOSI | Seeed Studio XIAO ESP32S3 wiki |
| UART pins | D6 TX and D7 RX | Seeed Studio XIAO ESP32S3 wiki |
| Sense SD chip select | GPIO21 | Seeed Studio XIAO ESP32S3 wiki |
XIAO ESP32S3 Pinout Table
This table is an original pinout table built from the Seeed wiki pin multiplexing page. It is not a copied image. The D names are the printed pad names on the board. The GPIO numbers are the chip pin numbers in code.
| Pad | GPIO | Main function | Shared functions |
|---|---|---|---|
| D0 | GPIO1 | ADC input | Touch input |
| D1 | GPIO2 | ADC input | Touch input |
| D2 | GPIO3 | ADC input | Touch input, strapping pin |
| D3 | GPIO4 | ADC input | Touch input |
| D4 | GPIO5 | I2C SDA | ADC input, touch input |
| D5 | GPIO6 | I2C SCL | ADC input, touch input |
| D6 | GPIO43 | UART TX | UART transmit only |
| D7 | GPIO44 | UART RX | UART receive only |
| D8 | GPIO7 | SPI SCK | ADC input, touch input |
| D9 | GPIO8 | SPI MISO | ADC input, touch input |
| D10 | GPIO9 | SPI MOSI | ADC input, touch input |
| BOOT | GPIO0 | Boot button | Hold low at reset for download mode |
| 5V | Power | 5 volt input | USB 5 volt rail when USB is connected |
| 3V3 | Power | 3.3 volt output | Power for low-current 3.3 volt parts |
| GND | Power | Ground | Common ground for all wiring |
Power Pins
Power the board through the USB-C port or the 5V pad. The USB-C port supplies 5 volts from the host. The 5V pad accepts 5 volts from an external supply. Use one 5 volt source at a time. Do not feed 5 volts into the 3V3 pad.
The 3V3 pad is a 3.3 volt output from the SGM6029 buck converter on the board. The schematic v1.3 marks that converter Imax 600 mA, so keep external 3.3 volt loads under 600 mA in total. The Seeed wiki says 700 mA can be drawn from the 3V3 pad, which is above the schematic Imax, so the 600 mA schematic figure is the safe limit to plan on. The 5V pad is the USB VBUS rail. No separate 5V input current limit is published in schematic v1.3, so the USB source and cable set that limit in practice.
Strapping and Boot Pins
GPIO0 is the BOOT pin. The board has a BOOT button tied to GPIO0. Hold BOOT low at reset to enter download mode. The Arduino IDE and esptool handle this step in most cases. Press BOOT only when an upload fails to start.
GPIO3 on pad D2 is also a strapping pin. Keep D2 free of strong pull-downs at boot. A wrong level at boot can change the boot mode. Check the Seeed wiki strapping notes before you wire a sensor to D2.
ADC and Touch Pins
ADC input is available on D0, D1, D2, D3, D4, D5, D8, D9, and D10. That is 9 ADC pins in total. Each ADC pin reads a voltage from 0 volts to 3.3 volts. Use a voltage divider for any higher voltage. Never feed 5 volts into an ADC pin.
D11 is GPIO42 and D12 is GPIO41 on Sense and Plus variants. Those two pins serve the PDM microphone on the Sense board. Note that D11 and D12 do not support ADC on the S3 chip. Do not plan an analog read on those two pins. Use them only for their Sense roles unless the wiki for your variant says otherwise.
PWM Pins
PWM output works on the GPIO pins through the LEDC peripheral. Use PWM for a dim LED, a small buzzer, or a servo signal. The servo signal is a control signal only. It does not power the servo. Power the servo from a separate supply.
Every D pad can carry a PWM signal in code. The limit is the pin count, not the PWM peripheral. Pick a free D pad for each PWM output. Keep I2C and SPI pins free when those buses are in use. A PWM output on D4 would clash with I2C SDA.
I2C Pins
I2C uses D4 for SDA and D5 for SCL. The chip GPIO numbers are GPIO5 and GPIO6. Those two pins are the default I2C pair in most XIAO examples. Use them for an OLED display, a sensor, or a real-time clock.
Both I2C pins also support ADC and touch. That sharing means a choice. A pin on the I2C bus cannot read an analog voltage at the same time. Plan the pin budget before you add a second sensor.
SPI Pins
SPI uses D8 for SCK, D9 for MISO, and D10 for MOSI. The chip GPIO numbers are GPIO7, GPIO8, and GPIO9. Pick any free GPIO pin for the SPI chip select. D0 is a common chip select choice when it is free.
All three SPI pins also support ADC and touch. That sharing is the same trade as I2C. A SPI device claims all three pins. Plan for that claim before you add an analog sensor to D8, D9, or D10.
UART Pins
UART uses D6 for TX and D7 for RX. The chip GPIO numbers are GPIO43 and GPIO44. Those two pins carry the hardware serial port on the board pads. Use them for a GPS module, a serial sensor, or a second microcontroller.
The USB-C port carries a separate native USB serial link. That link is the programming and debug console. It does not use D6 or D7. You can use D6 and D7 for a device while the USB console stays open. That split is handy for GPS logging.
USB Pins
Native USB uses GPIO19 for D- and GPIO20 for D+. Those pins are internal. They do not appear on the D pads. The USB-C connector ties to them on the board. You cannot reassign them to other uses.
Native USB supports serial, HID, and mass storage modes in code. The Arduino core exposes USB serial by default. Use the USB link for uploads and debug output. Use D6 and D7 when you need a separate hardware UART.
Sense Camera and SD Card
The Sense version adds an OV2640 camera and a microSD card slot. Both sit on a rear board-to-board connector. The standard XIAO ESP32S3 has no camera and no SD slot. Check which version you hold before you follow the Sense wiring.
| Sense feature | Detail | Source |
|---|---|---|
| Camera | OV2640 on rear connector | Seeed Studio XIAO ESP32S3 wiki |
| SD card chip select | GPIO21 | Seeed Studio XIAO ESP32S3 wiki |
| PDM microphone pins | GPIO42 and GPIO41 | Seeed Studio XIAO ESP32S3 wiki |
| Standard board camera | None fitted | Seeed Studio XIAO ESP32S3 wiki |
The Sense camera uses the rear connector, not the D pads. That design keeps D0 through D10 free for your own wiring, except for the SD card sharing below. The SD card chip select is GPIO21. The SD card shares the SPI lines D8, D9, and D10, which are GPIO7, GPIO8, and GPIO9, with chip select on GPIO21. Do not put a second SPI device on D8, D9, and D10 while the SD card is mounted unless it has its own chip select pin. GPIO21 is also the user LED, so the LED flickers with card access.
For the Sense board guide, see the live post Seeed XIAO ESP32S3 Guide: Standard Board vs Sense Board (live post #18362). That guide compares the standard board and the Sense board in full.
Pins to Avoid
Avoid GPIO19 and GPIO20 for general wiring. They are the native USB pins. Avoid GPIO0 as a permanent output. It is the BOOT pin. Avoid D2 as a boot-time output. It is a strapping pin.
Avoid D11 and D12 for ADC reads. Those pins do not support ADC on the S3 chip. Avoid 5 volt logic on any D pad. This board uses 3.3 volt logic. A 5 volt signal needs a level shifter.
Avoid using D4 and D5 for other roles when I2C is active. Avoid D8, D9, and D10 for other roles when SPI is active. A shared pin causes a clash that is hard to trace in code.
Max Current and Logic Voltage
Logic voltage is 3.3 volts on every D pad. That value comes from the Seeed Studio XIAO ESP32S3 wiki. Treat 3.3 volts as the high level. Treat 0 volts as the low level. Keep sensor outputs at 3.3 volts or below.
At the strongest drive setting, a GPIO pin sources about 40 mA (IOH) and sinks about 28 mA (IOL), per the Espressif ESP32-S3 Series Datasheet v2.2, Table 5-4. Those are drive-strength values at 3.3 volts, not a recommended continuous load. Cumulative IO output current for the chip is 1500 mA at absolute maximum, per section 5.1 of the same datasheet. Treat a small LED through a resistor as the practical per-pin load, not 40 mA.
Use a driver for any load above a small LED. Keep LED current low with a series resistor. A 220 ohm resistor is a common bench value for a 3.3 volt LED test. Check the LED datasheet for its own forward voltage before you pick a resistor.
Wiring and Power Warnings
Power the board at 5 volts through USB-C or the 5V pad. Do not feed 5 volts into the 3V3 pad. Double-check the pad labels before you connect power. The pads are small and close together.
Keep wires short. Use a cable under 3 feet for bench tests when you can. Long wires pick up noise. Noise causes I2C errors and ADC jitter. Twist power and ground wires together when the run is long.
Solder the header pins with care. A solder bridge between two small pads shorts the board. Check each joint with a magnifier. Test for shorts with a meter before first power-up. A short on the 5 volt rail can damage the USB host.
Pin Test Sketch
Language: Arduino. Library: Arduino ESP32 core version 2.0.14. No extra library install is needed for this test. Code status: code not compiled. No arduino-cli or PlatformIO is installed in this environment.
// XIAO ESP32S3 pin test sketch
// Board: XIAO ESP32S3
// Arduino ESP32 core version 2.0.14
// Code status: code not compiled
// D pad to GPIO map from the Seeed wiki.
const int pinD0 = 1; // ADC and touch.
const int pinD1 = 2; // ADC and touch.
const int pinD4 = 5; // I2C SDA, ADC, touch.
const int pinD5 = 6; // I2C SCL, ADC, touch.
const int pinD6 = 43; // UART TX.
const int pinD7 = 44; // UART RX.
const int pinD8 = 7; // SPI SCK, ADC, touch.
void setup() {
// Start USB serial at 115200 baud for debug output.
Serial.begin(115200);
delay(1000); // Wait 1 second for the monitor to open.
// Set D0 as an output for the blink test.
pinMode(pinD0, OUTPUT);
// Set the ADC pins as inputs.
pinMode(pinD1, INPUT);
pinMode(pinD4, INPUT);
pinMode(pinD5, INPUT);
Serial.println("XIAO ESP32S3 pin test started");
}
void loop() {
// Read the ADC value on D1.
// ADC range is 0 to 4095 counts on the ESP32-S3.
int adcValue = analogRead(pinD1);
Serial.print("D1 ADC value: ");
Serial.println(adcValue);
// Blink D0 for 500 milliseconds on and 500 milliseconds off.
digitalWrite(pinD0, HIGH);
delay(500); // Wait 500 milliseconds.
digitalWrite(pinD0, LOW);
delay(500); // Wait 500 milliseconds.
}
Expected result: the serial monitor shows a D1 ADC value each 1 second. The value changes when you touch a wire on D1 or feed it a voltage below 3.3 volts. The D0 output blinks at a 1 second period. If no serial output appears, check the USB cable and the board selection in the IDE.
Frequently Asked Questions
How many GPIO pins does the XIAO ESP32S3 have?
It has 11 GPIO pins on the pads, named D0 through D10. The GPIO numbers run from GPIO1 to GPIO9, plus GPIO43 and GPIO44. Native USB uses GPIO19 and GPIO20 internally.
Which pins are I2C on the XIAO ESP32S3?
D4 is SDA and D5 is SCL. The chip numbers are GPIO5 and GPIO6. Both pins also support ADC and touch. They cannot serve two roles at once.
Does the standard XIAO ESP32S3 have a camera?
No, the standard board has no camera. The Sense version adds an OV2640 camera and a microSD slot on a rear connector. The SD chip select is GPIO21 on the Sense board.
Can I use 5 volt sensors with this board?
No, not directly. The board uses 3.3 volt logic. A 5 volt sensor output needs a level shifter. A direct 5 volt input can damage the pin.
Boards That Match This Pinout
These boards use the pinout in this guide. Check the product page for current stock before you order. Stock changes over time.
- XIAO ESP32S3 Development Board, 1-Pack (product #17839)
- XIAO ESP32S3 Development Board, 3-Pack (product #17841)
- XIAO ESP32S3 Sense Development Board, 1-Pack (product #17842)
Related reading: compare this board with the wider ESP32 family in the staged pillar ESP32 vs ESP32-S3 vs ESP32-C3 vs ESP32-C6 (row 22, staged). For sibling pinouts, see ESP32-CAM Pinout and ESP32 38-Pin Boards Compared: Narrow, DevKitC, and 32E.
Sources
- Seeed Studio XIAO ESP32S3 pin multiplexing, https://wiki.seeedstudio.com/xiao_esp32s3_pin_multiplexing/
- Seeed Studio XIAO ESP32S3 wiki, https://wiki.seeedstudio.com/xiao_esp32s3_getting_started/
- Seeed Studio XIAO ESP32S3 schematic version 1.3, https://wiki.seeedstudio.com/xiao_esp32s3_getting_started/
- Espressif ESP32-S3 Datasheet v2.2, https://www.espressif.com/sites/default/files/documentation/esp32-s3_datasheet_en.pdf
Last updated 2026-11-21.
