-
-
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
[BUG] TMC5160 v1.2 Stepper motors are noisy/vibrate at low speeds when StealthChop is active #23248
Comments
Please attach your current configs, otherwise diagnostics will be difficult. |
Did you test |
I was skeptical because it's a beta feature, but I'll give it a try and let you know if something improves. |
I test it and I did not noticed any difference in SpreadCycle (StealthChop disabled) |
and this is on latest bugfix as well? have you tested that? |
@GhostlyCrowd |
I confirm the problem is present in the latest error correction. Board: BTT-SKR-pro with TMC5160 drivers Steppers: NEMA17 Moons. I tried NEMA17 with 0.9 degree step and NEMA17 with 1.8 degree step |
At the moment I am using Marlin with StealthChop disabled, but of course this is a limitation. |
Is anyone looking into this? |
This issue has had no activity in the last 60 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed within 10 days. |
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. |
TMC5160 are becoming more and more popular and I hope with feedback from more users we can find a solution. |
Can you upload a video demonstrating the noise? I run BTT's 5160s on a couple boards here (STM32F4 based like the SKR 2 & BTT002) and I wouldn't consider the noise to be out of the norm. |
It can also be seen from the oscilloscope that the sine wave is highly distorted in StealthChop compared to Spread Cycle. |
Here you can find the videos. As you can see it is recorded without the belts installed. StealthChop - enabled (noise/vibration) StealthChop - disabled (Spread Cycle) |
Is anybody that can really help me with this topic? |
Could it be a problem if the QSH4218-47-28-040 stepper motors have an ultra low phase inductance of 0.6mH? |
I've changed the TCM5160 (SPI) drivers with TMC2208 (UART) and the noise is gone. |
I haven't been able to use the BTT 5160s on my GTR Boards in several
months, nor my BTT Octopus v1.1, nor my MKS Monster8 V2. With or without
my clock pins clipped. Also, a cheapo generic Step stick 5160 fails to boot
as well. What change did you make to your configurations to make your board
boot? Did you encounter any similar issues? I've also tried relentlessly
with my SKR v1.3s, v1.4 as well as a 1.4T. I don't have any success in
activating a board with configurations set for these drivers, despite
having been able to run them initially?
…On Mon, Jul 3, 2023, 2:46 AM magnificu ***@***.***> wrote:
I've changed the TCM5160 (SPI) drivers with TMC2208 (UART) and the noise
is gone.
I think it is something wrong on how TMC5160 is coded in Marlin.
—
Reply to this email directly, view it on GitHub
<#23248 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMSBTMVIMVKIZXJ7FCXS4KLXOJ2E7ANCNFSM5JHCXEHQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
In my case they are working, but noisy in StealthChop mode. |
Since I have reported the issue once again in #27403 and triggered reopening this one, I investigated further to figure out what happens when those drivers get initialized. I have learned that the TMC drivers in general perform an automatic tuning or lets call it adoption to the used motor and also the mechanical load driven by the motor. They even adopt to dynamic load conditions and speeds. What if the issue is caused by a faulty TMC tuning in some cases?? I would assume that magnificu and myself are not the only ones who bought TMC5160 drivers but the web isn't full of users reporting this issue so I must expect that is not a general issue. On the other side, there is black magic auto tuning which is definitely influenced by the particular machine. Maybe, if some factors add up, it might end up in the situation reported here. There are also two old shorts on YouTube, see .. When I lay my finger on the printhead during noisy movements I can feel each step of the motor. I take this as indicator for a to high current setting. But changing the current setting does not solve the issue .. 800mA was my start value, went down to 500mAh, there it was better but still not solved and the generated forces where just high enough to print with 60mm/s so this is not usable. I have also checked the TMC Registers ..
You can see that something in PWM_SCALE has changed Back to the auto tune magic: In the marlin code I have seen that it would be possible to disable the black unicorn TMC magic. See src/module/stepper/trinamic.cpp starting in line 833
At the end I was not sure about what will happen if I force autograd and autoscale to false .. so I have not just tried it. Maybe this input helps to clarify what is going on here .. maybe not. I have ordered right now a set of TMC2209 drivers .. at first for a test and if this one here is not solved within a reasonable amount of time (which can be expected because of the non straight forward character) I will use them instead of my 5160's. However .. would be a pity to leave the 5160's behind as they are not usable. |
Did you test the latest
bugfix-2.0.x
code?No, but I will test it now!
Bug Description
Stepper motors are noisy/vibrate at low, medium and high speeds (30mm/s, 60mm/s, 80mm/s, 120mm/s) when StealthChop is active
The stepper divers are used in SPI mode.
If StealthChop is deactivated the motors are not vibrating anymore
Configuration_adv.h
#define TMC_USE_SW_SPI
#define STEALTHCHOP_XY
#define CHOPPER_TIMING CHOPPER_DEFAULT_24V
Updating the CHOPPER_TIMING is smoothing the noise when StealthChop is deactivated.
With the StealthChop active the motors are noisy/vibrating again
#define CHOPPER_TIMING_X {3, 6, 8}
#define CHOPPER_TIMING_Y {3, 6, 8}
Bug Timeline
No response
Expected behavior
When StealthChop is active the stepper motors should be quieter
Actual behavior
When StealthChop is active the stepper motors are very noisy/vibrating
Steps to Reproduce
Upload firmware Marlin 2.0.9.2 and print
Version of Marlin Firmware
Marlin 2.0.9.2
Printer model
coreXY custom
Electronics
Power supply 24V 16.5A, SKR2 board, BTT TMC5160 v1.2, X & Y Stepper motors: 1.8° QSH4218-47-28-040
Add-ons
No response
Bed Leveling
ABL Bilinear mesh
Your Slicer
Prusa Slicer
Host Software
SD Card (headless)
Additional information & file uploads
I tested as well with a 12V power supply
I tested as well with stepper motors 17HM19-2004 (0.9° stepper motor with updated config to CHOPPER_09STEP_24V)
The results were worse.
The previous version I used was Marin 1.1.9
Ramps_v1.6
TMC2208
unknown 1.8° stepper motors
and the motors were very smooth/silent
The text was updated successfully, but these errors were encountered: