Skip to the content
2 layers60 × 46 mmCardboard bot, the printed circuit board in 3D

60 × 46 mm, 2-layer, 2 oz copper, for a 2S or 3S LiPo on a screw terminal. JLCPCB assembles the SMD parts on the top side; CGW hand-solders the through-hole parts. Nothing goes on the back.

Size
60 × 46 mm
Copper layers
2
Thickness
1.6 mm
Parts
67
Nets
37
Pads
187
Tracks, vias
477, 183
Pours
4
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
27 Oct 2026
Updated
1 Nov 2026

Overview

Cardboard bot is an open-source printed circuit board by ColumbiaGadgetWorks, from the ColumbiaGadgetWorks/cardboard-bot-v2 repository on GitHub. It is a 2-layer board of 60 × 46 mm with 67 parts on 37 nets, routed with 477 tracks and 183 vias.

It is built around the DRV8870DDAR, TPS54202DDCR and CC0603KRX7R9BB104, with the CL21A106KAYNNNE, 1N5819WS and CL21A226MAQNNNE among its other parts. Its parts include 21 resistors, 17 capacitors, 10 connectors, 7 diodes and 4 ICs. It belongs with the ESP32 and RISC-V boards of this library.

Main components

11

README

hardware/README.md

Cardboard Bot v2 – main board (rev B)

60 × 46 mm, 2-layer, 2 oz copper, for a 2S or 3S LiPo on a screw terminal. JLCPCB assembles the SMD parts on the top side; CGW hand-solders the through-hole parts. Nothing goes on the back.

WhatWhere
Schematic (PDF)docs/schematic.pdf
KiCad 7 projectcardboard-bot.kicad_pro / .kicad_sch / .kicad_pcb
JLCPCB upload filesfab/ (gerber zip, BOM, CPL)
Hand-solder listfab/cardboard-bot-v2-revB-hand-solder.csv
Part-number check listdocs/BOM_CHECK.md

What's on the board

Parts were picked for JLC stock: Basic or no-fee Preferred parts wherever JLC has one, otherwise a well-stocked Extended part (stock checked 28 Oct 2026, see docs/BOM_CHECK.md). Everything on the battery side is rated above 3S (12.6 V full).

  • Battery input: 5.08 mm screw terminal J1 (top-left), then a 20 A mini blade fuse, then two wire pads for an off-board power switch (10 A+ DC, 18 AWG). A unidirectional SMAJ13A clamps spikes at about 21 V; a reversed battery makes it conduct and blows the fuse.
  • ESC power: two 5.08 mm screw terminals on the right edge (ESC 1, ESC 2), after the fuse and switch, with a 470 µF / 25 V bulk capacitor next to them.
  • Drive: two DRV8870 H-bridges (6.5–45 V, 3.6 A peak), one per motor, each next to its 3.5 mm motor terminal: LEFT MOTOR on the left edge, RIGHT MOTOR on the right edge. 0.1 Ω sense resistors and VREF = 2.53 V limit each motor to about 2.5 A. The DRV8870 stops below about 6.5 V, so on 2S the drive cuts out near empty (the firmware stops it at 3.0 V/cell anyway).
  • 5 V: TPS54202 buck (28 V max in) behind a Schottky diode and a 470 µF / 25 V hold-up capacitor, so ESC current spikes can't reset the ESP32. A second Schottky feeds the XIAO, so plugging in its USB while the robot is on is safe.
  • Outputs: three 3-pin headers (GND / V+ / SIG): OUT1 (GPIO10), OUT2 (GPIO20), OUT3 (GPIO21). V+ is 5 V through a Schottky per output, so an ESC's BEC can't back-feed the board. The firmware default is two weapon ESCs on OUT1 and OUT2. OUT3's pin carries the ESP32 boot messages for a moment at power-up, so use it for a servo rather than an ESC.
  • Pull-downs: 10k on all four motor inputs and all three outputs, so the motors coast and the ESCs see "off" while the ESP32 resets and boots (its pins float until the firmware starts).
  • Battery sense: pack ÷ 6 (100k / 20k) on GPIO3, so 3S full (12.6 V) reads 2.1 V. The firmware detects 2S / 3S at power-on.
  • Status LED: pads for one LED cut from a WS2812B strip (5 V, 60 LED/m, 10 mm), powered through a 1N4148W (about 4.2 V) so the 3.3 V data line is read reliably.
  • I2C header J2 (GND, 3V3, SCL, SDA) with pull-ups, for add-ons.
  • Mounting: two M3 holes (left middle, bottom right).

XIAO pin map

XIAOGPIOUse
D02SDA (I2C header)
D13Battery sense (pack ÷ 6)
D2 / D34 / 5Left DRV8870 IN1 / IN2
D4 / D56 / 7Right DRV8870 IN1 / IN2
D621OUT3 – also UART TX at boot
D720OUT2
D88SCL (I2C header)
D99RGB LED data (BOOT button pin)
D1010OUT1

GPIO2, GPIO8 and GPIO9 are strapping pins. They only carry signals that idle high at boot (I2C pull-ups, and the BOOT button with the LED data line), so the chip always boots normally. None of them has a pull-down.

Before ordering – check these

  1. LCSC part numbers and stock. Go through docs/BOM_CHECK.md on jlcpcb.com/parts.
  2. JLC placement preview. ROT_FIX in gen/fab.py holds the corrections from rev A's preview. The DRV8870 (U3, U4) is new: check its pin-1 dot against the silkscreen triangle and add a correction if it's turned. JLC flags U1's footprint name (TSOT-23-6 vs SOT-23-6); the pads match.
  3. Values to sanity-check against the datasheets: DRV8870 VREF / sense resistor (2.5 A limit), TPS54202 output inductor (10 µH) and capacitors (2 × 22 µF).
  4. Assembly:
    • LED strip: cut one LED from the strip on the cut lines. Tin the three J10 pads, lay the piece on them with its DIN end on the +5V / DIN / GND pads (arrow pointing away), and heat each strip pad from the top. Strips differ: check the +5V / DIN / GND order matches the silkscreen first, or wire it with three short wires instead.
    • Power switch: mount it in the cardboard and run two 18 AWG wires to the SW1 pads.
    • Battery: use 14–16 AWG leads into J1. The 5.08 mm terminals are rated about 16 A; for bigger weapons, solder the battery leads instead.

Regenerating

Everything is generated from gen/circuit.py (parts, LCSC numbers, nets). You need KiCad 7 (kicad-cli and its Python module), python3-numpy and python3-pil.

sh
python3 gen/gen_footprints.py          # lib/cgw.pretty (XIAO socket, LED strip pads, CGW logos)
python3 gen/gen_sch.py                 # schematic + lib/cgw.kicad_sym
kicad-cli sch export pdf -o docs/schematic.pdf cardboard-bot.kicad_sch
PY=/usr/bin/python3.12
$PY gen/gen_pcb.py                     # outline, placement, silkscreen, pre-routed power copper, router keepouts
$PY gen/route.py --stage zones         # GND pours (both layers) + solid power pours
$PY gen/fixroute.py                    # A* grid router for every remaining connection (rips up and retries)
$PY gen/route.py --stage stitch        # GND stitching vias
$PY gen/islands.py                     # ties any leftover GND pour islands
$PY gen/gnd_check.py                   # lists GND copper cut off from the main cluster (DRC won't say where)
(cd gen && $PY tie_pad.py --min 3 REF PAD)   # route a stranded pad to a GND via, if gnd_check finds one
$PY gen/route.py --stage drop-keepouts && $PY gen/route.py --stage fill
$PY gen/silk.py                        # redraw labels only (safe on a routed board)
$PY gen/drc.py                         # DRC summary
python3 gen/fab.py                     # fab/ outputs; BOM and CPL designators are cross-checked
bash gen/render.sh                     # PNG previews

gen_pcb.py builds the board from scratch, which wipes the routing. A full re-route takes a few minutes. After small changes it is usually easier to edit cardboard-bot.kicad_pcb in KiCad directly. gen/patch_prewire.py NET,... re-applies the fixed copper of individual nets on a routed board.

This board was routed with gen/fixroute.py. gen/route.py can also run Freerouting if you have Java and freerouting.jar installed (route.py with no arguments).

Preview

TopBottom (mirrored)
topbottom

Parts

67
QtyValueFootprintReferences
9100nFCapacitor_SMD:C_0603_1608MetricC4, C5, C10, C11, C12, C13, C15, C17, C18
910kResistor_SMD:R_0603_1608MetricR2, R9, R11, R12, R13, R14, R18, R19, R20
410uFCapacitor_SMD:C_0805_2012MetricC3, C9, C14, C16
31N5819WSDiode_SMD:D_SOD-323D4, D5, D6
31kResistor_SMD:R_0603_1608MetricR15, R16, R17
20.1RResistor_SMD:R_1206_3216MetricR7, R8
222uFCapacitor_SMD:C_0805_2012MetricC6, C7
24.7kResistor_SMD:R_0603_1608MetricR3, R4
2470uF 25VCapacitor_THT:CP_Radial_D8.0mm_P3.50mmC1, C2
2DRV8870DDARPackage_SO:Texas_HTSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.95x4.9mm_Mask2.4x3.1mm_ThermalViasU3, U4
2MountingHole_3.2mm_M3MountingHole:MountingHole_3.2mm_M3H1, H2
1+3V3TestPoint:TestPoint_Pad_D1.5mmTP1
1100kResistor_SMD:R_0603_1608MetricR5
110uH 2.35AInductor_SMD:L_Cenker_CKCS4030L1
11N4148WDiode_SMD:D_SOD-123D7
120A mini bladeFuse:Fuseholder_Blade_Mini_Keystone_3568F1
120kResistor_SMD:R_0603_1608MetricR6
1330RResistor_SMD:R_0603_1608MetricR21
133kResistor_SMD:R_0603_1608MetricR10
175kResistor_SMD:R_0603_1608MetricR1
1B5819WDiode_SMD:D_SOD-123D3
1BATTERYTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ1
1CGW_Logocgw:CGW_LogoLOGO2
1ESC PWR 1TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ8
1ESC PWR 2TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ9
1GNDTestPoint:TestPoint_Pad_D1.5mmTP2
1I2CConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ2
1LED STRIPcgw:WS2812B_Strip_1LEDJ10
1LEFT MOTORTerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-3.5-H_1x02_P3.50mm_HorizontalJ3
1OUT1Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ5
1OUT2Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ6
1OUT3Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ7
1POWER SWConnector_Wire:SolderWire-0.75sqmm_1x02_P4.8mm_D1.25mm_OD2.3mmSW1
1RIGHT MOTORTerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-3.5-H_1x02_P3.50mm_HorizontalJ4
1SMAJ13ADiode_SMD:D_SMAD1
1SS34Diode_SMD:D_SMAD2
1TPS54202DDCRPackage_TO_SOT_SMD:TSOT-23-6U1
1XIAO ESP32-C3cgw:XIAO_SocketU2

Similar boards

  • 4 layers85 × 56 mmPiVI, the printed circuit board in 3D

    PiVI

    kuba2k2/PiVI

    A small Pi-sized single board computer for your car

    289 partsGPL-3.0
  • 2 layers100 × 100 mmHour meter board microfit can handroute, the printed circuit board in 3D

    Hour meter board microfit can handroute

    ilomon10/embedded-totalizer-hour-meter

    ESP32 engine hour meter & totalizer: firmware, SensorFrame protocol, Node host tools, KiCad PCB and a Deno device simulator

    152 parts
  • 2 layers104 × 66 mmVallox rs485-controller, the printed circuit board in 3D

    Vallox rs485-controller

    Miroeilola/vallox-rs485-controller

    Replacement control panel for legacy Vallox SE ventilation units. Vallox DIGIT RS-485 protocol, bus-powered, ESP32, Home Assistant.

    65 parts
  • 4 layers101 × 51.5 mmQuack core, the printed circuit board in 3D

    Quack core

    HeyPCB/quack-core

    Brain board for the Open Duck Mini: Pi Zero 2W carrier, 14-servo STS bus, fused 2S power path in stitched copper zones (15-18 A battery side), USB-C charging with balancing, IMU.

    138 parts1CERN-OHL-S-2.0
  • 2 layers54 × 31 mmGamer companion, the printed circuit board in 3D

    Gamer companion

    donaldbell/productspeedrun

    Let's see how quickly we can get a product idea off the ground.

    41 parts
  • 4 layers88.1 × 59.4 mmChromapi motherboard v1, the printed circuit board in 3D

    Chromapi motherboard v1

    Mowibox/chromapi_motherboard

    Raspberry Pi control HAT dedicated to the quadruped robot Chromapi.

    139 parts2Apache-2.0
  • 2 layers45 × 100 mmWalkiepcb, the printed circuit board in 3D

    Walkiepcb

    houseofthe051010/ESP32-Walkie-Talkie-V2

    This ESP32 Walkie Talkie is redesigned with a SX1262 radio, a PCB, and a full case redesign.

    93 parts1
  • 4 layers64 × 80 mmIris brainstem, the printed circuit board in 3D

    Iris brainstem

    HeyPCB/iris-brainstem

    Iris Brainstem: power and servo hub of the Iris robot head. 9 V USB-C PD in, 6 V / 5 A servo rail in stitched copper zones (measured), 5 V rail, half-duplex servo bus with ten ports, speaker amp.

    97 partsCERN-OHL-S-2.0

Questions

How big is the Cardboard bot PCB?

It measures 60 × 46 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Cardboard bot use?

67 parts, built around the DRV8870DDAR, TPS54202DDCR, CC0603KRX7R9BB104 and CL21A106KAYNNNE. 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 Cardboard bot KiCad files?

From the ColumbiaGadgetWorks/cardboard-bot-v2 repository on GitHub, at the commit this page was made from: the board is hardware/cardboard-bot.kicad_pcb and its schematic hardware/cardboard-bot.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Cardboard bot design in my own project?

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