Skip to the content
2 layersArchive, the printed circuit board in 3D

Key features we have. PostTrainingQuantization(PTQ) with results simulated on the K230D chip, half-duplex serial driver with 74HCT126, asymmetric PID dependent on the IMU, custom touch sensors, and an IR camera used on…

Copper layers
2
Thickness
1.6 mm
Parts
5
Nets
149
Pads
180
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 9.0 (file 20241229)
Created
5 Jul 2025
Updated
23 Jul 2026

Overview

Archive is an open-source printed circuit board by Spadeyache, from the Spadeyache/FATEN-RCJ26 repository on GitHub. It is a 2-layer board with 5 parts on 149 nets.

It is built around the K230D and DEV-16771. It belongs with the SAM D and SAM boards of this library.

Main components

2

README

README.md

RoboCupJunior Rescue Line — Robot

Key features we have. PostTrainingQuantization(PTQ) with results simulated on the K230D chip, half-duplex serial driver with 74HCT126, asymmetric PID dependent on the IMU, custom touch sensors, and an IR camera used on the hardware.

Team FATEN logo

Firmware, vision, AI training pipeline, and electronics for team FATEN's RoboCupJunior Rescue Line robot. The robot follows a line course, handles gaps, obstacles, and intersections, then enters an evacuation zone where it detects, grabs, and carries victims using an onboard YOLO(formerly MobileNet-SSD-v2-Lite) model.

🌐 Team website: faten-1tdj.vercel.app

How the robot works

One microcontroller drives the robot; two smart co-processors digest the camera data which the control loop stays fast and deterministic.

mermaid
flowchart LR
    subgraph IN["Inputs — co-processors and sensors"]
        direction TB
        XIAO["📷 XIAO ESP32-S3<br/>camera vision:<br/>line, green, red, silver, gap"]
        K230["🧠 K230D Zero<br/>YOLOv8n victim/colour<br/>bounding boxes"]
        IMU["🧭 MPU6050 IMU"]
        TOF["📏 VL53L7CX ToF"]
        TCH["👆 Touch bumpers"]
    end
    subgraph T["Teensy 4.1 — the conductor"]
        direction TB
        RX["sensors/ — raw byte transport"]
        PROC["processing/ — decode · filter · fuse"]
        SM["state_machine/ — pick a behaviour"]
        ACT["actions/ — PID, turn, forward, arm"]
        RX --> PROC --> SM --> ACT
    end
    subgraph OUT["Outputs"]
        direction TB
        MOT["⚙️ 4× STS3032 wheels"]
        ARM["🦾 KRS arm / gripper"]
    end
    XIAO -- "UART @ 4 Mbps" --> RX
    K230 -- "UART @ 115200" --> RX

The Teensy firmware is a 5-layer architecture (drivers → sensors → processing → state_machine/actions) where calls only flow downward, with one file pair per state-machine state (LINE_Follow, LINE_Gap, LINE_Obstacle, EVAC_Entry, EVAC_SearchDeploy, EVAC_Exit, …). See teensy/STS-imuMerge/README.md and the interactive system map for the full picture.

Hardware

PartRole
Teensy 4.1Main controller: sensor fusion, state machine, motion control
Seeed XIAO ESP32-S3 SenseLine-camera co-processor: line position, green/red markers, silver tape, gap detection
Sipeed CanMV K230D ZeroAI co-processor: YOLOv8n victim / colour detection (kmodel via nncase)
MPU6050IMU — pitch / roll / yaw
Pololu VL53L7CXMultizone ToF — walls and obstacle distance
4× Feetech STS3032Serial-bus wheel servos (1 Mbps)
Kondo KRS servos & Hitech HS45HBVictim arm and grippers
Custom PCBs (EasyEDA)Power distribution, adapters, breakouts — see electronics/

The custom PCBs form a stacked electronics module. The map below shows how the boards connect:

FATEN electronics map

Repository layout

DirectoryContents
teensy/Teensy 4.1 firmware. STS-imuMerge/ is the competition firmware; other folders are hardware bring-up tests (IMU, STS servos, touch)
xiaoesp/XIAO ESP32-S3 camera firmware (XIAOdev/) + Web Serial debug viewer (esp32_camera_viewer.html)
k230-final-train/Current YOLOv8n training pipeline: dataset → train → ONNX → kmodel → simulate → compare → deploy, all in Docker, one script per step
k230-inference/MicroPython code that runs on the K230D (CanMV): live detection, UART protocol to the Teensy
k230/Legacy training pipeline + datasets (superseded by k230-final-train/)
electronics/EasyEDA projects, 3D exports, KiCad archive
Docs/Interactive HTML docs — open in a browser (see below)
dev-tools/Flashing images, servo manager, drivers, terminal tools

Documentation

The Docs/ folder holds self-contained HTML documents (open locally in any browser):

Each firmware layer also documents itself: every src/<layer>/ folder has its own README.md with that layer's rules.

Building and running

Teensy firmware

Requires Teensyduino (Arduino IDE or arduino-cli with the teensy:avr core):

powershell
cd teensy/STS-imuMerge
arduino-cli compile --fqbn "teensy:avr:teensy41:usb=serial,speed=600,opt=o2std,keys=en-us" --build-path build .

XIAO camera firmware

Build profile is pinned in sketch.yaml (esp32 core 3.3.7):

powershell
cd xiaoesp/XIAOdev
arduino-cli compile --profile xiaoesp32s3

K230D AI co-processor

  1. Flash the CanMV MicroPython image (CanMV_K230D_Zero_micropython_v1.5-legacy … nncase_v2.9.0, in dev-tools/) — see k230-inference/README.md
  2. Copy the contents of k230-inference/ plus your .kmodel to the device SD card

Training a new model

Fully reproducible in Docker — annotated dataset in, deployable .kmodel out:

powershell
cd k230-final-train
.\competition_run.ps1 -Name victim_v2 -Epochs 100

See k230-final-train/README.md for the step-by-step scripts and the PTQ search/compare workflow. Note: kmodels must be converted with nncase 2.9.0-compatible tooling to match the flashed CanMV firmware.

Acknowledgements

Sponsors

Team FATEN thanks the sponsors who made this robot possible:

EasyEDA    JLCPCB    Keeppower    Hitec    Pololu

  • EasyEDA & JLCPCB — provided the PCB design software and board fabrication credit; the integrated design-to-manufacture workflow carried our boards smoothly from schematic to delivered PCB.
  • Keeppower — supplied high-spec protected batteries, with the protection circuit custom-designed for our robot, and covered most of the battery and shipping costs.
  • Hitec — provided motors for the robot arm along with battery chargers and maintenance jigs; their high-spec LiFePO4 balance charger kept our batteries reliably charged throughout the competition.
  • Pololu — supported the team's sensor hardware, including the VL53L7CX multizone time-of-flight sensor the robot uses for wall and obstacle detection.

More photos from the competition are in our Google Drive folder.

Institutions

Our team members represent:

New York University    Columbia University    Chalmers University of Technology

Open source

This robot builds on Ultralytics YOLOv8, nncase, CanMV, Teensyduino, and the Arduino ESP32 core.

License

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0) see LICENSE for details.

In short: you're welcome to study this project, learn from it, and build your own work on top of it, as long as you credit team FATEN (a link back to this repository) and don't use it for commercial purposes. Please don't just lift the code wholesale.

Third-party components (YOLOv8, nncase, CanMV, Teensyduino, the Arduino ESP32 core, etc.) remain under their own licenses.

Parts

5
QtyValueFootprintReferences
2TB6612FNGPackage_SO:SSOP-24_5.3x8.2mm_P0.65mmU3, U4
1DEV-16771DEV-16771:MODULE_DEV-16771U1
1K230DConnector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_Vertical_SMDU2
1SeeeduinoXIAORF_Module:MCU_Seeed_ESP32C3U5

More from Spadeyache/FATEN-RCJ26

6
  • 2 layers89.3 × 92.6 mmArchive, the printed circuit board in 3D

    Archive

    Spadeyache/FATEN-RCJ26

    Key features we have. PostTrainingQuantization(PTQ) with results simulated on the K230D chip, half-duplex serial driver with 74HCT126, asymmetric PID dependent on the IMU, custom touch sensors, and an IR camera used on…

    61 parts
  • 2 layers71.3 × 94.1 mmMain (2), the printed circuit board in 3D

    Main (2)

    Spadeyache/FATEN-RCJ26

    Key features we have. PostTrainingQuantization(PTQ) with results simulated on the K230D chip, half-duplex serial driver with 74HCT126, asymmetric PID dependent on the IMU, custom touch sensors, and an IR camera used on…

    50 parts
  • 2 layers111.2 × 45.7 mmPower Set, the printed circuit board in 3D

    Power Set

    Spadeyache/FATEN-RCJ26

    Key features we have. PostTrainingQuantization(PTQ) with results simulated on the K230D chip, half-duplex serial driver with 74HCT126, asymmetric PID dependent on the IMU, custom touch sensors, and an IR camera used on…

    41 parts
  • 2 layers89.5 × 67.2 mmLogic Set, the printed circuit board in 3D

    Logic Set

    Spadeyache/FATEN-RCJ26

    Key features we have. PostTrainingQuantization(PTQ) with results simulated on the K230D chip, half-duplex serial driver with 74HCT126, asymmetric PID dependent on the IMU, custom touch sensors, and an IR camera used on…

    32 parts
  • 2 layers30.5 × 25.1 mmBattery Management, the printed circuit board in 3D

    Battery Management

    Spadeyache/FATEN-RCJ26

    Key features we have. PostTrainingQuantization(PTQ) with results simulated on the K230D chip, half-duplex serial driver with 74HCT126, asymmetric PID dependent on the IMU, custom touch sensors, and an IR camera used on…

    18 parts
  • 2 layersArchive, the printed circuit board in 3D

    Archive

    Spadeyache/FATEN-RCJ26

    Key features we have. PostTrainingQuantization(PTQ) with results simulated on the K230D chip, half-duplex serial driver with 74HCT126, asymmetric PID dependent on the IMU, custom touch sensors, and an IR camera used on…

    15 parts

Similar boards

  • 4 layers96.5 × 81.3 mmHexapod PCB KiCad Project, the printed circuit board in 3D

    Hexapod PCB KiCad Project

    Aecert-Robotics/Hexapod

    A hexapod powered by Arduino using hobby servos

    48 parts15GPL-3.0
  • 4 layers62.8 × 97.5 mmOceanAI, the printed circuit board in 3D

    OceanAI

    daniel360kim/OceanAI

    A robotic and software orientated ocean development.

    124 parts14MIT
  • 2 layers197.3 × 121.2 mmTeensyMaestro Main PCB, the printed circuit board in 3D

    TeensyMaestro Main PCB

    rimuadmin/TeensyMaestro-Hardware

    Hardware for the TeensyMaestro

    115 parts13CERN-OHL-P-2.0
  • 2 layers90 × 100 mmEcse controls flight computer, the printed circuit board in 3D

    Ecse controls flight computer

    ALTAIR-McGill-x-UVictoria/HAB-Control-Flight-Computer

    ECSE Control Capstone Team- High Altitude Balloon Flight Computer

    34 parts3MIT
  • 2 layers106.8 × 96.4 mmHasp flight computer, the printed circuit board in 3D

    Hasp flight computer

    Big-Red-Sat/High-Altitude-Student-Platform

    This repository contains the hardware designs, data, and analysis of perovskite solar cells on high altitude balloons

    292 parts3
  • 2 layers88.9 × 88.9 mmMain board v2, the printed circuit board in 3D

    Main board v2

    NeverNotJohn/CSUF-NASA-USLI-2026

    California State University Fresno (CSUF) Github for the 2025-2026 NASA USLI Competition

    29 parts2
  • 4 layers77.1 × 76.2 mmTellus, the printed circuit board in 3D

    Tellus

    IEEE-Robotics-Club/MSU-NASA-Minds-2023

    The code repository for the 2023 MSU NASA Minds competition

    37 parts1GPL-3.0
  • 4 layers176.8 × 115.3 mmUven2-mk2-mainboard, the printed circuit board in 3D

    Uven2-mk2-mainboard

    letrend/UVen

    UV irradiation system for enhanced photo-activation in living cells

    210 parts1MIT

Questions

What parts does the Archive use?

5 parts, built around the K230D and DEV-16771. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Archive KiCad files?

From the Spadeyache/FATEN-RCJ26 repository on GitHub, at the commit this page was made from: the board is electronics/archive/Electronics.kicad_pcb and its schematic electronics/archive/Batter Management v3.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Archive design in my own project?

Its repository states no licence, so its author keeps all rights: ask Spadeyache before reusing the design.