Skip to content

v4.0.0

Compare
Choose a tag to compare
@Frix-x Frix-x released this 13 Jun 08:03
· 18 commits to main since this release
c3fcc97

Shake&Tune v4.0.0

This new version is a complete rewrite of Shake&Tune to make it a real and proper Klipper plugin (thanks to @ozelentok to have initiated the move with his PR!). While this doesn't change much in terms of usability, it's a lot for me, and it will help provide new features more integrated into Klipper in the future! But that's not all: this release also contains the first set of new features made possible by this rewrite!

Breaking changes

Since Shake&Tune now runs from within Klipper, there are some changes that need to be made to the way it is installed on your machine:

  1. After the update using your WebUI, you will need to run the install script manually again using this command in SSH:
cd ~/klippain_shaketune && ./install.sh
  1. Then you will need to update your moonraker.conf using this new template:
[update_manager Klippain-ShakeTune]
type: git_repo
origin: https://github.com/Frix-x/klippain-shaketune.git
path: ~/klippain_shaketune
virtualenv: ~/klippy-env
requirements: requirements.txt
system_dependencies: system-dependencies.json
primary_branch: main
managed_services: klipper
  1. Then follow the new installation instructions to add the [shaketune] section to your printer.cfg. The old [include ./K-ShakeTune/*.cfg] can be safely removed!

New Features

  • Shake&Tune runs inside Klipper and was fully rewritten in Python... No custom macros anymore!
  • The belt comparison macro has been updated to remove the spectrogram, which was not really useful. However, a new graph has been added to replace it, and this should give a good and easy overview of the belts' behavior and how much they match: if the plot line is in the green zone, everything is fine on your belt's side and you can continue to the next tool. Quick and easy!
  • Added the ability to test CoreXZ kinematics in the belt comparison tool to help you tension your belts on this type of machine. This is quite experimental and a new feature only possible because it's now a Klipper plugin. Note: The tested kinematics info is printed on the graph to make it easy to share it and avoid confusion.
  • Updated the way belt similarity and mechanical health are calculated on the belt comparison graph. Now it should be more "precise" -> easier to get 100% and avoid bullshit and chasing unicorns, but it can also be quite low if there are real mechanical problems on the machine. The mechanical health indicator should also be more accurate and give less false positives.
  • The ACCEL_PER_HZ is now a parameter for the macros that use it. So it can be changed at runtime and you don't have to change it in your config anymore. Also, it's now printed on the graphs so you can quickly see and remember which run was done at which accel per hz.
  • Paired peaks in belts comparison plots now use the Greek alphabet to avoid confusion with A and B belts, as was often the case in the past... The way the amplitude delta (in the small table) is calculated has also been updated to have the same reference in the calculation and to make it easier to compare one value to the other. This should make it more accurate and easier to interpret.
  • Updated the way the input shaper filters are recommended (Performance Shaper vs. Low Vibration Shaper), as it was a bit too conservative since Shake&Tune v2.6, where I started including damping ratio and SCV in the calculation. Now it should be more correct: performance shaper should be preferred and low vibration should be used if the performance shaper is not enough to filter out ringing.
  • Added the PWM target freq when running TMC Autotune on the vibrations graph to tweak it and record its effects
  • Completely reworked the axes map calibration macro: now it finally works correctly and gives the correct orientation! It also generates a graph with a few more insights to diagnose if your accelerometer is working correctly.
  • Another new type of graph is the one that accompanies the static frequency excitation macro. This is optional, as your ears should be more than enough to find problematic components, but if you want to record things and compare the effect of this or that, you can do it. Be careful and read the corresponding documentation to avoid getting into the pitfalls of this recording, as it can be potentially misleading if not used correctly: that's why it's optional and your ears should be preferred first.

Fixes

  • Because of all the new features, the documentation has been updated to reflect all the changes to the new graphs. There are also some additions like a suggested tuning workflow.
  • Better CSV file filtering to avoid including CSV files from other plugins in the /tmp folder. Now it should be more robust in this aspect.
  • Since Shake&Tune is now more tightly coupled with Klipper, it was easier to manage the accelerometers. So now the ACCEL_CHIP parameter is mostly not needed anymore and Shake&Tune should automatically select the right accelerometer for the test. You can still force one for the macros that still provide the parameter. This also has the side effect of fixing the use of non-standard accelerometer configurations with a custom name or multi-accelerometer configurations like bed swinger printers!

New Contributors

Full Changelog: v3.0.0...v4.0.0