BOM-1 Resistors (or capacitors) with values a step apart that could be one value¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | runs in better_erc | easy, depends on IMP-6 |
Data it needs: graph, part classes, values.
Looks at. Parsed values (IMP-6), the role of each part.
What it catches. Two values one E-series step apart (33 Ω and 39 Ω, 4.7 kΩ and 5.1 kΩ, 1 µF and 2.2 µF) in roles where either would do.
Why it matters. Every distinct value is a BOM line, a feeder on the pick-and-place machine, a reel to stock and a chance for the wrong reel. Where the exact value does not matter (pull-ups, LED resistors, series terminations, bulk decoupling), merging them is free. Where it does matter (dividers, filters) the finding is noise and is waived.
Example. B125A's assembly notes ask to consolidate the 39 Ω and 33 Ω of R48 and R49, and C40, C52 and C53; B135B's change list asks the same for C301/C307, C506/C510 and a lone 49.9 Ω.
How to check. Collect values per class (IMP-6), find pairs one step apart in the E24 or E96 grid and report them with their designators; a role filter (pull-up, series, decoupling) cuts the noise. better_erc (erc_checks/src/bom/bom_1.rs) takes the distinct values of the fitted resistors and of the fitted capacitors and reports two values one step apart in the smallest series that has both (ESeries::steps): 33 Ω and 39 Ω in E12, 4.7 kΩ and 5.1 kΩ in E24, 4.99 kΩ and 5.11 kΩ in E96, 1 µF and 2.2 µF in E3, with the parts of both. The role filter waits for pin roles (NET-7); until then every pair is listed and the ones in dividers and filters are waived.
Two values can become one only if one part can replace both. better_erc therefore pairs only parts of one kind: the same case size, power rating, voltage rating, tolerance and dielectric. The case size comes from the Package field, else from the footprint name. The ratings come from the Power, Voltage, Tolerance and Dielectric fields, else from the board's defaults (DEFAULT_R_POWER and the others), else from the value text (100nF 50V X7R). A property that one part states and the other does not also keeps them apart. For example, a 1 kΩ 0402 63 mW resistor and a 1.2 kΩ 0805 500 mW resistor are never paired, and neither are a 1 µF 6.3 V and a 2.2 µF 25 V capacitor in one case. The finding names the shared case size (in 0402).
Fix. Pick one value where the circuit allows; leave dividers and filters alone.
References. E series (step sizes per series); B125 rev B change list ("From the VB125A assembly"); B135 rev C change list.
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only BOM-1 reports on it.
bom-1_different_parts¶
suggestion BOM-1 #y25 resistors 1 kΩ (R1) and 2.2 kΩ (R3) in 0402 are one E3 step apart: could they be one value?
part R1, part R3
fix: pick one value where the circuit allows (pull-ups, LED resistors, series terminations, bulk decoupling); leave dividers and filters alone
suggestion BOM-1 #e5w resistors 10 kΩ (R5) and 12 kΩ (R6) in 0402 are one E12 step apart: could they be one value?
part R5, part R6
fix: pick one value where the circuit allows (pull-ups, LED resistors, series terminations, bulk decoupling); leave dividers and filters alone
bom-1_values_a_step_apart¶
suggestion BOM-1 #8re capacitors 1 µF (C1) and 2.2 µF (C2) in 0402 are one E3 step apart: could they be one value?
part C1, part C2
fix: pick one value where the circuit allows (pull-ups, LED resistors, series terminations, bulk decoupling); leave dividers and filters alone
suggestion BOM-1 #f1c resistors 33 Ω (R1) and 39 Ω (R2) in 0402 are one E12 step apart: could they be one value?
part R1, part R2
fix: pick one value where the circuit allows (pull-ups, LED resistors, series terminations, bulk decoupling); leave dividers and filters alone
suggestion BOM-1 #5f8 resistors 4.7 kΩ (R3) and 5.1 kΩ (R4) in 0402 are one E24 step apart: could they be one value?
part R3, part R4
fix: pick one value where the circuit allows (pull-ups, LED resistors, series terminations, bulk decoupling); leave dividers and filters alone
BOM-1 also fires on the test schematics of other checks: ana-16_gain_resistor_range, bom-10_values, bom-4_placement, bom-4_resistor_arrays, dbg-16_heartbeat_led, draw-48_block_notes, drv-12_base_resistor, drv-7_half_bridge_snubber, i2c-10_non_equal_pull_ups, i2c-4_pull_up_to_signal, i2c-7_segments, io-16_pull_up_and_down, io-8_series_pull, mem-8_ddr_zq, pin-4_unfused_inputs, pin-6_unfiltered_inputs, rail-19_unfiltered_analog_supply, rate-2_resistor_power, seq-5_bleeder.