Snippets:10 bit rotary magnetic encoder (AS5040)