

Cardboard bot
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
11DRV8870DDAR
HSOP-8-EP-40℃~+125℃ 1 10uA 3.6A 565mΩ Yes HSOP-8-EP Brushed DC Motor Drivers ROHSTexas InstrumentsBrushed DC Motor DriversTPS54202DDCR
SOT-23-6-40℃~+125℃@(TJ) 1 2A 4.5V~28V 45uA 500kHz Adjustable Buck Buck Built-in Yes SOT-23-6 DC-DC Converters ROHSTexas InstrumentsDC-DC ConvertersCC0603KRX7R9BB104
0603100nF 50V X7R ±10% 0603 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHSYAGEOMultilayer Ceramic Capacitors MLCC - SMD/SMTCL21A106KAYNNNE
080510uF 25V X5R ±10% 0805 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHSSamsung Electro-MechanicsMultilayer Ceramic Capacitors MLCC - SMD/SMT1N5819WS
SOD-3231 Independent 1A 25A 40V 500uA@40V 600mV@1A SOD-323 Schottky Diodes ROHSGuangdong HottechSchottky DiodesCL21A226MAQNNNE
080522uF 25V X5R ±20% 0805 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHSSamsung Electro-MechanicsMultilayer Ceramic Capacitors MLCC - SMD/SMTFHD4020S-100MT
SMD,4x4mm10uH 190mΩ 2.35A 3.5A ±20% SMD,4x4mm Power Inductors ROHScjiangPower Inductors1N4148W
SOD-123150mA 1A 1V@50mA 1uA@75V 400mW 4ns 75V Independent SOD-123 Switching Diodes ROHSSTMicroelectronicsSwitching DiodesB5819W
SOD-123-55℃~+125℃ 1.5A 1mA@40V 25A 40V 600mV@1A Standalone SOD-123 Schottky Diodes ROHSMDDSchottky DiodesSMAJ13A
DO-214AC(SMA)-55℃~+150℃ 13V 15.9V 18.6A 1uA 21.5V 400W@10/1000us IEC 61000-4-2 TVS Unidirectional DO-214AC(SMA) ESD and Surge Protection (TVS/ESD) ROHShongjiachengESD And Surge Protection (TVS/ESD)SS34
SMA(DO-214AC)-55℃~+125℃ 3A 40V 500uA@40V 550mV@3A Independent SMA(DO-214AC) Schottky Diodes ROHSMDDSchottky Diodes
README
hardware/README.mdCardboard 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.
| What | Where |
|---|---|
| Schematic (PDF) | docs/schematic.pdf |
| KiCad 7 project | cardboard-bot.kicad_pro / .kicad_sch / .kicad_pcb |
| JLCPCB upload files | fab/ (gerber zip, BOM, CPL) |
| Hand-solder list | fab/cardboard-bot-v2-revB-hand-solder.csv |
| Part-number check list | docs/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
| XIAO | GPIO | Use |
|---|---|---|
| D0 | 2 | SDA (I2C header) |
| D1 | 3 | Battery sense (pack ÷ 6) |
| D2 / D3 | 4 / 5 | Left DRV8870 IN1 / IN2 |
| D4 / D5 | 6 / 7 | Right DRV8870 IN1 / IN2 |
| D6 | 21 | OUT3 – also UART TX at boot |
| D7 | 20 | OUT2 |
| D8 | 8 | SCL (I2C header) |
| D9 | 9 | RGB LED data (BOOT button pin) |
| D10 | 10 | OUT1 |
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
- LCSC part numbers and stock. Go through
docs/BOM_CHECK.mdon jlcpcb.com/parts. - JLC placement preview.
ROT_FIXingen/fab.pyholds 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. - 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).
- 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.
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 previewsgen_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
| Top | Bottom (mirrored) |
|---|---|
![]() | ![]() |
Parts
67| Qty | Value | Footprint | References |
|---|---|---|---|
| 9 | 100nF | Capacitor_SMD:C_0603_1608Metric | C4, C5, C10, C11, C12, C13, C15, C17, C18 |
| 9 | 10k | Resistor_SMD:R_0603_1608Metric | R2, R9, R11, R12, R13, R14, R18, R19, R20 |
| 4 | 10uF | Capacitor_SMD:C_0805_2012Metric | C3, C9, C14, C16 |
| 3 | 1N5819WS | Diode_SMD:D_SOD-323 | D4, D5, D6 |
| 3 | 1k | Resistor_SMD:R_0603_1608Metric | R15, R16, R17 |
| 2 | 0.1R | Resistor_SMD:R_1206_3216Metric | R7, R8 |
| 2 | 22uF | Capacitor_SMD:C_0805_2012Metric | C6, C7 |
| 2 | 4.7k | Resistor_SMD:R_0603_1608Metric | R3, R4 |
| 2 | 470uF 25V | Capacitor_THT:CP_Radial_D8.0mm_P3.50mm | C1, C2 |
| 2 | DRV8870DDAR | Package_SO:Texas_HTSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.95x4.9mm_Mask2.4x3.1mm_ThermalVias | U3, U4 |
| 2 | MountingHole_3.2mm_M3 | MountingHole:MountingHole_3.2mm_M3 | H1, H2 |
| 1 | +3V3 | TestPoint:TestPoint_Pad_D1.5mm | TP1 |
| 1 | 100k | Resistor_SMD:R_0603_1608Metric | R5 |
| 1 | 10uH 2.35A | Inductor_SMD:L_Cenker_CKCS4030 | L1 |
| 1 | 1N4148W | Diode_SMD:D_SOD-123 | D7 |
| 1 | 20A mini blade | Fuse:Fuseholder_Blade_Mini_Keystone_3568 | F1 |
| 1 | 20k | Resistor_SMD:R_0603_1608Metric | R6 |
| 1 | 330R | Resistor_SMD:R_0603_1608Metric | R21 |
| 1 | 33k | Resistor_SMD:R_0603_1608Metric | R10 |
| 1 | 75k | Resistor_SMD:R_0603_1608Metric | R1 |
| 1 | B5819W | Diode_SMD:D_SOD-123 | D3 |
| 1 | BATTERY | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J1 |
| 1 | CGW_Logo | cgw:CGW_Logo | LOGO2 |
| 1 | ESC PWR 1 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J8 |
| 1 | ESC PWR 2 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J9 |
| 1 | GND | TestPoint:TestPoint_Pad_D1.5mm | TP2 |
| 1 | I2C | Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical | J2 |
| 1 | LED STRIP | cgw:WS2812B_Strip_1LED | J10 |
| 1 | LEFT MOTOR | TerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-3.5-H_1x02_P3.50mm_Horizontal | J3 |
| 1 | OUT1 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J5 |
| 1 | OUT2 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J6 |
| 1 | OUT3 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J7 |
| 1 | POWER SW | Connector_Wire:SolderWire-0.75sqmm_1x02_P4.8mm_D1.25mm_OD2.3mm | SW1 |
| 1 | RIGHT MOTOR | TerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-3.5-H_1x02_P3.50mm_Horizontal | J4 |
| 1 | SMAJ13A | Diode_SMD:D_SMA | D1 |
| 1 | SS34 | Diode_SMD:D_SMA | D2 |
| 1 | TPS54202DDCR | Package_TO_SOT_SMD:TSOT-23-6 | U1 |
| 1 | XIAO ESP32-C3 | cgw:XIAO_Socket | U2 |
Similar boards
- 4 layers85 × 56 mm

- 2 layers100 × 100 mm

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 mm

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 mm

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 mm

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 mm

Chromapi motherboard v1
Mowibox/chromapi_motherboard
Raspberry Pi control HAT dedicated to the quadruped robot Chromapi.
139 parts2Apache-2.0 - 2 layers45 × 100 mm

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 mm

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.

