makerbase-mks / MKS-SERVO42C

MKS SERVO42C, an upgraded version of MKS SERVO42B, built-in Field-Oriented control algorithm, position/speed/ torque closed-loop, 4 Half bridge driver with 8 MOSFET, it makes the motor quieter, lower vibration and Lower calorific.
150 stars 34 forks source link

V1.1. how to release motor after stall protection triggers? #50

Open dwjbosman opened 1 year ago

dwjbosman commented 1 year ago

If I enable stall protection and then have a stall. The motor power is disabled and the blue LED turns on. I can release the protection via the screen menu.

Via the UART however I cannot release the stall protection. Once the protection triggers the motor no longer responds to any UART command. How do I release the protection via the UART?

jasonhillier commented 1 year ago

hey I ran into this problem, you need to call the unblock AND enable commands:

class Command(IntEnum): REQ_ENCODER = 0x30 REQ_PULSCNT = 0x33 CHKENABLED = 0x3A CHKBLOCKED = 0x3E MOVE = 0xFD ENABLE = 0xF3 UNBLOCK = 0x3D CALIBRATE = 0x80