The XIAO ESP32C3 by Seeed Studio is a compact microcontroller board powered by the ESP32-C3 chip. It features built-in Wi-Fi and Bluetooth Low Energy (BLE) capabilities, making it an excellent choice for Internet of Things (IoT) projects and wireless communication applications. Its small form factor and low power consumption make it ideal for wearable devices, smart home systems, and other embedded applications.
The following table outlines the key technical details of the XIAO ESP32C3:
Parameter | Specification |
---|---|
Microcontroller | ESP32-C3 (RISC-V single-core processor) |
Clock Speed | Up to 160 MHz |
Flash Memory | 4 MB |
SRAM | 400 KB |
Wireless Connectivity | Wi-Fi 802.11 b/g/n, Bluetooth 5.0 (LE) |
Operating Voltage | 3.3V |
Input Voltage Range | 5V (via USB-C) |
GPIO Pins | 11 (including ADC, I2C, SPI, UART, PWM) |
Dimensions | 21 x 17.5 mm |
The XIAO ESP32C3 has a total of 11 GPIO pins, which are multifunctional and can be configured for various purposes. Below is the pinout description:
Pin | Function | Description |
---|---|---|
0 | GPIO, ADC, UART RX | General-purpose I/O, analog input, UART receive |
1 | GPIO, ADC, UART TX | General-purpose I/O, analog input, UART transmit |
2 | GPIO, ADC, PWM | General-purpose I/O, analog input, PWM output |
3 | GPIO, ADC, I2C SDA | General-purpose I/O, analog input, I2C data line |
4 | GPIO, ADC, I2C SCL | General-purpose I/O, analog input, I2C clock line |
5 | GPIO, SPI SCK | General-purpose I/O, SPI clock |
6 | GPIO, SPI MISO | General-purpose I/O, SPI data input |
7 | GPIO, SPI MOSI | General-purpose I/O, SPI data output |
8 | GPIO, PWM | General-purpose I/O, PWM output |
9 | GPIO, PWM | General-purpose I/O, PWM output |
10 | GPIO, ADC | General-purpose I/O, analog input |
Powering the Board:
Connecting Peripherals:
Programming the Board:
The following example demonstrates how to blink an LED connected to GPIO pin 2:
// Define the GPIO pin where the LED is connected
const int ledPin = 2;
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 computer:
Code upload fails:
Wi-Fi or Bluetooth is not working:
Peripherals are not responding:
Q: Can I power the XIAO ESP32C3 with a battery?
A: Yes, you can use a 3.7V LiPo battery connected to the 3.3V pin with a proper voltage regulator.
Q: Does the board support OTA (Over-the-Air) updates?
A: Yes, the ESP32-C3 chip supports OTA updates, which can be implemented in your code.
Q: What is the maximum current output of the GPIO pins?
A: Each GPIO pin can source or sink up to 40 mA, but it is recommended to stay below 20 mA for safe operation.
Q: Can I use the XIAO ESP32C3 with MicroPython?
A: Yes, the board supports MicroPython. You can flash the MicroPython firmware to the board and use it for development.
This concludes the documentation for the XIAO ESP32C3. For further assistance, refer to the official Seeed Studio documentation or community forums.