← Commit history

OpenComponentCards write-up: v0.2 status, reading spec rows from component pages, original v0.1 cards

Drew Owens ·07f49f46b2 · ·parent c25ac45
5 files changed +306−1
README.md+169−1
@@ -1,3 +1,171 @@ # Community: Open Component Cards -Jacob Warren's open format for component tolerance data, and how to read it from Adom wiki component pages+[OpenComponentCards](https://github.com/GrizzlyRay/opencomponentcards) is Jacob Warren's open format (GrizzlyRay LLC) for publishing how much a component varies. It's a good spec, and v0.2 shipped on 2026-10-13. The Adom wiki holds the data those cards need, sourced to datasheet pages. This page shows how to read it, and includes the first two real cards, built from our component pages.++## What a card is++A Component Card is a small YAML file that sits next to an existing model file (SPICE, IBIS, Touchstone, Verilog-A). It does not replace the model. It adds three things the model files leave out:++1. **How much the part varies.** A probability distribution for each key value, with a stated basis and a confidence.+2. **Where the numbers came from.** Sources with exact evidence (table, page), a method, and a maturity level modeled on IBIS quality levels.+3. **Who published which version.** Author, date, a sha256 link to the previous version, and a Sigstore signature.++The repo ships a JSON Schema (draft 2020-12), example cards for a resistor, a ceramic capacitor and a power MOSFET, a validator, and a GitHub Actions workflow that signs every card.++## What the spec gets right++- **Variation sits beside the model, not inside it.** Vendor SPICE models stay untouched and are pinned by hash. That is the only way this can work with encrypted or licensed vendor models.+- **Every number must say where it came from.** `basis` and `confidence` are required on every distribution. Most tolerance data in the wild has neither.+- **Part-to-part spread and "we're not sure" are kept apart.** `kind: population` vs `kind: epistemic`, following GUM (JCGM 100/101). Those two get confused constantly in Monte Carlo setups.+- **Correlation is first class, and checked.** The validator confirms the matrix is symmetric, has a unit diagonal and is positive semidefinite, so it can drive sampling directly.+- **It is upfront about its limits.** The README says plainly that the example spreads are assumptions, not manufacturer statistics.++## Our wiki has your data++The Adom wiki carries hundreds of component pages, each built from the manufacturer's datasheet. Those pages are getting a structured spec table in `page.json`, under `metadata.characteristics.rows`, with one row per datasheet spec. Coverage grows as our pipeline backfills the library, so some pages don't have rows yet. A real row from [adom/1117-3-3](https://wiki.adom.inc/adom/1117-3-3):++```json+{+  "name": "Output voltage (3.3V fixed), TJ=25°C",+  "symbol": "VOUT",+  "kind": "electrical",+  "unit": "V",+  "min": 3.267, "typ": 3.3, "max": 3.333,+  "conditions": "IOUT=10mA, VIN=5V, TJ=25°C, 0≤IOUT≤1A, 4.75V≤VIN≤10V",+  "source_page": 4,+  "source": "datasheet"+}+```++Public pages are readable without an account:++```text+https://wiki.adom.inc/blob/component/<slug>/page.json+```++How that maps onto a card:++| Card field | Spec row field |+|---|---|+| `limits.min`, `limits.typ`, `limits.max` | `min`, `typ`, `max` (plain numbers, `null` where the datasheet leaves a cell blank) |+| `parameters[].unit` | `unit` |+| `parameters[].conditions` | `conditions` (free text, not keys) |+| `sources[].evidence` | `source_page` |+| `part.mpn`, `part.manufacturer`, `part.package` | `component.mpn`, `component.manufacturer`, `component.package` |+| `distributions` | Not on our pages |++Our pages hold published facts only. Choosing a distribution shape is a modeling decision, so it stays with the card author or the simulator.++Things an importer needs to know:++- **Identify a row by its name, symbol and `kind` together.** Conditions are free text, and two rows can share the same conditions. On 1117-3.3, the 25 °C and full-temperature-range output voltage rows differ only in their names.+- **`kind` says which datasheet table the row came from:** `electrical`, `tolerance`, `temperature_coefficient`, `voltage_coefficient`, `absolute_maximum`, `recommended_operating`, `thermal` or `timing`.+- **Units are as printed** (V, mV, %, ppm/°C), and nothing is converted, so normalize SI prefixes when you read them.+- **A ± tolerance is stored as `min` = -x and `max` = +x** in its printed unit.++## Two real cards++Both cards are in this page's **Files** tab under `cards/`. Every value comes from an existing Adom component page and carries its datasheet page number. These are the original v0.1 files, and both passed Jacob's v0.1 validator unchanged. The v0.2 versions live in [his repo](https://github.com/GrizzlyRay/opencomponentcards/tree/main/cards/real):++```text+$ python3 tools/validate.py --schema schema/card.schema.json cards/*.yaml+schema card.schema.json: valid JSON Schema draft 2020-12++cards/royalohm-0603waf470kt5e.yaml: PASS+cards/samsung-cl21a475kaqnnng.yaml: PASS++2/2 cards passed+```++| Card | Source page | Parameters |+|---|---|---|+| [royalohm-0603waf470kt5e.yaml](cards/royalohm-0603waf470kt5e.yaml) | [adom/0603waf470kt5e](https://wiki.adom.inc/adom/0603waf470kt5e) | resistance ±1%, TCR ±200 ppm/K, load-life drift ±(1% + 0.05 Ω) |+| [samsung-cl21a475kaqnnng.yaml](cards/samsung-cl21a475kaqnnng.yaml) | [adom/cl21a475kaqnnng](https://wiki.adom.inc/adom/cl21a475kaqnnng) | capacitance ±10% with its measurement conditions, X5R ±15% over -55 to +85 °C, damp-heat drift ±12.5% |++The resistor card, trimmed of its empty fields (the full file is in `cards/`):++```yaml+card_version: "0.1"+id: occ:resistor/[email protected]+part:+  manufacturer: "Royalohm (UNI-ROYAL)"+  mpn: "0603WAF470KT5E"+  category: resistor+  description: "4.7 Ohm, 1%, 0603, thick film, 1/10 W, TCR +/-200 ppm/K"+  package: "0603"+model_files: []+parameters:+  - name: resistance+    unit: Ohm+    nominal: 4.7+    distribution:+      type: uniform+      applies_to: value+      kind: population+      params: { min: 4.653, max: 4.747 }+      basis: "Datasheet +/-1% tolerance (p.3). Shape not published; uniform over the limit."+      confidence: low+    conditions: { temperature_c: 25 }+    source_refs: [ds1]+  - name: tcr+    unit: ppm/K+    nominal: 0+    distribution:+      type: uniform+      applies_to: value+      kind: epistemic+      params: { min: -200, max: 200 }+      basis: "Datasheet TCR +/-200 ppm/K, the 0603 bracket for 1 to 10 Ohm (p.3). Values above 10 Ohm get +/-100 ppm/K."+      confidence: low+    source_refs: [ds1]+  - name: load_life_drift+    unit: "1"+    nominal: 0+    distribution:+      type: uniform+      applies_to: value+      kind: population+      params: { min: -0.0206, max: 0.0206 }+      basis: "Datasheet load life: Delta R within +/-(1% + 0.05 Ohm) (p.3). At 4.7 Ohm that is +/-0.097 Ohm, or +/-2.06%."+      confidence: low+    source_refs: [ds1]+derivation:+  kind: physics+  method: "R(T) = R25 * (1 + TCR * 1e-6 * (T - 25)), plus load-life drift; every spread is a datasheet limit"+validation:+  maturity: "1.0"+sources:+  - ref: ds1+    kind: datasheet+    uri: "https://wiki.adom.inc/download/aravk/0603waf470kt5e/1.0.0/0603WAF470KT5E-datasheet.pdf"+    sha256: "6344d3f6a60ea3d3a4c4726f3562df5847a0e5910ce0bd4356328c1363a25f0d"+    evidence: "p.1 ratings, p.3 tolerance, TCR and load-life table"+    confidence: high+provenance:+  author: "Adom (wiki.adom.inc), from the adom/0603waf470kt5e component page"+  created: "2026-10-13"+license: CC-BY-4.0+```++We used uniform distributions over the published limits throughout. Neither datasheet publishes a distribution shape, and with only a limit to go on, uniform is the conservative choice. That is our answer to the first question in Jacob's feedback list.++## What came of it++We sent Jacob seven notes from writing these cards, and v0.2 closed all seven the same day: published `limits` kept apart from the modeling choice, family cards, a shared vocabulary for conditions, a `derived` source kind, lot and device spread, machine-readable model binding, and a signer trust policy. The [changelog](https://github.com/GrizzlyRay/opencomponentcards#changelog) has the details.++## Why we care: Monte Carlo on real boards++Adom runs SPICE from an AI thread: ngspice in the container, LTspice and PSpice for TI on a Windows host for vendor models. Three engines are cross-checked against each other ([SPICE Simulation Skills](https://wiki.adom.inc/adom/adom-spice-skillpack)). A 2,000-run Monte Carlo of a Sallen-Key filter takes about 5 s on 16 cores. Today the tolerances in those runs are typed into the netlist by hand. Spec rows on our component pages would let a Monte Carlo run use the real limits for the real parts on the board.++The [12 V to 5 V buck molecule](https://wiki.adom.inc/john/buck-12v5v-molecule) shows that flow end to end, from prompt to circuit to three SPICE engines in agreement to layout:++::youtube{id="vKUMzy261zs" title="AI PCB Design for Engineers"}++## Links++- Jacob's repo: [github.com/GrizzlyRay/opencomponentcards](https://github.com/GrizzlyRay/opencomponentcards) (feedback goes in its issues)+- Source pages for the cards: [adom/0603waf470kt5e](https://wiki.adom.inc/adom/0603waf470kt5e), [adom/cl21a475kaqnnng](https://wiki.adom.inc/adom/cl21a475kaqnnng)+- [SPICE Simulation Skills](https://wiki.adom.inc/adom/adom-spice-skillpack)+- [Parts Search](https://wiki.adom.inc/adom/adom-parts-search): Mouser, DigiKey and JLCPCB in one search++Card data on this page is CC-BY-4.0, matching the license Jacob's repo uses for cards.
cards/royalohm-0603waf470kt5e.yamladded+68
@@ -0,0 +1,68 @@+# Real values, taken from the Adom wiki component page https://wiki.adom.inc/adom/0603waf470kt5e+# Every number below is a datasheet limit with its page. The datasheet gives no distribution+# shapes, so each spread is a uniform over the published limit.+card_version: "0.1"+id: occ:resistor/[email protected]+part:+  manufacturer: "Royalohm (UNI-ROYAL)"+  mpn: "0603WAF470KT5E"+  category: resistor+  description: "4.7 Ohm, 1%, 0603, thick film, 1/10 W, TCR +/-200 ppm/K"+  package: "0603"+model_files: []+parameters:+  - name: resistance+    unit: Ohm+    nominal: 4.7+    distribution:+      type: uniform+      applies_to: value+      kind: population+      params: { min: 4.653, max: 4.747 }+      basis: "Datasheet +/-1% tolerance (p.3). Shape not published; uniform over the limit."+      confidence: low+    conditions: { temperature_c: 25 }+    source_refs: [ds1]+  - name: tcr+    unit: ppm/K+    nominal: 0+    distribution:+      type: uniform+      applies_to: value+      kind: epistemic+      params: { min: -200, max: 200 }+      basis: "Datasheet TCR +/-200 ppm/K, the 0603 bracket for 1 to 10 Ohm (p.3). Values above 10 Ohm get +/-100 ppm/K."+      confidence: low+    source_refs: [ds1]+  - name: load_life_drift+    unit: "1"+    nominal: 0+    distribution:+      type: uniform+      applies_to: value+      kind: population+      params: { min: -0.0206, max: 0.0206 }+      basis: "Datasheet load life: Delta R within +/-(1% + 0.05 Ohm) (p.3). At 4.7 Ohm that is +/-0.097 Ohm, or +/-2.06%."+      confidence: low+    source_refs: [ds1]+derivation:+  kind: physics+  method: "R(T) = R25 * (1 + TCR * 1e-6 * (T - 25)), plus load-life drift; every spread is a datasheet limit"+validation:+  maturity: "1.0"+  tested_simulators: []+  comparisons: []+sources:+  - ref: ds1+    kind: datasheet+    uri: "https://wiki.adom.inc/download/aravk/0603waf470kt5e/1.0.0/0603WAF470KT5E-datasheet.pdf"+    sha256: "6344d3f6a60ea3d3a4c4726f3562df5847a0e5910ce0bd4356328c1363a25f0d"+    evidence: "p.1 ratings, p.3 tolerance, TCR and load-life table"+    confidence: high+provenance:+  author: "Adom (wiki.adom.inc), from the adom/0603waf470kt5e component page"+  created: "2026-10-13"+  previous_version: null+  signatures: []+license: CC-BY-4.0+notes: "Generated from an existing Adom wiki component page, which already cites each spec to a datasheet page."
cards/samsung-cl21a475kaqnnng.yamladded+69
@@ -0,0 +1,69 @@+# Real values, taken from the Adom wiki component page https://wiki.adom.inc/adom/cl21a475kaqnnng+# Every number below is a datasheet limit with its page. The datasheet gives no distribution+# shapes, so each spread is a uniform over the published limit.+card_version: "0.1"+id: occ:capacitor/[email protected]+part:+  manufacturer: "Samsung Electro-Mechanics"+  mpn: "CL21A475KAQNNNG"+  category: capacitor+  description: "4.7 uF, +/-10%, X5R, 25 V, 0805 MLCC"+  package: "0805"+model_files: []+parameters:+  - name: capacitance+    unit: F+    nominal: 4.7e-6+    distribution:+      type: uniform+      applies_to: value+      kind: population+      params: { min: 4.23e-6, max: 5.17e-6 }+      basis: "Datasheet +/-10% (K) tolerance (p.1). Shape not published; uniform over the limit."+      confidence: low+    conditions: { frequency_hz: 1000, ac_vrms: 1.0, bias_v: 0, preconditioning: "150 C for 1 h, then 24 h rest (p.2)" }+    source_refs: [ds1]+  - name: temperature_factor+    unit: "1"+    nominal: 1.0+    distribution:+      type: uniform+      applies_to: value+      kind: epistemic+      params: { min: 0.85, max: 1.15 }+      basis: "X5R: capacitance change within +/-15% from -55 to +85 C (p.2). Only the class limit is published, not a curve."+      confidence: low+    conditions: { temperature_min_c: -55, temperature_max_c: 85 }+    source_refs: [ds1]+  - name: damp_heat_drift+    unit: "1"+    nominal: 0+    distribution:+      type: uniform+      applies_to: value+      kind: population+      params: { min: -0.125, max: 0.125 }+      basis: "Damp heat, 500 h at 40 C and 90 to 95% RH under rated voltage: capacitance change within +/-12.5% (p.2)."+      confidence: low+    source_refs: [ds1]+derivation:+  kind: data+  method: "Datasheet limits only. DC bias derating (product manual p.14) and log-time aging (p.12) are described on the source page but not yet extracted as numbers."+validation:+  maturity: "1.0"+  tested_simulators: []+  comparisons: []+sources:+  - ref: ds1+    kind: datasheet+    uri: "https://wiki.adom.inc/download/aravk/cl21a475kaqnnng/1.0.0/CL21A475KAQNNNG-datasheet.pdf"+    sha256: "f8b95d34c191830fa2bd2d9d90a4ab81d7ae2b17189edfd1ea5b59800adc31ef"+    evidence: "p.1 tolerance, p.2 X5R and reliability table, p.12 aging, p.14 DC bias"+    confidence: high+provenance:+  author: "Adom (wiki.adom.inc), from the adom/cl21a475kaqnnng component page"+  created: "2026-10-13"+  previous_version: null+  signatures: []+license: CC-BY-4.0+notes: "Generated from an existing Adom wiki component page, which already cites each spec to a datasheet page."
screenshots/hero.pngadded
⋯ 1 unchanged line ⋯
screenshots/showcase.pngadded
⋯ 1 unchanged line ⋯