Skip to the content
4 layers84 × 49 mmBackPorch, the printed circuit board in 3D

These are similar to the SWYFT CAN wiring devices

Size
84 × 49 mm
Copper layers
4
Thickness
1.6 mm
Parts
80
Nets
64
Pads
274
Tracks, vias
684, 132
Pours
4
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
16 Apr 2025
Updated
20 Mar 2026

Overview

BackPorch is an open-source printed circuit board by nlbutts, from the nlbutts/Foyers repository on GitHub, published under the MIT licence. It is a 4-layer board of 84 × 49 mm with 80 parts on 64 nets, routed with 684 tracks and 132 vias.

It is built around the L78M05ABDT-TR, USBLC6-2SC6 and XC6206P332MR-G, with the SP0502BAHTG, RJ45 and JS202011SCQN among its other parts. Its parts include 15 resistors, 14 capacitors, 14 diodes, 9 connectors and 6 ICs. It belongs with the STM32 boards of this library.

Main components

6

README

README.md

Foyers / BackPorch Project

The Foyers/BackPorch system is an STM32-based hardware ecosystem designed for FRC robot sensing and control, featuring CAN communication with a built-in bootloader.

Foyer Board

Hardware Overview

Foyer Distribution Board

The Foyer board serves as the primary distribution point for the system.

  • Power & CAN Input: Connects to the main robot power and CAN bus.
  • Power & CAN Exit: Provides a pass-through for daisy-chaining CAN and power to subsequent devices.
  • Node Interface: Distributes power and CAN to the BackPorch and sensor nodes.

BackPorch Main Board

The BackPorch is the central controller board, based on the STM32G0B1 microcontroller. It handles high-level CAN communication, sensor aggregation, and basic power management.

BackPorch Header

Main Connectors & Pinouts
RefTypeFunctionMating Part
J4RJ45CAN BusStandard RJ45 Plug
J9JST PH 6-pinRev Through Bore EncoderJST PHR-6
J10USB Micro BPower / DebugStandard Micro-USB
J1/J2Wago 2601Power Input (VBAT/GND)24-16 AWG Wire
J3Wago 2601Motor Output24-16 AWG Wire
J6Tag-ConnectSWD ProgrammingTC2030-IDC

J4 (RJ45) CAN Pinout:

  • Pin 1: CAN High
  • Pin 2: CAN Low
  • Pin 3: CAN High Loopback
  • Pin 4: VBAT
  • Pin 5: VBAT
  • Pin 6: Can Low Loopback
  • Pin 7: GND
  • Pin 8: GND

J9 (Rev Through Bore Encoder) Pinout: Compatible with the REV Through Bore Encoder.

  • Pin 1: 5V Power
  • Pin 2: Absolute Position (Duty Cycle)
  • Pin 3: Incremental Channel A
  • Pin 4: Incremental Channel B
  • Pin 5: Index (Optional)
  • Pin 6: GND

SimpleTOF Board

A compact Time-of-Flight (ToF) distance sensor breakout designed to interface with the BackPorch.

SimpleTOF

Software Setup

Development Environment

This project uses the official STM32 development workflow:

  1. STM32CubeMX: Used for low-level hardware configuration (GPIO, CAN, Timers).
    • Open the .ioc files in the software/backporch or software/bootloader directories to modify the hardware configuration.
    • Generate code to update the underlying HAL drivers.
  2. Visual Studio Code: The recommended IDE for code development.
    • Use the STM32 VS Code Extension to compile the project.
    • Ensure arm-none-eabi-gcc is installed and in your PATH.
    • Build using the CMake workflow provided by the extension.

Bootloader & Monitoring Utility

The software/can_mon/bp_debug.py program is a multi-purpose Python utility for interacting with the hardware over CAN.

Script Purpose

  • CAN Monitor: Provides a real-time GUI to view telemetry from discovered devices (Voltage, Current, Temp, Distance, Encoder position).
  • Firmware Updater: Acts as the host tool for the CAN bootloader, allowing you to stream .bin files to a target device ID and commit them to flash.
  • Status Broadcasts: Decodes the WPILib-formatted CAN frames used by the system.

Usage

bash
python software/can_mon/bp_debug.py

Note: Requires python-can and tkinter libraries. Ensure your CAN adapter is configured (default: SLSAN on COM5).

System Architecture

System Architecture

The system follows a modular architecture where multiple sensor nodes (Foyers) communicate with the BackPorch controller over a shared CAN bus, which then interfaces with the Robot Controller.

Block Diagram These are similar to the SWYFT CAN wiring devices

Parts

80
QtyValueFootprintReferences
13TestPointTestPoint:TestPoint_Pad_D1.0mmTP1, TP2, TP3, TP4, TP5, TP6, TP7, TP8, TP9, TP10, TP11, TP12, TP13
40.1uCapacitor_SMD:C_0402_1005MetricC10, C11, C13, C14
44.7uCapacitor_SMD:C_0603_1608MetricC3, C5, C7, C9
449.9Resistor_SMD:R_0402_1005MetricR12, R13, R14, R15
4LEDLED_SMD:LED_0805_2012MetricD7, D8, D9, D10
4SP0502BAHTPackage_TO_SOT_SMD:SOT-23D11, D12, D13, D14
4SolderJumper_3_Bridged12Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mmJP2, JP3, JP4, JP5
310uCapacitor_SMD:C_0603_1608MetricC2, C4, C6
3LEDLED_SMD:LED_0603_1608MetricD3, D4, D5
21kResistor_SMD:R_0402_1005MetricR3, R5
22.2uCapacitor_SMD:C_0603_1608MetricC8, C12
222Resistor_SMD:R_0402_1005MetricR9, R10
22601-1104LocalFootprints:CONN4_2601-1104_WAGJ6, J7
2330Resistor_SMD:R_0603_1608MetricR7, R8
2D_SchottkyDiode_SMD:D_SOD-123D2, D6
2MountingHoleMountingHole:MountingHole_3.2mm_M3_DIN965H1, H2
2RJ45LocalFootprints:AMPHENOL_54602-908LFJ3, J4
11Resistor_SMD:R_0603_1608MetricR4
110kResistor_SMD:R_0402_1005MetricR2
11uCapacitor_SMD:C_0402_1005MetricC1
12601-1102LocalFootprints:CONN2_2601-1102_WAGJ5
14.7kResistor_SMD:R_0402_1005MetricR11
149.9Resistor_SMD:R_0805_2012MetricR1
1680Resistor_SMD:R_0603_1608MetricR6
1Conn_01x04Connector_JST:JST_SH_SM04B-SRSS-TB_1x04-1MP_P1.00mm_HorizontalJ8
1Conn_01x06Connector_JST:JST_PH_S6B-PH-K_1x06_P2.00mm_HorizontalJ9
1Conn_ARM_SWD_TagConnect_TC2030-NLConnector:Tag-Connect_TC2030-IDC-NL_2x03_P1.27mm_VerticalJ10
1D_ZenerDiode_SMD:D_SOD-123D1
1INA180A1Package_TO_SOT_SMD:SOT-23-5U3
1JS202011SCQNLocalFootprints:SW_JS202011SCQNS1
1L78M05ABDT-TRPackage_TO_SOT_SMD:TO-252-2U1
1STM32G0B1KBUxPackage_DFN_QFN:QFN-32-1EP_5x5mm_P0.5mm_EP3.45x3.45mmU5
1SolderJumper_2_BridgedJumper:SolderJumper-2_P1.3mm_Bridged2Bar_RoundedPad1.0x1.5mmJP1
1SolderJumper_3_Bridged12Jumper:SolderJumper-3_P1.3mm_Bridged2Bar12_RoundedPad1.0x1.5mm_NumberLabelsJP6
1TCAN1044A-Q1Package_SON:VSON-8-1EP_3x3mm_P0.65mm_EP1.6x2.4mmU6
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U4
1USB_B_MicroConnector_USB:USB_Micro-B_Amphenol_10118193-0001LF_HorizontalJ1
1XC6206P332MR-GPackage_TO_SOT_SMD:SOT-23U2

More from nlbutts/Foyers

2
  • 2 layers46 × 38 mmBackPorch, the printed circuit board in 3D

    BackPorch

    nlbutts/Foyers

    These are similar to the SWYFT CAN wiring devices

    8 partsMIT
  • 2 layers32 × 34.5 mmFoyers, the printed circuit board in 3D

    Foyers

    nlbutts/Foyers

    These are similar to the SWYFT CAN wiring devices

    7 partsMIT

Similar boards

  • 4 layers46 × 30 mmCan distance sensor, the printed circuit board in 3D

    Can distance sensor

    nlbutts/can_distance_sensor

    This is a small CAN based Time-of-Flight (TOF) sensor. It determines the distance to an object and sends the resulting message on the CAN bus.

    74 partsMIT
  • 2 layers100 × 100 mmSchematic MD, the printed circuit board in 3D

    Schematic MD

    Mochizuki12/schematic_MD

    180 partsCC-BY-SA-4.0
  • 2 layers88.9 × 63.5 mmTeleimperium, the printed circuit board in 3D

    Teleimperium

    visgence/teleimperium

    58 parts
  • 4 layers80 × 40 mmOpilio3, the printed circuit board in 3D

    Opilio3

    kitspace-test-repos/kicad6-file-collection

    90 partsMIT

Questions

How big is the BackPorch PCB?

It measures 84 × 49 mm and has 4 copper layers, 1.6 mm thick.

What parts does the BackPorch use?

80 parts, built around the L78M05ABDT-TR, USBLC6-2SC6, XC6206P332MR-G and SP0502BAHTG. 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 BackPorch KiCad files?

From the nlbutts/Foyers repository on GitHub, at the commit this page was made from: the board is electronics/BackPorch/BackPorch.kicad_pcb and its schematic electronics/BackPorch/BackPorch.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the BackPorch design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).