Seeeduino XIAO - Keyboard Optimized

by SEEED

Image of Board

Keyboard Optimized

Due to the limited memory and flash of the ATSAMD21G18, an optimized build of CircuitPython is needed for keyboard/keypad/macropad projects. The following modules are made available:

  • keypad for handing buttons and key matrices
  • rotaryio for handling rotary encoders
  • usb_hid for sending HID messages to the computer
  • adafruit_hid (frozen module) for configuring your Xiao as a keyboard

Note that a number of modules are removed to make space for those listed above. It is assumed that a keyboard or macropad doesn’t have sensors. As such, these modules are not included:

  • busio needed for I2C, SPI and UART
  • pulseio needed some sensors
  • onewireio needed for 1-wire devices

If you need one of the modules removed or if you want to absolutely be sure that you don’t run out of memory, consider using a better processor (RP2040 for example).

This build was tested with a 30 keys macropad which is the largest matrix the XIAO allows for (5x6 matrix = 11 GPIOs).

Seeduino XIAO

SEEED Studio’s Seeeduino XIAO is a minimal, low-cost board that uses the Atmel c, a powerful 32-bit ARM Cortex®-M0+ processor running at 48 MHz with 256 KB Flash and 32 KB SRAM. The board is 20 mm x 17.5 mm in size which is perfect for wearable devices and small projects. It has multiple interfaces including DAC output, SWD Bonding pad interface, I2C, UART and SPI interfaces. It’s compatible with both Arduino IDE and CircuitPython and uses a USB-C connector.

Technical details

  • CPU: ARM Cortex-M0+ CPU (SAMD21G18) running at up to 48 MHz
  • Flash Memory: 256 KB
  • SRAM: 32 KB
  • Digital I/O pins: 11
  • Analog I/O pins: 11
  • I2C interfaces: 1
  • SPI interfaces: 1
  • UART interfaces: 1
  • USB-C connector for transferring code and power
  • Power requirements: 3.3 V/5 V DC
  • Dimensions: 20 mm x 17.5 mm x 3.5 mm

Note: This microcontroller runs at 3.3 V logic. Using a 5 V device may damage the chip or device.

For power supply pins: The built-in DC-DC converter circuit is able to change 5 V voltage into 3.3 V, which allows you to power the device with a 5 V supply via the VIN pin or 5V pin.

Purchase

Contribute

Have some info to add for this board? Edit the source for this page here.

CircuitPython 7.2.5

This is the latest stable release of CircuitPython that will work with the Seeeduino XIAO - Keyboard Optimized.

Start here if you are new to CircuitPython.

Release Notes for 7.2.5

Built-in modules available: analogio, board, digitalio, keypad, microcontroller, neopixel_write, nvm, os, pwmio, rainbowio, random, rotaryio, storage, struct, supervisor, time, touchio, usb_cdc, usb_hid, usb_midi

Included frozen(?) modules: adafruit_hid, neopixel

CircuitPython 7.3.0-rc.0

This is the latest unstable release of CircuitPython that will work with the Seeeduino XIAO - Keyboard Optimized.

Unstable builds have the latest features but are more likely to have critical bugs.

Release Notes for 7.3.0-rc.0

Built-in modules available: analogio, board, digitalio, keypad, microcontroller, neopixel_write, nvm, os, pwmio, rainbowio, random, rotaryio, storage, struct, supervisor, time, touchio, usb_cdc, usb_hid, usb_midi

Included frozen(?) modules: adafruit_hid, neopixel

Absolute Newest

Every time we commit new code to CircuitPython we automatically build binaries for each board and language. The binaries are stored on Amazon S3, organized by board, and then by language. Try them if you want the absolute latest and are feeling daring or want to see if a problem has been fixed.

Past Releases

All previous releases are listed on GitHub, with release notes, and are available for download from Amazon S3. They are handy for testing, but otherwise we recommend using the latest stable release. Some older GitHub release pages include the same binaries for downloading. But we have discontinued including binaries as assets on newer release pages because of the large number of files for each release.

BROWSE GITHUB

Update UF2 Bootloader

Latest version: v3.14.0

The bootloader allows you to load CircuitPython, MakeCode, and Arduino programs. The bootloader is not CircuitPython. You can check the current version of your bootloader by looking in the INFO_UF2.TXT file when the BOOT drive is visible (FEATHERBOOT, CPLAYBOOT, etc.).

It is not necessary to update your bootloader if it is working fine. Read the release notes on GitHub to see what has been changed. In general, we recommend you not update the bootloader unless you know there is a problem with it or a support person has asked you to try updating it.

To update, first save the contents of CIRCUITPY, just in case. Then double-click the reset button to show the BOOT drive. Drag the update-bootloader .uf2 file to the BOOT drive. Wait a few tens of seconds for the bootloader to update; the BOOT drive will reappear. After you update, check INFO_UF2.TXT to verify that the bootloader version has been updated. Then you will need to reload CircuitPython.

DOWNLOAD UPDATER UF2