NOTE! -- This guide assumes you already have dependencies installed on your printer, this is more of an "upgrade" guide not a first time install guide, certain things such as adxl configuration and setting up your pi as a secondary mcu are NOT covered in this guide
Before we get started I need to give special thanks / shoutout to the members who helped me get my bleeding-edge version of danger klipper working and the IS values working right with Shake&Tune.
-
Thank you rogerlz for helping me understand the issues and installation of bleeding-edge!
-
Thank you Frix_x for helping me understand the issue with Shake&Tune and bleeding-edge version and how to roll it back!
-
Thank you Robert for helping me learn linux systems and commands better!
-
Thank you to both the Klipper Dev team and the Danger-Klipper Dev team for your continued work and support of the community!
Wondering how people have Shake&Tune "extra" results for Input Shaping? What is "SMOOTH" ya ya, well this is the place to help you.
Keep in mind I am not advertising any sort of "tech support" whatsoever, and just like you I learn new things every day. The problem I have is once I set my eye on something I work tirelessly around the clock to get things working. With that being said there is probably an easier way to do this than the path I took however, my IS shake&tune works with smooth IS.
SO... Here we go:
To do this, add the Danger Klipper repo to KIAUH's repo list and run the script with the following commands:
echo "DangerKlippers/danger-klipper" >> ~/kiauh/klipper_repos.txt
~/kiauh/kiauh.sh
then run KIAUH
~/kiauh/kiauh.sh
6 ) Settings
1 ) Set custom Klipper repository
Select the number corresponding to DangerKlipper from the list shown
Select 'Y' to confirm replacing your existing Klipper install
Enter 'B' for back twice
'Q' to quit
sudo reboot
SSH back into your printers pi
we need to see what version of dangerklipper we installed. to do this while in your ssh terminal send this:
cd ~/klipper/
now your in your klipper directory.
run this:
git branch
and then
git remote -v
if you get something like the image below it is simple to get the correct directory.
run these commands in the terminal:
git checkout bleeding-edge
sudo systemctl restart klipper
Re connect to your pi via ssh and verify you have bleeding-edge installed by running:
cd ~/klipper/
git branch
You should now see that your klipper version is now bleeding edge like the image below:
So, now we need to re-build and re-compile the firmware we did originally but this time were going to add 1 NEW option that was never there before....
the process is the same for setting any MCU up for Klipper regardless of what you have...
ssh back into your pi if you left or closed it out.
You should be in
~/klipper/
directory.
make menuconfig
hit "Q" to quit, "Y" for yes, we want to save. then
make clean
make
Now to flash.....
we need to find the correct serial by-id...
ls /dev/serial/by-id/*
The output should look similar to this:
/dev/serial/by-id/usb-Klipper_stm32f042x6_010001000C123456789123-if00
with this serial path you need to perform the flash command: (Octopus)
sudo systemctl stop klipper
make flash FLASH_DEVICE=<serial path to the board>
sudo systemctl start klipper
DFU MODE (BOOT0 + Reset)
make flash FLASH_DEVICE=/dev/serial/by-id/usb-Klipper_stm32h723<YOUR INFO HERE>
as long as you see "FILE DOWNLOADED SUCCESSFULLY" you are good.
ssh back into your pi. execute the following commands:
cd ~/klipper/
make menuconfig
Then MAKE SURE YOU CHOOSE THE CORRECT THING HERE:
once that is done hit "Q" then "Y"
Now we need to build and install the new microcontroller architecture by running:
make clean
make
Then
sudo service klipper stop
make flash
sudo service klipper start
If you have issues with "permission denied" you need to add your user to the tty group according to klipper docs you need to run this command to add the "pi" user to the tty group
sudo usermod -a -G tty pi
There was a breaking change in the most recent version of Klipper that had to be accounted for in Shake&Tune v2.6+. But this also broke compatibility with older versions and the bleeding edge branch wasn't updated since then. So at the moment it can't work so we will rollback the software? firmware? whatever, were rolling it back for these sweet extra Input Shaper options....
To do this we need to get out of the klipper file by using this command:
cd ..
cd ..
you may skip this section if you already have adxl configured on your Rpi if not follow these steps:
ssh back if your not there already.....
sudo apt update
sudo apt install python3-numpy python3-matplotlib libatlas-base-dev libopenblas-dev
THEN:
~/klippy-env/bin/pip install -v numpy
If using Raspberry pi or CM4 we need to set up the host as a secondary MCU the klipper_mcu process has to run before the klippy stuff.
do this:
cd ~/klipper/
sudo cp ./scripts/klipper-mcu.service /etc/systemd/system/
sudo systemctl enable klipper-mcu.service
its best to follow frix_x instructions here:
https://github.com/Frix-x/klippain-shaketune?tab=readme-ov-file#installation
We need to rollback Shake&Tune, to do this run this command:
cd/home/pi/klippain_shaketune/
now we need to run this command:
git checkout v2.5.0
#IMPORTANT! You need to reset your pi
sudo reboot