BOM-10 Value that doesn't parse or isn't a standard series value¶
| Severity | Status | Implementation |
|---|---|---|
| warning | runs in better_erc | easy, depends on IMP-6 |
Data it needs: graph, part classes, values.
Looks at. Parsed values (IMP-6).
What it catches. A value written in a form the tools cannot read (4,7 k, 4k7 Ohm, 4K7R) or one that is not in any E series (4.8k).
Why it matters. Values that do not parse make every value-based check skip the part; odd notation also confuses humans (4R7 vs 4k7). A value outside the series can still be bought only as a special or a high-precision part, which is often a typo.
Example. 5k written for 5.1 kΩ (5.00 kΩ is in no E series, E96 has 4.99 kΩ), 10K vs 10k mixed, 2.2 K with a space.
How to check. Resistor, capacitor and inductor values are read in the unit their part class gives (erc_analysis::value::Values, erc_checks/src/bom/bom_10.rs), on the parts the variant fits: a value that does not read is reported, and so is odd notation (more than one space before the multiplier, a small r, an R after a multiplier, a decimal comma, the unit as a separate word, text after the value that is no tolerance, rating or dielectric). A value in no E series up to E192 is reported with the nearest E24 and E96 values. Values of other classes (a crystal's frequency, a fuse's current) are read but not held to a series.
Fix. One notation across the project (4k7, 100n); values from the series the parts come from.
References. E series (E24, E96 values); FEATURES.md (BOM-10, IMP-6).
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only BOM-10 reports on it.
bom-10_values¶
warning BOM-10 #d58 C2: `4.8n` 4.8 nF is in no E-series (nearest E24 4.7 nF, E96 4.75 nF)
part C2
class = capacitor (derived class from the library symbol)
Value = 4.8n (sch bom-10_values.kicad_sch)
fix: one notation across the project (`4k7`, `100n`, `2R2`), values from the E-series the parts come from
warning BOM-10 #y65 C3: `4,7u` a decimal comma
part C3
class = capacitor (derived class from the library symbol)
Value = 4,7u (sch bom-10_values.kicad_sch)
fix: one notation across the project (`4k7`, `100n`, `2R2`), values from the E-series the parts come from
warning BOM-10 #e8v L2: `10x` does not read as an inductance
part L2
class = inductor (derived class from the library symbol)
Value = 10x (sch bom-10_values.kicad_sch)
fix: one notation across the project (`4k7`, `100n`, `2R2`), values from the E-series the parts come from
warning BOM-10 #8p5 R11: `5k` 5 kΩ is in no E-series (nearest E24 5.1 kΩ, E96 4.99 kΩ)
part R11
class = resistor (derived class from the library symbol)
Value = 5k (sch bom-10_values.kicad_sch)
fix: one notation across the project (`4k7`, `100n`, `2R2`), values from the E-series the parts come from
warning BOM-10 #qa1 R13: `4k7 Ohm` the unit apart from its value
part R13
class = resistor (derived class from the library symbol)
Value = 4k7 Ohm (sch bom-10_values.kicad_sch)
fix: one notation across the project (`4k7`, `100n`, `2R2`), values from the E-series the parts come from
warning BOM-10 #sh0 R4: `10x` does not read as a resistance
part R4
class = resistor (derived class from the library symbol)
Value = 10x (sch bom-10_values.kicad_sch)
fix: one notation across the project (`4k7`, `100n`, `2R2`), values from the E-series the parts come from
warning BOM-10 #etw R5: `4.7 k` more than one space before the multiplier
part R5
class = resistor (derived class from the library symbol)
Value = 4.7 k (sch bom-10_values.kicad_sch)
fix: one notation across the project (`4k7`, `100n`, `2R2`), values from the E-series the parts come from
warning BOM-10 #jsm R6: `4r7` a small `r` for ohms
part R6
class = resistor (derived class from the library symbol)
Value = 4r7 (sch bom-10_values.kicad_sch)
fix: one notation across the project (`4k7`, `100n`, `2R2`), values from the E-series the parts come from
warning BOM-10 #xqp R7: `10kR` `R` after a multiplier
part R7
class = resistor (derived class from the library symbol)
Value = 10kR (sch bom-10_values.kicad_sch)
fix: one notation across the project (`4k7`, `100n`, `2R2`), values from the E-series the parts come from
BOM-10 also fires on the test schematics of other checks: ana-16_gain_resistor_range, hs-9_choke_on_lanes, ser-14_can_split_termination.