My concept involves saving the position into a Direct Memory Access (DMA) so that each time the Python script issues a command, the Arduino retrieves the last position it was in.
However, my sketch hasn't reached that stage yet. I've only utilized it to control the stepper motor, familiarizing myself with this specific decoder.
The real challenge lies in integrating positional data into the control of my stepper. My stepper needs to be aware of the platform's position. The platform and encoder gear ratio is 2:1. Additionally, I need to implement limits on the encoder, allowing rotation until XYZ degrees are reached, at which point it should stop the stepper from rotating further.
Its my first Post, i dont know is there a limit on replying?