MKS-SERVO42C icon indicating copy to clipboard operation
MKS-SERVO42C copied to clipboard

Position control (not x steps cw / ccw) via UART

Open bodyhey opened this issue 3 years ago • 1 comments

It would be great to have an UART command to drive the stepper to an absolute angle position. At present, you can just move x steps cw or ccw in a defined speed and have to keep track of where you are in your software.

As input, the value, you would get from command 3 : e0 36 (read the angle of the motor shaft): angle(int32_t XX XX XX XX) + direction / speed YY would be great. For example e0 f9 YY XX XX XX XX.

I imagine, you could modify the get-back-to-zero function in the firmware ...

All the best, Martin

bodyhey avatar Dec 12 '21 21:12 bodyhey

Your suggestion is great, we will add this feature in the new version, thank you!

makerbase-motor avatar Dec 21 '21 02:12 makerbase-motor