IMU & Motion

# Bosch Sensortec BMI160 digital twin

Low-power 6-axis inertial measurement unit (16-bit accel + gyro).

standing: provisional I2C / SPI I2C 0x68 / 0x69; SPI Mode 0/3

Vendor Bosch Sensortec IMU & Motion

Interface I2C / SPI I2C 0x68 / 0x69; SPI Mode 0/3

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                                      |
| --------------- | ----------------- | ---------------- | -------------------------------------------- |
| 0x00            | CHIP\_ID          | 0xD1             | Bosch BMI160 chip identifier                 |
| 0x7E            | CMD               | Write-only       | Power mode transitions and soft reset (0xB6) |
| 0x0C–0x17       | DATA\_8..DATA\_19 | 16-bit LE        | Gyroscope and accelerometer sample registers |

## Attach with ct CLI

Shell - run firmware with BMI160

```
# Run compiled firmware with BMI160 attached on black-pill-f411ce
ct run --json --board black-pill-f411ce --device bmi160 build/app.elf

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

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

tests/bmi160-fault.suite.yaml

```
version: 1
board: black-pill-f411ce
firmware: build/app.elf
tests:
  - name: bmi160-i2c-nack-and-bad-id
    faults:
      - at_ms: 30
        bus: I2C1
        kind: nack
        address: 0x68
        count: 2
      - at_ms: 150
        part: bmi160
        kind: register_override
        register: 0x00
        value: 0xFF
    expect:
      console_contains: "DRIVER_FAULT_DETECTED"
      exit_code: 0
```

## Compatible board twins

[Board: black-pill-f411ce](https://circuittwin.ai/boards/black-pill-f411ce) [Board: nucleo-f767zi](https://circuittwin.ai/boards/nucleo-f767zi) [Board: nrf52840-dk](https://circuittwin.ai/boards/nrf52840-dk) [Accuracy report](https://circuittwin.ai/docs/accuracy)

## More in IMU & Motion

[ADXL345 (Analog)](https://circuittwin.ai/twins/adxl345) [ADXL355 (Analog)](https://circuittwin.ai/twins/adxl355) [AS5600 (ams)](https://circuittwin.ai/twins/as5600) [BMI088 (Bosch)](https://circuittwin.ai/twins/bmi088) [BMI270 (Bosch)](https://circuittwin.ai/twins/bmi270) [BMM150 (Bosch)](https://circuittwin.ai/twins/bmm150)

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