BOM-3 Big and small connectors, big and small parts, SMT and THT mixed and similar¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | runs in better_erc | easy, depends on netlist |
Data it needs: graph, part classes, fitted parts.
Looks at. Footprints (package, mount type).
What it catches. A report of assembly mixes that cost money: through-hole parts on an otherwise SMT board, one 0201 among 0603s, one connector family different from the rest, parts on both sides.
Why it matters. Each mix can add a process step: a single THT part means wave or selective soldering or a hand step; a second passive size means more nozzles and feeders; a part on the bottom side means a second reflow pass. Often the odd part is there by accident and has an SMT or same-size twin.
Example. B125A's assembly notes: a Y-rated capacitor footprint far bigger than needed, and a wish to spread out 0402s for hand assembly.
How to check. Group footprints by package size and mount type from the footprint name or library data; report minorities. better_erc (erc_checks/src/bom/bom_3.rs, erc_analysis::package) reads each fitted part's footprint: the chip case size (R_0402_1005Metric is 0402), SMD or through-hole and the side (board file). With the board file, the pads give the mount type: through-hole only when a soldered pin is a plated through-hole pad, so thermal vias and shell pegs do not count (LIB-31 lists them). Without it, or for a footprint left out of the BOM, the footprint's attribute or name gives it. Among the fitted parts it reports the minority mount type, each minority case size, each minority connector family (the footprint name up to its part number, with the pitch: JST_PH P2.00mm, PinHeader P2.54mm; only connectors whose family is a choice, not USB, HDMI, RJ45, card or coax), and the minority side; a minority is a group of at most minority (0.2) of its kind. A part in two minorities (a THT header that is also the odd family) is one finding.
Fix. Pick an SMT or same-size alternative where it exists; if a mix stays, plan the assembly step for it.
References. B125 rev B change list ("From the VB125A assembly"); catalogue LAY-11.
Settings¶
Set them in the project file under [checks."BOM-3"], or for one run with --set BOM-3.NAME=VALUE.
| Setting | Default | Meaning |
|---|---|---|
BOM-3.minority |
0.2 ratio | a group of parts at most this share of its kind (mount type, case size, connector family, side) is a minority |
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only BOM-3 reports on it.
bom-3_assembly_mix¶
suggestion BOM-3 #75t 1 parts THT (J4) among 7 SMD; 1 connectors of the family PinHeader P2.54mm (J4) among 4 JST_PH P2.00mm
part J4
minority = 0.2 (derived BOM-3 default)
fix: pick an SMD (or through-hole) twin where one exists; if the mix stays, plan the extra soldering step; use the board's common connector family where the mating side allows
suggestion BOM-3 #gy3 1 parts in case 0201 (R7) among 6 0402
part R7
minority = 0.2 (derived BOM-3 default)
fix: move them to the common case size unless a power, voltage or DC-bias rating needs it
BOM-3 also fires on the test schematics of other checks: bom-1_different_parts, bom-4_resistor_arrays, lib-6_package_vs_footprint, rate-1_capacitor_voltage, rate-2_resistor_power.