In this guide, you’ll find the XIAO ESP32S3 pinout diagram (ESP32S3 Sense), its datasheet and schematic diagram, and every pin group explained with its default pins. It’s the complete Seeed XIAO ESP32S3 pinout (XIAO ESP32S3 Sense) in the same article. Without further ado, let’s get right into it!
The XIAO ESP32S3 is Seeed Studio’s thumb-sized board built on the ESP32-S3R8: a dual-core 240MHz Xtensa LX7 with 8MB PSRAM, 8MB flash, Wi-Fi and Bluetooth LE 5. On a 21 × 17.8mm board, it gives you 11 GPIO pins (all 3.3v), native USB-C, a Li-ion charger, and a U.FL antenna connector. The Sense version adds a plug-in board with a camera, a digital microphone, and a microSD slot.
XIAO ESP32S3 Pinout Diagram
Here is a detailed XIAO ESP32S3 Pinout Diagram with colored labels and legends to help you easily identify the functionalities that each pin can perform. It shows all 14 edge pins with their XIAO names (D0–D10), the ESP32-S3 GPIO numbers, and each pin’s analog, touch, UART, SPI, and I2C functions. The XIAO ESP32S3 Sense has exactly the same 14 edge pins.
Each row shows the XIAO pin number, the Arduino pin name (D0, A1…), the ESP32-S3 GPIO number, and its functions, color-coded by peripheral. The square symbol means every pin is 3.3v only, the PWM symbol means every GPIO can output PWM, and the numbered badges point to the notes at the bottom right. The “also known as” box lists the other names this board is sold under, including the misnomer “XIAO ESP32-S3-MINI” (there’s no ESP32-S3-MINI module on it; the chip sits directly on the board).
With the USB-C connector at the top, the left edge runs from D0 (pin 1) down to D6 (pin 7), and the right edge runs from D7 (pin 8, bottom) up to 5V (pin 14, top), counter-clockwise like Seeed’s numbering. The pads are castellated, so you can solder the board flat onto a PCB, or fit 2.54mm headers for a breadboard.
XIAO ESP32S3 Back Pads Pinout
The underside of the XIAO ESP32S3 has the battery pads (BAT+ / BAT−), the four JTAG pads (MTDO, MTDI, MTCK, MTMS = GPIO40, 41, 39, 42), EN, GND, and the USB D+ / D− test pads (GPIO20 / GPIO19).
XIAO ESP32S3 Sense Pinout Diagram
The XIAO ESP32S3 Sense adds a plug-in expansion board with an OV2640 (or OV3660 / OV5640) camera, a PDM digital microphone, a microSD slot, and two extra pads, D11 and D12. This diagram shows which GPIOs each part uses and the three jumpers (J1, J2, J3) that free them.
XIAO ESP32S3 Sense B2B Connector Pinout
The Sense board plugs into the 30-pin B2B connector (J3, a Hirose DF40 plug) on the underside of the XIAO ESP32S3. Here is every one of its pins, plus the 24-pin camera FPC connector on the Sense board.
Buy a XIAO ESP32S3 or XIAO ESP32S3 Sense: If you don’t have one yet, you can get the genuine Seeed Studio XIAO ESP32S3 from Amazon or AliExpress, or the XIAO ESP32S3 Sense (with the camera board) from Amazon or AliExpress. Both ship with the U.FL antenna you need for Wi-Fi and Bluetooth.
Download XIAO ESP32S3 Pinout Diagrams (Full Resolution)
All 4 XIAO ESP32S3 pinout diagrams (edge pins, back pads, the Sense board, and the Sense B2B connector) in full resolution (5120 px wide WebP), in one ZIP file. Print them, zoom in, or keep them next to your bench. Please consider supporting my work if it helped you.
XIAO ESP32S3 Datasheet
This development board is built around the ESP32-S3R8 SoC (the ESP32-S3 with 8MB of octal PSRAM inside the package). So the XIAO ESP32S3 datasheet set has two parts: Seeed Studio’s documents for the board and the Sense camera board, and Espressif’s for the chip. Here are the official documents you’ll need, linked to their original sources:
| Document | Source | Revision | What You’ll Use It For | Link |
|---|---|---|---|---|
| XIAO ESP32S3 wiki (getting started + specs) | Seeed Studio | online (updated 2026-11-04) | Specs, pin list, power pins, battery, bootloader, heat sinks | Web |
| XIAO ESP32S3 pin multiplexing wiki | Seeed Studio | online (2026-04-27) | Seeed’s per-peripheral pin notes and the Sense J1/J2/J3 jumpers | Web |
| XIAO ESP32S3 schematic | Seeed Studio | v1.4 file (title block Rev V1.3, 2026-02-10) | The full board circuit (see the next section) | |
| XIAO ESP32S3 KiCad files | Seeed Studio | v1.4 | Schematic and PCB source, footprint for your carrier board | ZIP |
| XIAO ESP32S3 Sense schematic (base board) | Seeed Studio | V1.51 (2026-06-11) | The Sense’s XIAO board (same circuit and B2B connector) | |
| Sense expansion board schematic | Seeed Studio | v1.2 (2026-08-10) | Camera LDOs and FPC, microSD slot, microphone, J1/J2/J3 | |
| XIAO ESP32S3 Sense pinout sheet | Seeed Studio | online | Seeed’s pin-by-pin function list | XLSX |
| ESP32-S3 Series datasheet | Espressif | v2.2 (2026-03) | Pin functions (IO MUX, ADC, touch, RTC), strapping pins, electrical limits | |
| ESP32-S3 technical reference manual | Espressif | latest | Registers, the GPIO matrix, and every peripheral | |
| ESP32-S3 Series SoC errata | Espressif | latest | Known silicon limitations per chip revision | Web |
Which document do I need? The Seeed wiki for the power options and the Sense board, the schematics for what’s connected to each pin, the ESP32-S3 datasheet for pin functions and electrical limits, and the technical reference manual for register-level code.
XIAO ESP32S3 Schematic
The XIAO ESP32S3 schematic is Seeed Studio’s XIAO ESP32-S3 v1.4. Its circuit fits on one sheet, so here is the block diagram, the full sheet, close-ups of each block, and two close-ups of the Sense expansion board v1.2. Click a page to view it full screen.
Official sources: the XIAO ESP32S3 schematic v1.4 (PDF) and the Sense expansion board schematic v1.2 (PDF), both from the Seeed Studio wiki. Here’s what to look at:
- Power path: USB-C VBUS reaches the system rail (VIN) through the LMBR4010 Schottky diode (D2), and the battery reaches it through the P-channel MOSFET Q1 (LP0404N3T5G). Q1’s gate sits on VBUS with a 100kΩ pull-down, so the battery is switched off whenever USB is plugged in. The 5V pin is VBUS itself, before the diode.
- 3.3v regulator: an SGM6029 buck converter (U3, 470nH inductor) makes the 3.3v rail. The schematic notes Imax = 600mA; Seeed’s wiki says you can draw 700mA from the 3V3 pin. A buck (not an LDO) is why the board runs efficiently from a 3.7v cell.
- Battery charger: an SGM40567-4.2 linear charger (U4) fed from VBUS. R10 (220kΩ) sets the charge current, noted as 24000 / 220k ≈ 110mA; Seeed’s spec table says 100mA (fast charge). The charger’s NCHG pin drives the red charge LED through 10kΩ. No GPIO is wired to the battery.
- USB-C: 5.1kΩ pull-downs on CC1/CC2, and D+/D− go through 22Ω resistors straight to the ESP32-S3’s native USB on GPIO20 / GPIO19 (also on two test pads on the back). There’s no USB-UART chip.
- ESP32-S3R8 (U1): a 40MHz crystal, and the RF pin runs through a matching network to the U.FL connector only (no PCB antenna). The 8MB flash is a GD25Q64ENIGR (U5) on the SPI pins.
- Buttons and LED: BOOT pulls GPIO0 to GND (10kΩ pull-up), RESET pulls EN to GND (10kΩ + 1µF). The yellow user LED runs from 3.3v through 1.5kΩ into GPIO21, so it lights when GPIO21 is LOW.
- B2B connector (J3): a 30-pin Hirose DF40 plug rated 0.3A per pin, carrying VIN (3.7v–5v), 3.3v, the camera GPIOs, the microphone pins (GPIO41/42), the SD pins (D8–D10 + GPIO21) and D2. The plain {B} has the same connector, unused.
- Sense expansion board: VIN feeds two SGM2036S LDOs that make the camera’s 2.8v (analog and I/O) and 1.5v core supplies (v1.2 changed the core LDO to 1.5v; the net is still labelled VCC_1V3). The camera’s RESET has a 10kΩ pull-up and PWDN a 10kΩ pull-down, with no GPIO on either. The microSD slot is wired in SPI mode only (22Ω series resistors, CS on GPIO21 through R12 = 0Ω; R11 to D2 is not fitted), with 4.7kΩ pull-ups through jumper J3. The PDM microphone (MSM261D3526H1CPM) gets CLK and DATA through jumpers J1 and J2.
XIAO ESP32S3 Specs
The XIAO ESP32S3 packs the most memory of any XIAO ESP32 board into the same 21 × 17.8mm footprint. Here are its specifications, including the board-level parts that chip-only spec lists usually skip.

Get a XIAO ESP32S3: The genuine Seeed Studio board is the one I recommend. Grab the XIAO ESP32S3 from Amazon or AliExpress, or the XIAO ESP32S3 Sense from Amazon or AliExpress.
| Item | XIAO ESP32S3 |
|---|---|
| SoC | Espressif ESP32-S3R8 (8MB octal PSRAM in the package) |
| CPU | 2x Xtensa LX7 cores up to 240MHz, plus ULP-RISC-V and ULP-FSM co-processors |
| Memory | 512KB SRAM, 384KB ROM, 8MB PSRAM, 8MB QSPI flash (GD25Q64) |
| Wireless | Wi-Fi 4 (802.11 b/g/n, 2.4GHz) and Bluetooth LE 5 (no Bluetooth Classic) |
| Antenna | U.FL connector, external antenna included (no PCB antenna) |
| Logic level | 3.3v on every pin, not 5v tolerant (abs max 3.6v) |
| GPIO pins | 11 (D0–D10) on 14 castellated edge pads, plus 4 JTAG pads on the back |
| Analog / touch | 9 ADC pins (all ADC1, 12-bit), 9 touch pins |
| Board supply | USB-C 5v, or a 3.7v Li-ion/LiPo cell on the BAT pads |
| 3.3v regulator | SGM6029 buck: 700mA (Seeed wiki) / Imax 600mA (schematic note) |
| Battery charger | SGM40567: 100mA (Seeed wiki) / ≈110mA (schematic formula), red charge LED |
| Pin current | 40mA source, 28mA sink per pin at the strongest drive (default 20mA); 1500mA total |
| USB connector | USB-C to the ESP32-S3’s native USB (OTG or Serial/JTAG); no USB-UART chip |
| Buttons and LEDs | BOOT (GPIO0), RESET; yellow user LED (GPIO21, active LOW), red charge LED |
| Deep sleep | 14µA (Seeed, 3.8v battery); 3mA for the Sense with its expansion board |
| Size | 21 × 17.8mm (Sense: 21 × 17.8 × 15mm), XIAO form factor, surface-mountable |
| Temperature | −20 °C to 65 °C |
| Seeed SKU | 113991114 ({B}) |
| No | DAC, 5v-tolerant pins, battery-voltage pin |
XIAO ESP32S3 Specifications Summary
- The XIAO ESP32S3 runs an ESP32-S3R8: dual-core LX7 at 240MHz, 8MB PSRAM, and 8MB flash.
- It has 11 GPIOs on the edge (D0–D10), and every pin is 3.3v only: none of them is 5v tolerant.
- It has 9 analog pins (A0–A5, A8–A10), all on ADC1, so analogRead() keeps working with Wi-Fi on. D6/D7 aren’t analog.
- The same 9 pins are touch inputs (T1–T9), and all 11 GPIOs can output PWM.
- Serial is USB CDC; Serial0 (UART0) is on D6 (TX) / D7 (RX).
- The Arduino Wire pins are D4 (SDA) and D5 (SCL); SPI is D8 (SCK), D9 (MISO), D10 (MOSI), and the core’s default SS is D7 (the RX pin).
- LED_BUILTIN is GPIO21, and the LED is active LOW.
- Power it from USB-C or a 3.7v battery on the back pads. The 5V pin is raw USB VBUS: an input only through a diode, and dead on battery.
- The 3V3 pin is rated 700mA by Seeed’s wiki and 600mA by the schematic’s regulator note.
- PSRAM is off by default in the Arduino IDE: enable Tools > PSRAM > OPI PSRAM (the Sense camera needs it).
- Deep sleep: 14µA on the {B}; 3mA on the Sense with its expansion board attached.
XIAO ESP32S3 Peripherals: ESP32-S3 vs On the Pins
The ESP32-S3 routes most peripherals through its GPIO matrix, so UART, I2C, SPI, PWM, I2S and CAN can go to almost any of the 11 edge pins. This table shows what the chip has and what you can reach on the XIAO.
| Peripheral | ESP32-S3 | On the XIAO ESP32S3 |
|---|---|---|
| GPIO | 45 GPIOs | 11 (D0–D10) + 4 JTAG pads (GPIO39–42) |
| ADC | 2x 12-bit SAR ADC, 20 channels | 9 pins, all ADC1 |
| Touch | 14 channels | 9 (D0–D5, D8–D10) |
| DAC | none | – |
| UART | 3 | UART0 on D6/D7; UART1/UART2 on any pins via the matrix |
| SPI (general purpose) | 2 (SPI2, SPI3) | Arduino SPI on D8–D10 |
| I2C | 2 | Arduino Wire on D4/D5; the second bus on any pins |
| I2S | 2 | any pins (the Sense microphone uses PDM on GPIO41/42) |
| TWAI (CAN 2.0) | 1 | any two pins, with an external CAN transceiver |
| PWM | LEDC 8 channels + 2x MCPWM | all 11 pins |
| USB | USB OTG (full speed) + USB Serial/JTAG | USB-C connector (GPIO19/20) |
| Camera (DVP) | 8-bit LCD/camera interface | Sense board only, through the B2B connector |
XIAO ESP32S3 Quick Pin Selection Guide
Not sure which pin to use? Here are the XIAO ESP32S3 pins I’d pick first for each job, and why.
| Use Case | Recommended Pins | Why |
|---|---|---|
| Serial to the PC | USB-C (Serial) | USB CDC, enabled by default |
| Serial to a module (GPS, servo bus…) | D7 (RX), D6 (TX) | UART0’s own pins: Serial0, or Serial1 with the pins passed |
| I2C sensors and displays | D4 (SDA), D5 (SCL) | The Arduino Wire pins, same on every XIAO |
| SPI devices | D8 (SCK), D9 (MISO), D10 (MOSI), CS on D0–D3 | The Arduino SPI pins; never leave CS on the default SS (D7) |
| Analog inputs | A0–A5, A8–A10 | All ADC1, work with Wi-Fi on |
| Touch buttons | D0–D3 (T1–T4) | Touch-capable, free on the Sense too |
| Battery voltage | A0 (with a 2x 200kΩ divider) | No on-board sense pin |
| Deep-sleep wake button | D0–D5 | RTC GPIOs (D6/D7 can’t wake the chip) |
| WS2812 / NeoPixel data | D0–D3 | Free pins with no boot role |
| OneWire (DS18B20) | D0–D5 | Users report trouble on D6/D7 |
| Safest general GPIO | D0, D1, D3, D4, D5 | No strapping, USB, SD or UART role |
XIAO ESP32S3 Pins to Use With Caution
| Pin | Reason | What to Do |
|---|---|---|
| D7 (GPIO44) | UART0 RX, and the core’s default SPI SS | Pass your own CS pin to SPI.begin() and to every SPI library |
| D6 (GPIO43) | UART0 TX: the boot ROM prints on it at every reset | Use it for TX, or for an output that tolerates glitches |
| D8–D10 | On the Sense, also the microSD slot (with CS on GPIO21) | Share the SPI bus with your own CS, or cut J3 and leave the card out |
| D2 (GPIO3) | JTAG-source strapping pin (only read if an eFuse is burned) | Normally a free pin; avoid hard pull-ups/downs at reset to be safe |
| GPIO21 (user LED) | Active-LOW LED, and the Sense microSD CS | Don’t blink the LED while using the SD card |
| GPIO19 / GPIO20 (back pads) | The native USB D−/D+ | Never reuse them, or the USB port disappears |
| GPIO39–42 (JTAG pads) | On the Sense: camera SCCB (39/40) and microphone (41/42) | Free only on the plain S3, or on the Sense with J1/J2 cut (41/42) |
| 5V | Raw USB VBUS, no reverse protection, 0v on battery | Feed it only through a diode; don’t count on it on battery power |
| All pins | 3.3v only, no 5v tolerance | Level-shift every 5v signal |
XIAO ESP32S3 Pin Numbering: XIAO Pins vs GPIO Numbers
The XIAO ESP32S3 has three numbering systems on the same pins: the XIAO pin number (1–14, physical), the XIAO name (D0–D10), and the ESP32-S3 GPIO number. In the Arduino core, a bare number is the GPIO number, so digitalWrite(1, HIGH) drives GPIO1 = D0, not D1. MicroPython, CircuitPython, and ESP-IDF use GPIO numbers only.
| XIAO Pin | XIAO Name | GPIO | XIAO Pin | XIAO Name | GPIO |
|---|---|---|---|---|---|
| 1 | D0 / A0 | GPIO1 | 8 | D7 / RX | GPIO44 |
| 2 | D1 / A1 | GPIO2 | 9 | D8 / A8 / SCK | GPIO7 |
| 3 | D2 / A2 | GPIO3 | 10 | D9 / A9 / MISO | GPIO8 |
| 4 | D3 / A3 | GPIO4 | 11 | D10 / A10 / MOSI | GPIO9 |
| 5 | D4 / A4 / SDA | GPIO5 | 12 | 3V3 | – |
| 6 | D5 / A5 / SCL | GPIO6 | 13 | GND | – |
| 7 | D6 / TX | GPIO43 | 14 | 5V | – |
The safe habit is to write the pin names ( D4, A0, SDA) in Arduino sketches. The XIAO_ESP32S3 variant of the ESP32 Arduino core defines D0–D10, A0–A5, A8–A10, T1–T9, TX, RX, SDA, SCL and the SPI pins. There’s no A6/A7: D6 and D7 have no analog channel.
XIAO ESP32S3 Pins Functions
The 14 edge pins of the XIAO ESP32S3 (plus the back pads) are divided into the following groups based on the hardware functionality they’re used for. Thanks to the GPIO matrix, most pins belong to several groups at once.
- Power Pins: 5V, 3V3, GND, BAT+ / BAT− pads
- 11x Digital GPIO Pins (all can be interrupts)
- 9x ADC and 9x Touch Pins
- 11x PWM Pins
- 3x UART Ports (+ USB CDC)
- 2x I2C Buses
- 2x SPI Ports
- USB and JTAG Pins (back pads)
- Strapping & Boot Pins: D2, GPIO0 (BOOT)
- Sense Pins: camera, microphone, microSD, D11/D12
We’ll discuss each pin group in the following sections one by one in more detail.
XIAO ESP32S3 Power Pins
The XIAO ESP32S3 is powered from the USB-C port (5v) or from a 3.7v Li-ion/LiPo battery soldered to the BAT+ / BAT− pads on the back. The 3V3 pin is the buck converter’s output, and the 5V pin is the raw USB VBUS line. The power pins are highlighted in red in the pinout diagram.

| Pin | XIAO Pin | Range | Notes |
|---|---|---|---|
| 5V | 14 | 5v in/out | USB VBUS. 5v out on USB power, 0v on battery; as an input, only through a diode |
| 3V3 | 12 | 3.3v out | SGM6029 buck output: 700mA (Seeed wiki) / Imax 600mA (schematic note) |
| GND | 13 | 0v | Plus the GND pad and the thermal pad on the back |
| BAT+ / BAT− | back pads | 3.7v nominal (4.2v full) | BAT− is the pad nearer the USB-C connector; charged at 100mA (wiki) / ≈110mA (schematic) |
What is the input voltage of the XIAO ESP32S3? 5v through USB-C (or the 5V pin, through a diode), or a single 3.7v Li-ion/LiPo cell (3.7v–4.2v) on the BAT pads. You can leave the battery connected with USB plugged in: the power path runs the board from USB while the SGM40567 charges the battery. The red charge LED blinks while charging and turns off when the battery is full.
Note: The 5V pin is wired straight to the USB-C connector’s VBUS. Feeding 5v into it without a diode while USB is plugged in back-feeds your PC’s USB port, so Seeed requires a diode (anode at your supply, cathode at the 5V pin). And on battery power the 5V pin is dead, so a 5v module powered from it won’t run; power it from 3V3 or add a boost converter.
XIAO ESP32S3 Battery Voltage Reading
The XIAO ESP32S3 has no battery-voltage pin: no ADC channel is wired to BAT+ (the XIAO ESP32S3 Plus has one, the S3 and Sense don’t). Add a divider of two 200kΩ resistors from BAT+ to GND with the middle point on A0. A full 4.2v cell gives 2.1v on A0, inside the ADC’s range (0–2.9v at the default attenuation (ESP32-S3 datasheet v2.2)).
|
1 2 3 4 5 6 7 8 9 10 11 12 |
// BAT+ -- 200k -- A0 -- 200k -- GND void setup() { Serial.begin(115200); } void loop() { uint32_t mv = 0; for (int i = 0; i < 16; i++) mv += analogReadMilliVolts(A0); float vbat = 2.0 * mv / 16 / 1000.0; // the divider halves BAT+ Serial.printf("Battery: %.2f V\n", vbat); delay(1000); } |
XIAO ESP32S3 Sleep Current
Seeed specifies 14µA in deep sleep for the XIAO ESP32S3 on a 3.8v battery (modem-sleep 27mA, light-sleep 2mA). The XIAO ESP32S3 Sense with its expansion board attached measures 3mA in deep sleep (light-sleep 5mA), because the camera’s LDOs stay powered, so remove the Sense board for long battery runs. Measure from the battery pads, not through USB. Any of D0–D5 and D8–D10 (RTC GPIOs) can wake the chip; D6 and D7 can’t.
Learn more in our ESP32 Sleep Modes & Power Consumption Guide.
XIAO ESP32S3 GPIO Pins
The XIAO ESP32S3 has 11 GPIO pins on the edge: D0–D10 (GPIO1–9, GPIO43 and GPIO44). They all work at 3.3v, and none of them is 5v tolerant. Each one can be a digital input, a digital output, a PWM output, or an interrupt source.

Each GPIO can be an input (floating, or with the internal pull-up or pull-down), a push-pull or open-drain output, or a peripheral pin through the GPIO matrix. Here are the electrical limits (ESP32-S3 datasheet v2.2):
- Logic level 3.3v; never apply more than 3.6v to any pin.
- Up to 40mA source and 28mA sink per pin at the strongest drive setting (the default is 20mA), and 1500mA total for all I/Os together.
- Every GPIO can trigger an interrupt: attachInterrupt(digitalPinToInterrupt(D3), isr, FALLING) works on any of the 11 pins.
- The GPIOs you don’t see: GPIO26–32 (flash/PSRAM SPI) and GPIO33–37 (octal PSRAM) are taken inside the chip, GPIO19/20 are the USB, and GPIO10–18, 38, 47 and 48 go only to the B2B connector (the Sense camera).
Note: The user LED on GPIO21 is active LOW: digitalWrite(LED_BUILTIN, LOW) turns it on. The Blink example still works (it just starts in the opposite phase), but code that writes HIGH for “on” leaves it dark.
Learn more in our ESP32 GPIO Tutorial.
Also Read
XIAO ESP32S3 ADC and Touch Pins
The XIAO ESP32S3 has 9 ADC pins: A0–A5 (D0–D5) and A8–A10 (D8–D10), all on ADC1. That matters on an ESP32: ADC2 is shared with the Wi-Fi driver, but no edge pin uses it, so analogRead() works with Wi-Fi on. The same 9 pins are capacitive touch inputs (T1–T9). The analog pins are highlighted in green in the pinout diagram.

| Pin | GPIO | ADC Channel | Touch |
|---|---|---|---|
| A0 / D0 | GPIO1 | ADC1_CH0 | T1 |
| A1 / D1 | GPIO2 | ADC1_CH1 | T2 |
| A2 / D2 | GPIO3 | ADC1_CH2 | T3 |
| A3 / D3 | GPIO4 | ADC1_CH3 | T4 |
| A4 / D4 | GPIO5 | ADC1_CH4 | T5 |
| A5 / D5 | GPIO6 | ADC1_CH5 | T6 |
| A8 / D8 | GPIO7 | ADC1_CH6 | T7 |
| A9 / D9 | GPIO8 | ADC1_CH7 | T8 |
| A10 / D10 | GPIO9 | ADC1_CH8 | T9 |
analogRead() returns 0 to 4095 (12-bit), and analogReadMilliVolts() gives a calibrated value. At the default attenuation the datasheet’s effective range is 0–2.9v (ESP32-S3 datasheet v2.2), so readings flatten out above that; use a divider for higher voltages. touchRead(T1) returns a raw value that rises when you touch the pad.
Note: D11 and D12 on the Sense board have no ADC and no touch. They’re GPIO42 and GPIO41, and the ESP32-S3 has ADC only on GPIO1–20 and touch only on GPIO1–14 (ESP32-S3 datasheet v2.2). Seeed’s wiki pin table lists them as “Analog” with “TOUCH12/TOUCH13”, and some pages even call them “A11/A12”, but the core defines no A11/A12, and Seeed’s own multiplexing page warns about it. Use them as digital pins only.
There are so many sensors that we can read with the ADC pins, which include: potentiometers, LDRs, NTC thermistors, soil moisture sensors, joysticks, battery dividers, and much more.
Learn more in our ESP32 ADC Tutorial.
Also Read
XIAO ESP32S3 PWM Pins
All 11 GPIO pins on the XIAO ESP32S3 can output PWM. The ESP32-S3’s LEDC peripheral has 8 channels routed to any pin through the GPIO matrix, plus two MCPWM units for motor control. In the Arduino core, analogWrite(D3, 128) just works.
XIAO ESP32S3 PWM Pins: D0–D10 (8 LEDC channels at a time).
For more control, use the LEDC API: ledcAttach(D3, 5000, 10) sets 5kHz with 10-bit resolution, and ledcWrite(D3, 512) sets 50% duty. Prefer D0–D5 for PWM: D6 glitches at reset, and on the Sense, D8–D10 are shared with the SD card (a common MCPWM vs SD conflict in the Seeed forum).
There are so many things that we can control with PWM, which include: LED dimming, RGB LEDs, DC motor speed (with a driver), servo motors, buzzers, and much more.
Learn more in our ESP32 PWM Tutorial.
Also Read
XIAO ESP32S3 UART Pins
The XIAO ESP32S3 has 3 hardware UARTs, plus the USB CDC port. Serial is the USB-C port, Serial0 is UART0 on D7 (RX) and D6 (TX), and Serial1 / Serial2 default to pins that aren’t usable on this board, so you must pass the pins. The UART pins are highlighted in blue in the pinout diagram.

XIAO ESP32S3 Default UART Pins: D7 (RX) and D6 (TX) for Serial0.
| Port | Arduino Object | Default Pins | On the XIAO | Note |
|---|---|---|---|---|
| USB CDC | Serial | USB-C | USB-C | USB CDC On Boot is Enabled by default |
| UART0 | Serial0 | RX GPIO44, TX GPIO43 | D7 / D6 | Boot ROM messages come out on D6 |
| UART1 | Serial1 | RX GPIO15, TX GPIO16 | Not on the edge (Sense camera Y2/Y5) | Pass the pins: Serial1.begin(baud, SERIAL_8N1, D7, D6) |
| UART2 | Serial2 | GPIO19 / GPIO20 | The USB pins! | Never use the defaults; pass free pins |
This is the #1 question on the forums (Arduino forum): Serial1.begin(9600) alone talks to GPIO15/16, not to the TX/RX pads. Pass the pins, or simply use Serial0:
|
1 2 3 4 5 6 7 8 9 |
void setup() { Serial.begin(115200); // USB CDC (Serial Monitor) Serial1.begin(9600, SERIAL_8N1, D7, D6); // RX = D7 (GPIO44), TX = D6 (GPIO43) } void loop() { while (Serial1.available()) Serial.write(Serial1.read()); // module -> PC while (Serial.available()) Serial1.write(Serial.read()); // PC -> module } |
Note: Don’t start a battery-powered sketch with while (!Serial);: it waits for a USB host forever, so the board looks dead on battery. Use a timeout: while (!Serial && millis() < 3000);. And if a OneWire sensor misbehaves on D6/D7, move it to D0–D5 (arduino-esp32 #8324).
There are so many modules that we can interface with the UART pins, which include: GPS modules, GSM/LTE modules, serial servos, fingerprint sensors, RS485 transceivers, other microcontrollers, and much more.
Learn more in our ESP32 Serial Print Tutorial.
Also Read
XIAO ESP32S3 I2C Pins
The XIAO ESP32S3 has 2 I2C controllers. The default Arduino Wire pins are D4 (SDA) and D5 (SCL), the same place as on every XIAO board, so Grove shields and XIAO expansion boards work out of the box. The I2C pins are highlighted in yellow in the pinout diagram.

XIAO ESP32S3 Default I2C Pins: D4 (SDA) and D5 (SCL).
| Signal | Pin | GPIO | Note |
|---|---|---|---|
| SDA | D4 | GPIO5 | Also A4 / T5 |
| SCL | D5 | GPIO6 | Also A5 / T6 |
The second controller ( Wire1) can go to any two free pins: Wire1.begin(D0, D1). On the Sense, the camera’s SCCB bus (GPIO39/40) is driven by the camera driver, not by Wire, so keep your own sensors on D4/D5.
Note: There are no I2C pull-up resistors on the XIAO ESP32S3, so add 4.7kΩ pull-ups to 3.3v (not 5v) unless your module already has them.
There are so many modules and sensors that we can interface with the I2C bus, which include: OLED displays (SSD1306), RTC modules (DS3231), IMUs (MPU6050), BME280 sensors, port expanders, and much more.
Learn more in our ESP32 I2C Tutorial.
Also Read
XIAO ESP32S3 SPI Pins
The XIAO ESP32S3 has 2 general-purpose SPI ports (SPI2 and SPI3). The default Arduino SPI pins are D8 (SCK), D9 (MISO) and D10 (MOSI). There’s no CS pin on the silkscreen, and the core’s default SS is GPIO44, which is D7, the RX pin. The SPI pins are highlighted in pink in the pinout diagram.

XIAO ESP32S3 Default SPI Pins: D8 (SCK), D9 (MISO), and D10 (MOSI), with CS on a pin you choose.
| Signal | Pin | GPIO | Note |
|---|---|---|---|
| SCK | D8 | GPIO7 | Sense: microSD SCK |
| MISO | D9 | GPIO8 | Sense: microSD MISO |
| MOSI | D10 | GPIO9 | Sense: microSD MOSI |
| SS (core default) | D7 | GPIO44 | Clashes with RX: choose another CS |
|
1 2 3 4 5 6 7 8 9 10 11 |
#include <SPI.h> const int CS_PIN = D3; // your own CS, not the default SS (= D7 / RX) void setup() { pinMode(CS_PIN, OUTPUT); digitalWrite(CS_PIN, HIGH); SPI.begin(SCK, MISO, MOSI, CS_PIN); // D8, D9, D10, D3 } void loop() {} |
Note: Libraries that fall back to SS (Ethernet W5500, some displays and radios) grab D7 and kill UART0 RX. Users fixed “SPI device not found” by changing the CS line (Seeed forum). Always pass your CS pin to the library.
There are so many modules that we can interface with the SPI bus, which include: TFT displays (ST7789, GC9A01), SD card modules, LoRa radios (SX1262), W5500 Ethernet, MAX7219 LED drivers, and much more.
XIAO ESP32S3 USB and JTAG Pins
The XIAO ESP32S3’s USB-C connector is wired straight to the ESP32-S3’s native USB on GPIO20 (D+) and GPIO19 (D−). There’s no USB-UART chip: the same port does uploads, the Serial port and JTAG debugging. Unlike the ESP32-C3, the S3 also has full-speed USB OTG, so the board can act as a USB keyboard, mouse, MIDI device or mass-storage drive (TinyUSB).

| Signal | GPIO / Pad | On the XIAO ESP32S3 |
|---|---|---|
| USB D+ / D− | GPIO20 / GPIO19 | USB-C, plus two test pads on the back |
| JTAG MTCK | GPIO39 | Back pad (Sense: camera SCL) |
| JTAG MTDO | GPIO40 | Back pad (Sense: camera SDA) |
| JTAG MTDI | GPIO41 | Back pad (Sense: microphone DATA / D12) |
| JTAG MTMS | GPIO42 | Back pad (Sense: microphone CLK / D11) |
| EN | CHIP_PU | Back pad: reset input (10kΩ pull-up) |
You rarely need the JTAG pads: OpenOCD debugging works over the USB cable through the built-in USB Serial/JTAG controller. The chip only switches JTAG to the pads after an eFuse change (EFUSE_DIS_USB_JTAG, or STRAP_JTAG_SEL plus the D2 strap), which is permanent, so most users never touch them. On the plain S3 you can use the four pads as extra GPIOs.
Note: Never reconfigure GPIO19/GPIO20 (as I2C, Serial2’s defaults, or plain GPIO): the USB port disappears from your PC until you recover the board with the BOOT button (arduino-esp32 #11283).
XIAO ESP32S3 Strapping and Boot Pins
The ESP32-S3 reads its strapping pins at reset. On the XIAO ESP32S3, only GPIO0 (the BOOT button) and D2 (GPIO3) are reachable; GPIO45 and GPIO46 aren’t brought out. In practice, D2 is a normal GPIO: the chip only reads it if the STRAP_JTAG_SEL eFuse has been burned.
| Pin | GPIO | Strapping Role | On the Board |
|---|---|---|---|
| B button | GPIO0 | HIGH = boot from flash, LOW = download mode | 10kΩ pull-up, BOOT button to GND |
| D2 | GPIO3 | JTAG source (only with the eFuse burned) | Free edge pin |
| R button / EN pad | CHIP_PU | Reset (LOW = chip off) | 10kΩ pull-up + 1µF, RESET button to GND |
XIAO ESP32S3 Bootloader Recovery Steps
If your XIAO ESP32S3 isn’t detected anymore, or the upload fails with “port not found” (a crashing sketch, deep sleep, TinyUSB code, or a sketch that touched GPIO19/20), use these steps:
- Press RESET once with the board connected. Many hangs end here.
- Force download mode: hold B (BOOT), plug in the USB cable (or press and release R), then release B. The board waits in the ROM bootloader with a new port.
- Upload a working sketch, then press RESET to run it.
Seeed also offers a UF2 bootloader for the XIAO ESP32S3 (on the wiki): after flashing it, press RESET and then BOOT quickly, and the board shows up as a USB drive you drag .uf2 files onto. Handy for batch flashing, but the normal Arduino upload doesn’t need it.
Note: The ROM download mode is inside the ESP32-S3 itself, so it can’t be erased: whatever your sketch did, BOOT + RESET always brings the board back.
XIAO ESP32S3 Sense Pinout
The XIAO ESP32S3 Sense is the same XIAO ESP32S3 board plus a plug-in expansion board on the B2B connector. The expansion board uses 14 GPIOs for the camera, 2 for the PDM microphone, and 4 for the microSD slot (D8–D10 + GPIO21). The 14 edge pins stay the same, and the Sense adds two pads, D11 (GPIO42) and D12 (GPIO41).
XIAO ESP32S3 Sense Camera Pins
The camera (OV2640 as standard; Seeed also sells OV3660 and OV5640 modules for the same 24-pin FPC) uses the ESP32-S3’s 8-bit DVP camera interface. Here is the pin map for camera_config_t in the esp32-camera driver:
| Camera Signal | GPIO | Camera Signal | GPIO |
|---|---|---|---|
| XCLK | 10 | Y2 (D0) | 15 |
| PCLK | 13 | Y3 (D1) | 17 |
| VSYNC | 38 | Y4 (D2) | 18 |
| HREF | 47 | Y5 (D3) | 16 |
| SIOD (SCCB SDA) | 40 | Y6 (D4) | 14 |
| SIOC (SCCB SCL) | 39 | Y7 (D5) | 12 |
| PWDN | −1 (not wired) | Y8 (D6) | 11 |
| RESET | −1 (not wired) | Y9 (D7) | 48 |
Note: “Camera init failed” almost always means PSRAM is disabled: in the Arduino IDE set Tools > PSRAM > OPI PSRAM (Edge Impulse forum). Also set PWDN and RESET to −1, and make sure the Sense board is pressed fully onto the connector (it clicks).
XIAO ESP32S3 Sense Microphone and D11 / D12 Pins
The PDM microphone uses GPIO42 (CLK) and GPIO41 (DATA) through jumpers J1 and J2 on the Sense board. The same two GPIOs are the D11 and D12 pads. To use D11/D12 as GPIOs, cut J1 and J2 (you lose the microphone), as Seeed’s pin multiplexing wiki explains. They’re digital only (no ADC, no touch), and in the I2S library the microphone is i2s.setPinsPdmRx(42, 41).
XIAO ESP32S3 Sense microSD Card Pins
The microSD slot is wired in SPI mode: SCK D8 (GPIO7), MISO D9 (GPIO8), MOSI D10 (GPIO9) and CS GPIO21 (the user LED pin). Older Seeed drawings showed CS on D2; the current expansion board has both options, with the GPIO21 resistor fitted and the D2 one not (Seeed forum). Seeed supports cards up to 32GB, formatted FAT32.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#include <SPI.h> #include <SD.h> void setup() { Serial.begin(115200); if (!SD.begin(21)) { // Sense microSD CS = GPIO21 (SPI on D8, D9, D10) Serial.println("SD mount failed"); return; } File f = SD.open("/log.txt", FILE_APPEND); f.println("Hello from the XIAO ESP32S3 Sense"); f.close(); Serial.printf("Card: %llu MB\n", SD.cardSize() / (1024 * 1024)); } void loop() {} |
Use SD.h, not SD_MMC: the slot’s DAT1/DAT2 lines aren’t connected, so SD_MMC (4-bit or 1-bit mode) fails (Seeed forum). See Seeed’s Sense file system wiki for more examples.
Note: The microSD slot sits on D8–D10, so it shares the SPI bus with anything you wire to those pins. Another SPI device works on the same bus with its own CS. To use D8–D10 for something else (PWM, a motor driver, I2S), cut J3 on the Sense board (it disconnects the SD pull-ups) and leave the card out.
XIAO ESP32S3 Sense Jumpers and B2B Connector
| Jumper | Connects | Cut It To |
|---|---|---|
| J1 | GPIO42 to the microphone CLK | Use the D11 pad as a GPIO (no microphone) |
| J2 | GPIO41 to the microphone DATA | Use the D12 pad as a GPIO (no microphone) |
| J3 | The microSD pull-ups (MISO, MOSI, CS) | Free D8–D10 for other uses (no SD card) |
The B2B connector carries VIN (3.7v–5v, after the power path) and 3.3v to the Sense board, rated 0.3A per pin (two pins each). To remove the Sense board, slide it off parallel to the connector; pulling it straight up or rocking it can bend or tear the connector off, Seeed warns.
Note: The camera makes the Sense hot: users report boards too hot to touch while streaming (Seeed forum), and the camera stream draws about 140mA on average (≈347mA peaks) at 5v. Seeed now ships heat sinks with the camera models and measured 63.6 °C dropping to 53.5 °C with the dual heat sinks. Stream at lower frame rates if you can, and give the board some airflow.
XIAO ESP32S3 On-Board Features
Besides the edge pins, the XIAO ESP32S3 has two buttons, two LEDs, a U.FL antenna connector, the B2B connector and pads on the back. Here’s what each one does.
| Part | Pin / Connection | What It Does |
|---|---|---|
| B (BOOT button) | GPIO0 to GND | Hold at reset for download mode; readable as a button in your sketch |
| R (RESET button) | CHIP_PU (EN) to GND | Resets the ESP32-S3 |
| User LED (yellow) | GPIO21, active LOW | LED_BUILTIN; also the Sense microSD CS |
| Charge LED (red) | SGM40567 NCHG pin | Blinks while charging, off when full; not software-controllable |
| U.FL connector | ESP32-S3 RF pin | Plug in the supplied antenna before using Wi-Fi or BLE |
| B2B connector (J3) | Camera, mic, SD GPIOs + power | Takes the Sense board (or other Seeed add-ons) |
| BAT+ / BAT− pads | Charger and power path | 3.7v Li-ion/LiPo input |
| MTDO / MTDI / MTCK / MTMS pads | GPIO40 / 41 / 39 / 42 | External JTAG (after an eFuse change) or extra GPIOs |
| EN, GND, D+ / D− pads | CHIP_PU, ground, GPIO20 / GPIO19 | External reset; USB test pads |
Once the board is running, the BOOT button is a free user button: pinMode(0, INPUT_PULLUP) and read it LOW when pressed.
Note: Weak or no Wi-Fi is almost always a missing or loose antenna: the XIAO ESP32S3 has no PCB antenna at all. Click the antenna’s U.FL plug straight down onto the connector until it snaps, and don’t pull on the thin cable.
Getting Started With XIAO ESP32S3
You can program the XIAO ESP32S3 with the Arduino IDE, MicroPython, CircuitPython, PlatformIO, ESPHome or Espressif’s ESP-IDF, all over the USB-C cable. No external programmer is needed.
- Arduino IDE: in the Boards Manager, install “esp32” by Espressif Systems, then select XIAO_ESP32S3. For the Sense camera (or any sketch that uses PSRAM), set Tools > PSRAM > OPI PSRAM.
- MicroPython / CircuitPython: flash the ESP32-S3 build and use GPIO numbers: Pin(1) is D0.
- PlatformIO: board ID seeed_xiao_esp32s3, with the Arduino or ESP-IDF framework (enable PSRAM in the build flags for the camera).
- ESP-IDF / ESPHome: target esp32s3, octal PSRAM, GPIO numbers everywhere.
| Arduino Setting / Name | Default | Note |
|---|---|---|
| Tools > USB Mode | USB-OTG (TinyUSB) | Switch to Hardware CDC and JTAG for OpenOCD debugging |
| Tools > USB CDC On Boot | Enabled | Serial = USB-C |
| Tools > PSRAM | Disabled | Set OPI PSRAM for the camera and big buffers |
| Flash size / partitions | 8MB, default 8MB scheme | Pick a larger app partition for camera or ML sketches |
Wire | D4 (SDA), D5 (SCL) | I2C0 |
SPI | D8 / D9 / D10, SS = D7 | Choose your own CS |
LED_BUILTIN | GPIO21 | Active LOW |
Since the XIAO ESP32S3 runs the ESP32 Arduino core, almost every ESP32 tutorial applies to it: just use the XIAO pin names, and remember it has Bluetooth LE only (no Classic Bluetooth serial). The PSRAM and the dual cores make it a good fit for camera streaming, audio, and running small machine-learning models on the Sense.
Learn more in our ESP32 WiFi Tutorial.
Also Read
XIAO ESP32S3 Common Problems & Fixes
Why doesn’t Serial1 work on the TX/RX pins? Serial1 defaults to GPIO15/16, which aren’t on the edge. Use Serial1.begin(baud, SERIAL_8N1, D7, D6), or Serial0.
Why did my SPI device stop RX, or never respond? The core’s default SS is D7 (RX). Pass your own CS pin to SPI.begin() and to the library.
Why does the camera fail with “Camera init failed”? Enable OPI PSRAM, set PWDN/RESET to −1, and press the Sense board fully onto the connector.
Why doesn’t the SD card mount on the Sense? Use SD.begin(21) (CS = GPIO21), not SD_MMC, with a FAT32 card up to 32GB. Don’t use the user LED at the same time.
Why does my motor driver, TFT or PWM on D8–D10 misbehave on the Sense? The microSD slot shares those pins. Share the bus with separate CS pins, or cut J3 and remove the card.
Why did the USB port disappear? Something reconfigured GPIO19/20 (Serial2 defaults, I2C on those pins), or the sketch crashed or sleeps. Recover with BOOT + RESET.
Why is the Sense so hot? The camera streaming draws up to ~347mA. Fit the heat sink, lower the frame rate, and give it airflow.
How do I read the battery level? There’s no sense pin on the S3 or Sense: add a 2x 200kΩ divider from BAT+ to A0 and multiply by 2.
Why is the Wi-Fi range so poor? Plug in the U.FL antenna; there is no PCB antenna.
Why is deep sleep 3mA instead of 14µA? That’s the Sense with its expansion board attached. Remove the camera board for low-power builds.
XIAO ESP32S3 vs Sense vs Plus
Seeed sells three boards under the XIAO ESP32S3 name. The XIAO ESP32S3 and the Sense are the same board (the Sense adds the camera board), while the XIAO ESP32S3 Plus is a different PCB.
| Feature | XIAO ESP32S3 | XIAO ESP32S3 Sense | XIAO ESP32S3 Plus |
|---|---|---|---|
| SoC | ESP32-S3R8 | ESP32-S3R8 | ESP32-S3R8 |
| Flash / PSRAM | 8MB / 8MB | 8MB / 8MB | 16MB / 8MB |
| Edge pins | D0–D10 (14 pins) | D0–D10 (14 pins) | D0–D10, same positions |
| Extra pins | JTAG pads on the back | D11/D12 pads on the camera board | D11–D19 pads on the back |
| Camera / mic / microSD | No | Yes (plug-in board) | No |
| B2B connector | Yes (unused) | Camera board | Different: fits the Wio-SX1262 LoRa board, not the camera |
| Battery voltage pin | No | No | Yes (ADC_BAT on GPIO10) |
| Deep sleep (Seeed) | 14µA | 3mA (with the camera board) | 33.5µA |
Pick the XIAO ESP32S3 for small, battery-powered projects, the Sense for camera, audio or vision projects, and the Plus when you need more pins, 16MB flash or the LoRa add-on. Note that the Plus’s extra pads are not on our diagrams.
XIAO ESP32S3 vs Other XIAO ESP32 Boards and the Arduino Nano ESP32
| Feature | XIAO ESP32S3 | XIAO ESP32C3 | XIAO ESP32C6 | Arduino Nano ESP32 |
|---|---|---|---|---|
| SoC | ESP32-S3R8, 2x LX7 240MHz | ESP32-C3, RISC-V 160MHz | ESP32-C6, RISC-V 160MHz + LP core | ESP32-S3R8 (u-blox NORA-W106) |
| PSRAM / flash | 8MB / 8MB | – / 4MB | – / 4MB | 8MB / 16MB |
| Wireless | Wi-Fi 4, BLE 5 | Wi-Fi 4, BLE 5 | Wi-Fi 6, BLE 5, Zigbee/Thread | Wi-Fi 4, BLE 5 |
| Antenna | U.FL only | U.FL only | Ceramic + U.FL (RF switch) | PCB antenna |
| GPIO / analog | 11 / 9 (all ADC1) | 11 / 3 usable | 11 / 3 (+3 on back pads) | 24 / 8 |
| USB | OTG + Serial/JTAG | Serial/JTAG | Serial/JTAG | OTG + Serial/JTAG |
| Battery charger | Yes | Yes | Yes | No (VIN 6v–21v instead) |
| Size | 21 × 17.8mm | 21 × 17.8mm | 21 × 17.8mm | 45 × 18mm (Nano) |
The three XIAO boards share the same footprint and D0–D10 positions, so you can swap them on a carrier PCB. The XIAO ESP32S3 is the one to pick for PSRAM-hungry work (camera, audio, displays, USB devices); the C3 for the lowest cost; the C6 for Wi-Fi 6 and Matter/Thread. The Arduino Nano ESP32 has the same ESP32-S3 with more pins, a PCB antenna and a 6v–21v VIN, but no battery charger.
XIAO ESP32S3 Pin Details
Here is every XIAO ESP32S3 pin in physical order, with its GPIO, main functions, all its IO MUX and analog functions, and a short description. With the USB-C connector at the top, pin 1 (D0) is the top-left pad, pins 1–7 run down the left edge, and pins 8–14 run up the right edge. The back pads and the Sense pads come last.
Click to expand the full pin table (23 pins)
| Pin | Label | GPIO | Main Functions | All Alternate Functions | 5v Tolerant | Description |
|---|---|---|---|---|---|---|
| 1 | D0 / A0 | GPIO1 | ADC1_CH0, T1 | RTC_GPIO1 | No (3.3v) | Analog and touch input A0; a safe general pin that can wake the chip from deep sleep. |
| 2 | D1 / A1 | GPIO2 | ADC1_CH1, T2 | RTC_GPIO2 | No (3.3v) | Analog and touch input A1; a safe general pin. |
| 3 | D2 / A2 | GPIO3 | ADC1_CH2, T3 | RTC_GPIO3, JTAG-source strap | No (3.3v) | Analog and touch input A2; a strapping pin only if the JTAG eFuse is burned. |
| 4 | D3 / A3 | GPIO4 | ADC1_CH3, T4 | RTC_GPIO4 | No (3.3v) | Analog and touch input A3; a good CS pin for SPI devices. |
| 5 | D4 / A4 / SDA | GPIO5 | I2C SDA (Wire), ADC1_CH4, T5 | RTC_GPIO5 | No (3.3v) | The default I2C data pin. |
| 6 | D5 / A5 / SCL | GPIO6 | I2C SCL (Wire), ADC1_CH5, T6 | RTC_GPIO6 | No (3.3v) | The default I2C clock pin. |
| 7 | D6 / TX | GPIO43 | UART0 TX (Serial0) | U0TXD, CLK_OUT1 | No (3.3v) | UART0 transmit; boot messages toggle it at every reset. No analog, can’t wake from deep sleep. |
| 8 | D7 / RX | GPIO44 | UART0 RX (Serial0), SPI SS (default) | U0RXD, CLK_OUT2 | No (3.3v) | UART0 receive, and the core’s default SPI SS, so pick another CS pin. |
| 9 | D8 / A8 / SCK | GPIO7 | SPI SCK, ADC1_CH6, T7 | RTC_GPIO7 | No (3.3v) | The SPI clock; on the Sense also the microSD SCK. |
| 10 | D9 / A9 / MISO | GPIO8 | SPI MISO, ADC1_CH7, T8 | RTC_GPIO8, SUBSPICS1 | No (3.3v) | The SPI data-in pin; on the Sense also the microSD MISO. |
| 11 | D10 / A10 / MOSI | GPIO9 | SPI MOSI, ADC1_CH8, T9 | RTC_GPIO9, FSPIHD, SUBSPIHD | No (3.3v) | The SPI data-out pin; on the Sense also the microSD MOSI. |
| 12 | 3V3 | – | 3.3v output | – | – | SGM6029 buck output, 700mA (Seeed wiki) / Imax 600mA (schematic note). |
| 13 | GND | – | Ground | – | – | Ground. |
| 14 | 5V | – | USB VBUS | – | – | 5v from the USB-C connector, 0v on battery; an input only through a diode. |
| back | BAT+ / BAT− | – | Battery | – | – | 3.7v Li-ion/LiPo cell (BAT− nearer USB-C), charged at 100mA (wiki) / ≈110mA (schematic). |
| back | MTCK | GPIO39 | JTAG TCK | CLK_OUT3, SUBSPICS1 | No (3.3v) | JTAG clock pad; on the Sense the camera SCCB SCL. |
| back | MTDO | GPIO40 | JTAG TDO | CLK_OUT2 | No (3.3v) | JTAG data-out pad; on the Sense the camera SCCB SDA. |
| back | MTDI | GPIO41 | JTAG TDI | CLK_OUT1 | No (3.3v) | JTAG data-in pad; on the Sense the microphone DATA (D12). |
| back | MTMS | GPIO42 | JTAG TMS | – | No (3.3v) | JTAG mode-select pad; on the Sense the microphone CLK (D11). |
| back | D+ / D− | GPIO20 / GPIO19 | USB | USB_D+, USB_D− | No (3.3v) | Native USB test pads; never reuse these GPIOs. |
| back | EN | CHIP_PU | Reset | – | – | Pull LOW to reset the chip, like the R button. |
| Sense | D11 | GPIO42 | Digital GPIO | MTMS | No (3.3v) | Free after cutting J1 (no microphone); no ADC or touch. |
| Sense | D12 | GPIO41 | Digital GPIO | MTDI | No (3.3v) | Free after cutting J2 (no microphone); no ADC or touch. |
Wrap Up
To conclude this guide article, the XIAO ESP32S3 is a very solid board for small connected projects that need real memory. It gives you a dual-core 240MHz ESP32-S3 with 8MB of PSRAM and 8MB of flash, Wi-Fi, Bluetooth LE, native USB and a battery charger on a board the size of your thumbnail, and the Sense version adds a camera, a microphone, and a microSD slot. Just remember the board-level gotchas: every pin is 3.3v only, the default SPI SS is the RX pin, Serial1 needs its pins, PSRAM is off by default, GPIO19/20 belong to USB, and the Sense SD card shares D8–D10.
I hope you’ve found this guide helpful in deciding which pins to use for your project. For more boards, check out the Pinouts, Datasheets & Schematic Diagrams Library. Follow this ESP32 Series of Tutorials to learn more about programming ESP32 boards with the Arduino core.
If you’re just getting started with ESP32, you need to check out the ESP32 Getting Started Ultimate Guide below.
The complete beginner’s guide to ESP32 programming with the Arduino IDE: installing the core, your first project, and the ESP32 tutorials series step by step.







