Skip to the content
4 layers358 × 40 mmLongboi, the printed circuit board in 3D

Possibly the longest controller board to control the BoxTurtle AFC

Size
358 × 40 mm
Copper layers
4
Thickness
1.6 mm
Parts
297
Nets
258
Pads
1,261
Tracks, vias
2,272, 454
Pours
77
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
17 Jun 2025
Updated
20 Aug 2026

Overview

Longboi is an open-source printed circuit board by KungfuPancake, from the KungfuPancake/longboi repository on GitHub, published under the Apache-2.0 licence. It is a 4-layer board of 358 × 40 mm with 297 parts on 258 nets, routed with 2,272 tracks and 454 vias.

It is built around the 74LVC1G126Z, SN74LVC245APW and TCAN332GD, with the DRV8837DSG, TPS56637RPAR and TMC2209-LA among its other parts. Its parts include 105 resistors, 81 capacitors, 42 connectors, 26 diodes and 23 ICs. It belongs with the STM32 boards of this library.

Main components

12

README

README.md

Longboi AFC controller

assembled pcb render Tired of the mess of cables in your BoxTurtle? Want to add a heated filament dryer chamber some time down the road? Want to control that cooling fan with PWM? This project is for you!

The Longboi sits behind the full width of the BoxTurtle front panel and allows very short cable runs of equal length from each respooler and extruder. It's equipped with a beefy STM32H723 MCU and can be controlled with CAN or USB. If using CAN it's also daisy chainable for 8, 12 or even more lanes!

How to get a Longboi

Buying a complete board

LDO will sell complete boards via various resellers. Production is currently unknown - check back later for updates!

PCB + Assembly by JLCPCB

You can order assembled PCBs from pretty much any fab, although currently only production files tested with JLCPCB are available in jlcpcb/. To order PCBs with assembly you'll have to go through their manufacturing wizard, using mostly standard settings. Although the JLC engineers will try and correct any mistakes, please do sanity checks on every page.

  1. Upload longboi.zipinto the PCB quote form and select a quantity. Five PCBs is the minimum quantity, cost per board will be lower the more boards you order since most of the cost is setup fees. Select a solder mask color you like - green is usually cheapest. I highly recommend choosing ENIG as a surface finish, HASL is usually not worth the saved money on production boards. Leave all other settings on their default values. Check PCBA (assembly) on the bottom of the form. Click "Next".
  2. Check if the PCB looks like it should, then click "Next".
  3. Upload bom.csv for BOM, positions.csvfor CPL. Click "Next".
  4. Check if all components look right, if there are stock shortages you will have to select replacement. Be very careful to select components that are equal or better in specs. If everything looks good, click "Next".
  5. Check the placement of all components, especially if the first pin corresponds with the PCB markings. Slight inaccuracies on the big through hole connectors are okay, as they are hand soldered anyway. Click "Next".
  6. You'll see a breakdown of all individual fees and prices. If you're flexible on the amount of PCBs you order you can try and see which amount has the best value to you.
  7. Done!

Please be aware that the BOM only contains a fuse holder, the fuses (2410/1808) have to be sourced separately. 4A is a good value to start, depending on the heater you may or may not use the value can be scaled up or down accordingly.

PCB + assembling it yourself

Order the PCBs anywere you want as the specs are very modest. Assembly of the board is an advanced task requiring lots of soldering, including hot air and/or using a reflow oven. If you don't feel comfortable with that, you should let the fab handle the assembly.

Please be aware that the BOM only contains a fuse holder, the fuses (2410/1808) have to be sourced separately. 4A is a good value to start, depending on the heater you may or may not use the value can be scaled up or down accordingly.

Preparations

This is a general guideline how to proceed with flashing the Katapult bootloader (optional) and Klipper. If you struggle with the process or encounter errors on the way, especially when using CAN bus, try the detailed instructions and troubleshooting tips and tricks from Esoterical's CANBus guide. Start with only USB connected via the JST header. When plugging in the USB cable into your computer, the 3.3V and USB LEDs should light up. Now you're ready for flashing!

CAN

Katapult

katapult reference config for can

Klipper

klipper reference config for can

USB

Katapult

katapult reference config for usb

Klipper

klipper reference config for usb

Initial flash via DFU

To enable CAN or USB flashing via Katapult or Klipper you'll have to bootstrap the board via the MCUs built-in DFU bootloader, using dfu-util. To enter the DFU bootloader, hold down the "Boot"-button, then press the "Reset"-button shortly. You can now release both buttons and the Longboi should be visible as a "STM Device in DFU Mode" USB device.

Use dfu-util to flash the desired firmware, e.g. Katapult: dfu-util -R -a 0 -s 0x08000000:leave -D ~/katapult/out/katapult.bin -d 0483:df11

Flashing Katapult and/or Klipper

When using USB, flashing Katapult is not needed as Klipper can update its own firmware. Go through the Klipper build steps using the configuration from above, then flash klipper.bin using dfu-util. From now on you can update Klipper directly with make flash FLASH_DEVICE={your device path}

If you're using a CAN setup and need to use Katapult, build it with the configuration from above and flash it via dfu-util. You may have to reset the board with the "Reset"-button after flashing, the "Info"-LED should be blinking now. If it doesn't, try manually entering Katapult by double-clicking "Reset". Once Katapult is running, all flash operations have to be done via CAN bus. Remove the USB cable from the board and attach it to your CAN bus using a suitable cable. Remember to power down your printer before connecting anything!

If everything went well, Katapult should be visible with the flash tool: ~/katapult/scripts/flashtool.py -i can0 -q

You can now flash Klipper: ~/katapult/scripts/flashtool.py -f ~/klipper/out/klipper.bin -u {your address}

And you're done!

Print parts

Base BoxTurtle

BOM:

  • ~95g of primary color filament
  • 7x M3x4x5 heat set insert (Voron style)
  • 7x M3x10 SHCS
  • (Optional) 7x M3x5 brass standoffs
  • (Optional) 7x M3x4 SHCS

Print the following parts in your primary color:

  • 1x skirt_front_hex_single.stl (no split parts available yet)

If you're not using brass standoffs, also print:

  • 7x pcb_spacer_x7.stl

Print all parts using the BoxTurtle settings, make sure that you tuned your filament for shrinkage as the mounting holes won't line up otherwise.

BoxTurtle Enclosure

Please use the CAD files for reference until a detailed manual is available.

Assembly

Mounting PCB + front skirt

Base BoxTurtle

Add the heat set inserts into the front skirt, then mount the PCB. If you're using brass standoffs, screw those in first, then mount the board using the M3x4 fasteners. If using printed spacers, for easier assembly you can pre-insert two M3x10s into the PCB, add spacers and then mount it on the front skirt. Then use tweezers to add spacers between the PCB and the skirt on the remaining holes and add the rest of the M3x10s. Insert the front skirt according to the manual and double check that the cutouts on the PCB correspond to the respooler switch tabs.

BoxTurtle Enclosure

Please use the CAD files for reference until a detailed manual is available.

Connections

Every respooler + extruder has its own set of connectors on the PCB, e.g. M4, RGB4, S8, S7, STP4. pcb 1.0 render with pinout pcb 1.1 render with pinout

If you're making your own cables, to make your life easier, assemble one respooler and one extruder first with generous cable length. Mount everything, measure everything, cut and crimp all connections. Afterwards, remove the respooler and extruder and finish the other three sets outside of the BoxTurtle with your measurements. Tidy up with cable ties/velcro straps as needed and plug in everything. mounted pcb

Configuration

Pin aliases / longboi.cfg

coming soon

AFC configuration

coming soon

Parts

297
QtyValueFootprintReferences
40100nFCapacitor_SMD:C_0603_1608MetricC2, C5, C11, C12, C13, C14, C15, C17, C23, C29, C35, C48, C49, C50, C51, C52 +24
33100kResistor_SMD:R_0603_1608MetricR13, R16, R17, R28, R29, R31, R33, R35, R100, R101, R102, R103, R104, R105, R106, R107 +17
21Conn_01x03_PinConnector_JST:JST_XH_B3B-XH-A_1x03_P2.50mm_VerticalJ15, J16, J17, J18, J23, J24, J25, J26, J27, J28, J29, J30, J31, J32, J33, J34 +5
19100Resistor_SMD:R_0603_1608MetricR30, R32, R34, R36, R38, R40, R42, R44, R46, R48, R50, R52, R54, R56, R58, R60 +3
193.3kResistor_SMD:R_0603_1608MetricR18, R25, R61, R79, R80, R81, R82, R83, R84, R85, R86, R87, R88, R89, R90, R91 +3
16YellowLED_SMD:LED_0603_1608MetricD15, D16, D17, D18, D19, D20, D21, D22, D23, D24, D25, D26, D27, D28, D29, D30
121uFCapacitor_SMD:C_0603_1608MetricC19, C25, C31, C37, C40, C41, C42, C43, C44, C45, C46, C47
910kResistor_SMD:R_0603_1608MetricR20, R23, R26, R27, R63, R66, R67, R68, R72
8110mResistor_SMD:R_1206_3216MetricR4, R5, R6, R7, R8, R9, R10, R11
847uFCapacitor_SMD:C_1210_3225MetricC20, C21, C26, C27, C32, C33, C38, C39
7Conn_01x02_PinConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ11, J12, J13, J14, J41, J44, J50
62.2uFCapacitor_SMD:C_0603_1608MetricC8, C10, C18, C24, C30, C36
674LVC1G126Package_TO_SOT_SMD:SOT-353_SC-70-5U12, U13, U14, U15, U21, U22
6SlotLongboi_Custom:MountingSlot3.2mmH2, H3, H4, H5, H6, H7
5TestpadTestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mmJ1, J2, J3, J4, J5
410kResistor_SMD:R_Array_Convex_4x0603RN1, RN2, RN3, RN4
410uFCapacitor_SMD:C_0603_1608MetricC1, C4, C57, C59
42.7kResistor_SMD:R_0603_1608MetricR1, R24, R64, R70
422nFCapacitor_SMD:C_0603_1608MetricC16, C22, C28, C34
4Conn_01x04_PinConnector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ7, J8, J9, J10
4DRV8837Package_SON:WSON-8-1EP_2x2mm_P0.5mm_EP0.9x1.6mmU8, U9, U10, U11
4TMC2209-LAPackage_DFN_QFN:QFN-28-1EP_5x5mm_P0.5mm_EP3.75x3.75mm_ThermalViasU4, U5, U6, U7
3GreenLED_SMD:LED_0603_1608MetricD2, D3, D4
3RedLED_SMD:LED_0603_1608MetricD5, D6, D9
210uFCapacitor_SMD:C_1206_3216MetricC53, C54
212pFCapacitor_SMD:C_0603_1608MetricC3, C6
215kResistor_SMD:R_0603_1608MetricR2, R3
21N4007Diode_SMD:D_SOD-123D7, D10
22.37kCapacitor_SMD:C_0603_1608MetricR108, R109
222uFCapacitor_SMD:C_0805_2012MetricC60, C61
25.1kResistor_SMD:R_0603_1608MetricR69, R73
2IRLML0030Package_TO_SOT_SMD:SOT-23Q2, Q4
2MX3.0Connector_Molex:Molex_Micro-Fit_3.0_43045-0412_2x02_P3.00mm_VerticalJ20, J21
2SMF05CT1G-ESPackage_TO_SOT_SMD:SOT-363_SC-70-6U20, U23
2SN74LVC245APWPackage_SO:TSSOP-20_4.4x6.5mm_P0.65mmU2, U3
2SW_SPSTLCSC:SW-SMD_4P-L3.4-W3.4-P2.00-LS4.0_TS3315A160GFSW1, SW2
10Resistor_SMD:R_0603_1608MetricR15
1100pFCapacitor_SMD:C_0603_1608MetricC58
1120Resistor_SMD:R_0603_1608MetricR12
120kResistor_SMD:R_0603_1608MetricR19
125MHzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
14.7kCapacitor_SMD:C_0603_1608MetricR110
149.9Resistor_SMD:R_0603_1608MetricR21
14AFuse:Fuseholder_Littelfuse_Nano2_154xF1
156kResistor_SMD:R_0603_1608MetricR14
173.2kResistor_SMD:R_0603_1608MetricR22
1BAV99Package_TO_SOT_SMD:SOT-23D32
1BlueLED_SMD:LED_0603_1608MetricD1
1CenterMountingHole:MountingHole_3.2mm_M3_ISO7380_PadH1
1Conn_01x02_PinConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ19
1Conn_01x02_PinConnector_Molex:Molex_Micro-Fit_3.0_43045-0212_2x01_P3.00mm_VerticalJ39
1HY1904C2LCSC:DFN-8_L5.9-W5.2-P1.27-LS6.2-BLQ1
1JST-PHConnector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalJ6
1L_FerriteInductor_SMD:L_Chilisin_BMRA00050530L1
1ME6211C33M5Package_TO_SOT_SMD:SOT-23-5U19
1STM32H723VGTxPackage_QFP:LQFP-100_14x14mm_P0.5mmU1
1TCAN332GPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU24
1TPS2116DRLPackage_TO_SOT_SMD:SOT-583-8U17
1TPS56637RPAReasyeda2kicad:VQFN-HR-10_L3.0-W3.0_RPAU18
1TYPE-C-31-M-15Longboi_Custom:USBC-TH_TYPE-C-31-M-15USB1

Similar boards

  • 8 layers100 × 60 mmYAMMU ControlBoard v05, the printed circuit board in 3D

    YAMMU ControlBoard v05

    Zergie/YAMMU

    A Multi Material Unit (MMU) for eight filaments that can also function as a filament dryer and can keep it dry while printing. The design is heavily inspired by voron and their printers.

    234 parts107GPL-3.0
  • 4 layers64.9 × 39.2 mmHOLY ESC, the printed circuit board in 3D

    HOLY ESC

    0BAB1/HOLY_ESC

    An open-source closed loop ESC PCB / Hardware platform. Based on a STM32F051 (Cortex M0 based) MCU. Tested using AM32 ESC software.

    81 parts8
  • 4 layers85.1 × 100.5 mmOnboard pcb, the printed circuit board in 3D

    Onboard pcb

    rober708/BIRD-E

    The Bounded Infrared Recording Drone Ecosystem (BIRD-E) is a tethered quadcopter with an attached infrared camera, with livestream functionality and XBOX ground control. Senior design capstone at Purdue ECE.

    103 parts
  • 4 layers54 × 84 mmStepperLockingSystem, the printed circuit board in 3D

    StepperLockingSystem

    netz39/Stepper-Locking-System

    Contains encoder & processor boards for closed-loop stepper motor angle control. Steering the key/door knob with the might of stepper motors.

    107 partsMIT
  • 2 layers85 × 21 mm3dsimo kit, the printed circuit board in 3D

    3dsimo kit

    3dsimo/3dsimo_kit

    Visit us at 3D simo pages for more information

    27 parts78
  • 2 layers104.5 × 184.9 mmPanel4, the printed circuit board in 3D

    Panel4

    sean618/MakerTiles

    Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

    191 partsMIT
  • 4 layers31.6 × 26.6 mmSparrowX, the printed circuit board in 3D

    SparrowX

    enp6s0/TinySparrow

    All-in-one CAN-FD ECU core board

    31 parts61CERN-OHL-P-2.0

Questions

How big is the Longboi PCB?

It measures 358 × 40 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Longboi use?

297 parts, built around the 74LVC1G126Z, SN74LVC245APW, TCAN332GD and DRV8837DSG. 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 Longboi KiCad files?

From the KungfuPancake/longboi repository on GitHub, at the commit this page was made from: the board is pcb/longboi.kicad_pcb and its schematic pcb/24v_can.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Longboi design in my own project?

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