meerk40t icon indicating copy to clipboard operation
meerk40t copied to clipboard

[Suggestion] Provide Lhy config values for acceleration boundaries

Open Sophist-UK opened this issue 3 years ago • 4 comments

Today I was rastering a large image at 250mm/s and the acceleration was too great for the steppers and it was shifting.

(At this stage I am assuming that this is not MK providing a twitch direction incorrectly - but the noise was very reminiscent of previous vector twitch noises so I do wonder.)

The default acceleration (distance) for raster at 250 is 3 so I reduced speed to 200 and set acceleration 4 to increase the distance it has to accelerate / decelerate.

It occurs to me that we should provide a Device Config override for the standard acceleration break-points to automatically apply an override acceleration. The algorithm would then be:

  1. Operation manual acceleration - use that
  2. Device config table - if enabled calculate acceleration number from that
  3. Otherwise let Lhymicro use its own default.

Indeed we could populate the table with the default values and provide a reset button or right click reset action.

Sophist-UK avatar Feb 17 '22 17:02 Sophist-UK

Should be added, there's some cursory work for setting the boundries dynamically but it not hooked up.

Some speeds especially could causing some crunching effects.

image

tatarize avatar Jul 20 '22 13:07 tatarize

The issue as originally reported was a twitching issue due to alternative raster instructions - turning that off avoided the shifts.

But now that we have a hardware agnostic driver model, it would be generically useful for each actual driver to provide acceleration / speed values (max speeds, acceleration distances (m2) / or actual values (other)) etc. through a common API.

Sophist-UK avatar Jul 20 '22 14:07 Sophist-UK

Well, other devices don't have these boundaries they tend to handle acceleration internally. Only M2 Nano would need that chart and to tweak it as such.

tatarize avatar Jul 20 '22 16:07 tatarize

Ideally it is still useful to know - e.g. for image margin optimisation, or to know if an image is so close to the end stops that the head will hit them during deceleration etc.

That said, if we took a worst case situation we could probably e.g. use a fixed value of 1cm or 500mil or whatever.

Sophist-UK avatar Jul 20 '22 16:07 Sophist-UK