diff --git a/printer-20260311_190518.cfg b/printer-20260311_190518.cfg new file mode 100644 index 0000000..6cdbd56 --- /dev/null +++ b/printer-20260311_190518.cfg @@ -0,0 +1,227 @@ +# DO NOT EDIT THIS FILE, IT IS A TEMPLATE. THAT YOU NEED TO COPY +# Prusa MK3s Klipper Config + +# The first thing you'll need to do is go through this file and comment out / uncomment +# the files and/or settings you need. + +# You'll be able to print just fine with this config as it is, but it is recommended +# that you follow these steps to properly calibrate your printer: + +# 0) Sanity check and PID Tuning: https://www.klipper3d.org/Config_checks.html +# 1) Pressure Advance: https://www.klipper3d.org/Pressure_Advance.html +# 2) Skew Correction: https://www.klipper3d.org/skew_correction.html +# 3) Resonance Compensation: https://www.klipper3d.org/Resonance_Compensation.html + +# Read more about klipper here: https://www.klipper3d.org/Overview.html + +### UI +# [include mainsail.cfg] +[include fluidd.cfg] + +[mcu] +# serial: /dev/serial0 # If you are using internal RPI serial port +serial: /dev/ttyACM0 # If you are using RPI via USB connection to printer +restart_method: command + +### CONTROL BOARD +[include klipper-prusa-mk3s/mk3s/einsy-rambo.cfg] + +### BASE SETUP +[include klipper-prusa-mk3s/mk3s/display.cfg] +[include klipper-prusa-mk3s/mk3s/steppers.cfg] +[include klipper-prusa-mk3s/mk3s/tmc2130.cfg] + +### EXTRUSION + +# Extruder +[include klipper-prusa-mk3s/extruders/prusa.cfg] +# [include klipper-prusa-mk3s/extruders/bmg.cfg] + +# Hotend +[include klipper-prusa-mk3s/hotends/v6.cfg] +# [include klipper-prusa-mk3s/hotends/dragon-standard-flow.cfg] +# [include klipper-prusa-mk3s/hotends/rapido.cfg] + +[extruder] +# To tune Pressure Advance see https://www.klipper3d.org/Pressure_Advance.html +# default is already set based on hotend, but you can further improve prints by calibrating it to your nozzle and material +# pressure_advance: 0.05 +nozzle_diameter: 0.4 # Remember to change this if you change nozzle diameter. +#pid_Kp: 23.862 +#pid_Ki: 1.020 +#pid_Kd: 139.595 +max_extrude_only_distance: 101 + +## copy this from your current setting on Prusa, but make it absolute (removing -) +[probe] +#z_offset = 0.685 + +## For faster printing enable +# [printer] +# max_accel: 2000 +# max_accel_to_decel: 2000 +# max_z_velocity: 20 +# max_z_accel: 300 + +## For stealth mode enable + +# [tmc2130 stepper_x] +# interpolate: True +# stealthchop_threshold: 80 +# [tmc2130 stepper_y] +# interpolate: True +# stealthchop_threshold: 80 +# [tmc2130 stepper_z] +# interpolate: True +# stealthchop_threshold: 80 + +## Custom bed mest probes +## Prusa has 3x3 or 7x7, you can do any variation you want +# [bed_mesh] +# probe_count: 4,4 + +# Linear correction +# Check `extruders/linear-correction` for more informations. +[include klipper-prusa-mk3s/extruders/linear-correction/linear-correction-0.cfg] # Default Prusa linear correction optimized for LDO motors + +### MACROS +[include klipper-prusa-mk3s/macros.cfg] + +# FIRST RUN: +# Execute these sequentially in the console, let PID tuning finish before saving +# PID_CALIBRATE HEATER=extruder TARGET=170 +# SAVE_CONFIG +# PID_CALIBRATE HEATER=heater_bed TARGET=60 +# SAVE_CONFIG + +# You can also skip the above setting for stock Prusa and use +[extruder] +#control: pid +min_temp: 0 +max_temp: 305 +min_extrude_temp: 170 +rotation_distance=22.399821 + +[stepper_z] +position_max: 210 + +[heater_bed] +pid_Kp=54.241 +pid_Ki=0.646 +pid_Kd=1139.053 + +##################################################################### +# print_start macro +##################################################################### + +## *** THINGS TO UNCOMMENT: *** +## Bed mesh (2 lines at 2 locations) +## Z_TILT_ADJUST if your printer is a Trident +## Quad gantry level if your printer is a V2 +## Nevermore - if you have one + +[gcode_macro PRINT_START] +gcode: + # This part fetches data from your slicer. Such as bed temp, extruder temp, chamber temp and size of your printer. + {% set target_bed = params.BED|int %} + {% set target_extruder = params.EXTRUDER|int %} + {% set x_wait = printer.toolhead.axis_maximum.x|float / 2 %} + {% set y_wait = printer.toolhead.axis_maximum.y|float / 2 %} + + # Homes the printer, sets absolute positioning + G28 # Full home (XYZ) + G90 # Absolut position + + ## Uncomment for bed mesh (1 of 2) + BED_MESH_CLEAR # Clears old saved bed mesh (if any) + + SET_DISPLAY_TEXT MSG="Bed: {target_bed}c" # Displays info + M140 S{target_bed} # Sets bed target + + ## Uncomment for bed mesh (2 of 2) + SET_DISPLAY_TEXT MSG="Bed mesh" # Displays info + bed_mesh_calibrate # Starts bed mesh + + # Heats up the nozzle and bed to target via data from slicer + SET_DISPLAY_TEXT MSG="Hotend: {target_extruder}c" # Displays info + M104 S{target_extruder} # Sets extruder target + G1 X{x_wait} Y{y_wait} Z15 F9000 # Goes to center of the bed + M107 # Turns off partcooling fan + M190 S{target_bed} # Heats bed to printing temp (if not already hot enough) + M109 S{target_extruder} # Heats the nozzle to printing temp (if not already hot enough) + + # Gets ready to print by doing a purge line + SET_DISPLAY_TEXT MSG="Printer goes brr" # Displays info + G0 X0 Y0 F9000 # Moves to starting point + G1 Z0.2 F720 + G1 Y-3 F1000 # Go outside print area + G1 X60 E9 F1000 # intro line + G1 X100 E12.5 F1000 # intro line + G92 E0 + G90 # Absolute position + +[gcode_macro PRINT_END] +gcode: + # Turn off bed, extruder, and fan + M140 S0 + M104 S0 + M107 + # Move nozzle away from print while retracting + G91 + G1 X-2 Y-2 E-3 F300 + # Raise nozzle by 10mm + G1 Z10 F1000 + G90 + # Move to origin + G0 X0 Y0 F9000 + # Disable steppers + M84 + # Display info + SET_DISPLAY_TEXT MSG="Print done" + +# Added by: mikidep +# It seems that the default bed mesh calibration gets messy on the high X high Y +# corner, my hypothesis is that it's due to the probe losing accuracy near the +# edge of the plate. So I'm limiting the probing area. +[bed_mesh] +speed: 120 +mesh_min: 35, 6 +mesh_max: 180, 180 +probe_count: 5, 5 + + +[exclude_object] + + +### The end, on the end the printer will store it's tuning data, so do not edit it. + +#*# <---------------------- SAVE_CONFIG ----------------------> +#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. +#*# +#*# [extruder] +#*# control = pid +#*# pid_kp = 7.598 +#*# pid_ki = 0.150 +#*# pid_kd = 96.308 +#*# +#*# [probe] +#*# z_offset = 1.669 +#*# +#*# [bed_mesh default] +#*# version = 1 +#*# points = +#*# 0.221667, 0.145000, 0.161667, 0.089722, 0.108333 +#*# 0.220000, 0.172500, 0.102500, 0.075000, 0.077500 +#*# 0.196667, 0.128333, 0.080000, 0.045833, 0.028333 +#*# 0.211667, 0.134167, 0.067500, 0.025833, 0.005833 +#*# 0.225833, 0.171667, 0.098333, 0.057500, 0.027500 +#*# x_count = 5 +#*# y_count = 5 +#*# mesh_x_pps = 3 +#*# mesh_y_pps = 3 +#*# algo = bicubic +#*# tension = 0.2 +#*# min_x = 35.0 +#*# max_x = 180.0 +#*# min_y = 6.0 +#*# max_y = 180.0 diff --git a/printer-20260311_194513.cfg b/printer-20260311_194513.cfg new file mode 100644 index 0000000..0016766 --- /dev/null +++ b/printer-20260311_194513.cfg @@ -0,0 +1,227 @@ +# DO NOT EDIT THIS FILE, IT IS A TEMPLATE. THAT YOU NEED TO COPY +# Prusa MK3s Klipper Config + +# The first thing you'll need to do is go through this file and comment out / uncomment +# the files and/or settings you need. + +# You'll be able to print just fine with this config as it is, but it is recommended +# that you follow these steps to properly calibrate your printer: + +# 0) Sanity check and PID Tuning: https://www.klipper3d.org/Config_checks.html +# 1) Pressure Advance: https://www.klipper3d.org/Pressure_Advance.html +# 2) Skew Correction: https://www.klipper3d.org/skew_correction.html +# 3) Resonance Compensation: https://www.klipper3d.org/Resonance_Compensation.html + +# Read more about klipper here: https://www.klipper3d.org/Overview.html + +### UI +# [include mainsail.cfg] +[include fluidd.cfg] + +[mcu] +# serial: /dev/serial0 # If you are using internal RPI serial port +serial: /dev/ttyACM0 # If you are using RPI via USB connection to printer +restart_method: command + +### CONTROL BOARD +[include klipper-prusa-mk3s/mk3s/einsy-rambo.cfg] + +### BASE SETUP +[include klipper-prusa-mk3s/mk3s/display.cfg] +[include klipper-prusa-mk3s/mk3s/steppers.cfg] +[include klipper-prusa-mk3s/mk3s/tmc2130.cfg] + +### EXTRUSION + +# Extruder +[include klipper-prusa-mk3s/extruders/prusa.cfg] +# [include klipper-prusa-mk3s/extruders/bmg.cfg] + +# Hotend +[include klipper-prusa-mk3s/hotends/v6.cfg] +# [include klipper-prusa-mk3s/hotends/dragon-standard-flow.cfg] +# [include klipper-prusa-mk3s/hotends/rapido.cfg] + +[extruder] +# To tune Pressure Advance see https://www.klipper3d.org/Pressure_Advance.html +# default is already set based on hotend, but you can further improve prints by calibrating it to your nozzle and material +# pressure_advance: 0.05 +nozzle_diameter: 0.4 # Remember to change this if you change nozzle diameter. +#pid_Kp: 23.862 +#pid_Ki: 1.020 +#pid_Kd: 139.595 +max_extrude_only_distance: 101 + +## copy this from your current setting on Prusa, but make it absolute (removing -) +[probe] +#z_offset = 0.685 + +## For faster printing enable +# [printer] +# max_accel: 2000 +# max_accel_to_decel: 2000 +# max_z_velocity: 20 +# max_z_accel: 300 + +## For stealth mode enable + +# [tmc2130 stepper_x] +# interpolate: True +# stealthchop_threshold: 80 +# [tmc2130 stepper_y] +# interpolate: True +# stealthchop_threshold: 80 +# [tmc2130 stepper_z] +# interpolate: True +# stealthchop_threshold: 80 + +## Custom bed mest probes +## Prusa has 3x3 or 7x7, you can do any variation you want +# [bed_mesh] +# probe_count: 4,4 + +# Linear correction +# Check `extruders/linear-correction` for more informations. +[include klipper-prusa-mk3s/extruders/linear-correction/linear-correction-0.cfg] # Default Prusa linear correction optimized for LDO motors + +### MACROS +[include klipper-prusa-mk3s/macros.cfg] + +# FIRST RUN: +# Execute these sequentially in the console, let PID tuning finish before saving +# PID_CALIBRATE HEATER=extruder TARGET=170 +# SAVE_CONFIG +# PID_CALIBRATE HEATER=heater_bed TARGET=60 +# SAVE_CONFIG + +# You can also skip the above setting for stock Prusa and use +[extruder] +#control: pid +min_temp: 0 +max_temp: 305 +min_extrude_temp: 170 +rotation_distance=22.399821 + +[stepper_z] +position_max: 210 + +[heater_bed] +pid_Kp=54.241 +pid_Ki=0.646 +pid_Kd=1139.053 + +##################################################################### +# print_start macro +##################################################################### + +## *** THINGS TO UNCOMMENT: *** +## Bed mesh (2 lines at 2 locations) +## Z_TILT_ADJUST if your printer is a Trident +## Quad gantry level if your printer is a V2 +## Nevermore - if you have one + +[gcode_macro PRINT_START] +gcode: + # This part fetches data from your slicer. Such as bed temp, extruder temp, chamber temp and size of your printer. + {% set target_bed = params.BED|int %} + {% set target_extruder = params.EXTRUDER|int %} + {% set x_wait = printer.toolhead.axis_maximum.x|float / 2 %} + {% set y_wait = printer.toolhead.axis_maximum.y|float / 2 %} + + # Homes the printer, sets absolute positioning + G28 # Full home (XYZ) + G90 # Absolut position + + ## Uncomment for bed mesh (1 of 2) + BED_MESH_CLEAR # Clears old saved bed mesh (if any) + + SET_DISPLAY_TEXT MSG="Bed: {target_bed}c" # Displays info + M140 S{target_bed} # Sets bed target + + ## Uncomment for bed mesh (2 of 2) + SET_DISPLAY_TEXT MSG="Bed mesh" # Displays info + bed_mesh_calibrate # Starts bed mesh + + # Heats up the nozzle and bed to target via data from slicer + SET_DISPLAY_TEXT MSG="Hotend: {target_extruder}c" # Displays info + M104 S{target_extruder} # Sets extruder target + G1 X{x_wait} Y{y_wait} Z15 F9000 # Goes to center of the bed + M107 # Turns off partcooling fan + M190 S{target_bed} # Heats bed to printing temp (if not already hot enough) + M109 S{target_extruder} # Heats the nozzle to printing temp (if not already hot enough) + + # Gets ready to print by doing a purge line + SET_DISPLAY_TEXT MSG="Printer goes brr" # Displays info + G0 X0 Y0 F9000 # Moves to starting point + G1 Z0.2 F720 + G1 Y-3 F1000 # Go outside print area + G1 X60 E9 F1000 # intro line + G1 X100 E12.5 F1000 # intro line + G92 E0 + G90 # Absolute position + +[gcode_macro PRINT_END] +gcode: + # Turn off bed, extruder, and fan + M140 S0 + M104 S0 + M107 + # Move nozzle away from print while retracting + G91 + G1 X-2 Y-2 E-3 F300 + # Raise nozzle by 10mm + G1 Z10 F1000 + G90 + # Move to origin + G0 X0 Y0 F9000 + # Disable steppers + M84 + # Display info + SET_DISPLAY_TEXT MSG="Print done" + +# Added by: mikidep +# It seems that the default bed mesh calibration gets messy on the high X high Y +# corner, my hypothesis is that it's due to the probe losing accuracy near the +# edge of the plate. So I'm limiting the probing area. +[bed_mesh] +speed: 120 +mesh_min: 35, 6 +mesh_max: 180, 180 +probe_count: 5, 5 + + +[exclude_object] + + +### The end, on the end the printer will store it's tuning data, so do not edit it. + +#*# <---------------------- SAVE_CONFIG ----------------------> +#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. +#*# +#*# [extruder] +#*# control = pid +#*# pid_kp = 9.967 +#*# pid_ki = 0.258 +#*# pid_kd = 96.431 +#*# +#*# [probe] +#*# z_offset = 1.669 +#*# +#*# [bed_mesh default] +#*# version = 1 +#*# points = +#*# 0.221667, 0.145000, 0.161667, 0.089722, 0.108333 +#*# 0.220000, 0.172500, 0.102500, 0.075000, 0.077500 +#*# 0.196667, 0.128333, 0.080000, 0.045833, 0.028333 +#*# 0.211667, 0.134167, 0.067500, 0.025833, 0.005833 +#*# 0.225833, 0.171667, 0.098333, 0.057500, 0.027500 +#*# x_count = 5 +#*# y_count = 5 +#*# mesh_x_pps = 3 +#*# mesh_y_pps = 3 +#*# algo = bicubic +#*# tension = 0.2 +#*# min_x = 35.0 +#*# max_x = 180.0 +#*# min_y = 6.0 +#*# max_y = 180.0 diff --git a/printer.cfg b/printer.cfg index 6cdbd56..1679354 100644 --- a/printer.cfg +++ b/printer.cfg @@ -200,9 +200,9 @@ probe_count: 5, 5 #*# #*# [extruder] #*# control = pid -#*# pid_kp = 7.598 -#*# pid_ki = 0.150 -#*# pid_kd = 96.308 +#*# pid_kp = 9.247 +#*# pid_ki = 0.288 +#*# pid_kd = 74.205 #*# #*# [probe] #*# z_offset = 1.669 @@ -210,11 +210,11 @@ probe_count: 5, 5 #*# [bed_mesh default] #*# version = 1 #*# points = -#*# 0.221667, 0.145000, 0.161667, 0.089722, 0.108333 -#*# 0.220000, 0.172500, 0.102500, 0.075000, 0.077500 -#*# 0.196667, 0.128333, 0.080000, 0.045833, 0.028333 -#*# 0.211667, 0.134167, 0.067500, 0.025833, 0.005833 -#*# 0.225833, 0.171667, 0.098333, 0.057500, 0.027500 +#*# 0.221667, 0.145000, 0.161667, 0.089722, 0.108333 +#*# 0.220000, 0.172500, 0.102500, 0.075000, 0.077500 +#*# 0.196667, 0.128333, 0.080000, 0.045833, 0.028333 +#*# 0.211667, 0.134167, 0.067500, 0.025833, 0.005833 +#*# 0.225833, 0.171667, 0.098333, 0.057500, 0.027500 #*# x_count = 5 #*# y_count = 5 #*# mesh_x_pps = 3