Optical, Color & ToF
Texas Instruments OPT3001 in the datasheet corpus
0.01 to 83k lux ambient light sensor with automatic full-scale exponent ranging.
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 reference | Zephyr ti,opt3001 / TI SimpleLink driver |
|---|---|
| Evidence standing | provisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples). |
| Published record | Generate or inspect locally via ct twin generate (see /docs/twin-generation). |
Key registers & reset values
| Address / Field | Register | Reset / Expected | Purpose |
|---|---|---|---|
0x00 | RESULT | E[3:0] + R[11:0] | Lux = 0.01 * 2^E * R |
0x01 | CONFIGURATION | 0xC810 | Auto-range, 100/800 ms integration and conversion mode |
0x7E / 0x7F | MANUF / DEV_ID | 0x5449 / 0x3001 | TI 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.yamlFault-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