Hello I’m interested in using the AS5600 Magnetic Encoder sensor to measure the angle of a shaft and have a NEMA 23 stepper motor move to that position. Does anyone have code for that. Not having much luck finding any tutorials.
I want to use the AS5600 instead of a rotary encoder.
move the stepper the required number of steps to get to the same position.
Surely you can find tutorials for those, then it's just up to you to combine the two.
Mind that you will need a way to find the current angle of your stepper, i.e. you have to be able to home it, as otherwise you don't know the starting position when you start up your project. That's commonly done using e.g. a microswitch or optical sensor.