IMU & Motion
ams OSRAM AS5600 in the datasheet corpus
12-bit contactless Hall magnetic rotary encoder for BLDC motor shafts and joints.
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 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). |
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.yamlFault-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