@ironhydroxide said in Having troubles with Closed Loop tuning Plugin:
So I figured I'd practice tuning the motor with only magnetic before "leveling up" to the quadrature and magnetic (M569.1 T1)
Ahh right i did not realise you had a linear encoder on this axis as well. As you say, that's not relevant to the plugin issue.
I have got a test setup now, I note the following:
In the video I see you initially capture, with the plugin, at a speed and acceleration above what is configured in config.g. The moves you sent directly on the command line are much shorter and slower
You don't need to clear and re check the encoder calibration unless you change the mounting of the magnet encoder board. (although see below about the calibration values you are getting)
Its setup as an extruder. Which i think is the core problem with the plugin - For some reason the plugin does not like tuning it with a step move as an extruder. I need to look at that further, but as a closedloop extruder is not something that people use often that would explain why this has not come up yet.
It does appear to work for me tuning it with a custom gcode move:
82f90ffa-bbe2-452f-a0b2-fdaf6dcca819-image.png
However for now if you remap it as the X axis, and use reasonable values for the step manoeuvre settings then it tunes for me:
17a0b169-c6da-487e-bac5-536ba86a691c-image.png
0ef525a6-462d-426a-893e-a444f409aa85-image.png
I used these values, modified from your config.g:
M584 E0; set axis mapping
M584 X123.0; set axis mapping
M350 X16 ; configure microstepping
M906 X800 ; set axis driver currents
M92 X28246.530421 ; configure microsteps per mm
M566 X0 P1 ; set maximum instantaneous speed changes (mm/min)
M203 X17.7 I0.1 ; set maximum speeds (mm/min)
M201 X5462.962963 ; set accelerations (mm/s^2)
And also set X to 0 to avoid homing
G92 X0
Calibration values:
As a point of reference my test rig has the following calibration:
M569.6 P123.0 V2
Driver 123.0 calibration succeeded, measured backlash is 0.020 step
Original encoder reading errors: min -28.1, max 29.8, rms 14.1
Corrections made: min -23.2, max 24.8, rms 13.9
You may want to check the magnet is centered, the reported agc value you showed in the video in the M122 report is not bad.