The user base for Klipper, one of the most known open-source firmware options for the operation of 3D printers, has grown rapidly in the last few years. The speed and quality of printing that one can achieve as well as the vast customization options available makes this trend not much of a surprise.
Klipper runs on a single-board computer (SBC), like a Raspberry Pi or its alternatives. This offloads the heavy computations from the printer control board to a more powerful device, allowing you to print faster and more precisely.
Klipper offers lots of features that other open-source firmware, like Marlin, doesn’t support. One of these is time-lapse integration. A time-lapse video stitches together a series of photos taken while printing to create the illusion of seeing the print grow out of thin air. Such clips are popular on social media and are mesmerizing even for people outside of the maker space.
If you have Klipper installed, it only takes a few steps to get the time-lapse feature up and running so you can be on your way to creating YouTube-worthy videos in no time. Let’s get started!
To create your time-lapse videos, you should have Klipper and Moonraker set up on your devices and a web interface such as Mainsail or Fluidd. The procedure will generally be the same between different interfaces.
You will also need a camera and there are many options out there. The first option is a USB web camera, which is the greatest balance between price and quality. You should consider buying one that uses at least 720p to obtain decent results.
You could also go for a Raspberry Pi camera, like the V3 module. They’re easy to configure and can shoot 1080p videos, and you can further customize your setup by printing a case to mount it properly.
The last option you can consider is a DSLR camera. While it provides the best image quality, it is obviously the most expensive option and the most inconvenient to mount.
Now that we have all that we need, we can begin with the installation process.
Adding the time-lapse options into Klipper is as easy as copy and pasting. We’ll break it down step by step for you and then get into configuring settings and tips on how to make high-quality time-lapse videos to be proud of!
First, we’ll have to install the component in Klipper and allow for automatic updates. Next, we’ll configure the component by defining the G-code macro and enabling access to time-lapse settings directly in the user interface of Mainsail or Fluidd.
If the installation and configuration were successful, you should be able to access a new “Timelapse” tab within your web interface. We’ll go over the new settings found in that tab shortly, but first, we have a few things to do in the slicer.
Taking a peek in the time-lapse tab of your web interface, you’ll notice two options under the “Mode” setting, “hyperlapse” and “layermacro”.
The first option, hyperlapse, takes an image every n seconds, where n is the value you have set in “Hyperlapse Cycle Time” setting. If this is all you are looking to do, then you don’t need this slicer setup. You can always come back to this mode after you’ve completed the slicer setup if you would like to use a time-lapse to identify the origin of print failures, for example.
If you would like to coordinate snapping an image with events occurring in your sliced file, like at a layer change, then we’ll have to tell the slicer to add a G-code macro into the sliced file at the appropriate instances. This is “layermacro” mode and it generally produces the best results because we can include additional actions like parking the printhead in the same location for every image.
Slicer configuration will look slightly different between the different software, but the general steps stay the same. We’ll be using SuperSlicer as an example. You can always refer to the GitHub page for your specific software choice.
TIMELAPSE_TAKE_FRAME
That’s it for getting set up! Next, we’ll head back over to your Mainsail or Fluidd interface to explore the various time-lapse settings.
The new “Timelapse” tab of your web interface is where you’ll be able to find previous time-lapse videos, the option to enable or disable time-lapse creation, as well as some rendering settings. Let’s take a look at the most important ones to obtain the best results:
Further time-lapse settings relating to actions within the defined macro can be accessed from the “Settings” tab, or equivalent, of your web interface. Here are some of the most important options to familiarize yourself with (note that the order of the settings is slightly different between Mainsail and Fluidd):
With our plug-in installed and our options configured, let’s dive into the art of perfecting the time-lapse!
Obtaining the perfect time-lapse will take some tinkering to find the right options for your printer and setting. However, there are a few things you can keep in mind to help you achieve the best results possible:
Now that we’ve gone over the time-lapse options within Klipper, you may be searching for a bit more in terms of rendering options or video effects. If that’s the case, you might want to consider OctoPrint with the Octolapse plug-in. Let’s briefly compare the Klipper time-lapse to Octolapse to see which option may be best for you!
At the end of the day, if creating and tuning the highest-quality time-lapse videos that are worthy of posting to your socials is your main goal, then OctoPrint may be the right choice for you. Otherwise, the Klipper time-lapse plug-in can create perfectly acceptable videos while you enjoy the speed and precision that Klipper is known for.
License: The text of "How to Create Your Klipper Time-Lapse" by All3DP is licensed under a Creative Commons Attribution 4.0 International License.