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: provisional I2C 0x44-0x47 (ADDR pin)

Vendor Texas Instruments Optical, Color & ToF

Interface I2C 0x44-0x47 (ADDR pin)

Record Status Catalog profile Datasheet / 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](https://circuittwin.ai/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.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

[Board: lp-mspm0g3507](https://circuittwin.ai/boards/lp-mspm0g3507) [Board: nrf52840-dk](https://circuittwin.ai/boards/nrf52840-dk) [Board: nucleo-l476rg](https://circuittwin.ai/boards/nucleo-l476rg) [Accuracy report](https://circuittwin.ai/docs/accuracy)

## More in Optical, Color & ToF

[APDS-9960 (Broadcom)](https://circuittwin.ai/twins/apds9960) [BH1750 (ROHM)](https://circuittwin.ai/twins/bh1750) [MAX30102 (Analog)](https://circuittwin.ai/twins/max30102) [TCS34725 (ams-OSRAM)](https://circuittwin.ai/twins/tcs34725) [TSL2591 (ams-OSRAM)](https://circuittwin.ai/twins/tsl2591) [VCNL4040 (Vishay)](https://circuittwin.ai/twins/vcnl4040)

> ## Inject OPT3001 bus faults in CI
>
> Wire OPT3001 onto your MCU board twin, drive physical stimuli and fail builds when your driver hangs on NACKs or frozen registers.
>
> [Start now](https://app.circuittwin.ai/try) [Inputs & fault injection docs](https://circuittwin.ai/docs/inputs) [Connect a coding agent](https://circuittwin.ai/docs/agents)
