Skip to content

feat(stampboard): support offset side rows and inner SMT grids - #753

Closed
techmannih wants to merge 1 commit into
mainfrom
stam
Closed

feat(stampboard): support offset side rows and inner SMT grids#753
techmannih wants to merge 1 commit into
mainfrom
stam

Conversation

@techmannih

@techmannih techmannih commented Jul 30, 2026

Copy link
Copy Markdown
Member

Summary

This PR extends the stampboard footprint generator to support footprints containing offset side rows and an internal SMT pad grid.

Changes

  • Adds sidey for a shared Y offset on the left and right pad rows.
  • Adds innergrid to define the internal SMT pad grid dimensions.
  • Adds innerp for the internal grid pitch.
  • Adds innerpw and innerph for internal pad dimensions.
  • Adds innerx and innery for the internal grid center position.
  • Includes internal pads in total pad numbering.
  • Exposes the new parameters through the Footprinter builder API.
  • Adds geometry assertions and an SVG snapshot test.

All new parameters are opt-in, so existing stampboard footprints remain unchanged.

Motivation

JLCPCB part C2913202 (ESP32-S3-WROOM-1-N16R8) contains:

  • 14 left-side SMT pads
  • 14 right-side SMT pads
  • 12 bottom SMT pads
  • A 3×3 internal SMT pad grid
  • 49 pads total

The existing stampboard generator could represent the perimeter layout, but it could not shift the side rows or generate the internal SMT grid.

Because of this, the current automatic discovery selected an incorrect qfn49 footprint with very low copper overlap.

C2913202 Benchmark

The benchmark used the exact C2913202 footprint fetched from EasyEDA and compared it using fast-footprint-compare.

Results

Result Copper IoU Pad Count
Before: current automatic qfn49 fallback 3.5742% 49 vs 49
After: new stampboard geometry 99.8854% 49 vs 49

Improvement: +96.3112 percentage points

stampboard_left14_right14_bottom12_top0_w19.000089mm_h18.9899036mm_p1.27mm_pw0.8999982mm_pl1.499997mm_sidey0.7899527mm_innergrid3x3_innerp1.400048mm_innerpw0.8999982mm_innerph0.8999982mm_innerx-1.500124mm_innery1.3248767mm

Copper IoU:

99.8854%

@techmannih
techmannih requested a review from seveibar as a code owner July 30, 2026 18:26
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@techmannih techmannih closed this Jul 30, 2026
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