commit 76c58420f8e6764ad3d3f6caceb65ea8e215e3a4 Author: prusa-automated Date: Thu May 8 21:22:28 2025 +0300 initialise repo diff --git a/.moonraker.conf.bkp b/.moonraker.conf.bkp new file mode 100644 index 0000000..2f599e2 --- /dev/null +++ b/.moonraker.conf.bkp @@ -0,0 +1,63 @@ +[server] +host = 0.0.0.0 +port = 7125 +klippy_uds_address = /home/pi/printer_data/comms/klippy.sock + +[authorization] +trusted_clients = + 100.101.0.0/16 + 10.0.0.0/8 + 127.0.0.0/8 + 169.254.0.0/16 + 172.16.0.0/12 + 192.168.0.0/16 + FE80::/10 + ::1/128 +cors_domains = + *.lan + *.local + *://localhost + *://localhost:* + *://my.mainsail.xyz + *://app.fluidd.xyz + +[octoprint_compat] + +[history] + +[update_manager] +channel = dev +refresh_interval = 168 + +[update_manager fluidd-config] +type = git_repo +primary_branch = master +path = ~/fluidd-config +origin = https://github.com/fluidd-core/fluidd-config.git +managed_services = klipper + +[update_manager fluidd] +type = web +channel = stable +repo = fluidd-core/fluidd +path = ~/fluidd + +[update_manager prusa] +type = git_repo +origin = https://github.com/dz0ny/klipper-prusa-mk3s.git +path = ~/printer_data/config/klipper-prusa-mk3s +primary_branch = main +is_system_service = False +managed_services = klipper + +[update_manager crowsnest] +type = git_repo +path = ~/crowsnest +origin = https://github.com/mainsail-crew/crowsnest.git +managed_services = crowsnest +install_script = tools/pkglist.sh + +[power RackLedLight] +type = tasmota +address = 100.101.101.38 + diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/crowsnest.conf b/crowsnest.conf new file mode 100644 index 0000000..51cebf1 --- /dev/null +++ b/crowsnest.conf @@ -0,0 +1,48 @@ +#### crowsnest.conf +#### This is a typical default config. +#### Also used as default in mainsail / MainsailOS +#### See: +#### https://github.com/mainsail-crew/crowsnest/blob/master/README.md +#### for details to configure to your needs. + + +##################################################################### +#### ##### +#### Information about ports and according URL's ##### +#### ##### +##################################################################### +#### ##### +#### Port 8080 equals /webcam/?action=[stream/snapshot] ##### +#### Port 8081 equals /webcam2/?action=[stream/snapshot] ##### +#### Port 8082 equals /webcam3/?action=[stream/snapshot] ##### +#### Port 8083 equals /webcam4/?action=[stream/snapshot] ##### +#### ##### +#### Note: These ports are default for most Mainsail ##### +#### installations. To use any other port would involve ##### +#### changing the proxy configuration or using directly ##### +#### http://:/?action=[stream/snapshot] ##### +#### ##### +##################################################################### +#### RTSP Stream URL: ( if enabled and supported ) ##### +#### rtsp://:/stream.h264 ##### +##################################################################### + + +[crowsnest] +log_path: /home/pi/printer_data/logs/crowsnest.log +log_level: verbose # Valid Options are quiet/verbose/debug +delete_log: false # Deletes log on every restart, if set to true +no_proxy: false + +[cam 1] +mode: camera-streamer # ustreamer - Provides mjpg and snapshots. (All devices) + # camera-streamer - Provides webrtc, mjpg and snapshots. (rpi + Raspi OS based only) +enable_rtsp: false # If camera-streamer is used, this enables also usage of an rtsp server +rtsp_port: 8554 # Set different ports for each device! +port: 8080 # HTTP/MJPG Stream/Snapshot Port +device: /base/soc/i2c0mux/i2c@1/imx708@1a +#resolution: 1280x720 # widthxheight format +resolution: 4608x2592 +max_fps: 30 # If Hardware Supports this it will be forced, otherwise ignored/coerced. +#custom_flags: # You can run the Stream Services with custom flags. +#v4l2ctl: # Add v4l2-ctl parameters to setup your camera, see Log what your cam is capable of. diff --git a/fluidd.cfg b/fluidd.cfg new file mode 120000 index 0000000..a825998 --- /dev/null +++ b/fluidd.cfg @@ -0,0 +1 @@ +/home/pi/fluidd-config/client.cfg \ No newline at end of file diff --git a/klipper-prusa-mk3s b/klipper-prusa-mk3s new file mode 160000 index 0000000..59a057c --- /dev/null +++ b/klipper-prusa-mk3s @@ -0,0 +1 @@ +Subproject commit 59a057cda3730df710119d7c6feae1ccaeb2c5b8 diff --git a/moonraker.conf b/moonraker.conf new file mode 100644 index 0000000..57248bd --- /dev/null +++ b/moonraker.conf @@ -0,0 +1,64 @@ +[server] +host: 0.0.0.0 +port: 7125 +klippy_uds_address: /home/pi/printer_data/comms/klippy.sock + +[authorization] +trusted_clients: + 100.101.0.0/16 + 10.0.0.0/8 + 127.0.0.0/8 + 169.254.0.0/16 + 172.16.0.0/12 + 192.168.0.0/16 + FE80::/10 + ::1/128 +cors_domains: + *.lan + *.local + *://localhost + *://localhost:* + *://my.mainsail.xyz + *://app.fluidd.xyz + +[octoprint_compat] + +[history] + +[update_manager] +channel: dev +refresh_interval: 168 + +[update_manager fluidd-config] +type: git_repo +primary_branch: master +path: ~/fluidd-config +origin: https://github.com/fluidd-core/fluidd-config.git +managed_services: klipper + +[update_manager fluidd] +type: web +channel: stable +repo: fluidd-core/fluidd +path: ~/fluidd + +[update_manager prusa] +type: git_repo +origin: https://github.com/dz0ny/klipper-prusa-mk3s.git +path: ~/printer_data/config/klipper-prusa-mk3s +primary_branch: main +is_system_service: False +managed_services: klipper + +# Crowsnest update_manager entry +[update_manager crowsnest] +type: git_repo +path: ~/crowsnest +origin: https://github.com/mainsail-crew/crowsnest.git +managed_services: crowsnest +install_script: tools/pkglist.sh + +[power RackLedLight] +type: tasmota +address: 100.101.101.38 +#on_when_job_queued: True diff --git a/moonraker.conf.backup b/moonraker.conf.backup new file mode 100644 index 0000000..4291e7c --- /dev/null +++ b/moonraker.conf.backup @@ -0,0 +1,51 @@ +[server] +host: 0.0.0.0 +port: 7125 +klippy_uds_address: /home/pi/printer_data/comms/klippy.sock + +[authorization] +trusted_clients: + 100.101.0.0/16 + 10.0.0.0/8 + 127.0.0.0/8 + 169.254.0.0/16 + 172.16.0.0/12 + 192.168.0.0/16 + FE80::/10 + ::1/128 +cors_domains: + *.lan + *.local + *://localhost + *://localhost:* + *://my.mainsail.xyz + *://app.fluidd.xyz + +[octoprint_compat] + +[history] + +[update_manager] +channel: dev +refresh_interval: 168 + +[update_manager fluidd-config] +type: git_repo +primary_branch: master +path: ~/fluidd-config +origin: https://github.com/fluidd-core/fluidd-config.git +managed_services: klipper + +[update_manager fluidd] +type: web +channel: stable +repo: fluidd-core/fluidd +path: ~/fluidd + +[update_manager prusa] +type: git_repo +origin: https://github.com/dz0ny/klipper-prusa-mk3s.git +path: ~/printer_data/config/klipper-prusa-mk3s +primary_branch: main +is_system_service: False +managed_services: klipper diff --git a/printer-20240726_122400.cfg b/printer-20240726_122400.cfg new file mode 100644 index 0000000..3a7a37d --- /dev/null +++ b/printer-20240726_122400.cfg @@ -0,0 +1,104 @@ +# 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 + +## 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 + + +### The end, on the end the printer will store it's tuning data, so do not edit it. diff --git a/printer-20240726_153750.cfg b/printer-20240726_153750.cfg new file mode 100644 index 0000000..b6a9722 --- /dev/null +++ b/printer-20240726_153750.cfg @@ -0,0 +1,120 @@ +# 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 + +## 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 + +[stepper_z] +position_max: 210 + +[heater_bed] +pid_Kp=54.241 +pid_Ki=0.646 +pid_Kd=1139.053 + +### 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 = 25.678 +#*# pid_ki = 1.297 +#*# pid_kd = 127.106 diff --git a/printer-20250118_131940.cfg b/printer-20250118_131940.cfg new file mode 100644 index 0000000..150e6bc --- /dev/null +++ b/printer-20250118_131940.cfg @@ -0,0 +1,195 @@ +# 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" + + +### 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 = 25.678 +#*# pid_ki = 1.297 +#*# pid_kd = 127.106 +#*# +#*# [probe] +#*# z_offset = 1.344 diff --git a/printer.cfg b/printer.cfg new file mode 100644 index 0000000..830eef3 --- /dev/null +++ b/printer.cfg @@ -0,0 +1,214 @@ +# 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" + +[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 = 25.678 +#*# pid_ki = 1.297 +#*# pid_kd = 127.106 +#*# +#*# [probe] +#*# z_offset = 1.344 +#*# +#*# [bed_mesh default] +#*# version = 1 +#*# points = +#*# 0.664167, 0.159444, -0.203750 +#*# 0.640833, 0.175000, -0.247500 +#*# 0.631667, 0.240000, -0.174167 +#*# x_count = 3 +#*# y_count = 3 +#*# mesh_x_pps = 3 +#*# mesh_y_pps = 3 +#*# algo = bicubic +#*# tension = 0.2 +#*# min_x = 24.0 +#*# max_x = 228.0 +#*# min_y = 6.0 +#*# max_y = 210.0