tmc2240: sin/cos phase offset calibration#7183
tmc2240: sin/cos phase offset calibration#7183nefelim4ag wants to merge 1 commit intoKlipper3d:masterfrom
Conversation
Coils can be unequal due to factory tolerances This calibration allows us to make the motor symmetric Which will reduce rotor oscillation during rotation Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
|
Okay, another data point, I though second time that they sound different, maybe better. |
|
Just some data. The results seem related to rotation speed. |
|
Thank you for your contribution to Klipper. Unfortunately, a reviewer has not assigned themselves to this GitHub Pull Request. All Pull Requests are reviewed before merging, and a reviewer will need to volunteer. Further information is available at: https://www.klipper3d.org/CONTRIBUTING.html There are some steps that you can take now:
Unfortunately, if a reviewer does not assign themselves to this GitHub Pull Request then it will be automatically closed. If this happens, then it is a good idea to move further discussion to the Klipper Discourse server. Reviewers can reach out on that forum to let you know if they are interested and when they are available. Best regards, PS: I'm just an automated script, not a human being. |




Coils can be unequal due to factory tolerances
This calibration allows us to make the motor symmetric, which will reduce rotor oscillation during rotation
For now, for easier testing.
Happy path looks like so:
For better results motor should be unloaded, for Z it is movement down.
For me, it stabilizes around:
*I have only one TMC2240, if I remember correctly, on the X motor, it was about the same value
I think it is a good idea to validate the accelerometer output before and after the offset with low accelerations.
To sample the whole speed/rotational range.
Thanks,
-Timofey
Testing can be done with:
or by a simple copy of
tmc2240.pycontent