ResHelper on RatOs?

I'm still getting ringing on my printer even after an input shaper tune, and it was suggested I tune my damping ratio using this script - https://github.com/lhndo/ResHelper I see that this script also has the functionality of putting the graphs in the config folder, which I know RatOs does. Any idea if that will cause issues? Thanks!
GitHub
GitHub - lhndo/ResHelper: A series of scripts designed to streamlin...
A series of scripts designed to streamline Klipper's resonance testing workflow. - GitHub - lhndo/ResHelper: A series of scripts designed to streamline Klipper's resonance testing workflow.
18 Replies
miklschmidt
miklschmidt•2y ago
Should be fine. Let me know if it helps, would be easy to add the calculations to RatOS. I think you'll probably have better luck runing the tuning tower to progressively increase the damping ratio though, but worth a shot i guess. @MarschallMarc what do you think? Worth adding?
marschallmarc
marschallmarc•2y ago
Not a fan of this kind of implementation with shell scripts in the first place. Have to look at the algorithm when I am back in the office Sorry, accidentally removed your reaction by misclick xD @miklschmidt
miklschmidt
miklschmidt•2y ago
That's ok lol
miklschmidt
miklschmidt•2y ago
Gist
Calculating the damping ratio for your hardware:
Calculating the damping ratio for your hardware:. GitHub Gist: instantly share code, notes, and snippets.
miklschmidt
miklschmidt•2y ago
I would assume it would've made it into the mainline klipper scripts if it was actually worthwhile though.
marschallmarc
marschallmarc•2y ago
Fun part is: the power calculation in klipper is wrong So using it to calculate different stuff... I never minded so far as it made no difference, but here it does. Also it assumes too many things in terms of how the resonances occur and how the peak is shaped. It's oversimplified. However, it would not be hard to do it MUCH better by using sth like peak finder in scipy And this way you don't need to run obscure R scripts The choice of R to be called via bash in a python program (told to do so via gcode) is kinda baffling as well, tbh. If we really want that in RatOS I would rather take the time to reimplement it, to be perfectly honest.
return CalibrationData(fx, px+py+pz, px, py, pz)
return CalibrationData(fx, px+py+pz, px, py, pz)
From the resonace calculator in klipper You cant just add those numbers Those are directional and P is the product of the vectors So you cant just calculate it for components and add it It has to be
sqrt(px**2+py**2+pz**2)
sqrt(px**2+py**2+pz**2)
instead The peaks are still the same positions usually, but the ratio is different And unfortunately the script is using those exact ratios to calculate the dampening ratio. Also with the ei stuff, this is a super wonky approach, even ignoring all issues I had so far. Would work well if it were implemented correctly (it isnt) and the peak had the shape a perfect linear oscillator causes (it usually doesnt) for zv and mzv. EI not even then. @miklschmidt not more to add from my side
miklschmidt
miklschmidt•2y ago
Thank you very much, i won't be adding that anytime soon, although a "real" implementation sounds like something someone should look into someday. Something someone someday sometime 😂
marschallmarc
marschallmarc•2y ago
This should be hand in hand with a complete input shaper rework 😛
frail-apricot
frail-apricotOP•2y ago
So... you guys think just run a tuning tower for it? trying to figure out what to do about the ringing despite tuning
marschallmarc
marschallmarc•2y ago
tuning the value is not a bad idea just, this method here is a bit hit and miss
frail-apricot
frail-apricotOP•2y ago
I get it you guys are having a big long input shaper discussion - but I just want to print fast!
marschallmarc
marschallmarc•2y ago
works in some cases, in others not so much I dont know anything about your rig, but I never had a RR that needed this parameter tuned to get rid of ringing still, if this parameter helps you fixing it, by all means, use it!
frail-apricot
frail-apricotOP•2y ago
intersting, you can see from https://discord.com/channels/582187371529764864/1110701590253412352 that I'm having quite the adventure with my X axis with that last graph Isetup the reccommended in printer.cfg and set the slicer to 7K, and the print had some ringing which is why I'm confused and hunting for other tings
marschallmarc
marschallmarc•2y ago
Ok, your graph looks bad what you are looking at is a hardware issue to be solved in hardware, not software
frail-apricot
frail-apricotOP•2y ago
even the last one? before that I knew it wasn't good, but I saw a nice peak once I found the loose screws
miklschmidt
miklschmidt•2y ago
The last one looks overtightened to hell (you might have permanently stretched your belts actually, which means permanent belt artifacts on surfaces along X), the second to last was better, despite that 125hz peak. You may want to watch @MarschallMarc's video on resonances to get a better understanding of what's going on: https://www.youtube.com/watch?v=M-yc_XM8sP4
3D Printers & a Whiteboard
YouTube
How to Read and Analyze Input Shaper Graphs Generated by Klipper
This video is supposed to be a brief overview on what the input shaper graphs can tell us. It is the first video of a series of videos which will give a more in depth view on the kinematic system and input shaping in Klipper. As always: feel free to jump to those parts, that help you with your problems: 00:00 Intro 00:57 What we can learn from...
frail-apricot
frail-apricotOP•2y ago
I'm being told that in <#1110701590253412352>
miklschmidt
miklschmidt•2y ago
ah sorry didn't see! 🙂
Want results from more Discord servers?
Add your server