Team7 - Seeeduino XIAO

From Sketching with Hardware at LMU Wiki
Jump to navigation Jump to search

Seeeduino XIAO[edit]

The Seeeduino XIAO is a microcontroller with an AT-SAMD21G18-A microcontroller unit (MCU). The microcontroller contains an ARM Cortex CPU which allows operating on low power. It further has a 32-Bit single core processor with a 48Hz clock frequency. Its small size makes it optimal for using as MCU in compact wearable devices. The low power mode is ideal for integrating standby-mode in your DIY project and its rich specifications provide great capability for computational tasks. The variety in interface communication allows integrating different hardware components for adding various features to your project. However when aiming for network-oriented DIY projects the Seeeduino XIAO lacks WiFi connectivity.

The Seeeduino XIAO is compatible with C/C++ or Circuit-Python and Arduino IDE (when using C) or Visual Studio Code (when using Python).

Specifications[edit]

  • Storage: 256KB Flash, 32KB SRAM
  • Interface: I2C, SPI, UART, QTouch
  • Input/Output PINs: 14 GPIO PINs, 11 digital/analog PINs, 10 PWM Pins (A1/D1 - A10/D10), 1 DAC output (A0/D0), 1 SWD pad interface
  • Dimension: 20x17.5x3.5mm
  • Power: 3.3V/5V DC
  • Connection: USB Type-C

Detailed pin layout

Setup with Circuit-Python[edit]

Required hardware: USB Type-C, Male-to-Male (M2M) Jumper, Seeedunio XIAO

Installing Circuit-Python[edit]

  1. Download the Circuit-Python bootloader for the Seeeduino
  2. Plug-in your Seeeduino to your PC/laptop
  3. Enter the firmware bootloader by using the M2M jumper.
    • Hold one end of the jumper to one of the RST PINs
    • Quickly connect the other end of the jumper twice to the remaining empty RST PIN
  4. A new external drive should appear on your PC/laptop call Arduino
  5. Drag the downloaded file from step 1 to the Arduino drive
    • Once the file has been successfully copied to the drive, unplug the Seeeduino
  6. Reconnect the Seeeduino and a new external drive CIRCUITPY should appear
    • Congrats you have successfully installed Circuit-Python on your device
  7. To run a python programm simply name your main python programm-file code.py and drag it onto the CIRCUITPY

Setup Tutorial[edit]

This video follows the steps mentioned above one-by-one, in case you had trouble understanding the process.

Code Example[edit]

This code example was shown as demonstration in the tutorial video above. This simple code lets the installed LED on your Seeeduino blink.

 1 import time
 2 import board
 3 from digitalio import DigitalInOut, Direction
 4  
 5 led = DigitalInOut(board.LED_INVERTED)
 6 led.direction = Direction.OUTPUT
 7  
 8 while True:
 9     led.value = True
10     time.sleep(1)
11     led.value = False
12     time.sleep(1)