[FR] TMC Optimisations for instances where driver wires are swapped #290

Closed
opened 2022-02-21 02:55:01 -06:00 by St-Aris · 6 comments
St-Aris commented 2022-02-21 02:55:01 -06:00 (Migrated from github.com)

Description

Documentation says:

https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/wiki/Beginner's-Guide-(English)#4-download-the-correct-firmware

_TMC stands for Trinamic TMC motor driver. The direction of rotation of the motors is inverted and the control of the motors for TMC drivers is optimized.

It is unclear if the non _TMC firmware contains these TMC optimisations for when you are using a TMC driver, but have manually inverted the wires for the driver.

Feature Workflow

None

Additional Information

If these optimisations are of use, would it be possible to get a _TMC for when the wires have been manually changed/swapped on the board?

What exactly are the TMC optimisations anyhow?

### Description Documentation says: https://github.com/knutwurst/Marlin-2-0-x-Anycubic-i3-MEGA-S/wiki/Beginner's-Guide-(English)#4-download-the-correct-firmware _**_TMC stands for Trinamic TMC motor driver. The direction of rotation of the motors is inverted and the control of the motors for TMC drivers is optimized.**_ It is unclear if the non _TMC firmware contains these TMC optimisations for when you are using a TMC driver, but have manually inverted the wires for the driver. ### Feature Workflow None #### Additional Information If these optimisations are of use, would it be possible to get a _TMC for when the wires have been manually changed/swapped on the board? What exactly are the TMC optimisations anyhow?
knutwurst commented 2022-02-21 03:10:00 -06:00 (Migrated from github.com)

Hi,
there are differences in the minimum delay before and after setting the stepper direction.

A4988: 200ns (pre- and post delay)
TMC22xx: 20ns pre and 10ns post delay.

Also the minimum stepper pulse to control movement:

A4988: 1µs
TMX22xx: 500ns

And the maximum stepping rate the stepper driver allows:

A4988: 500 KHz
TMC22xx: 5 MHz

So the TMC drivers are a bit more responsive when running in TMC mode.

But: TMC can also work in legacy mode with A4988 timings so there is no need to turn the cables back if you use the non-TMC Version.

Best,
Olli

Hi, there are differences in the minimum delay before and after setting the stepper direction. ``` A4988: 200ns (pre- and post delay) TMC22xx: 20ns pre and 10ns post delay. ``` Also the minimum stepper pulse to control movement: ``` A4988: 1µs TMX22xx: 500ns ``` And the maximum stepping rate the stepper driver allows: ``` A4988: 500 KHz TMC22xx: 5 MHz ``` So the TMC drivers are a bit more responsive when running in TMC mode. But: TMC can also work in legacy mode with A4988 timings so there is no need to turn the cables back if you use the non-TMC Version. Best, Olli
St-Aris commented 2022-02-21 03:44:53 -06:00 (Migrated from github.com)

Thanks for the response. Any disadvantage to running in legacy mode, or advantage to having the better response? To be honest, I installed them (several years ago) for the silence - and they are still doing this well! But if I can get a small edge on quality or some other advantage by not running with legacy mode timings - why not :)

Thanks for the response. Any disadvantage to running in legacy mode, or advantage to having the better response? To be honest, I installed them (several years ago) for the silence - and they are still doing this well! But if I can get a small edge on quality or some other advantage by not running with legacy mode timings - why not :)
knutwurst commented 2022-02-21 03:49:42 -06:00 (Migrated from github.com)

To be honest I can't answer the question. I don't see any difference myself, but I have the feeling that the drivers are a bit louder in legacy mode. But it can also be imagination.

On the other hand: Never change a running system :D

To be honest I can't answer the question. I don't see any difference myself, but I have the feeling that the drivers are a bit louder in legacy mode. But it can also be imagination. On the other hand: Never change a running system :D
St-Aris commented 2022-02-21 03:52:38 -06:00 (Migrated from github.com)

Right - if it isn't broken, don't fix it ;)

Right - if it isn't broken, don't fix it ;)
github-actions[bot] commented 2022-03-23 20:57:39 -05:00 (Migrated from github.com)

This issue is stale because it has been open 30 days with no activity. Remove stale label / comment or this will be closed in 5 days.

This issue is stale because it has been open 30 days with no activity. Remove stale label / comment or this will be closed in 5 days.
github-actions[bot] commented 2022-05-28 09:03:41 -05:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wp/Marlin-2-0-x-Anycubic-i3-MEGA-S#290
No description provided.