-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] GCODE to send CHOPPER_TIMING {off_time, hysteresis_end, hysteresis_start} #23252
Comments
you have to use tmc driver class functions to set/changes these values on the fly and class TMCMarlin in marlin source |
Thank you for your feedback. |
analyze void GcodeSuite::M906() function in Marlin\src\gcode\feature\trinamic\M906.cpp you have to extend the TMCMarlin class with functions to get/set the chopper values As this part marlin uses C++ classes and C++ Templates you'll need some knowledge how C++ works - no complicated things like STL (standard template library) but the basics |
I have a first working draft of the code and I am doing some cleanups. (I test it only for TMC5160) The new gcode works like this e.g.: e.g. set chopper times for X axis e.g. set Z2 chopper times e.g. set E0 chopper times It is possible to set the same chopper times for multiple axis e.g. M9999 X Y Z O3 N6 S8 For tuning the chopper times now a gcode can be created to move the axis at different speeds and test with different chopper times. |
You have to fork MarlinFirmware/Marlin. Then you create a new branch based on the most recent bugfix-2.0.x. In that branch, you apply all you changes / commits and push them. Then, you login to github.com and navigate to your forked Marlin repository - on the top the main repository page, there should be a message in the form of "You pushed XYZ to magnificu/Marlin. Do you want to create a pull request?". Click on the corresponding button to create that pull request. Make sure you select "bugfix-2.0.x" as remote branch in the next step and submit. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Is your feature request related to a problem? Please describe.
I have noise/vibration with the stepper motors and it would be great to send the CHOPPER_TIMING via GCODE so that I can check on the oscilloscope the distortions of the sin wave.
Are you looking for hardware support?
No response
Describe the feature you want
In order to optimize quickly the CHOPPER_TIMING for different stepper drivers and motors it would be great to be able to send the CHOPPER_TIMING {blank time TBL, off_time, hysteresis_end, hysteresis_start} via GCODE
Is there any easy way to implement it? Where should I look/start?
Hardware:
SKR2, TMC5160
Additional context
No response
The text was updated successfully, but these errors were encountered: