Skip to main content

Celestrius Data Collection Guide (Klipper)

Β· 10 min read
note

This guide is only for the Klipper users. If you are using OctoPrint, please follow this guide.

note

This guide assumes you already have a nozzle camera installed on your 3D printer and the resolution is set to at least 1280x720. If you have not installed a nozzle camera yet, follow this guide.

Required files/software​

The following files (also linked throughout the document) are required.

Step 1. Download and configure the Celestrius data collection program for Klipper​

Install the Celestrius data collection program​

1. SSH to the Raspberry Pi (or other single-board-computer) you set up to run Klipper.

2. Run the following commands on the console:

cd && git clone https://github.com/TheSpaghettiDetective/moonraker-celestrius.git
cd moonraker-celestrius
./celestrius.sh install

Configure the Celestrius data collection program​

Read the policy on how your data will be collected and sent to the server. Instead of some fancy legal language, we tried to phrase the policy understandable for everyone. We want to look at only the data that you approve of. Once your data is uploaded, we will wait a period of seven days before accessing it. If, during that time, you notice you have uploaded data unintentionally, send us an email and we will delete the requested data.

Follow the prompt to get the program configured.

A few things to note:

  • The data collection is OFF for now. You will need to run ./celestrius.sh enable to turn it on. This is so that it's less likely for you to send data that you don't intend to.

  • Use the email you signed up for the limited pilot with. Please make sure the email is correct as this will be used to communicate with you throughout the pilot program.

  • The Snapshot URL is for the nozzle camera you set up for project Celestrius. Please note if you have multiple cameras set up, this may NOT be the main camera you configured for your printer. Also the format of the URL is http(s)://ip-or-hostname(:port)/the/rest/of/the/url.

How data collection works​

By default, as previously mentioned, the data collection program will be OFF and not collecting data. To turn on data collection, run cd ~/moonraker-celestrius && ./celestrius.sh enable.

caution

Once turned on, data collection will remain on until you turn it off. Be sure to turn off data collection after running data collecting prints to avoid sending unwanted/unnecessary data.

Step 2. Insert the end G-Code in your slicer to add a first-layer scan​

1. Select the Appropriate G-Code based on the size of the build plate your 3D printer has. If you're build plate dimensions are not available, let us know in the Celestrius Discord Server.

G0 Y40 F1000
G0 X40 F1000
G0 Z 1.0
G0 X140 F300
G0 Y60 F300
G0 X40 F300
G0 X140 F300
G0 Y80 F300
G0 X40 F300
G0 X140 F300
G0 Y100 F300
G0 X40 F300
G0 X140 F300
G0 Y120 F300
G0 X40 F300
G0 X140 F300
G0 Y140 F300
G0 X90 Y90
G0 Z10
G0 X0 F1000
G0 Y0 F1000

2. Open your slicing software of choice. In this example, I am using Prusa Slicer. 3. In the Printer Settings tab, click Custom G-Code In this example, I am using a Prusa Mini with unmodified end G-code. It looks like this:

G1 E-1 F2100 ; retract
{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+2, max_print_height)} F720 ; Move print head up{endif}
G1 X178 Y178 F4200 ; park print head

{if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+30, max_print_height)} F720 ; Move print head further up{endif}
G4 ; wait

M104 S0 ; turn off temperature
M140 S0 ; turn off heatbed
M107 ; turn off fan
M221 S100 ; reset flow
M900 K0 ; reset LA
M84 ; disable motors
  • We want to add the G-Code right after the print finishes, and the nozzle temperature has been turned off. I'll add my G-Code right after the line M104 S0 ; turn off temperature. If you aren't sure what is happenning in your end G-Code, simply paste the G-code in after the last line.
warning

Remember to remove the end G-Code from your slicer when you are finished collecting data for the Celestrius Pilot, or if you want to print a print unrelated to the Celestrius Pilot. This G-Code will cause collissions with any parts printed higher than 1mm.

Step 3. Calibrate your first layer​

The most important thing before you do the test prints is to make sure your first layer is calibrated. Otherwise, it may signficantly impact the quality of the data collected from your nozzle camera.

1. Turn OFF Celestrius data collection

cd ~/moonraker-celestrius
./celestrius.sh disable

2 Download 1-t-rex.stl in this folder. Slice it with the settings you typically use when printing with PLA.

3 Check your print quality

Once the print finishes, compare your finished print with the one shown.

Keep an eye out for the following:

tip

The view from the nozzle camera should look something like the image below.

  • The lines should slightly overlap each other so that when you remove the print from the plate, it is one homogenous surface with no gaps or voids.

  • The overall surface is flat and smooth.

Improve Print quality​

If your print is not one homogeneous smooth surface, or there are gaps or voids in the print, try the following in order:

1. Level the bed. Do this before adjusting any other settings as it is the most common issue.

2. Adjust the Z-offset slighlty.

3. Ensure the nozzle is not clogged, and it is free from debris.

4. Calibrate the flow rate using Teaching Tech's tutorial.

Once your print is close enough to the examples above, your 3D printer is properly calibrated for a good first layer with proper bed adhesion and adequate flow.

Step 4. Print the baseline test models​

This folder contains five test models that only contain one .2mm layer. You will be asked to print each model twice. First, you will produce a high quality baseline print, and then you will adjust the flow rate to simulate a print with a poor first layer.

1. Turn ON Celestrius data collection

cd ~/moonraker-celestrius
./celestrius.sh enable
caution

Please remember to turn on data collection. Otherwise your test print results won't get sent to the Obico Team.

2. Slice the file with the same properly calibrated settings from step 2.

3. Save the file with the naming convention as shown. For instance:

The gcode name for 1-t-rex.stl will look like:

4. Print all 5 models. Please make sure the first layer quality is as good as in the calibration step. If not, please go back to the calibration step and start over. Consider wiping the bed clean with isopropyl alcohol and re-leveling the bed in between prints to ensure consistent bed adhesion.

Step 5. Adjust your flow rate to make sure your printer will produce bad first-layer​

1. Turn OFF Celestrius data collection

cd ~/moonraker-celestrius
./celestrius.sh disable

2 Slice 1-t-rex.stl to produce an under-extruded g-code.

We will accomplish this by adjusting the extrusion multiplier in Prusa Slicer (called flow in Cura). Typically, your baseline prints will have used an extrusion multiplier ranging from 0.9-1.1.

Now, adjust the extrusion multiplier to 0.6. Depending on your setup, this may or may not be low enough to produce a significantly different result.

3 Print the gcode and compare the result to examples below

4 If the reduced flow does not result in an obvious difference from the baseline prints, adjust the extrusion multiplier from 0.6 to 0.5 and re-print the first model. Repeat the process until the print resembles the examples above. If you need to go lower than 0.5 extrusion width, reduce the extrusion width by 0.25. For example, go from 0.5 to 0.475.

The goal here is to ensure that the flow is obviously reduced so that the infill lines do not overlap or touch each other.

This will result in a print that is not a smooth homogeneous surface. Compare your model to the one shown above. If it is similar, move on to print the remaining models.

tip

The view from the nozzle camera should look something like the image below.

Step 6. Print the test models again with the reduced flow rate​

1. Turn ON Celestrius data collection

cd ~/moonraker-celestrius
./celestrius.sh enable

2. Slice the model with the same reduced flow rate settings from step 4.

3. Save the gcode file with a different naming convention. For instance:

The gcode name for 1-t-rex.stl will look like:

4. Print all 5 models. Please make sure the first layer for all 5 look similar to what the reduced flow rate examples. If not, please go back step 4 and start over. Consider wiping the bed clean with isopropyl alcohol and re-leveling the bed in between prints to ensure consistent bed adhesion.

Step 7. Turn off data collection​

Make sure you turn off data collection once you are done with step 1-6. Otherwise, the plugin may send unintended data to our server.

Optionally, you can review all the prints that have been sent to the server by running this command:

cat ~/celestrius-data/uploaded_print_list.csv

If you find any prints that you didn't intend to send and want us to delete them, please email us to request data erasure.

info

Your uploaded data won't be accessed by the Obico Team for 7 days. This is the give you a chance to request data erasure in case they are sent unintentionally.

warning

Remember to remove the end G-Code from your slicer (added in step 2) when you are finished collecting data for the Celestrius Pilot, or if you want to print a print unrelated to the Celestrius Pilot. This G-Code will cause collissions with any parts printed higher than 1mm.