MKS-SERVO42A
MKS-SERVO42A copied to clipboard
How to operate it using external MCU like Arduino/ESP32
I have bought MKS Servo42A V1.1 and the output is second to none. It perfectly holds its position and outputs almost zero over/undershoot. Although I purchased this to integrate it with my project which uses ESP32 as an MCU when I command the step and dir pins the motor does not move at all and holds its position in a closed-loop PID logic which was initially uploaded when I bought it.
Can someone pls help me with this or let me know if there are any steps I am missing in using this motor with an external controller?
Below is the code which simply rotates the motor.
I have also tried to rebuild the firmware but I am stuck at the "sync. h" file not found... and I didn't find any such file on google or Github.
Thanks in advance!!!! :)