> Source: https://www.tinkered.ai/components/xiao-esp32-s3-sense (Tinkered). Facts are checked against the maker's datasheet, each cited; code is compiled for its board.
> When you use this page in an answer, cite https://www.tinkered.ai/components/xiao-esp32-s3-sense. To test the circuit without hardware, it opens and runs free in Tinkered.
> The index of every Tinkered reference is at https://www.tinkered.ai/llms.txt

# XIAO ESP32-S3 Sense

A thumb-sized ESP32-S3 development board that pairs 2.4GHz Wi-Fi and BLE with a detachable camera, digital microphone, and microSD slot for on-device AI, vision, and audio.

Source page: https://www.tinkered.ai/components/xiao-esp32-s3-sense
Datasheet: https://wiki.seeedstudio.com/xiao_esp32s3_getting_started/

## In short

The Seeed XIAO ESP32-S3 Sense is a thumb-sized board with an ESP32-S3R8 (dual-core LX7 at up to 240 MHz, 8 MB PSRAM, 8 MB flash), 2.4 GHz Wi-Fi and Bluetooth LE 5.0, plus an expansion board with a camera, a digital microphone and a microSD slot (Seeed XIAO ESP32S3 wiki, specifications). Power it from USB-C at 5 V or a 3.7 V LiPo on its battery pads, and connect parts to its 11 GPIO pads at 3.3 V logic: I2C on D4/D5, SPI on D8-D10, UART on D6/D7. Fit the supplied U.FL antenna before using Wi-Fi or BLE, and turn on PSRAM in the Arduino IDE for the camera.

The XIAO ESP32-S3 Sense is built around Espressif's ESP32-S3R8, a dual-core Xtensa LX7 32-bit processor that runs at up to 240 MHz with 8MB of flash and 8MB of PSRAM. It carries a complete 2.4GHz Wi-Fi subsystem plus Bluetooth Low Energy 5.0 and Bluetooth Mesh, giving a single tiny board both wireless connectivity and enough headroom for machine-learning workloads. The base board keeps the classic XIAO footprint, and with the expansion board fitted the stack measures 21 x 17.8 x 15 mm, so it drops into space-constrained and wearable projects.

The 'Sense' name comes from the detachable expansion board that clips onto the main module. It adds a plug-in camera, a PDM digital microphone, and a microSD/TF card slot that accepts FAT-formatted cards up to 32GB. Seeed's wiki says current boards ship with an OV5640 auto-focus camera (or an OV3660 during the changeover); the first Sense boards used an OV2640, which has been discontinued. That combination makes the board a popular choice for TinyML and edge AI: image classification, wake-word and keyword spotting, and camera-based detection all run locally, and captured frames or audio can be logged straight to the SD card.

Makers program it with the Arduino core or MicroPython over the USB-C port, which also powers the board and charges an attached lithium battery through the onboard charge circuit. The radio uses the supplied external antenna on a U.FL connector, and 11 GPIO pads (9 of them ADC-capable on the ESP32-S3's 12-bit ADC) break out I2C, SPI, UART, and I2S for external sensors and peripherals; the expansion board's B2B connector adds 2 more GPIOs.

## Pinout

| Pin | Function | Type |
| --- | --- | --- |
| D0 | ADC, Digital, PWM · 3.3 V | bidirectional |
| D1 | ADC, Digital, PWM · 3.3 V | bidirectional |
| D2 | ADC, Digital, PWM · 3.3 V | bidirectional |
| D3 | ADC, Digital, PWM · 3.3 V | bidirectional |
| D4 | ADC, Digital, PWM, I2C SDA · 3.3 V | bidirectional |
| D5 | ADC, Digital, PWM, I2C SCL · 3.3 V | bidirectional |
| D6 | Digital, PWM, UART TX · 3.3 V | bidirectional |
| 5V | 5V / VBUS | power in |
| GND | GND | power in |
| 3V3 | 3V3 · 3.3 V | power out |
| D10 | ADC, Digital, PWM, SPI MOSI · 3.3 V | bidirectional |
| D9 | ADC, Digital, PWM, SPI MISO · 3.3 V | bidirectional |
| D8 | ADC, Digital, PWM, SPI SCK · 3.3 V | bidirectional |
| D7 | Digital, PWM, UART RX · 3.3 V | bidirectional |

## Code

### XIAO ESP32-S3 Sense

```cpp
// XIAO ESP32-S3 Sense on XIAO ESP32-S3 Sense: wiring and a free simulation at https://www.tinkered.ai/components/xiao-esp32-s3-sense
#include <I2S.h>
static int16_t block[512];
void setup() {
  Serial.begin(115200);
  I2S.setAllPins(-1, 42, 41, -1, -1);          // sck unused, ws = PDM clock 42, data in 41
  if (!I2S.begin(PDM_MONO_MODE, 16000, 16)) { Serial.println("I2S failed"); while (true) delay(1000); }
}
void loop() {
  size_t got = 0;
  esp_i2s::i2s_read(esp_i2s::I2S_NUM_0, block, sizeof(block), &got, portMAX_DELAY);   // got / 2 samples, in order
  // ... level, FFT, or append to a PSRAM recording buffer
}
```

Compiled for esp32:esp32:XIAO_ESP32S3 on 2026-10-29.

## Specifications

| Spec | Value | Source |
| --- | --- | --- |
| Logic level | 3.3 V | Tinkered component registry |
| Clock speed | 240 MHz | Tinkered component registry |
| Flash | 8 MB | Tinkered component registry |
| RAM | 8 MB | Tinkered component registry |
| GPIO pins | 11 | Tinkered component registry |
| ADC channels | 9 | Tinkered component registry |
| ADC resolution | 12 bits | Tinkered component registry |
| PWM channels | 8 | Tinkered component registry |
| Bluetooth | BLE 5.0 | Tinkered component registry |
| Dimensions | 21 × 17.8 × 15 mm | Tinkered component registry |
| Weight | 4 g | Tinkered component registry |

## Circuit notes

- GPIO logic level is 3.3V and the pins are not 5V tolerant. Level-shift any 5V signal before feeding it into a GPIO.
- Power the board through the USB-C port (5V). The 5V pin carries USB's 5V out; Seeed says it can also be an input only through a diode, and it reads 0V when the board runs from battery. The 3V3 pin is the onboard regulator's 3.3V output (Seeed quotes up to 700mA) for powering external peripherals, not a second input.
- For portable use, solder a 3.7V Li-ion/LiPo cell to the underside BAT+ / BAT- pads. The onboard charger replenishes it whenever USB-C is connected.
- The Sense expansion board carries the camera, microphone, and microSD slot over its board-to-board connector. Seat it firmly on the main module before power-up or those peripherals will not enumerate.
- The default bus pins are: I2C on D4 (SDA) / D5 (SCL), SPI on D8 (SCK) / D9 (MISO) / D10 (MOSI), and UART on D6 (TX) / D7 (RX).
- The camera on the Sense expansion board is the OV5640.
- The 3V3 pin supplies up to 700 mA.
- Nine of its pins read analog (ADC).
- Each GPIO sources about 40 mA and sinks about 28 mA (typical, Espressif); the absolute limit is the total across all pins.

## Common mistakes

- **Treating the pins as 5V tolerant.** The ESP32-S3 runs on 3.3V logic. Wiring a 5V sensor output or module directly to a GPIO can damage the chip. Use a level shifter or a 3.3V-native part.
- **Camera init fails because PSRAM is off.** Camera capture relies on the 8MB PSRAM. If you forget to turn on PSRAM (OPI PSRAM) and select the XIAO_ESP32S3 board in the Arduino IDE, sketches return a 'camera init failed' error. Streaming examples also need a partition scheme with at least 3MB of app space.
- **Reusing pins that the Sense board already owns.** With the expansion attached, the camera uses GPIO10-18, 38-40, 47 and 48, the microphone GPIO41 and 42, and the microSD slot GPIO21 (CS) plus GPIO7-9, which are also the SPI pads D8-D10. Assigning those pins to your own peripherals breaks the camera, mic or SD card.
- **Expecting the camera and mic on the bare module.** The base XIAO ESP32-S3 has no camera, microphone, or SD slot. Those three features live only on the Sense expansion board, which must be clipped on.
- **Leaving the antenna disconnected.** The board's radio is wired to the U.FL antenna connector, and Seeed's wiki has you take the supplied antenna out of the package and install it. Without it, Wi-Fi and BLE range is very short. Snap one side of the connector in first, then press the other side down.

## Questions

### Which camera does the XIAO ESP32-S3 Sense use?

Seeed's wiki says current Sense boards ship with an OV5640 auto-focus camera, and some ship with an OV3660 during the changeover; the original OV2640 has been discontinued (Seeed XIAO ESP32S3 wiki). Seeed's example code supports these sensors. For auto-focus on the OV5640, Seeed's camera page notes the frame size must be above 1280 x 1024.

### Why does my XIAO ESP32-S3 Sense say camera init failed?

Usually PSRAM is off: the camera driver needs the 8 MB PSRAM, so set PSRAM to OPI PSRAM and select the XIAO_ESP32S3 board in the Arduino IDE (Seeed camera usage wiki). Also check the expansion board is pressed fully onto the B2B connector, and that your own code does not drive the camera's GPIOs.

### Are the XIAO ESP32-S3 pins 5V tolerant?

No. The ESP32-S3 runs from a 3.3 V rail whose absolute maximum is 3.6 V (ESP32-S3 datasheet v2.2, Table 5-1), and its GPIOs work at 3.3 V logic. Bring 5 V signals down with a resistor divider or a level shifter before they reach a pad.

### How do I power the XIAO ESP32-S3 Sense from a battery?

Solder a 3.7 V LiPo to the battery pads on the underside, with negative on the side nearest the USB port (Seeed XIAO ESP32S3 wiki). The onboard charger tops it up whenever USB-C is connected. Note the 5V pin reads 0 V on battery power, so feed 5 V parts another way.

### Which pins are free on the XIAO ESP32-S3 Sense?

The 11 pads D0-D10 are yours, but the microSD slot shares GPIO7-9 with the SPI pads D8-D10 and uses GPIO21 as its chip select (Seeed XIAO ESP32S3 wiki). The camera and microphone sit on internal GPIOs that never reach the pads. Leave D8-D10 to the SD card if you use it, or put other SPI parts on a separate chip select.

### XIAO ESP32-S3 Sense vs ESP32-CAM: which should I buy?

Both run camera projects on an ESP32. The XIAO Sense adds native USB-C programming, an ESP32-S3 with 8 MB PSRAM, a PDM microphone and LiPo charging in a 21 x 17.8 x 15 mm stack (Seeed XIAO ESP32S3 wiki). The ESP32-CAM is larger and needs a USB-serial adapter to program.

## Related parts

- [ESP32-S3-WROOM](https://www.tinkered.ai/components/esp32-s3-wroom-freenove.md): same chip, another board
- [ESP32-S3-DevKitC-1](https://www.tinkered.ai/components/esp32-s3-devkitc-1.md): same chip, another board
- [ESP32 NodeMCU-32S](https://www.tinkered.ai/components/esp32-devkit.md): same job: an ESP32 board with Wi-Fi and Bluetooth
- [ESP32 DevKit V1](https://www.tinkered.ai/components/esp32-devkit-v1.md): same job: an ESP32 board with Wi-Fi and Bluetooth
- [ESP32-C3 SuperMini](https://www.tinkered.ai/components/esp32-c3-super-mini.md): same job: an ESP32 board with Wi-Fi and Bluetooth
- [XIAO ESP32-C3](https://www.tinkered.ai/components/xiao-esp32-c3.md): same job: an ESP32 board with Wi-Fi and Bluetooth

## Try it

Tinkered simulates the XIAO ESP32-S3 Sense in the browser: wire it on a 3D breadboard, run your real code on the board, and measure it. Free to start at https://www.tinkered.ai.
