Current, Power & ADC
Texas Instruments INA226 digital twin
36 V, 16-bit high/low-side I2C current, voltage and power monitor.
VendorTexas InstrumentsCurrent, Power & ADC
InterfaceI2C0x40–0x4F (default 0x40)
Record Status2026-11-19rev 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 (SHA-256 caa6e32e53c5) |
Key registers & reset values
| Address / Field | Register | Reset / Expected | Purpose |
|---|---|---|---|
0xFE / 0xFF | MANUF / DIE_ID | 0x5449 / 0x2260 | TI manufacturer and INA226 die ID |
0x01 / 0x02 | SHUNT_V / BUS_V | 2.5 uV / 1.25 mV | Shunt and bus voltage measurement registers |
0x04 / 0x05 | CURRENT / CALIB | 0x0000 | Calibrated current and calibration register |
Attach with ct CLI
Shell - run firmware with INA226
# Run compiled firmware with INA226 attached on nucleo-g071rb
ct run --json --board nucleo-g071rb --device ina226 build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/ina226.xml tests/ina226-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/ina226-fault.suite.yaml
version: 1
board: nucleo-g071rb
firmware: build/app.elf
tests:
- name: ina226-i2c-nack-and-bad-id
faults:
- at_ms: 30
bus: I2C1
kind: nack
address: 0x40
count: 2
- at_ms: 150
part: ina226
kind: register_override
register: 0xFF
value: 0xFF
expect:
console_contains: "DRIVER_FAULT_DETECTED"
exit_code: 0