u/Next-Building4633

[HELP] StallGuard configuration

Hello makers,

I built my own CNC machine, but I need some help or information regarding the “StallGuard” obstacle detection system.

First off, in the first video, is that normal behavior for the obstacle detection system?

---------------------------

Hardware:

Skr 1.4, TFT35, TMC2209, NEMA 17 HE15-1504S, 24V 15A power supply, T8 screws (2mm pitch, 2mm lead)

Software: Marlin 2.1.2.7

Modifications (non-exhaustive):

#define X_MICROSTEPS 16

#define DEFAULT_AXIS_STEPS_PER_UNIT { 1600, 1600, 1600, 1600 }

I measured the movements in real life; the values are correct.

#define Y2_DRIVER_TYPE TMC2209

+ modification pins_BTT_SKR_V1.4.h

CHOPPER_DEFAULT_24V

#define SENSORLESS_HOMING // StallGuard capable drivers only

#if EITHER(SENSORLESS_HOMING, SENSORLESS_PROBING)

// TMC2209: 0...255. TMC2130: -64...63

#define X_STALL_SENSITIVITY 100

#define X2_STALL_SENSITIVITY X_STALL_SENSITIVITY

#define Y_STALL_SENSITIVITY 100

#define Y2_STALL_SENSITIVITY Y_STALL_SENSITIVITY

#define Z_STALL_SENSITIVITY 100

And now the part that’s giving me trouble:

#define DEFAULT_MAX_FEEDRATE { 500, 500, 5, 25 }

#define DEFAULT_MAX_ACCELERATION { 1000, 1000, 100, 5000 }

When I move at these speeds, it seems that the stallguard activates and prevents movement (there’s a small movement and then it stops); on the Y and Y2 axes, this causes a misalignment.

To be able to move without any issues, I had to set the value to 5 for DEFAULT_MAX_FEEDRATE.

Is this behavior normal, and does my configuration prevent me from using StallGuard, or is there a solution?

Any advice on adjusting Max Feedrate, acceleration, and Stall Sensitivity is welcome.

Thank you for your help.

u/Next-Building4633 — 9 days ago