Goals for the Kipper Firmware (Patreon)
Content
Today I'd like to talk a bit about the design decision I made for the firmware, and my expectations for it:
I decided to use Danger Klipper as the firmware. For those of you who haven't heard of it, it's a fork of the original klipper with some additional functionality that comes in handy when building a fast printer like the T250. The guys at klipper are very conservative when it comes to possible new breakage changes, so they usually don't make the cut because they simply don't know what the potential impact of a change would be. The guys at danger klipper have removed that limitation by saying that if it's dangerous to use their stuff, don't use it, especially if you have a 7 year old bed slinger that none of us had in mind when we designed most of the features we included. But luckily we're not an old bed slinger, so the changes are high enough that we get most of the benefits without the drawbacks. I have been using danger klipper on my T100 and other printers for over a year now and I really like it.
Here's an overview of the features I like and the expectations I have for them:
Fan PWM scaling: Anyone who has used a CPAP knows that it needs about 30% of the PWM to start. With this change, you can configure a minimum power and set your CPAP to 1%, which will scale to about 30.3% using the full range possible, making it more intuitive to use!
PID velocity: Cheap hotends such as the CHC Pro tend to be difficult to PID tune. They often end up with temperature curves that are 4-5 degrees off the target temperature. PID Velocity aims to give us another configuration parameter to help smooth out the heating of the hot end, resulting in flatter heating curves.
Homing current for sensorless homing: If you have ever done sensorless homing, you know the squeaky noise the motors make during homing. You can get rid of this noise by reducing the run_current of the steppers. In normal Klipper this resulted in multiple macro changes for the homing sequences. Danger Klipper introduced a home_current that is only set for homing, making all the macro workarounds unnecessary.
Independent X/Y accelerations: This is great. It allows you to limit the maximum acceleration per axis. On a CoreXY, Y movements create more vibration than X, resulting in worse recommended accelerations for Y than for X. So you end up using the recommended acceleration of Y also for X. With this feature you allow the printer to accelerate faster on movements that have more X portion than Y, allowing you to print faster without sacrificing quality. It's also great for BSO's, as their motion system blocks at different speeds for X and Y.
Curve fan control: This adds an algorithm that allows fans to control their speed based on specific temperatures. The default Klipper uses PID's for this behaviour, which is quite difficult to configure as it's unintuitive. I will be using this to control the motor fans based on temperature.
A few bug fixes related to the pressure boost
Non critical MCU's: This is great. It allows you to define optional MCU's that are not required for printing. Usecases like attaching an ADXL probe become plug and play with this change, as you don't have to remove their configuration after unplugging them.
Support for non-linear pressure advanced: This is also great, allowing you to run harder PA values, resulting in better print quality for slower parts of the print, while using softer values that would cause the extruder motor to skip for faster movements.
Sync extruder with input shaping: This is also great in the default clipper, when Input Shaping manipulates the movement vectors of X/Y/Z it does not affect the extruder movement, so slowing down on X/Y will cause overextrusion, resulting in worse print quality.
High precision stepping protocol: This allows for better rounding when it comes to stepping. As far as I understand this feature it should be in worst case 1/2 step more accurate than the old protocol, but also it will use more processing power so im not sure if I will use it but certainly I will do some tests to see how big the performance impact will be.
Added custom input shapers support: This is mainly a nice addition for developers. It allows you to define your own input shapers. Im happy to see this feature as it brings my Advanced Acceleration Control one step closer to being released to the public. For those who don't know what Acceleration Control is, it's basically a Klipper module I developed that works with two ADXL probes, one on the toolhead and one on a print frame, that monitor vibration in real time and reduce the acceleration of the print head when the vibration would be too high and the frame would not be able to absorb it, resulting in jumping of the printer frame and thus new vibration that couldn't be killed by input shaping.
Added support of smooth input shapers: This feature allows you to define smoother versions of an input shaper to be used up to a certain frequency. For example, if you know from your input shaper graph that your main peak is at 50Hz, you can define a smoother version of your input shaper that doesn't attack vibrations above 50Hz as hard as those below. It's pretty advanced, but if configured correctly, it should reduce the amount of round that the input shaper adds to a print to a minimum.
And there is so much more danger that Klipper has to offer. If you want to learn more, check out their wiki: https://dangerklipper.io/Danger_Features.html
Speaking of the wiki, most of the features are pretty poorly documented. So the learning curve is quite steep. Most of the time I had to read the source code of the changes to understand how a change works and how to configure things properly.
As this is a bit time-consuming, I can't guarantee that I'll post about things I'm working on every day, as there will be days when I'm reading code, trying to understand what things are doing, but have nothing interesting to present to you.
I don't want to create uninteresting posts to keep the streak going. I prefer quality over quantity when it comes to your time.
Thanks for supporting me
Files
Previews only