Optical, Color & ToF

Texas Instruments OPT3001 in the datasheet corpus

0.01 to 83k lux ambient light sensor with automatic full-scale exponent ranging.

standing: provisionalI2C0x44-0x47 (ADDR pin)
VendorTexas InstrumentsOptical, Color & ToF
InterfaceI2C0x44-0x47 (ADDR pin)
Record StatusCatalog profileDatasheet / behavioral twin

Driver oracle & capability record

Indexed in the CircuitTwin datasheet corpus (light-proximity-tof class) with 4-bit exponent + 12-bit mantissa readout.

Driver referenceZephyr ti,opt3001 / TI SimpleLink driver
Evidence standingprovisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples).
Published recordGenerate or inspect locally via ct twin generate (see /docs/twin-generation).

Key registers & reset values

Address / FieldRegisterReset / ExpectedPurpose
0x00RESULTE[3:0] + R[11:0]Lux = 0.01 * 2^E * R
0x01CONFIGURATION0xC810Auto-range, 100/800 ms integration and conversion mode
0x7E / 0x7FMANUF / DEV_ID0x5449 / 0x3001TI vendor ID and OPT3001 device ID

Attach with ct CLI

Shell - run firmware with OPT3001
# Run compiled firmware with OPT3001 attached on lp-mspm0g3507
ct run --json --board lp-mspm0g3507 --device opt3001 build/app.elf

# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/opt3001.xml tests/opt3001-fault.suite.yaml

Fault-injection test snippet (suite.yaml)

tests/opt3001-fault.suite.yaml
version: 1
board: lp-mspm0g3507
firmware: build/app.elf
tests:
  - name: opt3001-i2c-nack-recovery
    faults:
      - at_ms: 30
        bus: I2C1
        kind: nack
        address: 0x44
        count: 2
      - at_ms: 140
        part: opt3001
        kind: register_override
        register: 0x7F
        value: 0xFF
    expect:
      console_contains: "DRIVER_FAULT_HANDLED"
      exit_code: 0

Compatible board twins

More in Optical, Color & ToF