Seeed XIAO RP2040 simulator, the Pico’s chip on a thumbnail
The XIAO RP2040 is the Pico’s RP2040, a Cortex-M0+, on a board 21 by 17.5 mm with fourteen pads. Its D0 to D10 are the XIAO family’s numbers, not GPIOs. It has a red, green and blue user LED, each lit LOW, and a NeoPixel that GPIO 11 powers, and both work here as they do on the board.
- 7peripheral areas modeled
- 2projects ready to run
- Real timeon your own machine
What is modeled
Taken from the board's own contract document and put in plain words, with what is missing beside it.
Modeled
- Core
- The RP2040’s Cortex-M0+, the Pico model whole
- GPIO
- The eleven D pads, with the XIAO’s names defined as GPIO numbers
- ADC
- A0 to A3, on D0 to D3, ten bits against 3.3 V by default
- PWM
- On any pad
- The user LED
- Red on GPIO 17 (LED_BUILTIN), green on 16, blue on 25, each lit when its pin is LOW
- The NeoPixel
- A WS2812 on GPIO 12, powered from GPIO 11, so Adafruit_NeoPixel works
- UART0
- Wired to the serial monitor
Not modeled
- The pads on the back: the SWD pair, RUN and the battery pads. The power LED is not modeled either.
- RESET and BOOT as pins. They are buttons, with no pin.
- The RP2040’s second core, PIO, DMA, its own I2C and SPI blocks (Wire and SPI run in software), the USB controller and the RTC.
Open one and press Run
Each of these opens in the editor exactly as it is drawn here.
Every built-in project on the XIAO RP2040
Each has its own page with the circuit running, the code and a parts list.
Arduino libraries that compile as they are
Paste a tutorial that includes one of these and it builds. For any other library, the build names the Mokxi header that does the same job.
And 15 more, 23 in all: OneWire.h and DallasTemperature.h; Adafruit_BME280.h, Adafruit_BMP280.h and SparkFunBME280.h; RTClib.h; Adafruit_SHT31.h; Adafruit_PCF8591.h; Adafruit_ADXL345_U.h; LedControl.h; Adafruit_LEDBackpack.h; Adafruit_TCS34725.h; Adafruit_SGP30.h; Adafruit_INA219.h; Adafruit_ADS1X15.h; Adafruit_MCP23X17.h; Bounce2.h; HX711.h.
Tutorials that use this board
Each one ends in a running circuit, on this same board.
Questions
Is it free?
Yes. Every board and every part is on the free plan, with no account needed.
Is D0 GPIO 0?
No. D0 is GPIO 26, and D6 is GPIO 0. A bare number is a GPIO here, so digitalWrite(0, HIGH) drives D6. Use the D names in your sketch; they are defined for this board.
Why does my NeoPixel stay dark?
Its supply comes from GPIO 11. Drive NEOPIXEL_POWER HIGH in setup() before you send it colors, as Seeed’s examples do. Without that it stays dark here, and on the real board too.
Why does the LED light when I write LOW?
The three user LEDs are wired from 3.3 V to their pins, so each lights when its pin is LOW. digitalWrite(LED_BUILTIN, LOW) turns the red one on.
The other boards
Every one of these runs today, and every one is free.
A RISC-V chip at 160 MHz, on the real memory map.
The classic Arduino, with an ATmega328P running at 16 MHz.
The Uno’s chip on a small board that fits a breadboard.
The big Arduino, with 54 digital pins and four serial ports.
An Uno-shaped board whose chip does its own USB serial.
A second RISC-V board, with 31 pins and simulated WiFi.
The classic ESP32 at 240 MHz, with simulated WiFi.
The ESP32-S3 at 240 MHz, with USB serial and an RGB LED.
Try it on your own firmware
What you build here runs on the board on your desk, unchanged. Nothing to install and no account needed.