Environment & Temperature

# Bosch Sensortec BME688 in the datasheet corpus

4-in-1 gas scanner (VOC/VSC), humidity, pressure and temperature sensor with multi-step heater profiles.

standing: provisional I2C / SPI I2C 0x76/0x77; SPI Mode 0/3

Vendor Bosch Sensortec Environment & Temperature

Interface I2C / SPI I2C 0x76/0x77; SPI Mode 0/3

Record Status Catalog profile Datasheet / behavioral twin

## Driver oracle & capability record

Indexed in the CircuitTwin datasheet corpus; extends the Bosch BME68x Sensor API verified on our BME680 twin with variant ID 0x01.

| Driver reference  | Bosch BME68x Sensor API                                                                                                                         |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| 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                                             |
| --------------- | --------------------------- | ---------------- | --------------------------------------------------- |
| 0xD0 / 0xF0     | chip\_id / variant\_id      | 0x61 / 0x01      | Identifies BME688 vs BME680 (0x00)                  |
| 0x74            | ctrl\_meas                  | 0x00             | Oversampling and parallel/forced mode control       |
| 0x5A-0x6D       | res\_heat\_x / gas\_wait\_x | 10 heater steps  | Programmable gas heater temperature and dwell table |
| 0x1D-0x2D       | field0\_data                | Raw T/P/H/Gas    | Environmental readout and gas resistance range      |

## Attach with ct CLI

Shell - run firmware with BME688

```
# Run compiled firmware with BME688 attached on nucleo-l476rg
ct run --json --board nucleo-l476rg --device bme688 build/app.elf

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

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

tests/bme688-fault.suite.yaml

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

## Compatible board twins

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

## More in Environment & Temperature

[AHT20 (Aosong)](https://circuittwin.ai/twins/aht20) [BME280 (Bosch)](https://circuittwin.ai/twins/bme280) [BME680 (Bosch)](https://circuittwin.ai/twins/bme680) [DS18B20 (Analog)](https://circuittwin.ai/twins/ds18b20) [HDC1080 (Texas)](https://circuittwin.ai/twins/hdc1080) [HDC2080 (Texas)](https://circuittwin.ai/twins/hdc2080)

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