In this guide, you’ll find the XIAO ESP32C6 pinout diagram, its datasheet and schematic diagram, and every pin group explained with its default pins. Without further ado, let’s get right into it!
The Seeed Studio XIAO ESP32C6 is a thumb-sized (21 × 17.8mm) board built on Espressif’s ESP32-C6: a 160MHz RISC-V core plus a low-power RISC-V core, 512KB of SRAM and 4MB of flash. It’s the XIAO for smart-home work, with Wi-Fi 6, Bluetooth LE 5 and an 802.15.4 radio for Zigbee, Thread and Matter, a ceramic antenna plus a U.FL connector, and a Li-ion battery charger on board.
XIAO ESP32C6 Pinout Diagram
Here is a detailed XIAO ESP32C6 Pinout Diagram with colored labels and legends to help you easily identify the functionalities that each pin can perform. It shows the 14 edge pins (D0–D10, 5V, GND and 3V3) with their ESP32-C6 GPIO numbers, the back-side pads (battery, JTAG, BOOT and EN), the antenna switch, and the board’s power and hardware notes.
Each row shows the XIAO pin number, the pin name used in the Arduino core (D0–D10), the ESP32-C6 GPIO number, and its functions, color-coded by peripheral. The square symbol means every pin is 3.3v only, the PWM symbol means every edge I/O can output PWM, and the numbered badges point to the notes on the right.
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) at the bottom up to 5V (pin 14), counter-clockwise like every XIAO. The pads are castellated, so you can solder headers or reflow the board straight onto your own PCB.
Buy a XIAO ESP32C6: If you don’t have one yet, you can get the genuine Seeed Studio board from Amazon or AliExpress. It’s cheap enough to buy a few, and the pre-soldered version saves you the header work.
Download XIAO ESP32C6 Pinout Diagram (Full Resolution)
The XIAO ESP32C6 pinout diagram (edge pins, back pads and notes) in full resolution (5120×2600 px WebP), in one ZIP file. Print it, zoom in, or keep it next to your bench. Please consider supporting my work if it helped you.
XIAO ESP32C6 Datasheet
This development board is built around the ESP32-C6FH4 chip (the ESP32-C6 with 4MB of flash inside the package). Here are the official documents you’ll need for the XIAO ESP32C6, linked to Seeed’s and Espressif’s own servers:
| Document | ID | Revision | What You’ll Use It For | Link |
|---|---|---|---|---|
| Seeed Studio XIAO ESP32C6 product datasheet | SKU 113991254 | 3 pages | Board specs, power figures, the official board photo and dimensions | |
| XIAO ESP32C6 getting started (Seeed wiki) | Seeed wiki | latest | Pin map, RF switch, battery, deep sleep, Arduino setup | Web |
| XIAO ESP32C6 schematic | XIAO ESP32-C6 | V1.0 (2026-01-14) | The full board circuit (see the next section) | |
| XIAO ESP32C6 pinout sheet | Seeed | latest | Seeed’s pin-to-GPIO table | XLSX |
| ESP32-C6 Series datasheet | Espressif | v1.6 | Pin functions (IO MUX, LP GPIO, ADC), strapping pins, electrical limits, sleep currents | |
| ESP32-C6 technical reference manual | Espressif | latest | Registers and how every peripheral and the GPIO matrix work |
Which document do I need? The Seeed wiki and the schematic for what’s wired to each pin on the XIAO ESP32C6, and the ESP32-C6 datasheet for pin functions, strapping pins and electrical limits. The technical reference manual is only for register-level code. Seeed also shares the board’s KiCad schematic and PCB files under CC BY-SA 4.0.
XIAO ESP32C6 Schematic
The XIAO ESP32C6 schematic is Seeed’s XIAO ESP32-C6 drawing, version V1.0 (dated 2026-01-14), drawn in KiCad. Here are its three circuit sheets (block diagram, power, and ESP32-C6) followed by readable close-ups of each block; click a page to view it full screen.
Official source: the XIAO ESP32C6 schematic V1.0 (PDF) on Seeed’s wiki. Here’s what to look at:
- USB-C input: VBUS goes through the ESDPSA0402V05 ESD diode (D2) and nothing else: there’s no fuse. A 5.6v Zener (D3) drives MOSFET Q2, which pulls VBUS down if it rises well above 5v. The USB data lines go straight to the chip’s USB Serial/JTAG on GPIO12 (D−) and GPIO13 (D+) through 22Ω resistors, and CC1/CC2 have 5.1kΩ pull-downs.
- Power path: VBUS reaches the +5V rail through the LMBR4010 Schottky diode (D1). Without USB, the PMOS Q1 switches the battery onto the same rail. The 5V edge pin sits on VBUS, before the diode, so it’s dead when you run from the battery.
- 3.3v regulator: the SGM6029 step-down (buck) converter (U1) with a 0.47µH inductor makes the 3.3v rail for the chip and the 3V3 pin. A buck wastes far less battery than an LDO would.
- Charger: the SGM40567-4.2 Li-ion charger (U3) charges the battery pads at 120mA (set by R10 = 200kΩ, as the note on the sheet says), and its NCHG output drives the red charge LED.
- RF switch and antennas: the FM8625H switch (U5) connects the chip’s ANT pin to either the KH5220-A36 ceramic antenna (RF1) or the U.FL connector (RF2). GPIO3 powers it through PMOS Q3 (10kΩ pull-up, so LOW = on), and GPIO14 picks the port (5.1kΩ pull-down, LOW = ceramic, HIGH = U.FL).
- Buttons, LED and straps: R pulls CHIP_PU (EN) LOW and B pulls GPIO9 LOW, each with a 10kΩ pull-up. The yellow user LED sits between 3.3v and GPIO15 through 1.5kΩ, so it’s active LOW. GPIO8 has a 5.1kΩ pull-up, and the sheet carries Seeed’s note: “Avoid using GPIO4, 5, 8, 9, 15”.
- Series resistors: D6/TX (GPIO16) goes through a 499Ω resistor (R14), and D8/SCK (GPIO19) through a 0Ω link (R15). There’s a 40MHz crystal but no 32.768kHz crystal.
XIAO ESP32C6 Specs
The XIAO ESP32C6 is the smallest ESP32-C6 board you can buy from Seeed. Here are its specifications, including the board-level parts that chip-only spec lists usually skip.

Get a XIAO ESP32C6: The genuine Seeed Studio board is the one I recommend. Grab it from Amazon or AliExpress.
| Item | XIAO ESP32C6 |
|---|---|
| Chip | Espressif ESP32-C6FH4 (QFN32, 4MB flash in the package) |
| CPU | 32-bit RISC-V HP core up to 160MHz + 32-bit RISC-V LP core up to 20MHz |
| Memory | 512KB HP SRAM, 16KB LP SRAM, 320KB ROM, 4MB flash |
| Wireless | Wi-Fi 6 (802.11ax, 2.4GHz), Bluetooth LE 5 (Seeed’s pages say both 5.0 and 5.3), IEEE 802.15.4 (Zigbee, Thread, Matter) |
| Antenna | On-board ceramic antenna (KH5220-A36) + U.FL connector, picked by an FM8625H RF switch |
| Logic level | 3.3v on every pin, not 5v tolerant (abs max 3.6v) |
| GPIO pins | 11 on the edge (D0–D10) + 5 on the back pads (GPIO4–7, GPIO9) |
| Board supply | USB-C 5v, or a 3.7v Li-ion/LiPo cell on the BAT pads |
| 3.3v regulator | SGM6029 step-down (buck) converter; Seeed publishes no current rating for the 3V3 pin |
| Battery charger | SGM40567-4.2, 120mA charge current, red charge LED |
| Power consumption | Modem-sleep 30mA, light sleep 3.1mA, deep sleep 15µA (Seeed, at 3.8v) |
| Pin current | Up to 40mA source / 28mA sink per pin at the strongest drive setting (20mA default) |
| USB connector | USB-C, wired to the ESP32-C6’s USB Serial/JTAG; no USB-UART chip |
| User I/O | Yellow user LED (GPIO15, active LOW), red charge LED, RESET and BOOT buttons |
| Form factor | XIAO, 21 × 17.8mm, 14 castellated edge pins + back pads |
| No | DAC, touch pins, 5v-tolerant pins, battery-voltage pin, 32.768kHz crystal |
XIAO ESP32C6 Specifications Summary
- The XIAO ESP32C6 runs an ESP32-C6 RISC-V core at 160MHz with 512KB SRAM and 4MB flash, plus a 20MHz low-power core.
- It has 11 GPIOs on the edge (D0–D10) and 5 more on the back pads, and every pin is 3.3v only.
- It has 3 ADC pins on the edge (A0–A2 = D0–D2, 12-bit) and 3 more on the back pads (GPIO4–6). There’s no DAC and no touch.
- All 11 edge pins can output PWM (LEDC with 6 channels).
- Serial is USB CDC on the USB-C port; Serial0 is UART0 on D6 (TX) / D7 (RX).
- The Arduino Wire pins are D4 (SDA) and D5 (SCL); SPI is D8 (SCK), D9 (MISO), D10 (MOSI) with D3 as SS.
- The user LED is on GPIO15 ( LED_BUILTIN) and is active LOW.
- The RF switch is controlled by GPIO3 (LOW = on) and GPIO14 (LOW = ceramic, HIGH = U.FL).
- Only D0–D2 and the four JTAG back pads (LP GPIO0–7) can wake the chip from deep sleep.
- The 5V pin is USB VBUS: it’s 0v on battery power. There’s no battery-voltage pin.
- Deep sleep draws about 15µA from the battery, and the charger fills the cell at 120mA.
XIAO ESP32C6 Peripherals: ESP32-C6 vs On the Pins
The ESP32-C6 routes most peripherals through its GPIO matrix, so UART, I2C, SPI, PWM and TWAI (CAN) can move to almost any free pin. This table shows what the chip has and what you can reach on the XIAO ESP32C6.
| Peripheral | ESP32-C6 | On the XIAO ESP32C6 |
|---|---|---|
| GPIO | 22 (QFN32) | 11 edge (D0–D10) + 5 back pads |
| ADC | 1x 12-bit SAR ADC, 7 channels (GPIO0–6) | 3 edge (A0–A2) + 3 back pads (GPIO4–6); GPIO3 is the RF switch |
| PWM | LEDC (6 channels) + MCPWM | all 11 edge pins |
| UART | 2x UART + LP UART | UART0 on D6/D7; UART1 on any pin; LP UART on the MTMS/MTDI pads |
| I2C | 1x I2C + LP I2C | Wire on D4/D5; LP I2C on the MTCK/MTDO pads |
| SPI (general purpose) | 1 (SPI2) | D8–D10, SS = D3 |
| I2S, TWAI (CAN), RMT, PCNT | yes (2x TWAI) | any free pins (CAN needs a transceiver) |
| SDIO slave | yes | D3–D5, D8–D10 |
| USB | USB Serial/JTAG | USB-C only (GPIO12/13) |
| DAC, touch | none | – |
XIAO ESP32C6 Quick Pin Selection Guide
Not sure which pin to use? Here are the XIAO ESP32C6 pins I’d pick first for each job, and why.
| Use Case | Recommended Pins | Why |
|---|---|---|
| Serial to the PC | USB-C (Serial) | USB CDC on the chip’s own USB |
| Serial to a module (GPS, sensor…) | D7 (RX), D6 (TX) as Serial0 | UART0’s default pins; mind the 499Ω on TX |
| I2C sensors and displays | D4 (SDA), D5 (SCL) | The Arduino Wire pins |
| SPI devices | D8 (SCK), D9 (MISO), D10 (MOSI), D3 (CS) | The Arduino SPI pins |
| Analog inputs | A0, A1, A2 (D0–D2) | The only ADC pins on the edge |
| PWM (LEDs, servos, motors) | D3, D4, D5, D8, D9, D10 | Any edge pin works; these don’t take an ADC pin |
| Deep-sleep wake button | D0, D1, D2 | LP GPIOs that keep working in deep sleep |
| Battery voltage | A0 with a 1:2 divider | No battery-sense pin on the board |
| Safest general GPIO | D0–D5, D7–D10 | No strapping pins on the edge at all |
XIAO ESP32C6 Pins to Use With Caution
The good news first: the XIAO ESP32C6 has no strapping pin on its 14 edge pins, so anything you wire to D0–D10 won’t stop it from booting. These are the pins that do need care:
| Pin | Reason | What to Do |
|---|---|---|
| D6 / TX (GPIO16) | 499Ω series resistor; the boot ROM prints its log here at every reset | Use it for UART TX; expect boot text on a connected module |
| GPIO4, GPIO5 (MTMS, MTDI pads) | Strapping pins (SDIO timing) | Don’t pull them at reset (Seeed: avoid) |
| GPIO9 (BOOT pad / B button) | Strapping pin: LOW at reset = download mode | Leave it alone, or use the button as an input after boot |
| GPIO8 (internal) | Strapping pin with a 5.1kΩ pull-up | Not on any pad |
| GPIO15 (internal) | Strapping pin and the user LED (active LOW) | Use it only as LED_BUILTIN |
| GPIO3, GPIO14 (internal) | RF switch power and antenna select | Set them right in non-Arduino code (see the antenna section) |
| 5V | USB VBUS, no fuse; 0v on battery | Never feed it and USB at the same time |
| All pins | 3.3v only, no 5v tolerance | Level-shift every 5v signal |
XIAO ESP32C6 Pins Functions
The 14 edge pins of the XIAO ESP32C6 (plus its 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 (+ 5 on the back pads)
- 3x ADC Analog Input Pins (+ 3 on the back pads)
- 11x PWM Pins
- 2x UART + 1x LP UART (+ USB CDC)
- 1x I2C + 1x LP I2C
- 1x SPI Port
- Antenna Switch (GPIO3, GPIO14)
- Strapping, Boot & JTAG Pins (back pads)
We’ll discuss each pin group in the following sections one by one in more detail.
XIAO ESP32C6 Power Pins
The XIAO ESP32C6 is powered from USB-C (5v) or from a 3.7v Li-ion/LiPo cell on the BAT+/BAT− pads underneath. Both feed the SGM6029 buck converter, which makes the 3.3v rail. The 5V pin is USB VBUS, so it has 5v only while USB is plugged in. The power pins are highlighted in red in the pinout diagram.

| Pin | XIAO Pin | Voltage | Notes |
|---|---|---|---|
| 5V | 14 | 5v (USB VBUS) | Straight from USB-C, ESD diode only, no fuse; 0v on battery |
| GND | 13 | 0v | Common ground |
| 3V3 | 12 | 3.3v out | SGM6029 buck output, for sensors and modules |
| BAT+ / BAT− | back pads | 3.7v nominal | Li-ion/LiPo cell; charged at 120mA from USB |
You can also power the board by feeding 5v into the 5V pin instead of USB, but never do both at once: there’s no diode between the USB connector and that pin. For battery projects, solder the cell’s red wire to BAT+ and black to BAT− (Seeed puts the negative pad near the D8 side and the positive near D5), and leave USB free for charging.
XIAO ESP32C6 Battery Charging and Battery Voltage
The XIAO ESP32C6 charges a single Li-ion cell at 120mA whenever USB is plugged in. The red charge LED flashes while charging and goes off when the cell is full (with no battery, it stays on for about 30 seconds and then goes off). At 120mA, a 500mAh LiPo takes roughly 4–5 hours to fill.
There is no battery-voltage pin. Seeed’s answer (check battery voltage) is a 1:2 divider (two equal resistors, for example 200kΩ each) from BAT+ to A0, read with analogReadMilliVolts():
|
1 2 3 4 5 6 7 8 9 10 11 |
void setup() { Serial.begin(115200); } void loop() { uint32_t mv = 0; for (int i = 0; i < 16; i++) mv += analogReadMilliVolts(A0); // average 16 reads float vbat = 2.0 * mv / 16 / 1000.0; // 1:2 divider on A0 Serial.printf("Battery: %.2f V\n", vbat); delay(1000); } |
Note: A divider always draws current. Users on Seeed’s forum measured about 18µA extra through it, more than the whole board in deep sleep (Seeed forum). For long battery life, switch the divider with a MOSFET from a spare GPIO, or use larger resistors with a 100nF capacitor on A0.
Learn more in our ESP32 Sleep Modes & Power Consumption Guide.
XIAO ESP32C6 GPIO Pins
The XIAO ESP32C6 has 11 GPIO pins on its edge (D0–D10) and 5 more on the back pads (GPIO4–7 and GPIO9). They all work at 3.3v, and none of them is 5v tolerant. Every GPIO can trigger an interrupt.

| XIAO Pin | Name | GPIO | XIAO Pin | Name | GPIO |
|---|---|---|---|---|---|
| 1 | D0 / A0 | GPIO0 | 8 | D7 / RX | GPIO17 |
| 2 | D1 / A1 | GPIO1 | 9 | D8 / SCK | GPIO19 |
| 3 | D2 / A2 | GPIO2 | 10 | D9 / MISO | GPIO20 |
| 4 | D3 / SS | GPIO21 | 11 | D10 / MOSI | GPIO18 |
| 5 | D4 / SDA | GPIO22 | 12 | 3V3 | – |
| 6 | D5 / SCL | GPIO23 | 13 | GND | – |
| 7 | D6 / TX | GPIO16 | 14 | 5V | – |
In the Arduino core, a plain number means the GPIO, not the D-name: digitalWrite(10, HIGH) drives GPIO10, which isn’t even on the board. Write the names instead ( D10 is GPIO18). The electrical limits from Espressif’s datasheet:
- 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.
- Internal pull-ups and pull-downs on every pin, and interrupts on RISING, FALLING, CHANGE, LOW and HIGH.
- The pins you don’t see: GPIO3/GPIO14 (RF switch), GPIO8 (strap), GPIO12/13 (USB), GPIO15 (LED) and GPIO24–30 (internal flash).
Note: The ESP32-C6 has no 5v-tolerant pins. A 5v module’s output wired straight to a XIAO ESP32C6 pin can damage the chip, so use a level shifter (or a resistor divider for slow inputs).
Learn more in our ESP32 GPIO Tutorial.
Also Read
XIAO ESP32C6 ADC Pins
The XIAO ESP32C6 has 3 ADC pins on its edge: A0 (D0, GPIO0), A1 (D1, GPIO1) and A2 (D2, GPIO2), on the chip’s single 12-bit SAR ADC. Three more channels are on the back pads (GPIO4, GPIO5, GPIO6). The ADC pins are highlighted in green in the pinout diagram.

| Pin | GPIO | ADC Channel | Where |
|---|---|---|---|
| A0 / D0 | GPIO0 | ADC1_CH0 | Edge pin 1 |
| A1 / D1 | GPIO1 | ADC1_CH1 | Edge pin 2 |
| A2 / D2 | GPIO2 | ADC1_CH2 | Edge pin 3 |
| MTMS pad | GPIO4 | ADC1_CH4 | Back pad (strap) |
| MTDI pad | GPIO5 | ADC1_CH5 | Back pad (strap) |
| MTCK pad | GPIO6 | ADC1_CH6 | Back pad |
Unlike the classic ESP32, the C6 has only one ADC, and Wi-Fi doesn’t block it, so all these pins work while Wi-Fi is on. analogRead() returns 0 to 4095, and analogReadMilliVolts() gives calibrated millivolts. The core has no A4–A6 constants for the back pads: use the GPIO numbers 4, 5 and 6. Seeed’s spec table says “7x ADC”, but the seventh channel is GPIO3, the RF switch pin, which you can’t use.
Note: Never apply more than 3.3v to an ADC pin. For higher voltages (a battery, a 12v rail), use a voltage divider. And remember A0 is also where Seeed suggests reading the battery, so plan your analog pins around that.
There are so many sensors that we can read with the ADC pins, which include: potentiometers, LDRs, NTC thermistors, soil moisture sensors, joysticks, current sensors, and much more.
Learn more in our ESP32 ADC Tutorial.
Also Read
XIAO ESP32C6 PWM Pins
All 11 edge pins on the XIAO ESP32C6 can output PWM. The ESP32-C6’s LEDC peripheral has 6 independent channels, plus an MCPWM unit for motor control, routed to any pin through the GPIO matrix. In the Arduino core, analogWrite(D3, 128) just works.

XIAO ESP32C6 PWM Pins: D0–D10 (6 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. With 6 channels you can run up to 6 PWM outputs with different settings at once.
There are so many things that we can control with PWM, which include: LED dimming, RGB LEDs, servo motors, DC motor speed (with a driver), buzzers, and much more.
Learn more in our ESP32 PWM Tutorial.
Also Read
XIAO ESP32C6 UART Pins
The XIAO ESP32C6 has 2 UARTs and a low-power UART, plus the USB CDC port. Serial is the USB-C port, Serial0 is UART0 on D7 (RX) and D6 (TX), and Serial1 can go to any pins you choose. The UART pins are highlighted in blue in the pinout diagram.

XIAO ESP32C6 Default UART Pins: D7 (RX) and D6 (TX) for Serial0.
| Port | Arduino Object | RX Pin | TX Pin | Note |
|---|---|---|---|---|
| USB CDC | Serial | USB-C | USB-C | Serial Monitor over the USB cable |
| UART0 | Serial0 | D7 (GPIO17) | D6 (GPIO16) | 499Ω resistor on TX; boot log on TX |
| UART1 | Serial1 | any free pin | any free pin | Pass the pins in begin() |
| LP UART | ESP-IDF | MTMS pad (GPIO4) | MTDI pad (GPIO5) | Runs in sleep from the LP core |
|
1 2 3 4 5 6 7 8 9 |
void setup() { Serial.begin(115200); // USB-C to the PC Serial0.begin(9600); // RX = D7, TX = D6 } void loop() { while (Serial0.available()) Serial.write(Serial0.read()); // module -> PC while (Serial.available()) Serial0.write(Serial.read()); // PC -> module } |
Note: Serial is USB CDC, so Serial.print() goes to the USB cable, not to D6. Keep Tools > USB CDC On Boot: Enabled (the default for the XIAO ESP32C6), or nothing shows up in the Serial Monitor.
There are so many modules that we can interface with the UART pins, which include: GPS modules, fingerprint sensors, RS485 transceivers, mmWave radar sensors, other microcontrollers, and much more.
Learn more in our ESP32 Serial Print Tutorial.
Also Read
XIAO ESP32C6 I2C Pins
The XIAO ESP32C6 has 1 I2C bus and a low-power I2C. The default Arduino Wire pins are D4 (SDA, GPIO22) and D5 (SCL, GPIO23), the same place as on every XIAO. The LP I2C sits on the MTCK (SDA, GPIO6) and MTDO (SCL, GPIO7) back pads. The I2C pins are highlighted in yellow in the pinout diagram.

XIAO ESP32C6 Default I2C Pins: D4 (SDA) and D5 (SCL).
| I2C Bus | Arduino Object | SDA | SCL | Note |
|---|---|---|---|---|
| I2C0 | Wire | D4 (GPIO22) | D5 (GPIO23) | Default; can move to any pins with Wire.begin(sda, scl) |
| LP I2C | ESP-IDF | MTCK pad (GPIO6) | MTDO pad (GPIO7) | For sensors read by the LP core while the HP core sleeps |
Note: There are no I2C pull-up resistors on the board, so add 4.7kΩ pull-ups to 3.3v unless your module already has them (most breakout boards do).
There are so many modules and sensors that we can interface with the I2C bus, which include: OLED displays (SSD1306), BME280 sensors, RTC modules, IMUs, the Grove sensors on Seeed’s XIAO expansion board, and much more.
Learn more in our ESP32 I2C Tutorial.
Also Read
XIAO ESP32C6 SPI Pins
The XIAO ESP32C6 has 1 general-purpose SPI port (SPI2). The Arduino SPI pins are D8 (SCK), D9 (MISO) and D10 (MOSI), and the core’s default SS is D3 (GPIO21). The SPI pins are highlighted in pink in the pinout diagram.

XIAO ESP32C6 Default SPI Pins: D8 (SCK), D9 (MISO), D10 (MOSI), and D3 (SS).
| Signal | Pin | GPIO | Note |
|---|---|---|---|
| SCK | D8 | GPIO19 | 0Ω link R15 on the board |
| MISO | D9 | GPIO20 | |
| MOSI | D10 | GPIO18 | |
| SS (CS) | D3 | GPIO21 | Core default; any GPIO can be a CS |
The same six pins (D3–D5 and D8–D10) are also the ESP32-C6’s SDIO slave interface, so the board can act as a Wi-Fi 6 / Thread co-processor for a bigger host. The flash uses the chip’s internal memory bus, so the SPI port is all yours.
There are so many modules that we can interface with the SPI bus, which include: TFT displays (ST7789, ILI9341), SD card modules, e-paper displays, LoRa radios (SX1262), and much more.
XIAO ESP32C6 Antenna and RF Switch (GPIO3, GPIO14)
The XIAO ESP32C6 has two antennas: the on-board ceramic antenna and a U.FL connector for an external one. An FM8625H RF switch picks between them, and two internal GPIOs control it: GPIO3 LOW powers the switch, and GPIO14 picks the antenna (LOW = ceramic, HIGH = U.FL).
| GPIO | Arduino Name | Function | Board Default |
|---|---|---|---|
| GPIO3 | WIFI_ENABLE | RF switch power: LOW = on, HIGH = off | 10kΩ pull-up (switch off) |
| GPIO14 | WIFI_ANT_CONFIG | Antenna select: LOW = ceramic, HIGH = U.FL | 5.1kΩ pull-down (ceramic) |
The Arduino core (3.0 or newer) drives both pins LOW before your sketch starts (XIAO_ESP32C6 variant), so the ceramic antenna just works. To use the U.FL connector, set GPIO14 HIGH before you start Wi-Fi:
|
1 2 3 4 5 6 7 8 9 10 11 12 |
#include <WiFi.h> void setup() { pinMode(WIFI_ENABLE, OUTPUT); digitalWrite(WIFI_ENABLE, LOW); // GPIO3: power the RF switch pinMode(WIFI_ANT_CONFIG, OUTPUT); digitalWrite(WIFI_ANT_CONFIG, HIGH); // GPIO14: HIGH = U.FL, LOW = ceramic delay(100); WiFi.begin("your-ssid", "your-password"); } void loop() {} |
ESP-IDF, ESPHome, MicroPython and Zephyr don’t do this for you. GPIO3’s pull-up leaves the switch unpowered, and Wi-Fi, BLE or Zigbee then work only at very short range. Drive GPIO3 LOW (and GPIO14 as you need) at boot: in ESP-IDF with gpio_set_level(), and in ESPHome with an on_boot action or two GPIO outputs. Users hit this in arduino-esp32 issue 10951 and on the Home Assistant forum.
|
1 2 3 4 5 6 7 8 9 10 11 |
#include "driver/gpio.h" void xiao_antenna_init(bool external) // ESP-IDF { gpio_reset_pin(GPIO_NUM_3); gpio_set_direction(GPIO_NUM_3, GPIO_MODE_OUTPUT); gpio_set_level(GPIO_NUM_3, 0); // RF switch on gpio_reset_pin(GPIO_NUM_14); gpio_set_direction(GPIO_NUM_14, GPIO_MODE_OUTPUT); gpio_set_level(GPIO_NUM_14, external); // 1 = U.FL, 0 = ceramic } |
Note: An external antenna isn’t automatically better. Users on the Home Assistant forum measured a cheap U.FL sticker antenna doing worse than the ceramic one. Use a proper 2.4GHz antenna with a short pigtail, and only switch to U.FL when the board sits inside a metal box or you really need the range. Never select U.FL with nothing plugged in.
XIAO ESP32C6 Strapping, Boot and JTAG Pins
The XIAO ESP32C6 keeps all of the ESP32-C6’s strapping pins off its edge: GPIO4 and GPIO5 are back pads (MTMS, MTDI), GPIO9 is the BOOT button and pad, and GPIO8 and GPIO15 are internal. Seeed’s schematic says to avoid GPIO4, 5, 8, 9 and 15.
| Pin | GPIO | Role | On the Board |
|---|---|---|---|
| BOOT pad / B button | GPIO9 | LOW at reset = download mode | 10kΩ pull-up, button to GND |
| (internal) | GPIO8 | Must be HIGH for download mode | 5.1kΩ pull-up |
| (internal) | GPIO15 | JTAG source select (eFuse), user LED | LED + 1.5kΩ to 3.3v |
| MTMS pad | GPIO4 | SDIO timing strap, JTAG TMS | Back pad |
| MTDI pad | GPIO5 | SDIO timing strap, JTAG TDI | Back pad |
| MTCK pad | GPIO6 | JTAG TCK | Back pad |
| MTDO pad | GPIO7 | JTAG TDO | Back pad |
| EN pad / R button | CHIP_PU | Reset (active LOW) | 10kΩ pull-up, 1µF, button to GND |
XIAO ESP32C6 Bootloader Mode and Recovery
If your XIAO ESP32C6 isn’t detected anymore (no COM port, or an upload that never connects), force the ROM download mode:
- Hold the B (BOOT) button.
- Plug in the USB cable (or, if it’s already plugged in, tap the R button).
- Release B, select the new port in the IDE, and upload. Press R afterwards to run the sketch.
Debugging runs over the same USB-C cable: the ESP32-C6’s built-in USB Serial/JTAG works with OpenOCD, so you don’t need the JTAG pads unless USB is busy.
XIAO ESP32C6 Deep Sleep and Wake-Up Pins
Only the ESP32-C6’s LP GPIOs (GPIO0–7) can wake the XIAO ESP32C6 from deep sleep. On the board, that’s D0, D1 and D2 on the edge, plus the four JTAG back pads (GPIO4–7). Seeed rates deep sleep at 15µA from a 3.8v battery, and users have measured the same on Seeed’s forum (15µA with XIAO ESP32C6).
|
1 2 3 4 5 6 7 8 9 10 |
#include "esp_sleep.h" void setup() { pinMode(D1, INPUT_PULLUP); // button from D1 to GND esp_sleep_enable_ext1_wakeup(1ULL << D1, ESP_EXT1_WAKEUP_ANY_LOW); // ... do the work, then: esp_deep_sleep_start(); } void loop() {} |
Measure sleep current from the battery pads, not from USB: on USB the charger and the 5v path add their own current. And anything you hang on the pins (a battery divider, sensor boards with power LEDs) adds to the 15µA.
XIAO ESP32C6 On-Board Features
Besides the pins, the XIAO ESP32C6 has 2 LEDs, 2 buttons and 2 antennas. Here’s what each one does.
| Part | Pin / Connection | What It Does |
|---|---|---|
| Yellow user LED | GPIO15 (LED_BUILTIN) | Active LOW: digitalWrite(LED_BUILTIN, LOW) turns it on |
| Red charge LED | SGM40567 NCHG | Flashes while charging, off when full |
| R button | CHIP_PU (EN) | Resets the chip |
| B button | GPIO9 | Held at reset: download mode; free as an input after boot |
| Ceramic antenna | RF switch port 1 | Default antenna (GPIO14 LOW) |
| U.FL connector | RF switch port 2 | External antenna (GPIO14 HIGH) |
Here’s a first test. Note the inverted logic of the user LED:
|
1 2 3 4 5 6 7 8 9 10 |
void setup() { pinMode(LED_BUILTIN, OUTPUT); // GPIO15 } void loop() { digitalWrite(LED_BUILTIN, LOW); // LED on (active LOW) delay(500); digitalWrite(LED_BUILTIN, HIGH); // LED off delay(500); } |
Getting Started With XIAO ESP32C6
You can program the XIAO ESP32C6 with the Arduino IDE, ESP-IDF, PlatformIO, MicroPython, CircuitPython, ESPHome or Zephyr, all over the USB-C cable. No external programmer is needed.
- Arduino IDE 2: add Espressif’s board URL, install esp32 by Espressif Systems version 3.0.0 or newer (older cores don’t know the C6), then select XIAO_ESP32C6.
- Zigbee / Matter in Arduino: pick the matching Zigbee mode (End Device or Coordinator) and its partition scheme in the Tools menu, or the Zigbee examples won’t build or join.
- ESP-IDF: target esp32c6, and add the antenna init from the section above.
- ESPHome / Home Assistant: the ESP-IDF framework with variant esp32c6, plus GPIO3 LOW at boot.
| Arduino Name | Pin | Default |
|---|---|---|
Serial | USB-C | USB CDC to the Serial Monitor |
Serial0 | D7 (RX), D6 (TX) | UART0 |
Wire | D4 (SDA), D5 (SCL) | I2C0 |
SPI | D8 / D9 / D10, SS = D3 | SPI2 |
LED_BUILTIN | GPIO15 | Yellow LED, active LOW |
WIFI_ENABLE / WIFI_ANT_CONFIG | GPIO3 / GPIO14 | RF switch (set LOW / LOW by the core) |
Learn more in our ESP32 WiFi Tutorial.
Also Read
XIAO ESP32C6 Common Problems & Fixes
Why is Wi-Fi, BLE or Zigbee range so short outside Arduino? The RF switch is off. GPIO3 has a pull-up, and only the Arduino core drives it LOW. In ESP-IDF, ESPHome, MicroPython or Zephyr, set GPIO3 LOW (and GPIO14 LOW for the ceramic antenna) at boot.
Why does the LED turn on when I write LOW? It’s wired from 3.3v to GPIO15, so it’s active LOW. digitalWrite(LED_BUILTIN, LOW) turns it on.
Why is the Serial Monitor empty, or the port gone? Serial is USB CDC: keep USB CDC On Boot enabled, close other programs holding the port, and reselect it. If the port has vanished, hold B while plugging in (arduino-ide issue 2476).
Why is there no voltage on the 5V pin? You’re on battery. The 5V pin is USB VBUS, so it’s only live with USB plugged in. Power 5v modules from their own supply.
Why won’t my Zigbee device join (“Network steering was not successful”)? Check the Zigbee mode and partition scheme in the Tools menu, the coordinator’s firmware and permit-join, and, outside Arduino, the antenna setup on GPIO3/GPIO14.
Why does digitalWrite(10, HIGH) do nothing? Plain numbers are GPIO numbers. D10 is GPIO18, so write D10, not 10.
Why does my sketch fail to compile for the XIAO ESP32C6? Your ESP32 core is older than 3.0.0. Update esp32 by Espressif Systems in the Boards Manager.
XIAO ESP32C6 vs XIAO ESP32C3 vs XIAO ESP32C5
Seeed makes three RISC-V XIAO boards with the same footprint. Here’s how the XIAO ESP32C6 compares with its siblings:
| Feature | XIAO ESP32C6 | XIAO ESP32C3 | XIAO ESP32C5 |
|---|---|---|---|
| Chip | ESP32-C6FH4 | ESP32-C3FH4 | ESP32-C5HR8 |
| CPU | 160MHz RISC-V + 20MHz LP core | 160MHz RISC-V | 240MHz RISC-V + 48MHz LP core |
| Memory | 512KB SRAM, 4MB flash | 400KB SRAM, 4MB flash | 384KB SRAM, 8MB PSRAM, 8MB flash |
| Wi-Fi | Wi-Fi 6, 2.4GHz | Wi-Fi 4, 2.4GHz | Wi-Fi 6, 2.4GHz + 5GHz |
| Zigbee / Thread | Yes | No | Yes |
| Antenna | Ceramic + U.FL | U.FL only (antenna included) | U.FL only |
| User LED | Yes (GPIO15) | No | Yes (GPIO27) |
| ADC pins on the edge | 3 (D0–D2) | 4 (D0–D3) | 1 (D0) |
| 3.3v regulator | Buck (SGM6029) | LDO (TLV75733P) | Buck |
Pick the XIAO ESP32C6 for smart-home and Matter projects: it’s the only one of the three with Zigbee and Thread plus an antenna on board. The XIAO ESP32C3 is the simpler choice for plain Wi-Fi and BLE, and the XIAO ESP32C5 is the one to get when you need 5GHz Wi-Fi or more memory.
XIAO ESP32C6 Pin Details
Here is every XIAO ESP32C6 pin in physical order, with its Arduino name, ESP32-C6 GPIO, main functions, all its alternate functions, and a short description. With the USB-C connector at the top, pin 1 (D0) is top-left, pins 1–7 run down the left edge, and pins 8–14 run up the right edge.
XIAO ESP32C6 Edge Pins
Click to expand the full pin table (14 pins)
| Pin | Label | GPIO | Main Functions | All Alternate Functions | 5v Tolerant | Description |
|---|---|---|---|---|---|---|
| 1 | D0 / A0 | GPIO0 | ADC1_CH0, PWM | LP_GPIO0, LP_UART_DTRN, XTAL_32K_P | No (3.3v) | Analog input A0 and a deep-sleep wake pin; Seeed’s suggested battery-divider input. |
| 2 | D1 / A1 | GPIO1 | ADC1_CH1, PWM | LP_GPIO1, LP_UART_DSRN, XTAL_32K_N | No (3.3v) | Analog input A1 and a deep-sleep wake pin. |
| 3 | D2 / A2 | GPIO2 | ADC1_CH2, PWM | LP_GPIO2, LP_UART_RTSN, FSPIQ | No (3.3v) | Analog input A2 and a deep-sleep wake pin. |
| 4 | D3 | GPIO21 | SPI SS (core default), PWM | SDIO_DATA1 | No (3.3v) | The default SPI chip select; a free GPIO otherwise. |
| 5 | D4 / SDA | GPIO22 | I2C SDA (Wire), PWM | SDIO_DATA2 | No (3.3v) | The default I2C data pin. |
| 6 | D5 / SCL | GPIO23 | I2C SCL (Wire), PWM | SDIO_DATA3 | No (3.3v) | The default I2C clock pin. |
| 7 | D6 / TX | GPIO16 | UART0 TX (Serial0), PWM | U0TXD, FSPICS0 | No (3.3v) | UART0 transmit through a 499Ω resistor; prints the boot log at reset. |
| 8 | D7 / RX | GPIO17 | UART0 RX (Serial0), PWM | U0RXD, FSPICS1 | No (3.3v) | UART0 receive. |
| 9 | D8 / SCK | GPIO19 | SPI SCK, PWM | SDIO_CLK | No (3.3v) | The default SPI clock (through a 0Ω link). |
| 10 | D9 / MISO | GPIO20 | SPI MISO, PWM | SDIO_DATA0 | No (3.3v) | The default SPI data-in pin. |
| 11 | D10 / MOSI | GPIO18 | SPI MOSI, PWM | SDIO_CMD | No (3.3v) | The default SPI data-out pin. |
| 12 | 3V3 | – | 3.3v output | – | – | Output of the SGM6029 buck converter, for sensors and modules. |
| 13 | GND | – | Ground | – | – | Ground. |
| 14 | 5V | – | USB VBUS | – | – | 5v from USB-C (no fuse); 0v when running from the battery. |
XIAO ESP32C6 Back Pads
Click to expand the full pin table (9 pins)
| Pin | Label | GPIO | Main Functions | All Alternate Functions | 5v Tolerant | Description |
|---|---|---|---|---|---|---|
| TP1 | 3V3 | – | 3.3v | – | – | The 3.3v rail. |
| TP2 | BOOT | GPIO9 | Boot strap, B button | – | No (3.3v) | LOW at reset enters download mode. |
| TP3 | GND | – | Ground | – | – | Ground. |
| TP4 | MTMS | GPIO4 | JTAG TMS, ADC1_CH4 | LP_GPIO4, LP_UART_RXD, strap | No (3.3v) | Strapping pin; LP UART RX and a deep-sleep wake pin. |
| TP5 | MTDI | GPIO5 | JTAG TDI, ADC1_CH5 | LP_GPIO5, LP_UART_TXD, strap | No (3.3v) | Strapping pin; LP UART TX and a deep-sleep wake pin. |
| TP6 | MTCK | GPIO6 | JTAG TCK, ADC1_CH6 | LP_GPIO6, LP_I2C_SDA | No (3.3v) | LP I2C data and a deep-sleep wake pin. |
| TP7 | MTDO | GPIO7 | JTAG TDO | LP_GPIO7, LP_I2C_SCL | No (3.3v) | LP I2C clock and a deep-sleep wake pin. |
| TP8 | EN | CHIP_PU | Reset | – | – | Chip enable; LOW resets the board, like the R button. |
| BAT+ / BAT− | VBAT / GND | – | Battery | – | – | 3.7v Li-ion/LiPo cell, charged at 120mA. |
Wrap Up
To conclude this guide article, the XIAO ESP32C6 is a very solid board for smart-home and battery projects. It packs Wi-Fi 6, Bluetooth LE 5, Zigbee and Thread, a ceramic antenna with a U.FL option, and a battery charger into the XIAO footprint. Just remember the board-level gotchas: every pin is 3.3v only, the RF switch needs GPIO3 LOW outside Arduino, the user LED is active LOW, only D0–D2 wake it from deep sleep, and the 5V pin is dead on battery.
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.







