Giter Site home page Giter Site logo

extra-input-shapers's Introduction

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


awesomeklipper


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:

install dangerklipper using KIAUH

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

From the KIAUH menu select:

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.

dangerklipper version

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:

dangerklipper version now bleeding edge

Now the fun part - kind of..... reflashing your MCU!

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

from here follow the recipe for your MCU but CHECK "High-precision stepping support (slow)"

danger klipper mcu bro

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

For Manta m8p and CM4 do this instead:

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.


This is the time to reflash the Raspberry Pi! yay?

ssh back into your pi. execute the following commands:

cd ~/klipper/
make menuconfig

Then MAKE SURE YOU CHOOSE THE CORRECT THING HERE:

rpi flashing

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

Now we are ready to roll back Shake&Tune, yes ROLLBACK!

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 ..

(Yes, 2x just for good measure, Robert from FizzyTech Discord says to do it 2x so we do it 2x)


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

if you have not installed Frix_x "Shake&Tune" its quite simple.

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

YOU ARE NOW READY TO RUN INPUT SHAPER AND GET THOSE SWEET IS RESULTS!

extra-input-shapers's People

Contributors

thevoronmodder avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.