-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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] Motor stuttering with linear advance on TMC2208 since Marlin 2.0 #16155
Comments
Try disabling stealthchop on E. From everything that I read, TMC2208, linear advance and stealthchopped e don't mix. |
As stated above this does not fix it. It only makes the stutter a little bit quieter (or it may only seem like it due to increased overall noise of the extruder motor/driver) |
This seems like another instance of #10272 - there's a problem with Linear Advance in 2.0 that causes extruder rattling but I don't think anyone knows why yet. |
Agreed. Might be the same cause. But didn't you say in that post that using CLASSIC_JERK would mitigate the rattling? I will try that with my setup today and if it helps maybe print a set of benchy and calibration cube with JD and noLA vs JERK and LA EditSo |
btw is JD calculated correctly? http://blog.kyneticcnc.com/2018/10/computing-junction-deviation-for-marlin.html |
if you are referring to the values I used above: No I didn't translate them since I did not know the formula. I just used the standard value of the basic config.h file. So if I translated the Jerk values, my JD would be even lower. But again, I won't complain when I get better quality in less time. EDIT: |
better quality in less time migt be impossible the faster you print the quality will suffer, itsa just a matter of printing fast enough |
This issue is simillar to another request |
In my testing S-curve seemed to make no difference, but your mileage may vary. |
Same issue here with TMC2130, damn. |
does that say linear advance k = 1.45 holy cow that's high never seen a working valid k over 0.5 even with over a foot of bowden tube. |
There's a confict with Linear Advance and Junction Deviation, i disable the second one and the L.A. work fine here. |
Yesterday I noticed unexpected (to me) timing on the extruder with linear advance enabled. Perhaps it is related to this issue. I am only timing signals, I don't actually have a driver connected, so I can't be sure that this is related to the stuttering described. In this image you can see a steady frequency, which corresponds to the Linear Advance interrupt rate. This is with square-wave stepping, so the narrow "glitches" correspond to two or three steps taken in a single Linear Advance ISR. I suspect this could be causing the stuttering, and might even cause TMC2208 motors to shut down, based on past behavior I have observed. |
When I turned on
which matches up with what you're seeing in the stepper timing. |
@Schild0r is the issue still the same with all the updates in the last 13 days? |
btw, who can confirm there is an issue? use the same configs as OP and the same hardware if possible |
I have reproduced 2208 drivers turning off related to the picture I posted. I don’t know whether that is the root cause of this or not, but it seems possible. |
Will test with the latest marlin build and stuff like s-curve turned off etc once I am home in the next few days. Happy holidays to y'all :) EDIT: Didnt work. |
Using search I came to this open issue thread Today I started to design a K-Calibration tower that I want to post on Thingiverse. I'm posting here because when K was at 0.04 I received the following debug output: Marlin 2.0.1 was used. I can test if needed...... |
Can you check out @sjasonsmith 's fork linked from #15473 (comment) and see if that affects the behavior? This is not ready for prime time, although I myself have tested it and it seems to work well. |
Test completed. No change, same outcome. I compiled the FW from @sjasonsmith using my configs from above. On another note: |
I have this problem too, thought it was normal even if it's annoying. |
@Schild0r is this still an issue when using bugfix 2.0.x ? |
Compiled a fresh bugfix 2.0.x, the problem is still there. |
how often do you update? bugfix is updated almost daily |
Recompiled the latest bugfix build [2020.01.24.], the problem is still here. |
i just got TMC2209 and dont have the problem, so the issue is likely to be the SKR Mini E3 v1.2 (or MKS Gen L which is what @Schild0r uses) as that is the only difference |
Ok after a bunch of testing I found that my issue is NOT the same as this issue and not related to the firmware, sorry for the false alarm. I had a belt mount that was giving out and causing minor vibrations that I could see in the print. I just happened to notice the defects after I updated the firmware. |
Using your g-code I wasn't able to reproduce the issue as well. |
yeah it was definitely the faulty bracket, after i found and replaced it no more vibration and no more pattern on the print. again sorry about that. |
Myself and a few others have a similar bug, but it's not Marlin's fault. I believe it's an actual hardware bug with the TMC2209s on the SKR E3 Mini 1.2. The symptoms are louder than normal motors, INSANELY hotter than normal motor temps, and missed steps. It would happen maybe once in 10-20 times powering on the machine. Power cycling would fix it. Crank the volume to hear it: https://www.youtube.com/watch?v=rcYc3-wiAYw TMC debug of the bad X motor while the bug is happening: (1F instead of 11) |
Duplicate of #10272 |
Could you upload your config files? I have the same board and I had never experienced that you did, |
Why is this issue closed now? |
Sure, I'm not using the E3 anymore (on SKR 1.4 now) but my last config was this: configuration.h: https://pastebin.com/6vZSZWLi configuration_adv.h: https://pastebin.com/KkJfE0KY |
Didn't find any unusual in your configs, but can |
When I first ran into the issue I tried disabling that, no difference. I even went so far as to run Klipper for a few weeks, the bug remained... that's how I figured out it was a hardware issue. |
Dang |
Methinks in your case @Schild0r we may be seeing a limitation of the MKS Gen L board in keeping up with the demands of so many enabled features and high stepping rates. If the eISR is hitting its limit, it means that Linear Advance is best not used. And then you kind of have to tune from there until performance becomes more acceptable. We are chasing various things related to stepper timing and the relatively new STM32 boards, and so on, and something will shake out of that. But we are not seeing anything that we can take action on from this meandering thread. |
Hello, I'm using an SKR1.3 with TMC2208 in uart mode, and firmware with s-curve and JD enabled. I'd like to use also LA but last time (2 month ago) I was having lot of ruttles from extruder motors and leave the function disabled. Thanks guys |
I also have LIN_ADVANCE extruder jerky/jittering with TMC 2209 (board SKR mini E3) on my ender 3. Marlin 2.0-bugfix (2.0.3). I notice this issue is closed, but it still seems like a thing. Please advise. |
SKR Mini E3 with TMC2209 on an Ender 3. The noise sounds almost like someone trying to scratch glass with silicone gloves or with a soapy hand. Or perhaps metal scratching at metal. |
Same for me with TMC2209 on SKR v1.3 and Marlin bugfix-2.0.x commit 0aeee64 (2020-03-25). |
Having this issue since I started using Linear Advance.
|
Hello, any progress on this? I have the same issues, TMC2209 on SKR v1.2 (Mini E3) and Marlin 2.0.5.3, with k-value of 0.3 and classic jerk. I have experimented with extruder / retractor acceleration and hybrid threshold value for the extruder, no dice. Really want to make use of linear advance and faster print speeds but it's too noisy at the moment. |
Same here. |
I am still having this issue on ender 3 pro with skr mini e3. |
This is among the things why I switched to Klipper. No problems there. |
@Cirromulus Looking at Klipper currently because of this. Any advise in general? Planning on doing it with a Pi4, currently have an Ender 5+ but have an SKR 1.4 turbo on the way. Was hoping that by going to a more powerful board the problem would be solved but judging by @zvoniimiir 's comments it doesn't look good... hence Klipper |
Advice is that you should stick through the relatively long installation procedure. The SKR is pretty good, the TMC communication should work out of the box from default config. After you got normal business working, you might have a look at pressure_advance and square_corner_velocity. These are the two things that Marlin keeps on failing to implement correctly. |
Got the same problem with 2209 :/ |
Problems here as well. Using the same hardware on an i3plus with Marlin from around 1 year ago and all is fine, but now with my Ender3, MKS-GEN-L and TMC2130 SPI it's making this twittering noise on fast changes. The printer as such is super silent, and the extruder is for most of time as well, but eg hexagon infill makes it twitter - marlin code from 3 weeks ago. |
This is a duplicate of other issues. When time allows, the attempt at a solution will be to port the linear advance code from Prusa Firmware. There's no other path to knowledge for us at this time. |
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. |
Hey there, in the past I often tried to switch to Marlin 2.0 from 1.1.9 but there was always some hinderance.
Eventually I managed to sort out most of it (last was the motor knocking noise where you have to disable monitor_driver_status but I digress)
Bug Description
So I ported all the settings from my working 1.1.9 configuration to Marlin 2 (running an MKS Gen L with 5x TMC2208 in UART mode, dual BMG bowden extruder).
In 1.1.9 I made use of linear advance and dialed in my K factor at 1.45 Now with Marlin 2 I get this weird stuttering on my extruder motor when linear advance is used (no stutter when I set K = 0)
Any ideas why this is?
(Here's also a video of that symptom: https://www.reddit.com/r/3Dprinting/comments/e73s9h/marlin_2_tmc2208_stutter_with_linear_advance/ )
Already tried
I already tried using square wave stepping or setting the minimum stepper pulse to 1 or 2 (with TMC2209s installed you would get an error which tells you to do so with linear advance enabled and Trinamic drivers however with TMC2208 drivers you don't get that error message but I tried it anyways).
Also it makes no difference whether I use stealthchop or spreadcycle or make use of hybrid_threshold.
Running the driver in standalone mode or changing a TMC2209 driver and running that one in standalone mode makes no difference either
also see the attached configuration files (only changes I made are in these two files and always denoted with "//MS" in that line )
Schild0r_Marlin2.0_config.zip
The text was updated successfully, but these errors were encountered: