makerbase-mks / MKS-SERVO42B

MKS SERVO42B is 3d printer closed loop stepper motor NEMA17 MKS SERVO42 developed by Makerbase that prevents losing steps. CPU is STM32F103C8T6 ARM 32-bit Cortex™-M3 CPU Core,72 MHz. Magnetic encoder is Allegro's A1333LLETR-T Contactless 0° to 360° angle sensor IC ,12bit .This Project open source hardware and code,support platformio build and upload firmware...
https://www.aliexpress.com/item/33032696338.html?spm=a2g0o.store_home.productList_8356958.pic_1
GNU General Public License v3.0
166 stars 70 forks source link

PID Tuning #12

Open haudamekki opened 4 years ago

haudamekki commented 4 years ago

How could I tune the PID values? Is there a serial interface like the MisfitTech Smart Stepper has?

lonelymyp commented 4 years ago

@haudamekki No. This is a bad copy of the MisfitTech old version, there is a lack of many necessary things.

dzid26 commented 4 years ago

@haudamekki No. This is a bad copy of the MisfitTech old version, there is a lack of many necessary things.

What is it lacking apart from serial? I think more similar copy is atmel based Servo42A https://github.com/makerbase-mks/MKS-SERVO42A

lonelymyp commented 3 years ago

What is it lacking apart from serial? @dzid26 For example, the code for control on uart, commands.cpp cut out completely.

The code for different modes of PID operation was ignored. There are 3 different modes in the original, SIMPLE PID, VELOCITY PID, POSITIONAL PID. Only 1 mode was left here, SIMPLE PID.

Cut-out holding current control. The holding current cannot be set in the menu, it is rigidly tied to the operating current. In this case, in fact, the holding current is set, and the operating current is simply 2 times higher. https://github.com/makerbase-mks/MKS-SERVO42B/issues/7