IMU & Motion

ams OSRAM AS5600 in the datasheet corpus

12-bit contactless Hall magnetic rotary encoder for BLDC motor shafts and joints.

standing: provisionalI2C0x36 (fixed)
Vendorams OSRAMIMU & Motion
InterfaceI2C0x36 (fixed)
Record StatusCatalog profileDatasheet / behavioral twin

Driver oracle & capability record

Indexed in the CircuitTwin datasheet corpus (magnetic-position class); supports magnet-too-weak/strong status checks.

Driver referenceSimpleFOC / RobTillaart AS5600 I2C driver
Evidence standingprovisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples).
Published recordGenerate or inspect locally via ct twin generate (see /docs/twin-generation).

Key registers & reset values

Address / FieldRegisterReset / ExpectedPurpose
0x0BSTATUSMD/ML/MH flagsMagnet detected, too weak or too strong status bits
0x0C-0x0DRAW_ANGLE12-bit BEUnscaled 0..4095 shaft angle count
0x0E-0x0FANGLE12-bit BEScaled angle with zero/max position limits
0x1A / 0x1B-0x1CAGC / MAGNITUDE8-bit / 12-bitAutomatic gain control and CORDIC field magnitude

Attach with ct CLI

Shell - run firmware with AS5600
# Run compiled firmware with AS5600 attached on nucleo-f446re
ct run --json --board nucleo-f446re --device as5600 build/app.elf

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

Fault-injection test snippet (suite.yaml)

tests/as5600-fault.suite.yaml
version: 1
board: nucleo-f446re
firmware: build/app.elf
tests:
  - name: as5600-i2c-nack-recovery
    faults:
      - at_ms: 30
        bus: I2C1
        kind: nack
        address: 0x36
        count: 2
      - at_ms: 140
        part: as5600
        kind: register_override
        register: 0x0B
        value: 0xFF
    expect:
      console_contains: "DRIVER_FAULT_HANDLED"
      exit_code: 0

Compatible board twins

More in IMU & Motion