XIAO ESP32C6 Pinout, Datasheet, Schematic [Ultimate Guide]

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.

XIAO ESP32C6 pinout diagram with GPIO, ADC, PWM, UART, SPI, I2C, LP GPIO, SDIO and back pad pin functions (Seeed Studio XIAO ESP32C6)
Seeed Studio XIAO ESP32C6: edge pins D0–D10, power pins and back-side pads

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:

DocumentIDRevisionWhat You’ll Use It ForLink
Seeed Studio XIAO ESP32C6 product datasheetSKU 1139912543 pagesBoard specs, power figures, the official board photo and dimensionsPDF
XIAO ESP32C6 getting started (Seeed wiki)Seeed wikilatestPin map, RF switch, battery, deep sleep, Arduino setupWeb
XIAO ESP32C6 schematicXIAO ESP32-C6V1.0 (2026-01-14)The full board circuit (see the next section)PDF
XIAO ESP32C6 pinout sheetSeeedlatestSeeed’s pin-to-GPIO tableXLSX
ESP32-C6 Series datasheetEspressifv1.6Pin functions (IO MUX, LP GPIO, ADC), strapping pins, electrical limits, sleep currentsPDF
ESP32-C6 technical reference manualEspressiflatestRegisters and how every peripheral and the GPIO matrix workPDF

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.

XIAO ESP32C6 schematic page 1: block diagram (Seeed XIAO ESP32-C6 V1.0)
Page 1 of 11 · Block Diagram
XIAO ESP32C6 schematic page 2: power sheet (Seeed XIAO ESP32-C6 V1.0)
Page 2 of 11 · Power Sheet
XIAO ESP32C6 schematic page 3: ESP32-C6 sheet (Seeed XIAO ESP32-C6 V1.0)
Page 3 of 11 · ESP32-C6 Sheet
XIAO ESP32C6 schematic page 4: USB-C connector and ESD protection (Seeed XIAO ESP32-C6 V1.0)
Page 4 of 11 · USB-C & ESD Protection
XIAO ESP32C6 schematic page 5: SGM40567 Li-ion battery charger (120mA) (Seeed XIAO ESP32-C6 V1.0)
Page 5 of 11 · SGM40567 Battery Charger
XIAO ESP32C6 schematic page 6: SGM6029 3.3v buck converter (Seeed XIAO ESP32-C6 V1.0)
Page 6 of 11 · SGM6029 Buck Converter
XIAO ESP32C6 schematic page 7: battery and USB power path (Seeed XIAO ESP32-C6 V1.0)
Page 7 of 11 · Battery & USB Power Path
XIAO ESP32C6 schematic page 8: XIAO edge pins and back pads (Seeed XIAO ESP32-C6 V1.0)
Page 8 of 11 · Edge Pins & Back Pads
XIAO ESP32C6 schematic page 9: RF switch, ceramic antenna and U.FL connector (Seeed XIAO ESP32-C6 V1.0)
Page 9 of 11 · RF Switch & Antennas
XIAO ESP32C6 schematic page 10: ESP32-C6FH4 chip and 40MHz crystal (Seeed XIAO ESP32-C6 V1.0)
Page 10 of 11 · ESP32-C6FH4 Chip
XIAO ESP32C6 schematic page 11: reset and boot buttons and user LED (Seeed XIAO ESP32-C6 V1.0)
Page 11 of 11 · Buttons & User LED
Page 1 of 4

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.

Seeed Studio XIAO ESP32C6 development board with USB-C, ceramic antenna and U.FL connector

Get a XIAO ESP32C6: The genuine Seeed Studio board is the one I recommend. Grab it from Amazon or AliExpress.

ItemXIAO ESP32C6
ChipEspressif ESP32-C6FH4 (QFN32, 4MB flash in the package)
CPU32-bit RISC-V HP core up to 160MHz + 32-bit RISC-V LP core up to 20MHz
Memory512KB HP SRAM, 16KB LP SRAM, 320KB ROM, 4MB flash
WirelessWi-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)
AntennaOn-board ceramic antenna (KH5220-A36) + U.FL connector, picked by an FM8625H RF switch
Logic level3.3v on every pin, not 5v tolerant (abs max 3.6v)
GPIO pins11 on the edge (D0–D10) + 5 on the back pads (GPIO4–7, GPIO9)
Board supplyUSB-C 5v, or a 3.7v Li-ion/LiPo cell on the BAT pads
3.3v regulatorSGM6029 step-down (buck) converter; Seeed publishes no current rating for the 3V3 pin
Battery chargerSGM40567-4.2, 120mA charge current, red charge LED
Power consumptionModem-sleep 30mA, light sleep 3.1mA, deep sleep 15µA (Seeed, at 3.8v)
Pin currentUp to 40mA source / 28mA sink per pin at the strongest drive setting (20mA default)
USB connectorUSB-C, wired to the ESP32-C6’s USB Serial/JTAG; no USB-UART chip
User I/OYellow user LED (GPIO15, active LOW), red charge LED, RESET and BOOT buttons
Form factorXIAO, 21 × 17.8mm, 14 castellated edge pins + back pads
NoDAC, 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.

PeripheralESP32-C6On the XIAO ESP32C6
GPIO22 (QFN32)11 edge (D0–D10) + 5 back pads
ADC1x 12-bit SAR ADC, 7 channels (GPIO0–6)3 edge (A0–A2) + 3 back pads (GPIO4–6); GPIO3 is the RF switch
PWMLEDC (6 channels) + MCPWMall 11 edge pins
UART2x UART + LP UARTUART0 on D6/D7; UART1 on any pin; LP UART on the MTMS/MTDI pads
I2C1x I2C + LP I2CWire on D4/D5; LP I2C on the MTCK/MTDO pads
SPI (general purpose)1 (SPI2)D8–D10, SS = D3
I2S, TWAI (CAN), RMT, PCNTyes (2x TWAI)any free pins (CAN needs a transceiver)
SDIO slaveyesD3–D5, D8–D10
USBUSB Serial/JTAGUSB-C only (GPIO12/13)
DAC, touchnone–

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 CaseRecommended PinsWhy
Serial to the PCUSB-C (Serial)USB CDC on the chip’s own USB
Serial to a module (GPS, sensor…)D7 (RX), D6 (TX) as Serial0UART0’s default pins; mind the 499Ω on TX
I2C sensors and displaysD4 (SDA), D5 (SCL)The Arduino Wire pins
SPI devicesD8 (SCK), D9 (MISO), D10 (MOSI), D3 (CS)The Arduino SPI pins
Analog inputsA0, A1, A2 (D0–D2)The only ADC pins on the edge
PWM (LEDs, servos, motors)D3, D4, D5, D8, D9, D10Any edge pin works; these don’t take an ADC pin
Deep-sleep wake buttonD0, D1, D2LP GPIOs that keep working in deep sleep
Battery voltageA0 with a 1:2 dividerNo battery-sense pin on the board
Safest general GPIOD0–D5, D7–D10No 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:

PinReasonWhat to Do
D6 / TX (GPIO16)499Ω series resistor; the boot ROM prints its log here at every resetUse 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 modeLeave it alone, or use the button as an input after boot
GPIO8 (internal)Strapping pin with a 5.1kΩ pull-upNot 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 selectSet them right in non-Arduino code (see the antenna section)
5VUSB VBUS, no fuse; 0v on batteryNever feed it and USB at the same time
All pins3.3v only, no 5v toleranceLevel-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.

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.

XIAO ESP32C6 power pins (5V, GND, 3V3) on the right edge

PinXIAO PinVoltageNotes
5V145v (USB VBUS)Straight from USB-C, ESD diode only, no fuse; 0v on battery
GND130vCommon ground
3V3123.3v outSGM6029 buck output, for sensors and modules
BAT+ / BAT−back pads3.7v nominalLi-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():

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 ESP32C6 GPIO pins (D0-D10) with their ESP32-C6 GPIO numbers

XIAO PinNameGPIOXIAO PinNameGPIO
1D0 / A0GPIO08D7 / RXGPIO17
2D1 / A1GPIO19D8 / SCKGPIO19
3D2 / A2GPIO210D9 / MISOGPIO20
4D3 / SSGPIO2111D10 / MOSIGPIO18
5D4 / SDAGPIO22123V3–
6D5 / SCLGPIO2313GND–
7D6 / TXGPIO16145V–

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.


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.

XIAO ESP32C6 ADC pins (A0 GPIO0, A1 GPIO1, A2 GPIO2)

PinGPIOADC ChannelWhere
A0 / D0GPIO0ADC1_CH0Edge pin 1
A1 / D1GPIO1ADC1_CH1Edge pin 2
A2 / D2GPIO2ADC1_CH2Edge pin 3
MTMS padGPIO4ADC1_CH4Back pad (strap)
MTDI padGPIO5ADC1_CH5Back pad (strap)
MTCK padGPIO6ADC1_CH6Back 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.

ESP32 ADC Analog Read Arduino Example Tutorial - Calibration And Filtering

Also Read

ESP32 ADC Tutorial


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: every edge GPIO (D0-D10) can output PWM

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.

ESP32 PWM Example Arduino Tutorial - ledcWrite AnalogWrite

Also Read

ESP32 PWM Tutorial


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 UART pins (D6 TX GPIO16, D7 RX GPIO17)

XIAO ESP32C6 Default UART Pins: D7 (RX) and D6 (TX) for Serial0.

PortArduino ObjectRX PinTX PinNote
USB CDCSerialUSB-CUSB-CSerial Monitor over the USB cable
UART0Serial0D7 (GPIO17)D6 (GPIO16)499Ω resistor on TX; boot log on TX
UART1Serial1any free pinany free pinPass the pins in begin()
LP UARTESP-IDFMTMS pad (GPIO4)MTDI pad (GPIO5)Runs in sleep from the LP core

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.


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 I2C pins (D4 SDA GPIO22, D5 SCL GPIO23)

XIAO ESP32C6 Default I2C Pins: D4 (SDA) and D5 (SCL).

I2C BusArduino ObjectSDASCLNote
I2C0WireD4 (GPIO22)D5 (GPIO23)Default; can move to any pins with Wire.begin(sda, scl)
LP I2CESP-IDFMTCK 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.

ESP32 I2C Tutorial in Arduino IDE - Set I2C Pins - I2C Scanner - Multiple Device Addresses

Also Read

ESP32 I2C Tutorial


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 SPI pins (D8 SCK GPIO19, D9 MISO GPIO20, D10 MOSI GPIO18, D3 SS GPIO21)

XIAO ESP32C6 Default SPI Pins: D8 (SCK), D9 (MISO), D10 (MOSI), and D3 (SS).

SignalPinGPIONote
SCKD8GPIO190Ω link R15 on the board
MISOD9GPIO20
MOSID10GPIO18
SS (CS)D3GPIO21Core 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).

GPIOArduino NameFunctionBoard Default
GPIO3WIFI_ENABLERF switch power: LOW = on, HIGH = off10kΩ pull-up (switch off)
GPIO14WIFI_ANT_CONFIGAntenna select: LOW = ceramic, HIGH = U.FL5.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:

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.

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.

PinGPIORoleOn the Board
BOOT pad / B buttonGPIO9LOW at reset = download mode10kΩ pull-up, button to GND
(internal)GPIO8Must be HIGH for download mode5.1kΩ pull-up
(internal)GPIO15JTAG source select (eFuse), user LEDLED + 1.5kΩ to 3.3v
MTMS padGPIO4SDIO timing strap, JTAG TMSBack pad
MTDI padGPIO5SDIO timing strap, JTAG TDIBack pad
MTCK padGPIO6JTAG TCKBack pad
MTDO padGPIO7JTAG TDOBack pad
EN pad / R buttonCHIP_PUReset (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:

  1. Hold the B (BOOT) button.
  2. Plug in the USB cable (or, if it’s already plugged in, tap the R button).
  3. 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).

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.

PartPin / ConnectionWhat It Does
Yellow user LEDGPIO15 (LED_BUILTIN)Active LOW: digitalWrite(LED_BUILTIN, LOW) turns it on
Red charge LEDSGM40567 NCHGFlashes while charging, off when full
R buttonCHIP_PU (EN)Resets the chip
B buttonGPIO9Held at reset: download mode; free as an input after boot
Ceramic antennaRF switch port 1Default antenna (GPIO14 LOW)
U.FL connectorRF switch port 2External antenna (GPIO14 HIGH)

Here’s a first test. Note the inverted logic of the user LED:


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 NamePinDefault
SerialUSB-CUSB CDC to the Serial Monitor
Serial0D7 (RX), D6 (TX)UART0
WireD4 (SDA), D5 (SCL)I2C0
SPID8 / D9 / D10, SS = D3SPI2
LED_BUILTINGPIO15Yellow LED, active LOW
WIFI_ENABLE / WIFI_ANT_CONFIGGPIO3 / GPIO14RF switch (set LOW / LOW by the core)

Learn more in our ESP32 WiFi Tutorial.


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:

FeatureXIAO ESP32C6XIAO ESP32C3XIAO ESP32C5
ChipESP32-C6FH4ESP32-C3FH4ESP32-C5HR8
CPU160MHz RISC-V + 20MHz LP core160MHz RISC-V240MHz RISC-V + 48MHz LP core
Memory512KB SRAM, 4MB flash400KB SRAM, 4MB flash384KB SRAM, 8MB PSRAM, 8MB flash
Wi-FiWi-Fi 6, 2.4GHzWi-Fi 4, 2.4GHzWi-Fi 6, 2.4GHz + 5GHz
Zigbee / ThreadYesNoYes
AntennaCeramic + U.FLU.FL only (antenna included)U.FL only
User LEDYes (GPIO15)NoYes (GPIO27)
ADC pins on the edge3 (D0–D2)4 (D0–D3)1 (D0)
3.3v regulatorBuck (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)
PinLabelGPIOMain FunctionsAll Alternate Functions5v TolerantDescription
1D0 / A0GPIO0ADC1_CH0, PWMLP_GPIO0, LP_UART_DTRN, XTAL_32K_PNo (3.3v)Analog input A0 and a deep-sleep wake pin; Seeed’s suggested battery-divider input.
2D1 / A1GPIO1ADC1_CH1, PWMLP_GPIO1, LP_UART_DSRN, XTAL_32K_NNo (3.3v)Analog input A1 and a deep-sleep wake pin.
3D2 / A2GPIO2ADC1_CH2, PWMLP_GPIO2, LP_UART_RTSN, FSPIQNo (3.3v)Analog input A2 and a deep-sleep wake pin.
4D3GPIO21SPI SS (core default), PWMSDIO_DATA1No (3.3v)The default SPI chip select; a free GPIO otherwise.
5D4 / SDAGPIO22I2C SDA (Wire), PWMSDIO_DATA2No (3.3v)The default I2C data pin.
6D5 / SCLGPIO23I2C SCL (Wire), PWMSDIO_DATA3No (3.3v)The default I2C clock pin.
7D6 / TXGPIO16UART0 TX (Serial0), PWMU0TXD, FSPICS0No (3.3v)UART0 transmit through a 499Ω resistor; prints the boot log at reset.
8D7 / RXGPIO17UART0 RX (Serial0), PWMU0RXD, FSPICS1No (3.3v)UART0 receive.
9D8 / SCKGPIO19SPI SCK, PWMSDIO_CLKNo (3.3v)The default SPI clock (through a 0Ω link).
10D9 / MISOGPIO20SPI MISO, PWMSDIO_DATA0No (3.3v)The default SPI data-in pin.
11D10 / MOSIGPIO18SPI MOSI, PWMSDIO_CMDNo (3.3v)The default SPI data-out pin.
123V3–3.3v output––Output of the SGM6029 buck converter, for sensors and modules.
13GND–Ground––Ground.
145V–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)
PinLabelGPIOMain FunctionsAll Alternate Functions5v TolerantDescription
TP13V3–3.3v––The 3.3v rail.
TP2BOOTGPIO9Boot strap, B button–No (3.3v)LOW at reset enters download mode.
TP3GND–Ground––Ground.
TP4MTMSGPIO4JTAG TMS, ADC1_CH4LP_GPIO4, LP_UART_RXD, strapNo (3.3v)Strapping pin; LP UART RX and a deep-sleep wake pin.
TP5MTDIGPIO5JTAG TDI, ADC1_CH5LP_GPIO5, LP_UART_TXD, strapNo (3.3v)Strapping pin; LP UART TX and a deep-sleep wake pin.
TP6MTCKGPIO6JTAG TCK, ADC1_CH6LP_GPIO6, LP_I2C_SDANo (3.3v)LP I2C data and a deep-sleep wake pin.
TP7MTDOGPIO7JTAG TDOLP_GPIO7, LP_I2C_SCLNo (3.3v)LP I2C clock and a deep-sleep wake pin.
TP8ENCHIP_PUReset––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.

Getting Started With ESP32 Programming Tutorials

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.

Share This Page With Your Network!
Join Our +25,000 Newsletter Subscribers!

Stay Updated With All New Content Releases. You Also Get Occasional FREE Coupon Codes For Courses & Other Stuff!

Photo of author
Author
Embedded systems engineer with several years of experience in embedded software and hardware design. I work as an embedded SW engineer in the Automotive & e-Mobility industry. However, I still do Hardware design and SW development for DSP, Control Systems, Robotics, AI/ML, and other fields I'm passionate about.
I love reading, writing, creating projects, and teaching. A reader by day and a writer by night, it's my lifestyle. I believe that the combination of brilliant minds, bold ideas, and a complete disregard for what is possible, can and will change the world! I will be there when it happens, will you?

Leave a Comment