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.
VendorAnalog Devices / MaximOptical, Color & ToF
InterfaceI2C0x57 (fixed)
Record StatusCatalog profileDatasheet / 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). |
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.yamlFault-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