RATE-1 Capacitor voltage rating margins¶
| Severity | Status | Implementation |
|---|---|---|
| warning | runs in better_erc | mid, depends on NET-5, CFG-2, CFG-9 |
Data it needs: graph, part classes, parts snapshot.
Looks at. Rail voltage across the capacitor, its voltage rating (value field or MPN).
What it catches. A capacitor whose voltage rating leaves too little margin over the highest voltage across it: the rail's maximum (not its nominal), plus ripple and the transients it is exposed to.
Why it matters. A capacitor at or above its rating fails early: ceramics crack and short, electrolytics and tantalums leak and vent. The nominal rail value is rarely the worst case: a "24 V" industrial supply runs up to about 30 V, a USB-C VBUS can be negotiated to 20 V (RATE-19), and hot-plugging a cable with inductance rings well above the steady voltage. Ceramics also lose capacitance with bias (RATE-16), which is a second reason to choose a higher rating.
Example. A 25 V MLCC on a 24 V industrial input: 24 V +20 % is 28.8 V before any surge. The input needs 50 V parts (or a clamp in front of 35 V parts). On B200A the assembly notes asked whether the USB input capacitors should be 50 V parts.
How to check. Take the rail's maximum voltage (from the project's range for the net, or the name's voltage with a default tolerance), read the capacitor's rating from its value field (100n 50V) or MPN, and report a margin below a set ratio (for example rating under 1.25 × maximum for ceramics; electrolytics and tantalums per RATE-17).
better_erc (erc_checks/src/rate/rate_1.rs) asks each MPN's rated voltage to be at least k times the working voltage, k from [derating] by the MPN's technology: ceramic_capacitor_v (1.5; also an MPN with a dielectric code and no technology), electrolytic_capacitor_v, polymer_capacitor_v, tantalum_capacitor_v, tantalum_polymer_capacitor_v, film_capacitor_v. A part's Vreq_min field states the minimum rated voltage this board asks for, and replaces k times the working voltage: every MPN's rated voltage at least Vreq_min. Each rating must still exceed the working voltage itself, and a Vreq_min below the working voltage is a finding of its own. The working voltage is the part's Vworking field when it has one (switch nodes, transients, a part across two rails), else the larger difference between its two nets: a rail's range when the project states one ([nets] in the project file), its voltage otherwise, 0 V for a ground. Each MPN field (Mpn1, Mpn2, ...) of a fitted part is judged on its own against the facts of the parts snapshot (parts.lock.toml). A miss is one finding per part and MPN field (item C4 Mpn2) naming the margin, with the hash of the inputs it rests on (the working value and how it is known, the MPN's rating, the derating factor) for a waiver. A rating the snapshot lacks is never a pass: the part gets one info finding naming each MPN and fact not checked. A part whose stress is not known is not judged.
Example finding: C1 Mpn1 GRM188R61C105KA93D: 16 V rated, 12 V working (+12V (12 V) to GND (0 V)), 1.33× < 1.5×.
Fix. A higher voltage rating; for inputs exposed to hot-plug, a TVS or an input filter that limits the overshoot.
References. Wikipedia, Ceramic capacitor "Voltage proof"; AVX derating (why rated voltage is not a safe working voltage for tantalum); B200 rev B change list ("50V rating at USB?").
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only RATE-1 reports on it.
rate-1_capacitor_voltage¶
warning RATE-1 #fgz C1 Mpn1 GRM188R61C105KA93D: 16 V rated, 12 V working (+12V (12 V) to GND (0 V)), 1.33× < 1.5×
part C1, item C1 Mpn1
working V = 12 V (+12V (12 V) to GND (0 V)) (derived voltage from the net name)
Mpn1.rated_voltage = 16 (partdb parts.lock.toml GRM188R61C105KA93D rated_voltage (manual))
derating.ceramic_capacitor_v = 1.5 (derived default derating.ceramic_capacitor_v)
fix: an MPN of a higher voltage rating, or a lower Vworking where the field overstates it
input in1:9dc2c076740b6627
warning RATE-1 #xfg C3 Mpn1 GRM155R61E104KA87D: 25 V rated, 20 V working (Vworking field), 1.25× < 1.5×
part C3, item C3 Mpn1
working V = 20 V (Vworking field) (sch rate-1_capacitor_voltage.kicad_sch)
Mpn1.rated_voltage = 25 (partdb parts.lock.toml GRM155R61E104KA87D rated_voltage (manual))
derating.ceramic_capacitor_v = 1.5 (derived default derating.ceramic_capacitor_v)
fix: an MPN of a higher voltage rating, or a lower Vworking where the field overstates it
input in1:7028ac93d5f3988e
warning RATE-1 #47z C7 Mpn1 GRM188R61E105KA12D: 25 V rated, Vreq_min asks 35 V
part C7, item C7 Mpn1
C7.Vreq_min = 35V (sch rate-1_capacitor_voltage.kicad_sch)
Mpn1.rated_voltage = 25 (partdb parts.lock.toml GRM188R61E105KA12D rated_voltage (manual))
fix: an MPN of a higher voltage rating, or a lower Vworking where the field overstates it
input in1:14dce2dcf3f4aaae
warning RATE-1 #kh6 C8: Vreq_min 10 V is below the working 12 V (+12V (12 V) to GND (0 V))
part C8, item C8 Vreq_min
Vreq_min = 10V (sch rate-1_capacitor_voltage.kicad_sch)
working = 12 V (derived voltage from the net name)
fix: raise Vreq_min to the rating this board needs, above the working value
input in1:2c4e7c2f1930f640
info RATE-1 #fwv C5: not checked: Mpn1 C0402X104K250 has no technology
part C5
fix: add the facts to the part source and run `berc parts refresh`