Current, Power & ADC

Avia Semiconductor HX711 digital twin

24-bit bridge/load-cell ADC with 2-wire synchronous serial interface.

standing: provisional2-Wire GPIO (PD_SCK / DOUT)25/26/27 clock pulses select Ch A (128x/64x) or Ch B (32x)
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 referenceTwin-factory vendor-driver oracle (0.1.0+policy.12)
Evidence standingprovisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples).
Published recordaccuracy/twin-factory-oracles-2026-11-19b.json (SHA-256 caa6e32e53c5)

Key registers & reset values

Address / FieldRegisterReset / ExpectedPurpose
24 pulsesDOUT_24BIT24-bit 2s compMSB-first bridge ADC sample shifted out on PD_SCK
Pulses 25–27GAIN_SELECTNext sample gainSets 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.yaml

Fault-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

Compatible board twins

More in Current, Power & ADC