Optical, Color & ToF

# Analog Devices / Maxim MAX30102 in the datasheet corpus

Integrated Red/IR pulse oximeter and heart-rate PPG optical front end with 32-sample FIFO.

standing: provisional I2C 0x57 (fixed)

Vendor Analog Devices / Maxim Optical, Color & ToF

Interface I2C 0x57 (fixed)

Record Status Catalog profile Datasheet / behavioral twin

## Driver oracle & capability record

Included in test-firmware/datasheets/manifest.json for wearable PPG FIFO and interrupt-driven driver tests.

| Driver reference  | Zephyr maxim,max30101 / SparkFun MAX3010x                                                                                                       |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| 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                                         |
| --------------- | -------------------- | ---------------- | ----------------------------------------------- |
| 0xFF / 0xFE     | PART\_ID / REV\_ID   | 0x15 / rev       | Maxim MAX30102 fixed part identifier            |
| 0x09            | MODE\_CONFIG         | 0x00             | Shutdown, reset, HR-only or SpO2 dual-LED mode  |
| 0x04-0x07       | FIFO\_WR/OVF/RD/DATA | 18-bit x 2 LEDs  | 32-sample Red and IR optical sample ring buffer |

## Attach with ct CLI

Shell - run firmware with MAX30102

```
# Run compiled firmware with MAX30102 attached on nrf52840-dk
ct run --json --board nrf52840-dk --device max30102 build/app.elf

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

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

tests/max30102-fault.suite.yaml

```
version: 1
board: nrf52840-dk
firmware: build/app.elf
tests:
  - name: max30102-i2c-nack-recovery
    faults:
      - at_ms: 30
        bus: I2C1
        kind: nack
        address: 0x57
        count: 2
      - at_ms: 140
        part: max30102
        kind: register_override
        register: 0xFF
        value: 0xFF
    expect:
      console_contains: "DRIVER_FAULT_HANDLED"
      exit_code: 0
```

## Compatible board twins

[Board: nrf52840-dk](https://circuittwin.ai/boards/nrf52840-dk) [Board: feather-nrf52840-express](https://circuittwin.ai/boards/feather-nrf52840-express) [Board: esp32c3-devkitm](https://circuittwin.ai/boards/esp32c3-devkitm) [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) [OPT3001 (Texas)](https://circuittwin.ai/twins/opt3001) [TCS34725 (ams-OSRAM)](https://circuittwin.ai/twins/tcs34725) [TSL2591 (ams-OSRAM)](https://circuittwin.ai/twins/tsl2591) [VCNL4040 (Vishay)](https://circuittwin.ai/twins/vcnl4040)

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