Seeed XIAO SAMD21 simulator, all eleven pads analog
The XIAO SAMD21 is the smallest board here: 21 by 17.8 mm, an ATSAMD21G18A at 48 MHz, and eleven castellated pads of which every single one is an analog input. Serial is the chip’s own USB; Serial1 is a real USART on D6 and D7.
- 8peripheral areas modeled
- 4projects 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 listed underneath.
Not in the model
- The USB stack. No enumeration, no descriptors, no SETUP. `while (!Serial)` returns at once here and waits on a desk, and Keyboard and Mouse are not available at all.
- The clock tree. The core runs at 48 MHz from the first instruction; GCLK, PM and SYSCTRL exist so a real startup runs to the end, and nothing is gated on them.
- SPI and I2C on the SERCOMs, so no Wire and no SPI. The DAC, the analog comparators, the touch controller and I2S are absent too.
- DMA, the event system, the NVM controller, the watchdog and the RTC. Their blocks read zero rather than faulting.
- Two things the contract marks believed rather than verified: the TC block’s register offsets, and the peripheral multiplexing table that says which timer each pad can reach. Section 7 names both.
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 SAMD21
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: each is written for Mokxi, on its own drivers, under the name the tutorials use. For any other library the build names the Mokxi header that does the same job.
Questions
Is it free?
Yes. Every board and every part is on the free plan, with no account needed.
Is every pad really an analog input?
Yes. A0 to A10 are the same pads as D0 to D10 and the silkscreen prints both, so analogRead(A3) and analogRead(3) are the same pin.
Why does analogWrite do nothing on D0?
Because D0 is PA02, the DAC’s pin, and it reaches no timer at all. That is the chip, not the model: the runtime drives the pad on or off at the halfway mark rather than pretending to fade.
Can it act as a keyboard?
Not here. Keyboard and Mouse need the USB stack above the byte pipe, and the model says plainly that it does not have one.
Will my firmware run on a real XIAO?
The core, the PORT, the SERCOMs, the ADC and the EIC will. Two things are believed rather than verified (the TC register offsets and the pad multiplexing table), and section 7 of the contract is the short list to check. You will also need to relink at 0x2000 to go in over the UF2 bootloader.
The other boards
Every one of these runs today, and every one is free.
Looking for the shorter introduction? See the XIAO SAMD21 simulator page.
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.