The XIAO ESP32C6 takes Espressif's Matter-ready chip -- WiFi 6, Bluetooth 5.3, and a Zigbee/Thread radio all on one die -- and shrinks it down to Seeed's familiar 21 x 17.5mm thumbnail form factor. It's the board to reach for when a project wants the C6's triple-radio capability but can't spare the real estate a full-size ESP32-C6 DevKitC-1 needs, and it's rapidly become one of the most-recommended boards for compact Matter and Thread end devices for exactly that reason.
Like every board in the XIAO line, the trade-off is pin count. The full-size C6 DevKitC-1 breaks out around 22-23 GPIOs; the XIAO breaks out just 11. The chip's low-power RISC-V core and full radio set carry over unchanged -- what's smaller here is purely the physical header, not the silicon's capability.
Quick answer: the XIAO ESP32C6 has 11 GPIO pins, D0–D10. D0–D2 are the analog inputs and the only pins that can wake the board from deep sleep. I2C is on D4/D5, UART on D6/D7, SPI on D8–D10, and none of the header pins is a strapping pin, so any of them is safe to wire at boot.
Below: the full pin map, what each pin can do, the antenna switch most people miss, and how to power the board from a battery.
Pin Map: D-Pins to GPIO Numbers
The header has 14 pins: 11 GPIOs (D0–D10) plus 5V, GND and 3V3. In the Arduino IDE you can use either the D-names or the GPIO numbers; the D-names make sketches portable across other XIAO boards.
| Pin | GPIO | Analog | Default role | Notes |
|---|---|---|---|---|
| D0 | GPIO0 | A0 | — | LP GPIO: can wake from deep sleep |
| D1 | GPIO1 | A1 | — | LP GPIO: can wake from deep sleep |
| D2 | GPIO2 | A2 | — | LP GPIO: can wake from deep sleep |
| D3 | GPIO21 | — | — | General I/O |
| D4 | GPIO22 | — | I2C SDA | |
| D5 | GPIO23 | — | I2C SCL | |
| D6 | GPIO16 | — | UART TX | Serial1 TX |
| D7 | GPIO17 | — | UART RX | Serial1 RX |
| D8 | GPIO19 | — | SPI SCK | |
| D9 | GPIO20 | — | SPI MISO | |
| D10 | GPIO18 | — | SPI MOSI |
pinMode(D0, OUTPUT);
digitalWrite(D0, HIGH);Boot-Sensitive Pins: None on the Header
The ESP32-C6 has five strapping pins, GPIO4, GPIO5, GPIO8, GPIO9 and GPIO15, and none of them is wired to D0–D10. GPIO9 is the onboard BOOT button and GPIO15 drives the small user LED, so you can wire any header pin without worrying about the board refusing to boot. That's one advantage this tiny board has over the full-size DevKitC-1.
USB
The USB-C connector runs from the chip's native USB peripheral and doesn't use any header pin. For Serial.print() output over USB, set Tools → USB CDC On Boot → Enabled in the Arduino IDE.
ADC Pins
Three analog inputs are broken out: A0, A1 and A2 on D0–D2 (12-bit ADC1).
int reading = analogRead(A0);That's one fewer than the XIAO ESP32C3. If you need more, an I2C ADC such as the ADS1115 adds four channels on D4/D5.
PWM and I2C
PWM is available on every GPIO through the standard LEDC-based approach.
ledcAttach(D1, 5000, 8);
ledcWrite(D1, 128); // ~50% duty cycleI2C defaults to D4 (SDA) and D5 (SCL), so a plain Wire.begin() uses them. You can move it to any other pair with Wire.begin(sda, scl).
Wire.begin(); // SDA = D4 (GPIO22), SCL = D5 (GPIO23)SPI and UART
SPI is on D8 (SCK), D9 (MISO) and D10 (MOSI), the same positions as on every XIAO board; pick any free pin for chip select.
The hardware UART is on D6 (TX) and D7 (RX), separate from the USB-C port that the Serial Monitor uses, so a GPS or another microcontroller can talk to Serial1 while you debug over USB.
Serial1.begin(9600, SERIAL_8N1, D7, D6); // RX = D7, TX = D6Deep-Sleep Wake: Only D0–D2
Only the C6's low-power GPIOs, GPIO0–7, can wake it from deep sleep, and the XIAO breaks out three of them: D0, D1 and D2. Put the wake button or PIR sensor on one of those; on D3–D10 the board will simply never wake. The same three pins are the only ones the LP core can read while the main core sleeps.
// Wake when a button on D1 (GPIO1) pulls the pin HIGH
esp_sleep_enable_ext1_wakeup(1ULL << GPIO_NUM_1, ESP_EXT1_WAKEUP_ANY_HIGH);
esp_deep_sleep_start();Wireless: The Whole Point of This Board
This is the reason to pick the C6 variant over the more common XIAO ESP32C3: the full ESP32-C6 radio set, unchanged from the full-size chip, in a body a third the size.
| Radio | Standard |
|---|---|
| WiFi | WiFi 6 (802.11ax), 2.4GHz only |
| Bluetooth | BLE 5.3 |
| 802.15.4 | Zigbee, Thread, Matter-over-Thread |
For a compact, battery-friendly Matter or Thread end device -- a wearable sensor, a small smart-home accessory -- this is one of the smallest mainstream boards carrying all three radios at once.
The Antenna Switch Most People Miss
The XIAO ESP32C6 has both a small onboard ceramic antenna and a U.FL connector for an external one, chosen by an RF switch on two internal GPIOs. GPIO3 powers the switch and GPIO14 selects the antenna: LOW for the onboard antenna, HIGH for the U.FL socket. If you've plugged in an external antenna and range didn't improve, it isn't selected yet:
void setup() {
pinMode(3, OUTPUT);
digitalWrite(3, LOW); // enable the RF switch
pinMode(14, OUTPUT);
digitalWrite(14, HIGH); // HIGH = external U.FL antenna, LOW = onboard
}For anything mounted in a metal enclosure or more than a room away from the router, the external antenna is worth the few dollars.
The Low-Power Core on a Board This Small
The C6's dedicated low-power RISC-V core -- capable of running independently while the main application core sleeps -- carries over unchanged from the full-size chip, and it matters even more here than on a full DevKitC-1. A board this size is almost always destined for battery power, and letting the LP core handle sensor polling or wake-on-threshold logic while the main core (and the radio stack) stays fully asleep is what lets a small LiPo last months instead of days. (Coin cells can't supply the current peaks of Wi-Fi transmission, so plan on a LiPo.)
How the XIAO ESP32C6 Compares
| Board | Usable GPIO | ADC | Radios | Best for |
|---|---|---|---|---|
| XIAO ESP32C3 | 11 | 4 | WiFi 4, BLE 5.0 | Simple WiFi/BLE projects, lower cost |
| XIAO ESP32C6 | 11 | 3 | WiFi 6, BLE 5.3, 802.15.4 | Matter, Thread, Zigbee in a tiny footprint |
| Full-size ESP32-C6 DevKitC-1 | ~22-23 | 7 | WiFi 6, BLE 5.3, 802.15.4 | Same radios, more GPIO and ADC headroom |
Pick this over the XIAO ESP32C3 specifically when a project needs Matter, Thread, or Zigbee -- otherwise the C3 variant is cheaper for identical GPIO count.
Power Pins
| Pin | Function | Notes |
|---|---|---|
| 5V | Power input | Via USB-C |
| 3V3 | Regulated 3.3V output | Powers small sensors; can also take a regulated 3.3V supply instead of USB |
| GND | Ground |
Like the rest of the XIAO line, a single-cell 3.7 V LiPo solders to the BAT+ and BAT− pads on the underside, and the board charges it whenever USB-C is connected. There is no JST connector, so either solder the leads or add a small JST pigtail. Check the polarity twice: reversing a LiPo on those pads damages the board.
Practical Pin Usage Tips
Plan for 11 pins, not the full chip's GPIO count. It's easy to look up generic ESP32-C6 pin capabilities and forget that this board exposes a fraction of them.
Use the LP core if the project is battery-powered. Same advantage as the full-size C6 -- the low-power RISC-V core can handle wake-up and polling logic while the main core sleeps, which matters even more on a board this size where every milliamp of battery life counts.
Don't expect 5GHz WiFi. Same 2.4GHz-only WiFi 6 as the full-size chip.
Put deep-sleep wake inputs on D0–D2. They're the only header pins in the low-power domain.
Consider the coexistence trade-off on a project running WiFi and Thread simultaneously. Both radios share the 2.4GHz band, so a project pushing both hard at once will see reduced throughput on each -- rarely a problem for typical low-traffic sensor workloads, but worth knowing before designing around continuous simultaneous use.
Summary: XIAO ESP32C6 Pin Reference at a Glance
| Item | XIAO ESP32C6 |
|---|---|
| Size | 21 × 17.5 mm |
| Chip | ESP32-C6: RISC-V HP core at 160 MHz + LP core |
| Radios | Wi-Fi 6 (2.4 GHz), Bluetooth LE 5.3, 802.15.4 (Thread, Zigbee) |
| GPIO | 11 (D0–D10) |
| Analog | 3 (A0–A2 on D0–D2) |
| Deep-sleep wake pins | D0–D2 |
| Antenna | Onboard ceramic + U.FL, selected with GPIO3/GPIO14 |
| Power | USB-C, 3V3 pin, LiPo pads with charging |
Which Projects the XIAO ESP32C6 Actually Fits
A strong fit: a compact Matter-certified sensor or smart-home accessory, a Thread end device joining an existing mesh, or any wearable-scale project that specifically wants WiFi 6's efficiency gains on a congested home network without sacrificing board size.
A weaker fit: projects with no Matter/Thread/Zigbee requirement at all, where the cheaper XIAO ESP32C3 covers the same WiFi/BLE needs for less money, or anything needing more analog input pins than this board's three.
Building a Matter Device on This Board
For anyone specifically targeting Matter certification or compatibility, it's worth knowing the practical workflow this board fits into: Espressif maintains an official Matter SDK (built on top of the open-source Connected Home over IP / Matter codebase) that targets the C6 directly, handling the Thread networking layer, commissioning flow, and cluster definitions a Matter device needs to speak to a controller like Apple Home, Google Home, or Home Assistant. Getting a first Matter device working on this board typically means starting from one of Espressif's example applications (a simple on/off light or sensor cluster) rather than building the Matter stack up from raw GPIO code -- the protocol itself is intricate enough that hand-rolling a compliant implementation from scratch is rarely worth the effort compared to adapting a working example.
Quick Answers to Common XIAO ESP32C6 Pin Questions
How does this differ from the XIAO ESP32C3? The chip -- the C6 adds WiFi 6 and a Zigbee/Thread radio the C3 doesn't have, plus a dedicated low-power core, at a slightly higher price and one fewer ADC pin.
Is this good for a Matter device? Yes -- it's currently one of the smallest boards carrying WiFi 6, BLE, and 802.15.4 all at once, which is exactly the radio combination Matter-over-Thread devices need.
How many usable GPIOs does it have? 11, D0–D10, the same as the rest of the XIAO line.
Why doesn't my external antenna help? It isn't selected. Drive GPIO3 LOW and GPIO14 HIGH in setup() to switch to the U.FL socket.
Can I run it on battery power? Yes -- onboard LiPo charging via a JST connector, and the C6's LP core is specifically useful here for extending battery life.
Does it support 5GHz WiFi? No -- 2.4GHz only, same as the full-size ESP32-C6.
Can I run WiFi and Thread at the same time without issues? Yes, with a minor throughput trade-off -- both radios share 2.4GHz airtime, which the chip's coexistence firmware manages automatically.
Where to Go From Here
Once the 11-pin budget and the LP core's role feel familiar, pairing this board with a Thread border router (or a full-size C6/H2 acting as one) is the natural next step for an actual Matter-connected sensor project. From there, if a project's GPIO needs outgrow this board's 11 pins, the full-size ESP32-C6 DevKitC-1 runs the same code with roughly twice the header pins. Choosing between XIAO boards? Compare the XIAO ESP32C3 and XIAO RP2350.


