

The Seeed XIAO SAMD21 is a compact microcontroller board designed by Seeed Studios. It is powered by the SAMD21 chip, which features a 32-bit ARM Cortex-M0+ core. This board is ideal for low-power applications and offers a small form factor, making it suitable for projects with space constraints. Its versatility allows seamless integration with various sensors and modules, making it a popular choice for IoT, wearable devices, and rapid prototyping.








The Seeed XIAO SAMD21 is packed with features that make it a powerful yet compact microcontroller board. Below are its key technical specifications:
| Specification | Details |
|---|---|
| Microcontroller | Microchip SAMD21G18 (ARM Cortex-M0+ 32-bit processor) |
| Operating Voltage | 3.3V |
| Input Voltage (VIN) | 5V (via USB-C) |
| Digital I/O Pins | 11 (including 1 analog pin and 1 I2C pin) |
| PWM Pins | 11 |
| Analog Input Pins | 1 (12-bit ADC) |
| Flash Memory | 256 KB |
| SRAM | 32 KB |
| Clock Speed | 48 MHz |
| Interfaces | I2C, UART, SPI |
| USB Interface | USB-C (supports programming and power supply) |
| Dimensions | 20mm x 17.5mm |
| Weight | 1g |
The Seeed XIAO SAMD21 has a total of 14 pins, including power, digital, and analog pins. Below is the pinout description:
| Pin | Type | Description |
|---|---|---|
| 3.3V | Power | 3.3V output for powering external components. |
| GND | Power | Ground connection. |
| A0/D0 | Analog/Digital | Analog input (12-bit ADC) or digital I/O. |
| D1 | Digital | Digital I/O with PWM support. |
| D2 | Digital | Digital I/O with PWM support. |
| D3 | Digital | Digital I/O with PWM support. |
| D4 | Digital | Digital I/O with PWM support. |
| D5 | Digital | Digital I/O with PWM support. |
| D6 | Digital | Digital I/O with PWM support. |
| D7 | Digital | Digital I/O with PWM support. |
| D8 | Digital | Digital I/O with PWM support. |
| D9 | Digital | Digital I/O with PWM support. |
| I2C | Communication | I2C interface (SDA and SCL). |
| RX/TX | Communication | UART interface for serial communication. |
The Seeed XIAO SAMD21 is easy to use and can be programmed using the Arduino IDE or other compatible development environments. Below are the steps to get started and some best practices for using the board.
File > Preferences.https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.jsonTools > Board > Boards Manager, search for "Seeed SAMD21," and install the package.Seeed XIAO SAMD21) and port under the Tools menu.The following example demonstrates how to blink an LED connected to pin D1.
// Define the pin for the LED
const int ledPin = 1; // D1 pin on the Seeed XIAO SAMD21
void setup() {
// Set the LED pin as an output
pinMode(ledPin, OUTPUT);
}
void loop() {
// Turn the LED on
digitalWrite(ledPin, HIGH);
delay(1000); // Wait for 1 second
// Turn the LED off
digitalWrite(ledPin, LOW);
delay(1000); // Wait for 1 second
}
The board is not detected by the Arduino IDE:
Tools menu.Sketch upload fails:
The board is not powering on:
I/O pins are not working as expected:
pinMode).Q: Can I use the Seeed XIAO SAMD21 with 5V sensors?
A: The board operates at 3.3V logic levels. Use a level shifter to interface with 5V sensors.
Q: How do I reset the board?
A: Press the reset button once to reset the board. Double-tap the reset button to enter bootloader mode.
Q: What is the maximum current output of the 3.3V pin?
A: The 3.3V pin can supply up to 200mA, depending on the power source.
Q: Can I use the board for battery-powered applications?
A: Yes, the low-power design makes it suitable for battery-powered projects. Use a 3.7V LiPo battery with a suitable regulator if needed.