IMU & Motion

# ams OSRAM AS5600 in the datasheet corpus

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

standing: provisional I2C 0x36 (fixed)

Vendor ams OSRAM IMU & Motion

Interface I2C 0x36 (fixed)

Record Status Catalog profile Datasheet / behavioral twin

## Driver oracle & capability record

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

| Driver reference  | SimpleFOC / RobTillaart AS5600 I2C driver                                                                                                       |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| 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  | Generate or inspect locally via ct twin generate (see [/docs/twin-generation](https://circuittwin.ai/docs/twin-generation)).                    |

## Key registers & reset values

| Address / Field  | Register        | Reset / Expected | Purpose                                             |
| ---------------- | --------------- | ---------------- | --------------------------------------------------- |
| 0x0B             | STATUS          | MD/ML/MH flags   | Magnet detected, too weak or too strong status bits |
| 0x0C-0x0D        | RAW\_ANGLE      | 12-bit BE        | Unscaled 0..4095 shaft angle count                  |
| 0x0E-0x0F        | ANGLE           | 12-bit BE        | Scaled angle with zero/max position limits          |
| 0x1A / 0x1B-0x1C | AGC / MAGNITUDE | 8-bit / 12-bit   | Automatic 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

[Board: nucleo-f446re](https://circuittwin.ai/boards/nucleo-f446re) [Board: blue-pill-f103c8](https://circuittwin.ai/boards/blue-pill-f103c8) [Board: esp32-devkitc](https://circuittwin.ai/boards/esp32-devkitc) [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) [BMI088 (Bosch)](https://circuittwin.ai/twins/bmi088) [BMI160 (Bosch)](https://circuittwin.ai/twins/bmi160) [BMI270 (Bosch)](https://circuittwin.ai/twins/bmi270) [BMM150 (Bosch)](https://circuittwin.ai/twins/bmm150)

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