Optical, Color & ToF

# ams-OSRAM TCS34725 digital twin

RGBC color light-to-digital converter with IR blocking filter.

standing: provisional I2C 0x29 (fixed)

Vendor ams-OSRAM Optical, Color & ToF

Interface I2C 0x29 (fixed)

Record Status 2026-11-19 rev 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](https://circuittwin.ai/evidence/accuracy/twin-factory-oracles-2026-11-19b.json) (SHA-256 caa6e32e53c5) |

## Key registers & reset values

| Address / Field | Register       | Reset / Expected | Purpose                                  |
| --------------- | -------------- | ---------------- | ---------------------------------------- |
| 0x12 (cmd 0x92) | ID             | 0x44             | TCS34725 chip ID (command bit 7 set)     |
| 0x00 (cmd 0x80) | ENABLE         | 0x00             | PON and AEN RGBC ADC enable              |
| 0x14–0x1B       | CDATAL..BDATAH | 16-bit LE        | Clear, red, green and blue 16-bit counts |

## Attach with ct CLI

Shell - run firmware with TCS34725

```
# Run compiled firmware with TCS34725 attached on nucleo-f767zi
ct run --json --board nucleo-f767zi --device tcs34725 build/app.elf

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

## Fault-injection test snippet (suite.yaml)

tests/tcs34725-fault.suite.yaml

```
version: 1
board: nucleo-f767zi
firmware: build/app.elf
tests:
  - name: tcs34725-i2c-nack-and-bad-id
    faults:
      - at_ms: 30
        bus: I2C1
        kind: nack
        address: 0x29
        count: 2
      - at_ms: 150
        part: tcs34725
        kind: register_override
        register: 0x92
        value: 0xFF
    expect:
      console_contains: "DRIVER_FAULT_DETECTED"
      exit_code: 0
```

## Compatible board twins

[Board: nucleo-f767zi](https://circuittwin.ai/boards/nucleo-f767zi) [Board: esp32s3-devkitc](https://circuittwin.ai/boards/esp32s3-devkitc) [Board: rpi-pico](https://circuittwin.ai/boards/rpi-pico) [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) [OPT3001 (Texas)](https://circuittwin.ai/twins/opt3001) [TSL2591 (ams-OSRAM)](https://circuittwin.ai/twins/tsl2591) [VCNL4040 (Vishay)](https://circuittwin.ai/twins/vcnl4040)

> ## Inject TCS34725 bus faults in CI
>
> Wire TCS34725 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)
