This little demo shows how we can achieve a closedloop PID control of a stepper motor using an AS5600 magnetic encoder.