pcb_make_paste_grid
Split a thermal pad’s solder-paste opening into a grid of smaller fills to control reflow coverage and prevent IC drift during soldering.
Instructions
Split a single pad's solder-paste opening into a grid of smaller fills. The classic use case is the central thermal pad on a QFN / DFN / QFP -- a full-area paste opening makes the IC "swim" sideways during reflow as the molten solder pool reduces friction. Splitting the opening into smaller squares totalling ~50-75% coverage gives the IC something to bond to while letting flux gases escape.
Standard datasheet recommendations:
QFN / DFN exposed pad: 50-75% coverage, 0.3-0.5 mm squares with ≥ 0.2 mm gap (≈ 15 mils / 8 mils)
QFP heat-spreader: 60-70% coverage
Large connector body pads: 60% is usually enough
ALWAYS consult the IC manufacturer's recommended stencil pattern before defaulting to this script -- some packages specify a star, diagonal, or windowpane pattern; this tool only does a regular grid.
Args:
designator: Component reference designator, e.g. "U5".
pad_name: Pad identifier on that component. For QFN /
DFN exposed pads this is usually "0" or the
largest-numbered pad. Check the footprint first.
min_grid_size_mils: Starting grid block size, in mils.
Bumped up in 5-mil steps if coverage % is below
target. Default 15 mils (≈ 0.38 mm).
min_gap_mils: Minimum spacing between grid blocks, in
mils. Default 5 mils (≈ 0.13 mm).
min_coverage_pct: Target paste coverage as a percentage
of pad area, 0-100. Default 60. Iterates grid size
upward until met.
Returns:
Dict with {designator, pad_name, grid_x, grid_y, grid_size_mils, gap_x_mils, gap_y_mils, fills_placed, coverage_pct}. The existing full-area paste opening is
suppressed via PasteMaskExpansion = -pad_dimension on
the pad cache before the grid fills are laid down.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pad_name | Yes | ||
| designator | Yes | ||
| min_gap_mils | No | ||
| min_coverage_pct | No | ||
| min_grid_size_mils | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||