AS5600 magnetic angle encoder
Reads the angle of a magnet on a shaft, 12-bit.
MeasuresAbsolute angle
Accuracy12-bit (4096 steps)
InterfaceI2C, analog or PWM
I2C address0x36
SensorsReviewedMPN AS5600Used in 3 projects
In short
What is the AS5600 magnetic angle encoder and what is it used for?
Reads the angle of a magnet on a shaft, 12-bit. Makers use it for closed-loop motors, knobs.
How it works
Hall sensors on the chip measure the direction of the magnet's field.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Absolute angle |
| Accuracy | 12-bit (4096 steps) |
| Interface | I2C, analog or PWM |
| I2C address | 0x36 |
| Supply voltage | 3.3 or 5 V |
Pinout
VCC3.3 or 5 V
GNDGround
SCLI2C clock
SDAI2C data
OUTAnalog or PWM angle
DIRDirection, ground for clockwise
GPOProgramming option
How to use it
Glue a diametrically magnetised disc magnet (supplied) on the end of the shaft, 0.5 to 3 mm above the chip and centred. Read the 12-bit angle over I2C at 0x36. Used for closed-loop steppers and knobs.
Applications
Closed-loop motorsknobs
Builds that use it
Alternatives
- Rotary encoder module (KY-040)Cheap mechanical relative encoder
Common questions
What is the AS5600 magnetic angle encoder used for?
In maker projects: closed-loop motors, knobs.
How does the AS5600 magnetic angle encoder work?
Hall sensors on the chip measure the direction of the magnet's field.
What voltage does the AS5600 magnetic angle encoder need?
3.3 or 5 V.
How do I connect the AS5600 magnetic angle encoder to an Arduino or ESP32?
I2C, analog or PWM. Pins: VCC (3.3 or 5 V), GND (Ground), SCL (I2C clock), SDA (I2C data), OUT (Analog or PWM angle), DIR (Direction, ground for clockwise).
What can I use instead of the AS5600 magnetic angle encoder?
Rotary encoder module (KY-040).
