Repository navigation
Move to 4 layers at 76 x 58 mm and add ground pins to CAN/UART - #15
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
scripts/layout_4layer.pymoved 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.PCB/README.md.Routing and pre-fab review
scripts/stitch_gnd.pyadds 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.PCB/README.md.CAN / UART ground pins
GND, 2CANL, 3CANH. J8 (UART): pin 1GND, 2RX, 3TX. Silkscreen and firmware pin notes are updated.jst-xh-3part. CAN_GND and UART_GND are in the Power net class.Checks
stackup check --locked: 84 parts / 48 nets, 0 errors, 0 warnings, 0 notesstackup bom+bom_check.py: 42 lines, 0 problemsOpen items
PCB/assets/still show the earlier 6-layer layout, so they need re-rendering.🤖 Generated with Claude Code