REFERENCE:
https://wiki.seeedstudio.com/XIAO-RP2040-with-Arduino/
XIAO RP2040
https://www.youtube.com/watch?v=t1XsDqZjuQo
../Seeed XIAO RP2040
https://www.youtube.com/watch?v=u61mOIfGdR8
Test Program
/#
File: HM_XIAO-BlinkRP2040
Date: 3/21/2025
By: HMillan@EMail.com
Objective: Bink an LED on Ping 27
*/
const int ledPin = 25; // the number of the LED pin
const int ledPin_D2 = 27; // the number of the LED pin
// the setup function runs once when you press reset or power the board
void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
// initialize the LED pin as an output:
pinMode(ledPin_D2, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(ledPin, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(ledPin_D2, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW
digitalWrite(ledPin_D2, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
../
https://wiki.seeedstudio.com/XIAO-RP2040/
Dual-core RP2040 processor
clock running up to 133 MHz
264KB of SRAM, and
2MB of on-board Flash memory
provide more program to save and run
14 GPIO PIN:
Working voltage of MCU is 3.3V .
Voltage input connected to general I/O pins may cause chip damage if it' higher than 3.3V
Power supply pins: Built-in DC-DC converter circuit able to change 5V voltage into 3.3V allows to power the device with a 5V supply via VIN-PIN and 5V-PIN.
XIAO RP2040 currently only supports battery power supply and cannot connect to Type-C while a battery is connected, as it may pose a safety risk.
11 digital pins,
4 analog pins,
11 PWM Pins,
1 I2C interface,
1 UART interface,
1 SPI interface,
1 SWD Bonding pad interface.
../.. Seeed Studio XIAO RP2040 with Arduino
https://wiki.seeedstudio.com/XIAO-RP2040-with-Arduino/
../
Software Setup
Step 1. Download and Install the latest version of Arduino IDE according to your operating system
https://www.arduino.cc/en/software
Step 2. Launch the Arduino application.
Step 3. Add Seeed Studio XIAO RP2040 board package to your Arduino IDE
Navigate to File > Preferences,
and fill Additional Boards Manager URLs with the url below:
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
Step 3_B
Navigate to Tools-> Board-> Boards Manager..., type the keyword "RP2040" in the searching blank. Select the lastest version of "Raspberry Pi Pico/RP2040" and install it.
Attention
The on-board package named Seeed XIAO RP2040 is no longer available, please do not download and use it!
Install the "Raspberry Pi Pico/RP2040" package, which includes the "Seeed XIAO RP2040" board.
../
Step 4. Select your board and port.
Step 5. Open the Blink example by navigating "File --> Examples --->01.Basics --> Blink"
Board
After installing the board package, navigate to Tools-> Board, find "Seeed Studio XIAO RP2040" and select it. Now we have finished setting up the Seeed Studio XIAO RP2040 for Arduino IDE.
Port
Navigate to Tools > Port and select the serial port name of the connected Seeed Studio XIAO RP2040. This is likely to be COM3 or higher (COM1 and COM2 are usually reserved for hardware serial ports). The serial port of the connected Seeed Studio XIAO RP2040 usually contains parentheses that are written "Seeed Studio XIAO RP2040".
Step 6. Click the Upload button to upload the Blink example code to the board.
Once uploaded, you should be able to see the pin 25 Green (USER) LED on the board blinks once a second. If it does, congratulations! This means the connection is successful and now you can explore more projects with the Seeed Studio XIAO RP2040!
note
If uploading the Arduino program fails, try holding down the "BOOT" button and then clicking the "RUN" button. At this point, Seeed Studio XIAO RP2040 will enter boot mode (your computer will load a removable disk), and you will be able to upload the Arduino program again.
../
../
Seeed XIAO RP2040 - Supports Arduino, MicroPython
and CircuitPython
https://media.distrelec.com/Web/Downloads/_t/ds/102010428_eng_tds.pdf
../
CircuitPython 9.2.4
This is the latest stable release of CircuitPython that will work with the Seeed Studio XIAO RP2040.
https://circuitpython.org/board/seeeduino_xiao_rp2040/
../
https://docs.zephyrproject.org/latest/boards/seeed/xiao_rp2040/doc/index.html
../
Seeeduino XIAO RP2040 and Circuitpython
https://www.instructables.com/Seeeduino-XIAO-RP2040-and-Circuitpython/
../