Skip to the content
2 layers52 × 57.8 mmPCBA Board, the printed circuit board in 3D

Autonomous line-following rescue robot built for a competition at Waterloo's IDEAS Clinic. Raspberry Pi Pico and Arduino Mega, Pixy2 vision, custom KiCad PCBs.

Size
52 × 57.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
33
Nets
54
Pads
221
Tracks, vias
171, 45
Pours
9
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
30 Jan 2026
Updated
7 Sep 2026

Overview

PCBA Board is an open-source printed circuit board by LukeZhang0826, from the LukeZhang0826/RescueRobot repository on GitHub. It is a 2-layer board of 52 × 57.8 mm with 33 parts on 54 nets, routed with 171 tracks and 45 vias.

It is built around the DRV8833RTYR, TPS54331D and AO3400A, with the SS24 among its other parts. Its parts include 12 capacitors, 7 resistors, 7 connectors, 2 ICs and 2 transistors. It belongs with the robots and motor control boards and the RP2040 boards of this library.

Main components

4

README

README.md

RescueRobot

An autonomous line-following rescue robot, built for a competition at the University of Waterloo's IDEAS Clinic. It follows a track, finds a coloured target, picks it up with a servo claw, carries it to a safe zone, drops it, then finds the line again and drives back.

We called it Hamster, which is why the robot code lives in Hamster/.

Watch the competition run

Watch the run · Final report

Built by Josh Lobe, Koketso Gaborekwe, Luke Zhang, Winters Xia, and Griffin Wilson.

The mission

Hamster/robot_mission.py is a flat state machine. A button press starts it, and every stage either advances or drops into an error state.

text
idle -> search_line_follow -> approach_target -> pickup -> holding_object
     -> turn_around -> rescue_line_follow -> approach_safe_zone -> release
     -> find_line -> return_line_follow -> done

Three separate line followers exist because each leg of the run has different exit conditions. search_line_follower stops when the target is large enough in frame, rescue_line_follower stops on the safe zone signature, and return_line_follow runs the trip home. All three share a PD steering loop over the Pixy2 line centroid, with a recovery state that turns back toward the side the line was last seen on.

Hardware

PartNotes
Raspberry Pi PicoRuns the MicroPython mission code in Hamster/
Arduino Mega 2560PlatformIO firmware in firmware/, used for board bring-up
Pixy2 cameraLine tracking and colour connected component detection, 7 signatures
DRV8833Dual motor driver, signed speed from -100 to +100
Servo clawPickup and release
Custom PCBsAn Arduino Mega shield and a base board, KiCad sources in Electrical/

Both PCBs were manufactured through JLCPCB. Gerbers, BOM, and pick-and-place files are committed under Electrical/KiCad/BasePCB/jlcpcb/.

Layout

PathWhat it is
Hamster/MicroPython mission code for the Pico
Hamster/archive/Superseded scripts kept from earlier milestones
Hamster/pixycamParams/Saved Pixy2 tuning, including the values used on the day
firmware/PlatformIO project for the Arduino Mega
Electrical/KiCad/KiCad projects, gerbers, and production files

Running it

The Pico code is deployed with the MicroPico VS Code extension. Copy the contents of Hamster/ to the board and reset it. Hamster/main.py wires up the hardware objects and hands control to RobotMission.run_once(), which waits for the start button.

Everything the robot is tuned by lives in Hamster/config.py, including the PI gains per wheel, the PD steering constants, base speeds in RPM, and the Pixy2 area thresholds that decide when a target is close enough to stop. The competition values are the ones currently committed.

For the Arduino side, cd firmware && pio run -t upload.

Parts

33
QtyValueFootprintReferences
2100kResistor_SMD:R_0805_2012MetricR2, R7
24.7uFCapacitor_SMD:C_1210_3225MetricC1, C2
247uCapacitor_SMD:C_1210_3225MetricC8, C9
2AO3400APackage_TO_SOT_SMD:SOT-23Q1, Q2
10.01uCapacitor_SMD:C_0402_1005MetricC10
10.01uFCapacitor_SMD:C_0805_2012MetricC3
11.96kResistor_SMD:R_0603_1608MetricR4
110.2kResistor_SMD:R_0603_1608MetricR3
1100nFCapacitor_SMD:C_0805_2012MetricC5
110pFCapacitor_SMD:C_0805_2012MetricC7
110uCapacitor_SMD:C_1210_3225MetricC11
11nFCapacitor_SMD:C_0603_1608MetricC6
12.2uCapacitor_SMD:C_0402_1005MetricC12
1330KResistor_SMD:R_0603_1608MetricR6
14.7uInductor_SMD:L_APV_ANR6028L1
1570KResistor_SMD:R_0603_1608MetricR5
166.5kResistor_SMD:R_0603_1608MetricR1
18.2nFCapacitor_SMD:C_0603_1608MetricC4
1Batt_1Connector_JST:JST_PH_B2B-PH-SM4-TB_1x02-1MP_P2.00mm_VerticalJ1
1Batt_2Connector_JST:JST_PH_B2B-PH-SM4-TB_1x02-1MP_P2.00mm_VerticalJ2
1DRV8833RTYPackage_DFN_QFN:Texas_RTY_WQFN-16-1EP_4x4mm_P0.65mm_EP2.1x2.1mm_ThermalViasU1
1MotorAConnector_JST:JST_SH_BM06B-SRSS-TB_1x06-1MP_P1.00mm_VerticalJ3
1MotorBConnector_JST:JST_SH_BM06B-SRSS-TB_1x06-1MP_P1.00mm_VerticalJ4
1Pixy SPI ConnectionConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ5
1RaspberryPi_Pico_WModule:RaspberryPi_Pico_W_SMD_HandSolderA1
1SS24Diode_SMD:D_SMAD2
1ServoAConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ6
1ServoBConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ7
1TPS54331Package_SO:TI_SO-PowerPAD-8_ThermalViasU2

More from LukeZhang0826/RescueRobot

2
  • 2 layers101.6 × 53.3 mmMegaShield, the printed circuit board in 3D

    MegaShield

    LukeZhang0826/RescueRobot

    Autonomous line-following rescue robot built for a competition at Waterloo's IDEAS Clinic. Raspberry Pi Pico and Arduino Mega, Pixy2 vision, custom KiCad PCBs.

    24 parts
  • 2 layers52 × 54 mmBasePCB, the printed circuit board in 3D

    BasePCB

    LukeZhang0826/RescueRobot

    Autonomous line-following rescue robot built for a competition at Waterloo's IDEAS Clinic. Raspberry Pi Pico and Arduino Mega, Pixy2 vision, custom KiCad PCBs.

    17 parts

Similar boards

  • 2 layers63 × 37 mmOpenDrone Transmitter F103 HW, the printed circuit board in 3D

    OpenDrone Transmitter F103 HW

    phonght32/OpenDrone_HW_Transmitter_F103

    OpenDrone Project - Transmitter hardware using STM32F103.

    87 parts1MIT
  • 2 layers43 × 43 mmTurboCAN, the printed circuit board in 3D

    TurboCAN

    henrikssn/TurboCAN

    This is the official repository for the TurboCAN controller board, designed specifically for the Voron AfterBurner toolhead but can also be used on similar toolheads using NEMA17 steppers.

    88 parts82
  • 2 layers158 × 85 mmPiPLC Mainboard, the printed circuit board in 3D

    PiPLC Mainboard

    Chrismettal/PiPLC

    Glorified breakout board + DIN rail case for Pis

    154 parts19
  • 2 layers130 × 110 mm3D Printer Mainboard STM32, the printed circuit board in 3D

    3D Printer Mainboard STM32

    m47812/Custom-3D-Printer-Controller

    A fully custom 3D Printer controller board based on an stm32f7 controller with TMC2209 stepper drivers

    191 parts10GPL-3.0
  • 4 layers116 × 62 mmAccesscontrol, the printed circuit board in 3D

    Accesscontrol

    catphish/accesscontrol

    64 parts
  • 2 layers100 × 50 mmChrismettal ESP Hiro ESP Hiro, the printed circuit board in 3D

    Chrismettal ESP Hiro ESP Hiro

    punkfab/pcb-corpus

    235 real KiCad boards from open-source hardware repositories, prepared as a placement and routing benchmark

    102 parts1
  • 2 layersTopBoard, the printed circuit board in 3D

    TopBoard

    Libre-Talk/Wave

    Smart Speaker satellite

    184 parts22

Questions

How big is the PCBA Board PCB?

It measures 52 × 57.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the PCBA Board use?

33 parts, built around the DRV8833RTYR, TPS54331D, AO3400A and SS24. 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 PCBA Board KiCad files?

From the LukeZhang0826/RescueRobot repository on GitHub, at the commit this page was made from: the board is Electrical/KiCad/PCBA_Board/PCBA_Board.kicad_pcb and its schematic Electrical/KiCad/Arduino Mega Shield/Arduino Mega Shield.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the PCBA Board design in my own project?

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