Skip to content

Move to 4 layers at 76 x 58 mm and add ground pins to CAN/UART - #15

Merged
thePunderWoman merged 2 commits into
mainfrom
four-layer-3pin-comms
Nov 10, 2026
Merged

thePunderWoman merged 2 commits into
mainfrom
four-layer-3pin-comms

Conversation

@thePunderWoman

@thePunderWoman thePunderWoman commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Moves the board from 70 × 50 mm on 6 layers to 76 × 58 mm on 4 layers, which is cheaper to fab, and makes the CAN and UART connectors 3-pin with a ground reference.

The board is routed by hand and reviewed for fab, and PCB/production/ holds the regenerated 4-layer Gerbers, drills, placement file and BOM.

4-layer layout

  • Stackup: F.Cu (parts and routing) / In1.Cu solid GND / In2.Cu (power pours, +3V3 pour, VSW_CTRL tracks) / B.Cu (heatsink copper, GND). 1.6 mm, 2 oz outer / 1 oz inner.
  • The power row is 11.2 mm tall instead of 8.7 mm, so three power layers (2 + 1 + 2 oz) carry about the same copper as the four the 6-layer board used. 183 stitching vias.
  • scripts/layout_4layer.py moved the hand-placed parts and silkscreen by region. It adds 6 mm of width to spread the gate-drive cluster and the CAN/UART column. The 8 mm of extra height goes to the power row, the routing band under it and the bottom edge. The antenna and buck stay at the bottom edge, and the logo, QR code and labels are kept. The script runs only on the 6-layer board, so it can't overwrite new routing.
  • The reasons for the size, and the limits on either side of it, are recorded in PCB/README.md.

Routing and pre-fab review

  • Q1/Q2: the gate link between the FETs used to run through the gap between their source pins, leaving 0.11 mm² of copper for the full 30 A (~270 A/mm²). It now goes around the outside of Q2's source pins, and the gap is solid copper about 3.9 mm wide.
  • 5 V buck: re-placed after the LMR14030 layout example (§7.4.1, Fig. 7-10). The input caps sit at VIN, the catch diode is right over SW, the inductor stands upright with its output next to the output caps, and all the buck's grounds share one top-side area tied to the plane at the output caps. Before, that ground was split into five islands joined only through the inner plane.
  • Ground vias: scripts/stitch_gnd.py adds GND stitching on a 2.5 mm grid, at least two vias per top-layer ground island, and ground vias at the LM5060, INA237, TCAN334G and buck output caps.
  • Also checked: IC pin numbers against the datasheet pin tables, the ESP32 module's header order, transistor and diode pins by net, copper cross-sections along the 30 A path (≥ 1.5 mm² everywhere), and the BOM against the placement file (69 parts each). The full review is in PCB/README.md.

CAN / UART ground pins

  • J5/J6 (CAN): pin 1 GND, 2 CANL, 3 CANH. J8 (UART): pin 1 GND, 2 RX, 3 TX. Silkscreen and firmware pin notes are updated.
  • CAN_GND runs straight from J5 to J6, so the bus ground daisy-chains. Each ground reference reaches board GND through a Bourns MF-MSMF014/60X-2 PTC (60 V, 40 A Imax; F1 and F2). If a battery-negative XT60 comes off while a comms cable is still connected, the PTC trips. Without it, the load's return current would flow through a 3 A JST contact. A plain resistor can't do this job: 10 Ω would dissipate about 100 W at 32 V.
  • Custom footprint for Bourns' Style 2 land pattern (KiCad's 1812 fuse footprint has the wrong pad size). New jst-xh-3 part. CAN_GND and UART_GND are in the Power net class.

Checks

  • stackup check --locked: 84 parts / 48 nets, 0 errors, 0 warnings, 0 notes
  • stackup bom + bom_check.py: 42 lines, 0 problems
  • PCB sync check (Stackup plugin v0.3.0 + locked CLI): clean
  • KiCad DRC (all severities, zones refilled): 0 violations, 0 unconnected

Open items

  • Before ordering: open the Gerbers in a viewer, confirm the fab's 2 oz outer-layer minimums cover 0.2 mm track and space, and recheck stock on the day.
  • The board renders in PCB/assets/ still show the earlier 6-layer layout, so they need re-rendering.
  • F1, F2 and U3 have no 3D model in the local KiCad install (STEP export).
  • Bourns doesn't sell the PTC through LCSC. Stock: Mouser 3,560 and DigiKey 3,613 (2026-11-09). Mouser has the B3B-XH-A at 0 with stock on order; LCSC has 175k.
  • Bench step 9 (new): check continuity of the comms grounds, and that the PTC trips with battery negative disconnected.
  • Bench step 3b (new): scope the buck's SW node and the 5 V ripple, and compare the module's RSSI.
  • The silkscreen stays at V1.0, since no board has been made yet.

🤖 Generated with Claude Code

thePunderWoman and others added 2 commits November 9, 2026 21:10
The 70 x 50 mm board needed 6 layers to route; at 76 x 58 mm it fits on
4 (F.Cu / In1 GND / In2 power pours, +3V3 and VSW_CTRL / B.Cu), which
is cheaper to fab. The power row grows from 8.7 to 11.2 mm so three
power layers (2+1+2 oz) match the copper the 6-layer board had in four.

- scripts/layout_4layer.py moves the hand-placed parts and silkscreen by
  region, rebuilds the outline, pours and stitching vias, and swaps the
  stackup to 4 layers. The old routing is removed: signal routing is to
  be redone by hand (114 unrouted, DRC otherwise clean).
- J_CAN1/J_CAN2/J_UART are now 3-pin JST-XH with GND on pin 1. Each
  ground reference reaches board GND through a Bourns MF-MSMF014/60X-2
  PTC (60 V, 40 A Imax), so it can't carry the load's return current if
  a battery-negative lead comes off. Custom footprint for Bourns' Style 2
  land pattern.
- READMEs, firmware pin notes and AGENTS.md updated; production/ is
  marked superseded until the 4-layer board is routed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…te fab files

- Hand-routed the 76 x 58 mm 4-layer board: DRC 0 violations / 0 unconnected,
  PCB sync clean, stackup check 0/0/0.
- Moved the Q1-to-Q2 gate link out of the gap between the FET source pins:
  the VSW_MID copper there goes from 0.11 mm2 to ~3.9 mm wide.
- Re-placed the LMR14030 buck after TI's layout example: input caps at VIN,
  catch diode over SW, upright inductor, output caps above the diode, one
  top-side ground tied to the plane at the output caps.
- scripts/stitch_gnd.py adds grid stitching, two vias per F.Cu GND island and
  ground vias at the LM5060, INA237, TCAN334G and buck output caps.
- Regenerated Gerbers, drills, placement file and BOM for the 4-layer board
  and recorded the pre-fab review in PCB/README.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thePunderWoman
thePunderWoman merged commit e185a22 into main Nov 10, 2026
3 checks passed
@thePunderWoman
thePunderWoman deleted the four-layer-3pin-comms branch November 10, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant