flow "LightEmittingDiode" v1.0
# ---------- IDENTITY ----------
id: "electronic-component.light-emitting-diode"
type: "ElectronicComponentOntology"
category: "Electronic Component Entities"
locale: "en-GB"
# ---------- AUTHORS ----------
authors: ["Mark Anthony Higgins", "Sky — Recursive AI"]
licence: "Open Research Licence — citation required; consult source for terms"
# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/electronic-component-entities/light-emitting-diode-ontology.html"
source.title: "Light-Emitting Diode Ontology"
source.revised: "2026-08-04"
source.mapping: "Newly constructed semantic representation; not a verbatim extraction of embedded source code"
# ---------- PURPOSE ----------
purpose: "Represent an LED as a semiconductor optoelectronic device, linking electrical drive, light emission, temperature, degradation and protective constraints."
# ---------- STATE_MODEL ----------
state S = (I, R, B, K)
I: observed inputs = [forward_voltage, forward_current, reverse_voltage, junction_temperature, ambient_temperature, emitted_flux, drive_waveform]
R: relations = [electroluminescence, current_voltage_response, electrical_power, thermal_resistance, optical_efficiency, ageing]
B: boundaries = [maximum_forward_current, maximum_reverse_voltage, maximum_junction_temperature, safe_operating_area, manufacturer_rating]
K: knowledge = [device_material, emission_wavelength, package, thermal_path, datasheet, calibration]
states: [unpowered, forward_biased, emitting, reverse_biased, dimmed, thermally_limited, degraded, open_circuit, short_circuit, failed]
transitions:
unpowered -> forward_biased when forward_drive_applied
forward_biased -> emitting when carrier_recombination_produces_photons
emitting -> dimmed when drive_current_reduced
emitting -> thermally_limited when temperature_limit_approached
any -> failed when irreversible_damage_confirmed
# ---------- ENTITIES ----------
entity LED: semiconductor_diode
entity Anode: electrical_terminal
entity Cathode: electrical_terminal
entity PNJunction: semiconductor_interface
entity ActiveRegion: photon_emission_region
entity Driver: current_control_source
entity CurrentLimiter: protective_component
entity HeatSink: thermal_dissipation_path
entity OpticalOutput: radiant_flux_or_luminous_flux
entity Sensor: measurement_device
entity Datasheet: authoritative_device_limits
relations:
LED has_terminal Anode
LED has_terminal Cathode
LED contains PNJunction
PNJunction contains ActiveRegion
Driver supplies LED
CurrentLimiter protects LED
LED converts electrical_energy -> optical_energy + thermal_energy
HeatSink removes thermal_energy from LED
Datasheet constrains operating_conditions
# ---------- PATHWAYS ----------
pathway "Identify":
read device_type, polarity, package, rated_current, rated_voltage, thermal_limits
validate against datasheet
emit identified_LED
pathway "ElectricalDrive":
read applied_voltage, forward_current, driver_mode
verify polarity and current_limit
if forward_biased and within_ratings -> evaluate emission
if reverse_voltage_exceeds_rating -> flag reverse_breakdown_risk
emit drive_state
pathway "OpticalConversion":
read forward_current, junction_temperature, wavelength, optical_characteristics
estimate optical_output using device_specific_characterisation
note optical_output_is_not_generally_linear_with_current
emit wavelength_band, optical_output_estimate, uncertainty
pathway "ThermalAssessment":
read forward_voltage, forward_current, optical_power_estimate, thermal_resistance, ambient_temperature
electrical_power_W = forward_voltage_V * forward_current_A
heat_power_W = electrical_power_W - optical_power_estimate_W
estimate junction_temperature from heat_power and validated thermal_path
if junction_temperature_exceeds_limit -> flag thermal_hazard
emit thermal_state
pathway "FaultAssessment":
compare commanded_current, measured_current, forward_voltage, optical_output, temperature
if current_near_zero and commanded_on -> suspect open_circuit_or_driver_fault
if anomalously_low_voltage and excessive_current -> suspect short_circuit
if optical_output_declines_at_comparable_drive_and_temperature -> suspect degradation
emit hypotheses, evidence, confidence
# ---------- MINI_RECURSION_ENGINE ----------
engine "LEDReasoner":
initialise S0 = (I0, R, B, K)
repeat until stable_or_iteration_limit:
candidates = expand(S.I, S.R)
admissible = filter(candidates, S.B)
next = argmax(admissible, confidence_given(S.I, S.R, S.B, S.K))
S = update(S, next, new_measurements)
if safety_boundary_violated -> stop_and_flag
emit state, explanation, evidence, confidence
# ---------- INFERENCE_RULES ----------
rule LED_FORWARD_BIAS:
when anode_potential > cathode_potential and forward_current > 0
infer forward_biased
rule LED_LIGHT_EMISSION:
when forward_current_within_ratings and optical_output_detected
infer emitting
rule LED_CURRENT_LIMIT:
when drive_source_is_voltage_controlled and no_valid_current_limiting_path
infer overcurrent_risk
rule LED_THERMAL_DERATING:
when junction_temperature_increases
infer manufacturer_derating_may_be_required
rule LED_REVERSE_STRESS:
when abs(reverse_voltage) > rated_reverse_voltage
infer potential_reverse_damage
rule LED_DEGRADATION:
when optical_flux_declines under matched_current_and_temperature
infer possible_lumen_depreciation
rule LED_FAILURE_DIAGNOSIS:
when contradictory_measurements_or_missing_datasheet
infer insufficient_evidence
require further_measurement
# ---------- CONFIDENCE ----------
confidence.sources: [manufacturer_datasheet, calibrated_measurement, validated_model, observation]
confidence.high: "Datasheet limits and calibrated measurements agree"
confidence.medium: "Measurements are plausible but incomplete"
confidence.low: "Missing ratings, uncertain thermal path or contradictory evidence"
confidence.policy: "Do not infer component safety from optical emission alone"
# ---------- SEMANTIC_EQUIVALENCE ----------
equivalent_terms: ["LED", "light-emitting diode", "electroluminescent semiconductor diode"]
related_but_distinct: ["laser diode", "photodiode", "rectifier diode", "OLED"]
semantic_boundary: "An LED emits light under suitable electrical excitation; a photodiode is primarily used for light detection."
# ---------- SAFETY_CONSTRAINTS ----------
constraint: "Never exceed device-specific forward-current, reverse-voltage, power or junction-temperature ratings"
constraint: "Use a suitably designed current-limited driver"
constraint: "High-brightness and ultraviolet emitters may pose optical hazards; apply appropriate controls"
constraint: "Allow for electrostatic discharge sensitivity and thermal derating"
constraint: "Use verified datasheets and applicable electrical safety standards for physical designs"
# ---------- FLOW_HASH ----------
flow_hash.method: "SHA-256 of canonical UTF-8 text excluding the flow_hash.value field"
flow_hash.value: "compute_on_publication"
# ---------- UPDATE_MODEL ----------
update.trigger: [datasheet_revision, measurement_change, device_reclassification, fault_evidence, ontology_revision]
update.policy: "Revalidate rules and constraints, preserve provenance, increment version, regenerate hash"
update.review: "Human engineering review required for safety-critical use"
# ---------- END FLOW ----------
Download Code
Copy to Clipboard