From d73c97cb9cf3ec64d22b6b94cf7bf7291a1a7fcc Mon Sep 17 00:00:00 2001 From: Adam Bissen Date: Sat, 3 Oct 2026 11:01:57 -0500 Subject: [PATCH] Latest updates --- KlipperScreen.conf | 1 + crowsnest.conf | 2 +- printer.cfg | 146 +++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 135 insertions(+), 14 deletions(-) diff --git a/KlipperScreen.conf b/KlipperScreen.conf index 2a2160f..cadb8c5 100644 --- a/KlipperScreen.conf +++ b/KlipperScreen.conf @@ -3,5 +3,6 @@ #~# #~# [main] #~# 24htime = False +#~# auto_open_extrude = False #~# print_sort_dir = date_desc #~# diff --git a/crowsnest.conf b/crowsnest.conf index b548262..6aa7169 100644 --- a/crowsnest.conf +++ b/crowsnest.conf @@ -45,4 +45,4 @@ device: /dev/video0 # See Log for available ... resolution: 1280x720 max_fps: 15 # 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. +v4l2ctl: auto_exposure=1,exposure_time_absolute=450,power_line_frequency=2,exposure_dynamic_framerate=0,gain=30,sharpness=180,contrast=140,saturation=130 diff --git a/printer.cfg b/printer.cfg index d15f019..846715a 100644 --- a/printer.cfg +++ b/printer.cfg @@ -323,13 +323,20 @@ kick_start_time: 0.5 #color_order: GRBW [include stealthburner_leds.cfg] -[output_pin caselight] +[led caselight] #Chamber Lighting - HE3 Connector -pin: PA3 -pwm:true -shutdown_value: 0 +white_pin: PA3 cycle_time: 0.01 +##################################################################### +# Other +##################################################################### + +[servo wiper] +# Servo for moving a wiper above the bed plate +pin: PD15 + + ##################################################################### # Homing and Gantry Adjustment Routines ##################################################################### @@ -350,11 +357,18 @@ z_hop: 10 gantry_corners: -60,-10 360,370 -points: - 40, 260 - 40, 40 - 260,40 - 260,260 +# points: +# 40, 260 +# 40, 40 +# 260,40 +# 260,260 + +points: + 30, 30 + 30, 270 + 270, 270 + 270, 20 + speed: 100 horizontal_move_z: 10 retries: 10 @@ -364,6 +378,7 @@ max_adjust: 10 [bed_mesh] mesh_min: 10,10 mesh_max: 290,290 +probe_count: 5, 5 [adxl345] cs_pin: EBBCan:gpio1 @@ -377,6 +392,8 @@ accel_chip: adxl345 probe_points: 150,150, 20 +[exclude_object] + [board_pins] aliases: # EXP1 header @@ -431,7 +448,10 @@ gcode: {% if mat == "ABS" %} M118 Turning on exhaust for ABS - SET_FAN_SPEED FAN=exhaust_fan SPEED=0.05 + SET_FAN_SPEED FAN=exhaust_fan SPEED=0.00 + {% elif mat == "ASA" %} + M118 Turning on exhaust for ASA + SET_FAN_SPEED FAN=exhaust_fan SPEED=0.00 {% elif mat == "PETG" %} M118 Turning on exhaust for PETG SET_FAN_SPEED FAN=exhaust_fan SPEED=0.20 @@ -442,7 +462,9 @@ gcode: SAVE_GCODE_STATE NAME=start - SET_PIN pin=caselight value=0.50 + CLEAR_PAUSE + + SET_LED LED=caselight WHITE=0.50 STATUS_HEATING M117 Starting warmup @@ -474,6 +496,8 @@ gcode: M117 #Clear Status STATUS_PRINTING + + BED_MESH_PROFILE LOAD=default RESTORE_GCODE_STATE NAME=start @@ -495,7 +519,7 @@ gcode: G90 ; absolute positioning G0 X125 Y250 F3600 ; park nozzle at rear - SET_PIN pin=caselight value=0.03 + SET_LED LED=caselight WHITE=0.03 BED_MESH_CLEAR @@ -520,9 +544,86 @@ gcode: raise {% endif %} +[gcode_macro M601] +gcode: + PAUSE + [force_move] enable_force_move: true +[pause_resume] +recover_velocity: 50. + +[gcode_macro PAUSE] +description: Pause the actual running print +rename_existing: PAUSE_BASE +gcode: + PAUSE_BASE + _TOOLHEAD_PARK_PAUSE_CANCEL + +[gcode_macro RESUME] +description: Resume the actual running print +rename_existing: RESUME_BASE +gcode: + ##### read extrude from _TOOLHEAD_PARK_PAUSE_CANCEL macro ##### + + {% set extrude = printer['gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL'].extrude %} + #### get VELOCITY parameter if specified #### + {% if 'VELOCITY' in params|upper %} + {% set get_params = ('VELOCITY=' + params.VELOCITY) %} + {%else %} + {% set get_params = "" %} + {% endif %} + ##### end of definitions ##### + {% if printer.extruder.can_extrude|lower == 'true' %} + M83 + G1 E{extrude} F2100 + {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} + {% else %} + {action_respond_info("Extruder not hot enough")} + {% endif %} + + RESUME_BASE {get_params} + +[gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL] +description: Helper: park toolhead used in PAUSE and CANCEL_PRINT +variable_extrude: 1.0 +gcode: + ##### set park position for x and y ##### + # default is your max position from your printer.cfg + + {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %} + {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} + {% set z_park_delta = 2.0 %} + ##### calculate save lift position ##### + {% set max_z = printer.toolhead.axis_maximum.z|float %} + {% set act_z = printer.toolhead.position.z|float %} + {% if act_z < (max_z - z_park_delta) %} + {% set z_safe = z_park_delta %} + {% else %} + {% set z_safe = max_z - act_z %} + {% endif %} + ##### end of definitions ##### + {% if printer.extruder.can_extrude|lower == 'true' %} + M83 + G1 E-{extrude} F2100 + {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %} + {% else %} + {action_respond_info("Extruder not hot enough")} + {% endif %} + {% if "xyz" in printer.toolhead.homed_axes %} + G91 + G1 Z{z_safe} F900 + G90 + G1 X{x_park} Y{y_park} F6000 + {% if printer.gcode_move.absolute_coordinates|lower == 'false' %} G91 {% endif %} + {% else %} + {action_respond_info("Printer not homed")} + {% endif %} + +# When capture/restore is enabled, the speed at which to return to +# the captured position (in mm/s). Default is 50.0 mm/s. + #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# @@ -539,10 +640,29 @@ gcode: #*# pid_kd = 65.795 #*# #*# [probe] -#*# z_offset = -1.575 +#*# z_offset = -1.737 #*# #*# [input_shaper] #*# shaper_type_x = 2hump_ei #*# shaper_freq_x = 71.4 #*# shaper_type_y = mzv #*# shaper_freq_y = 30.0 +#*# +#*# [bed_mesh default] +#*# version = 1 +#*# points = +#*# -0.002896, 0.089604, 0.109604, 0.124604, 0.042104 +#*# 0.002104, 0.097104, 0.059604, 0.037104, -0.040396 +#*# -0.065396, -0.005396, 0.027104, -0.005396, -0.092896 +#*# -0.030396, 0.047104, 0.064604, 0.027104, -0.032896 +#*# 0.037104, 0.099604, 0.139604, 0.087104, 0.032104 +#*# x_count = 5 +#*# y_count = 5 +#*# mesh_x_pps = 2 +#*# mesh_y_pps = 2 +#*# algo = lagrange +#*# tension = 0.2 +#*# min_x = 10.0 +#*# max_x = 290.0 +#*# min_y = 10.0 +#*# max_y = 290.0