Skip to content

Color pipeline P1: datasheet characterization and profile artifact schema #4035

Closed

Description

@zackees

Phase P1 of the color pipeline implementation (see parent issue). Independently mergeable; no code in src/.

Scope

Build the reproducible datasheet characterization dataset and the versioned profile artifact schema in the FastLED/datasheets repo.

  • Catalog every relevant integrated RGB/RGBW part: emitter chromaticities/wavelengths, per-channel intensity + test current, forward voltage, code depth, 5-bit/global fields and their per-chip semantics, temperature curves, bins, spectral data where present. Mark every value typical/min/max, inferred, or measured — never manufacture precision the PDF lacks.
  • Distinguish driver-only parts (WS2811-class, UCS driver ICs) from fixed-package integrated LEDs — this feeds the chipset default-profile table (C8.5 fallback applies to driver-only).
  • Cluster analysis: do profiles group, or do parts need individual defaults? Quantify inter-chipset and bin variance.
  • Quantify TypicalLEDStrip, Typical8mmPixel, UncorrectedColor accuracy against derived profiles (neutral axis, primaries/secondaries, luminance, ΔE2000 with the A1 normalization), datasheet-derived estimates labeled separately from measurements.
  • Define the versioned JSON profile artifact schema (A2, C8): canonical string ID (part/provenance/report), provenance fields (instrument, date, fixture geometry, operating temperature, bin/lot, raw-data pointer), per-channel data, per-chip 5-bit semantics field (B1), electrical power model separate from photometric Y. Identity fields per C8.2: part + package variant + W-CCT variant + provenance/report ID; bin is metadata. Append-only.

Decisions implemented

A2 (artifact home + schema), C8.1–C8.2 (ID scheme, identity granularity), B1 (5-bit semantics captured as data), B10 (reference-temperature scoping), #4032 §1.

Acceptance criteria owned (from parent map)

  • Research report: datasheet catalog, driver-only parts, profile clustering.
  • Accuracy of TypicalLEDStrip / Typical8mmPixel / UncorrectedColor quantified.

Dependencies

None. Schema field shapes are co-designed with P2's EmitterProfile type so the generator (P3) is a pure transform.

Deliverables

Checked-in report + JSON artifacts + schema spec in FastLED/datasheets; the golden-fixture subset mirrored into the FastLED repo lands with P3.

Activity

  1. zackees commented on Sep 6, 2026

    @zackees
    MemberAuthor

    Artifact/schema prerequisite PR: FastLED/datasheets#10

    This adds the inventory, cited artifact schema, combined validation boundary, and reproducible intensity-only sensitivity table. Local review is clean for that scope; 17 Python tests and both artifact/sensitivity checks pass. Remote review is pending.

    P1 remains open: this PR does not supply the full extracted xy/spectral corpus, uncertainty/bin analysis, clustering, or numerical color-accuracy comparison. Work is continuing on the uninspected WS2816 source and unextracted SK9822 spectral plots. Missing extraction is not being reported as proof that usable source data is absent.

  2. zackees commented on Sep 6, 2026

    @zackees
    MemberAuthor

    Merged artifact prerequisite: FastLED/datasheets#10 (merge 761fe839735be3de2be628144824c5936aa6a65a). Includes recovered primary WS2816B-2121 observations, strict schema/semantic admission, duplicate-key rejection, and checked sensitivity data; 22 focused tests pass and review threads are resolved.

    P1 stays open: SK9822 spectral-plot extraction and the required per-primary photometry, uncertainty/bin analysis, clustering, and full numerical accuracy report are not complete. No calibrated runtime profile or P10 measurement closure is claimed.

  3. zackees commented on Sep 6, 2026

    @zackees
    MemberAuthor

    Merged prerequisite progress: FastLED/datasheets#11 adds reproducible SK9822 page-7 relative spectra, wavelength-aware CIE integration, sampled sensitivity ranges and explicit graph/truncated-tail uncertainty limits. Root verified 31 tests; independent local review was clean and remote checks passed. Merge commit: dfb9a6457d8e2cfff6f6392f115ec52d3b204ab0. These estimates remain runtime-inadmissible: no inter-channel Y/flux calibration or manufacturer/bin uncertainty is claimed. P1 remains open for the full numerical characterization and measurement-dependent acceptance criteria.

  4. zackees commented on Sep 6, 2026

    @zackees
    MemberAuthor

    Independent verification of where this phase stands, from a loop pass over #4034.

    Delivered

    FastLED/datasheets/measured-profiles/ carries the schema half in full:

    file
    SCHEMA.md, schema-v1.json A2/C8 identity, append-only provenance, B1 five-bit semantics, B10 reference conditions
    catalog-v1.json 29 addressable-led parts — 10 fixed-package integrated, 19 driver-only
    P1-CHARACTERIZATION.md the report
    ws2812b-…, ws2816b-…profile.json two page/table-scoped transcriptions

    The catalog and the driver-only/integrated split — the first acceptance criterion's first two thirds — are done.

    What is blocked, and why it is not an access problem

    The second criterion (accuracy of TypicalLEDStrip / Typical8mmPixel / UncorrectedColor quantified) and clustering are both blocked on the same thing, and I checked it rather than taking the report's word:

    worldsemi/addressable-led/WS2812B/datasheet.pdf in the repo is a 131-byte Git-LFS pointer (oid sha256:670517e4…, real size 355361). But restoring LFS would not unblock this. The committed transcription shows what page 3 actually publishes:

    dominant_wavelength_nm  622.5 / 523.5 / 466   (qualifier: inferred, midpoints of ranges)
    luminous_intensity_mcd  405 / 690 / 190       (qualifier: inferred)
    forward_voltage_v       2.1 / 3.2 / 3.2       (qualifier: inferred)
    

    Every channel is marked "runtime_admissible": false by the artifact itself.

    ΔE2000 under the A1 normalization needs each emitter's xy plus a relative radiometric scale. Dominant wavelength does not give xy: a real emitter has ~20–30 nm FWHM, and its chromaticity sits well inside the spectral locus point for the same dominant wavelength — by an amount that dominates the 3 nm range the datasheet quotes. Converting 523.5 nm to a locus xy and calling it the green primary would manufacture precision the PDF lacks, which this issue explicitly forbids.

    So the report's "zero admissible derived profiles" is a correct research result about the corpus, not a gap in the work.

    The question this raises

    The parent map assigns "accuracy quantified" to P1 and "instrument measurement" to P10. That split assumed datasheets would support a datasheet-derived estimate. For this corpus they do not. Three ways forward, and the choice is a maintainer call:

    1. Reassign the criterion to P10, and let P1 close on catalog + classification + schema, which are complete.
    2. Keep it in P1 but scope it to a bound rather than a value — publish the xy region a dominant-wavelength range plus a plausible FWHM interval admits, and show numerically that the interval is wider than the A1 datasheet budget (median ≤ 3.0 / p95 ≤ 6.0). That is honest and computable, but it answers "can datasheets support this?" with no, rather than producing the profiles.
    3. Narrow the corpus to parts that do publish xy or spectra, and say so — the report notes SK9822 page-7 curves were digitized but carry no inter-channel flux, and WS2816B-2121 gives a combined-white xy with no per-diode data.

    I have not picked one. Option 2 is the only one that produces a number, and it produces a negative result; options 1 and 3 change scope. All three are defensible and none should be chosen by whoever happens to be holding the loop.

    Nothing here needs a code change; it needs a decision on what P1 is allowed to conclude.

  5. zackees commented on Sep 18, 2026

    @zackees
    MemberAuthor

    Closed by FastLED/datasheets#12 (merged)

    The datasheets publish only ranges for dominant wavelength, bandwidth and intensity, not a single spectrum. So the legacy corrections' accuracy is bounded over that range rather than stated as one number (option 2).

    What was added

    • tools/bound_legacy_correction_accuracy.py scores UncorrectedColor, TypicalLEDStrip and Typical8mmPixel against A1:
      • Grid: per-channel dominant wavelength (min/mid/max) × Gaussian FWHM (low/mid/high) × intensity (min/mid/max).
      • Target: linear sRGB, Bradford D65 → device white, scored in ΔE2000.
      • Reference data: the CIE table is pinned by SHA-256.
    • Output: measured-profiles/LEGACY-ACCURACY-BOUND.md and legacy-correction-accuracy-bound-v1.json.

    Result

    • The median spread exceeds A1's datasheet budget in 14 of 27 cells.
    • 26 of 27 cells are outside budget at every sample.
    • The legacy corrections are therefore not A1-conformant anywhere the datasheets permit, and the bound makes that quotable.

    Guarding it

    A new tests workflow in the datasheets repo does four things:

    • fetches the pinned CIE table and verifies its hash;
    • runs the unit tests (11 new);
    • --checks that the committed bound and sensitivity artifacts are current;
    • fails on drift.
  6. moved this from Triage to Done in FastLED Trackeron Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions