Optical, Color & ToF
ams-OSRAM TSL2591 digital twin
High-dynamic-range (600M:1) visible + IR ambient light sensor.
Vendorams-OSRAMOptical, Color & ToF
InterfaceI2C0x29 (fixed)
Record Status2026-11-19rev c3f5f9950 (clean tree)
Driver oracle & capability record
Part of the 27-part, 44-case twin-factory oracle suite (44/44 passed, generator 0.1.0+policy.12).
| Driver reference | Twin-factory vendor-driver oracle (0.1.0+policy.12) |
|---|---|
| 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 | accuracy/twin-factory-oracles-2026-11-19b.json (SHA-256 caa6e32e53c5) |
Key registers & reset values
| Address / Field | Register | Reset / Expected | Purpose |
|---|---|---|---|
0x12 (cmd 0xB2) | ID | 0x50 | TSL2591 device identifier |
0x01 | CONTROL | 0x00 | Gain (1x..9876x) and integration time (100–600 ms) |
0x14–0x17 | C0DATAL..C1DATAH | 16-bit LE | Full-spectrum CH0 and IR-only CH1 readings |
Attach with ct CLI
Shell - run firmware with TSL2591
# Run compiled firmware with TSL2591 attached on nucleo-f767zi
ct run --json --board nucleo-f767zi --device tsl2591 build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/tsl2591.xml tests/tsl2591-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/tsl2591-fault.suite.yaml
version: 1
board: nucleo-f767zi
firmware: build/app.elf
tests:
- name: tsl2591-i2c-nack-and-bad-id
faults:
- at_ms: 30
bus: I2C1
kind: nack
address: 0x29
count: 2
- at_ms: 150
part: tsl2591
kind: register_override
register: 0xB2
value: 0xFF
expect:
console_contains: "DRIVER_FAULT_DETECTED"
exit_code: 0