Current, Power & ADC
Avia Semiconductor HX711 digital twin
24-bit bridge/load-cell ADC with 2-wire synchronous serial interface.
VendorAvia SemiconductorCurrent, Power & ADC
Interface2-Wire GPIO25/26/27 clock pulses select Ch A (128x/64x) or Ch B (32x)
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 |
|---|---|---|---|
24 pulses | DOUT_24BIT | 24-bit 2s comp | MSB-first bridge ADC sample shifted out on PD_SCK |
Pulses 25–27 | GAIN_SELECT | Next sample gain | Sets next conversion channel and PGA gain |
Attach with ct CLI
Shell - run firmware with HX711
# Run compiled firmware with HX711 attached on rpi-pico
ct run --json --board rpi-pico --device hx711 build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/hx711.xml tests/hx711-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/hx711-fault.suite.yaml
version: 1
board: rpi-pico
firmware: build/app.elf
tests:
- name: hx711-dout-stuck-high-timeout
faults:
- at_ms: 50
part: hx711
kind: pin_stuck
pin: DOUT
level: high
expect:
console_contains: "ADC_TIMEOUT_RECOVERED"
exit_code: 0