Skip to the content
PCBKitNew board
4 layers52 × 64 mmPrerouted, the printed circuit board in 3D

A compact interface for three NPN, PNP or logic sensors on an FRC robot. Each port has a removable 5 V / 12 V power jumper; input type is configured in software.

Size
52 × 64 mm
Copper layers
4
Thickness
1.6 mm
Parts
124
Nets
73
Pads
361
Tracks, vias
828, 54
Pours
3
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
8 Sep 2026
Updated
10 Sep 2026

Overview

Prerouted is an open-source printed circuit board by barkinvar, from the barkinvar/sugerCANe repository on GitHub. It is a 4-layer board of 52 × 64 mm with 124 parts on 73 nets, routed with 828 tracks and 54 vias.

It is built around the STM32F042K6T6, TCAN3413DRB and TPS2553DBVR-1, with the AP2112K-3.3TRG1, LM339LVD and CL21B104KCFNNNE among its other parts. Its parts include 46 resistors, 34 capacitors, 11 diodes, 8 ICs and 7 transistors. It belongs with the STM32 boards of this library.

Main components

12

README

README.md

sugarCANe — sensor inputs over CAN

GitHub repository: barkinvar/sugerCANe

A compact interface for three NPN, PNP or logic sensors on an FRC robot. Each port has a removable 5 V / 12 V power jumper; input type is configured in software. CAN provides sensor readings, device-ID changes and recoverable firmware updates.

sugarCANe is the product name; SC12 Rev H remains the hardware identity. The underside carries a large original pixel-cane illustration on a raised island with a stepped underside and a bold pixel sugarCANe wordmark, with no other text. Bottom artwork render.

Start with Rev H in current/. It is an unbuilt engineering prototype, with physical qualification still pending. It uses its own protocol and drivers; it is not compatible with CTRE Phoenix or GrappleHook.

Rev H adds one RGB status LED on the right, with space for a printed light duct, and a recessed female programming socket for small batches. It retains G's protected sensor supplies, CAN fault reset and rail measurements. See the engineering review for the evidence and remaining physical tests.

Selected assembly plan: JLC fits 129 top-side SMT parts. You buy STM32F042K6T6 from DigiKey and solder U5, then fit ten through-hole parts and three jumper caps. U5 is omitted from the factory BOM, CPL and stencil. All 54 factory types had stock for ten boards in the September 10, 07:22 UTC check. Full power/input/firmware and four-layer CAD screens pass; factory process/stack/inspection confirmation and quotation remain pending. Start here: where to buy and how to order.

SC12 Rev H

Current designDetail
Board input6–22 V DC
Sensor powerRegulated 5 V / 12 V; 300 mA shared per rail
Supply protectionCurrent limiting for shorts to ground; 5 V-to-12 V cross-connections are unsupported
SignalsPositive 0–30 V targets; NPN / PNP / push-pull / floating detection / keeper
Size and assembly52 × 74 mm, four copper layers; all components on top
User assemblyDigiKey MCU, six terminals, three voltage headers, service socket and three caps
Parts estimate$27.18 per board at 10 boards before SMT attrition; $28.06 with conservative allowance
Cost exclusionsPCB, assembly, freight, tax and testing; no factory quotation yet

The selected purchasing estimate is $1.81 lower per board than the preceding $28.99 estimate, before SMT attrition. It includes the DigiKey MCU; optional spares are extra. Assembly and the reusable programmer are separate. Cost basis.

Find what you need

TaskLink
Connect and configure sensorsWiring · input modes
Understand the power circuitCircuit explanation · schematic PDF
Assemble or request a quoteFactory instructions · package status
Read LED / choose a programmerStatus and programming
Program or update over CANCAN service · robot drivers
Review CAD and testsCurrent design · power simulations · validation summary
Download the full designRev H source/release status

Why the revisions differ

RevisionMade forMain difference
AOriginal four-input concept96 × 96 mm baseline
BSmaller, configurable three-input board60 × 68 mm; physical power/bias/threshold settings
B2Factory assembly of B at lower parts costEquivalent passives and sourcing; same B circuit
C LiteSimpler, smaller digital interface52 × 56 mm; 5 V and protected battery power; fewer parts
D SC12Industrial sensors needing regulated 12 V52 × 64 mm; regulated 5 V / 12 V and rail-health reporting
D2 SC12Lower-cost assembly and CAN servicingHand-fitted terminals, removable voltage jumpers, CAN setup/update
E SC12Mixed sensor types without bias solder settingsSoftware NPN/PNP/push-pull/float/keeper; 52 × 70 mm
F SC12Keep E's features at lower costInput-protected boost, cheaper passives; startup/short findings remain in the archive
G SC12Resolve the power-path findings and enable CAN recoveryOutput eFuse, controlled inrush, rail ADCs, default-off enables; 52 × 74 mm
H SC12 — currentVisible diagnostics and inexpensive programming for ten boardsOne RGB LED, buffered data, ordinary 2.54 mm service header; same 52 × 74 mm, top-side assembly

Revision details · Historical downloads. Use hardware, firmware and instructions from the same revision.

Folder map

Clone the repository and enter the maintained design:

sh
git clone https://github.com/barkinvar/sugerCANe.git
cd sugerCANe/current

See tools and reproduction for setup and build instructions.

text
current/                 The maintained Rev H design
  hardware/              Native KiCad, local libraries and circuit model
  firmware/              MCU application, bootloader and tests
  host/ + examples/      CAN setup tools and robot drivers
  bom/ + order/          Parts lists and factory package status
  docs/                  Wiring, assembly, servicing and qualification
  output/ + reports/     Fabrication exports, drawings and check evidence
  scripts/ + tools/      Reproduction scripts and pinned dependencies
  release/               Release package status
archive/                 Original older release/order ZIPs and checksums

Earlier expanded project copies and unused experiments were removed from the current tree. Historical packages are unchanged, and previous sources remain in Git history. Contributing and generated-file policy.

The 52 × 74 mm board has top-side assembly, rounded corners, improved edge clearances, a recessed debug socket and labelled voltage selectors. Its 1,530 straight track segments and 242 vias satisfy the routing rules. All-layer cleanup removes pad overshoots, redundant paths and stubs, with explicit chamfered branches. Ground pours use checked widths and gaps; see the ground cleanup. Component positions and artwork are unchanged. See before/after details, all four copper layers and connector details.

The input connector-to-fuse and fuse-to-MOSFET routes are now 0.7 mm wide (14 segments widened from 0.5 mm). The protected input and converter paths retain their reviewed clearance necks. Width, clearance, connectivity and ground-pour checks cover all four layers; see the power-path review.

Copper layerRolePNGSVG
TopComponents, signals and powerPNGSVG
Inner 1Ground planePNGSVG
Inner 2Ground with selected signals and low-current supply branchesPNGSVG
BottomSignals, power and groundPNGSVG

These views show the actual exported copper and drills. Inner layers are viewed from the top; the bottom is mirrored for an underside view.

Parts

124
QtyValueFootprintReferences
14100nFFRC_Sensor_CAN:C_0805_2012MetricC3, C6, C11, C20, C21, C22, C27, C40, C41, C50, C51, C61, C65, C66
9100kFRC_Sensor_CAN:R_0805_2012MetricR50, R60, R65, R111, R112, R211, R212, R311, R312
910kFRC_Sensor_CAN:R_0805_2012MetricR3, R21, R22, R40, R41, R52, R105, R205, R305
822uFFRC_Sensor_CAN:C_1206_3216MetricC4, C5, C12, C13, C60, C62, C63, C64
51kFRC_Sensor_CAN:R_0805_2012MetricR4, R30, R110, R210, R310
42.2MFRC_Sensor_CAN:R_0805_2012MetricR67, R104, R204, R304
310kFRC_Sensor_CAN:R_1206_3216MetricR109, R209, R309
31nFFRC_Sensor_CAN:C_0805_2012MetricC101, C201, C301
320kFRC_Sensor_CAN:R_0805_2012MetricR103, R203, R303
3220kFRC_Sensor_CAN:R_0805_2012MetricR101, R201, R301
32P PUSH 3.5mmFRC_Sensor_CAN:Weidmuller_LSF_90_2PJ1, J2, J3
33P PUSH 3.5mmFRC_Sensor_CAN:Weidmuller_LSF_90_3PJ4, J5, J6
35V / 12VFRC_Sensor_CAN:PinHeader_1x03_P2.00mm_VerticalJP101, JP201, JP301
3AO3401AFRC_Sensor_CAN:SOT-23Q101, Q201, Q301
3BAT46WFRC_Sensor_CAN:D_SOD-123D102, D202, D302
3BSS138BKFRC_Sensor_CAN:SOT-23Q102, Q202, Q302
3SMAJ30AFRC_Sensor_CAN:D_SMAD101, D201, D301
21uFFRC_Sensor_CAN:C_0805_2012MetricC7, C23
230pFFRC_Sensor_CAN:C_0805_2012MetricC25, C26
24.7uFFRC_Sensor_CAN:C_0805_2012MetricC8, C24
2M3 NPTHH1, H2
2TPS2553DBVR-1FRC_Sensor_CAN:SOT-23-6U4, U9
10FRC_Sensor_CAN:R_0805_2012MetricR20
11.8kFRC_Sensor_CAN:R_0805_2012MetricR66
1102kFRC_Sensor_CAN:R_0805_2012MetricR1
110uFFRC_Sensor_CAN:C_1210_3225MetricC2
110uHFRC_Sensor_CAN:L_Bourns_SRP7028A_7.3x6.6mmL1
111.5kFRC_Sensor_CAN:R_0805_2012MetricR61
1120FRC_Sensor_CAN:R_1206_3216MetricR42
112V ZENERFRC_Sensor_CAN:D_SOD-123D3
113.7kFRC_Sensor_CAN:R_0805_2012MetricR2
113kFRC_Sensor_CAN:R_0805_2012MetricR63
121.5kFRC_Sensor_CAN:R_0805_2012MetricR62
13.3nFFRC_Sensor_CAN:C_0805_2012MetricC69
13.3uHFRC_Sensor_CAN:L_Bourns_SRP5030TL2
13A FASTFRC_Sensor_CAN:Fuse_Littelfuse-NANO2-451_453F1
147uFFRC_Sensor_CAN:CP_Elec_8x6.5C1
15.23kFRC_Sensor_CAN:R_0805_2012MetricR51
159kFRC_Sensor_CAN:R_0805_2012MetricR10
18MHz 18pFFRC_Sensor_CAN:Abracon_ABM3B_5.0x3.2mmY1
1AO4485FRC_Sensor_CAN:SOIC-8_3.9x4.9mm_P1.27mmQ1
1AP2112K-3.3FRC_Sensor_CAN:SOT-23-5U2
1B240AFRC_Sensor_CAN:D_SMAD4
1ESD2CAN24-Q1FRC_Sensor_CAN:SOT-23D20
1GNDFRC_Sensor_CAN:TestPoint_Pad_D2.0mmTP1
1GREENFRC_Sensor_CAN:LED_0805_2012MetricD10
1LM339LVFRC_Sensor_CAN:SOIC-14_3.9x8.7mm_P1.27mmU7
1LMR51420XDDCRFRC_Sensor_CAN:TSOT-23-6U1
1POGO SERVICEFRC_Sensor_CAN:Tag-Connect_TC2050-IDC-NL_2x05_P1.27mm_VerticalJ8
1SMBJ22AFRC_Sensor_CAN:D_SMBD2
1STM32F042K6T6FRC_Sensor_CAN:LQFP-32_7x7mm_P0.8mmU5
1TCAN3413DRFRC_Sensor_CAN:SOIC-8_3.9x4.9mm_P1.27mmU6
1TERM 120RFRC_Sensor_CAN:SolderSelector_2JP2
1TPS61085DGKRFRC_Sensor_CAN:VSSOP-8_3x3mm_P0.65mmU8

Questions

How big is the Prerouted PCB?

It measures 52 × 64 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Prerouted use?

124 parts, built around the STM32F042K6T6, TCAN3413DRB, TPS2553DBVR-1 and AP2112K-3.3TRG1. 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 Prerouted KiCad files?

From the barkinvar/sugerCANe repository on GitHub, at the commit this page was made from: the board is current/hardware/prerouted.kicad_pcb and its schematic current/hardware/FRC_Sensor_CAN.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Prerouted design in my own project?

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

More from barkinvar/sugerCANe

1
  • 4 layers52 × 74 mmFRC Sensor CAN, the printed circuit board in 3D

    FRC Sensor CAN

    barkinvar/sugerCANe

    A compact interface for three NPN, PNP or logic sensors on an FRC robot. Each port has a removable 5 V / 12 V power jumper; input type is configured in software.

    144 parts1

Similar boards

  • 6 layers327 × 271 mmEGSE, the printed circuit board in 3D

    EGSE

    nanosatlab/pocat-hw

    IEEE PocketQubes

    212 parts12
  • 4 layers118 × 250 mmPcb lab, the printed circuit board in 3D

    Pcb lab

    y-watal/pcb_lab

    285 parts
  • 4 layers165 × 80 mmSpine, the printed circuit board in 3D

    Spine

    EPFLRocketTeam/2026_C_AV_HARDWARE

    Repository containing PCBs files of FH2 Avionics

    203 parts
  • 4 layers100 × 100 mmA SGSS cskpin routed, the printed circuit board in 3D

    A SGSS cskpin routed

    ThatguyCplus/throttleECU

    STM32F411CE Throttle ECU — PID position control with AS5048A encoder, H-bridge motor, safety module

    571 parts1
  • 4 layers150 × 155 mmUsb console server, the printed circuit board in 3D

    Usb console server

    TheKingOfChaos/Console-Server

    48 RS-232 console ports on one Raspberry Pi: three identical boards, 16 ports each. Built from the design record of 2026-10-10. KiCad 10.0.7. This is Rev B (git tag rev-A is the first board).

    361 parts
  • 2 layers52 × 59 mmBluetoothPedal Main, the printed circuit board in 3D

    BluetoothPedal Main

    skngh/RidgeField

    Bluetooth guitar pedal using the Daisy Seed. Sends controls from a guitar mounted box to the enclosure on your pedalboard.

    40 parts9MIT
  • 4 layers449.2 × 272.9 mmWpc power driver cost, the printed circuit board in 3D

    Wpc power driver cost

    lolz0r/Williams-WPC-Power-Driver-Board-A-12697-3

    Untested, unverifed, AI created design.

    453 parts2
  • 4 layers255 × 127 mmSCART switcher, the printed circuit board in 3D

    SCART switcher

    nunosousa/SCART-switcher

    An old school SCART switcher. Its main purpose will be to automaticaly detect and switch the video output to the active input video source.

    613 parts