11. Networking and Communications¶
Group Assignment¶
You can find more details on our lab site: TechWorks - Networking and Communications
UART Communication Protocol¶
I2C Communication Protocol¶
XIAO ESP32-c3 —> XIAO RP2040
π§ Uploading Code to XIAO ESP32-C3 Using Arduino IDE¶
β Step 1: Install ESP32 Board Support¶
- Open Arduino IDE.
- Go to File β Preferences.
- In the “Additional Boards Manager URLs” field, add:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
If you have other URLs there, separate them with a comma.
-
Click OK.
-
Go to Tools β Board β Boards Manager.
- Search for
esp32
and install “esp32 by Espressif Systems” (install the latest version).
β Step 2: Select the XIAO ESP32-C3 Board¶
- Go to Tools β Board and select:
XIAO_ESP32C3
If not visible, scroll or search after installing the ESP32 core.
- Go to Tools β Port and choose the correct COM port for the board.
β Step 3: Uploading Code (Tips)¶
- If the upload fails, double-press the RESET button on the XIAO ESP32-C3.
- The onboard LED should start pulsing β itβs now in bootloader mode.
- Then click Upload again.
Test Example
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.println("Hello from XIAO ESP32-C3!");
delay(1000);
}