diff --git a/KAMP_Settings.cfg b/KAMP_Settings.cfg index 8f68066..0883456 100644 --- a/KAMP_Settings.cfg +++ b/KAMP_Settings.cfg @@ -1,6 +1,6 @@ # Below you can include specific configuration files depending on what you want KAMP to do: -[include ./KAMP/Adaptive_Meshing.cfg] # Include to enable adaptive meshing configuration. +#[include ./KAMP/Adaptive_Meshing.cfg] # Include to enable adaptive meshing configuration. # [include ./KAMP/Line_Purge.cfg] # Include to enable adaptive line purging configuration. [include ./KAMP/Voron_Purge.cfg] # Include to enable adaptive Voron logo purging configuration. [include ./KAMP/Smart_Park.cfg] # Include to enable the Smart Park function, which parks the printhead near the print area for final heating. @@ -16,9 +16,9 @@ variable_mesh_margin: 0 # Expands the mesh size in millimete variable_fuzz_amount: 0 # Slightly randomizes mesh points to spread out wear from nozzle-based probes. Leave at 0 to disable. # The following variables are for those with a dockable probe like Klicky, Euclid, etc. # ---------------- Attach Macro | Detach Macro -variable_probe_dock_enable: False # Set to True to enable the usage of a dockable probe. # --------------------------------------------- -variable_attach_macro: 'Attach_Probe' # The macro that is used to attach the probe. # Klicky Probe: 'Attach_Probe' | 'Dock_Probe' -variable_detach_macro: 'Dock_Probe' # The macro that is used to store the probe. # Euclid Probe: 'Deploy_Probe' | 'Stow_Probe' +#variable_probe_dock_enable: False # Set to True to enable the usage of a dockable probe. # --------------------------------------------- +#variable_attach_macro: 'Attach_Probe' # The macro that is used to attach the probe. # Klicky Probe: 'Attach_Probe' | 'Dock_Probe' +#variable_detach_macro: 'Dock_Probe' # The macro that is used to store the probe. # Euclid Probe: 'Deploy_Probe' | 'Stow_Probe' # Legacy Gcode: 'M401' | 'M402' # The following variables are for adjusting adaptive purge settings for KAMP. diff --git a/basic_macros.cfg b/basic_macros.cfg index 0f07c40..c6ea59a 100644 --- a/basic_macros.cfg +++ b/basic_macros.cfg @@ -5,7 +5,9 @@ gcode: {% set hotendTemp = params.HOTEND|int %} {% set bedTemp = params.BED|int %} {% set chamberTemp = params.CHAMBER|default(0)|int %} + {% set OFFSET = params.offset|default(0)|float %} + SET_LED LED="tinytemp" RED=0.0196 GREEN=0 BLUE=0.0196 SYNC=0 TRANSMIT=1 # Turn on light to indicate printing BED_MESH_CLEAR SET_GCODE_OFFSET Z=0 SET_HEATER_TEMPERATURE HEATER=extruder TARGET=150 # Set extruder chamber warm temp @@ -16,16 +18,17 @@ gcode: TEMPERATURE_WAIT SENSOR=heater_bed MINIMUM={bedTemp} MAXIMUM={bedTemp+1} # Wait for bed temp (within 1 degree) {% if chamberTemp != 0 %} # If chamber temp set SET_CHAMBER_TEMP CHAMBER={chamberTemp} # Set target chamber temp - CHAMBER_WARMER TEMPERATURE={chamberTemp-5} # Prewarm chamber + CHAMBER_WARMER TEMPERATURE={chamberTemp-5} BED={bedtemp} # Prewarm chamber {% endif %} G4 P{60*100} # Let temps settle for 60s FAST_QGL # QGL after soak - #BED_MESH_CALIBRATE + BED_MESH_CALIBRATE G90 # Absolute positioning SMART_PARK M109 S{hotendTemp} # Set extruder to printing temperature - SET_GCODE_OFFSET Z=0.10 # add a little offset for hotend thermal expansion + SET_GCODE_OFFSET Z=0.20 # add a little offset for hotend thermal expansion # needs fine tuning, long meltzones require more + SET_GCODE_OFFSET Z_ADJUST={OFFSET} # apply optional material squish via slicer G1 X{90} F{500*60} # Avoid brush VORON_PURGE # Purge M117 Printing... @@ -38,9 +41,10 @@ gcode: {% set z_pcf_height = 5 %} # Height from the bed while warming {% set fan_speed = 100 %} # Fan speed in percent + {% set bedTemp = params.BED|default(110)|int %} {% set chamberTemp = params.TEMPERATURE|default(0)|int %} {% if printer["temperature_sensor chamber"].temperature < chamberTemp %} - BEDFANSFAST # Force bed fans to fast speed + BEDFANSMAX # Force bed fans to max speed # Only move and turn on fan if chamber is not to temp. G90 # Absolute positioning # park above bed center @@ -49,12 +53,14 @@ gcode: M117 Waiting for chamber temperature {chamberTemp}c... TEMPERATURE_WAIT SENSOR="temperature_sensor chamber" MINIMUM={chamberTemp} # Wait for chamber temp M106 S0 # Disable part cooling fan after soak + G4 {20*1000} # Wait for bed to recover temp {% endif %} M117 Chamber at temp [gcode_macro PARK] gcode: - GO_TO_BUCKET + SMART_PARK + #GO_TO_BUCKET [gcode_macro GO_TO_BUCKET] gcode: @@ -113,18 +119,21 @@ gcode: M107 ; turn off fan BED_MESH_CLEAR - GO_TO_BUCKET + #GO_TO_BUCKET RESTORE_GCODE_STATE NAME=STATE_PRINT_END + SET_LED LED="tinytemp" RED=0 GREEN=0 BLUE=0 SYNC=0 TRANSMIT=1 # Turn of light to indicate not printing [gcode_macro CANCEL_PRINT] rename_existing: BASE_CANCEL_PRINT gcode: - M106 S0 - TURN_OFF_HEATERS + #M106 S0 + #TURN_OFF_HEATERS CLEAR_PAUSE SDCARD_RESET_FILE - BASE_CANCEL_PRINT - BED_MESH_CLEAR + #BASE_CANCEL_PRINT + #BED_MESH_CLEAR + PRINT_END + [gcode_macro PAUSE] rename_existing: BASE_PAUSE @@ -137,7 +146,8 @@ gcode: G91 SAFE_RETRACT G1 Z{Z} - GO_TO_BUCKET + SMART_PARK + #GO_TO_BUCKET G91 [gcode_macro RESUME] @@ -158,10 +168,11 @@ gcode: # Home first if needed {% if printer.toolhead.homed_axes != "xyz" %} G28 METHOD=PROXIMITY + QUAD_GANTRY_LEVEL horizontal_move_z=7 retry_tolerance=1 PROBE_METHOD=PROXIMITY {% endif %} - QUAD_GANTRY_LEVEL horizontal_move_z=7 retry_tolerance=1 PROBE_METHOD=PROXIMITY QUAD_GANTRY_LEVEL horizontal_move_z={z_offset} PROBE_METHOD=PROXIMITY G28 Z + BEACON_AUTO_CALIBRATE [gcode_macro SAFE_RETRACT] gcode: @@ -182,9 +193,9 @@ gcode: M82 # Set extruder to absolute mode G92 E0 {% if printer.extruder.can_extrude|lower != 'true' %} # Checking for minimum extrusion temperature - # Check if temperature is over the minimum extrusion temp. min_extrude_temp must be defined in the extruder config (to about 185) - M118 Hotend heating! - M109 S235 T0 # Set temperature and wait + # Check if temperature is over the minimum extrusion temp. min_extrude_temp must be defined in the extruder config (to about 185) + M118 Hotend heating! + M109 S235 T0 # Set temperature and wait {% endif %} G1 E10 F{5*60} # Extrude a little to soften tip G0 E-5 F{60*60} # Extract filament to cold end diff --git a/beacon.cfg b/beacon.cfg index 2398ebe..30d667d 100644 --- a/beacon.cfg +++ b/beacon.cfg @@ -3,7 +3,7 @@ [beacon] serial: /dev/serial/by-id/usb-Beacon_Beacon_RevD_A7B668494E4B333448202020FF0A0937-if00 x_offset: 0 # update with offset from nozzle on your machine -y_offset: 24.2 # update with offset from nozzle on your machine +y_offset: 23 # update with offset from nozzle on your machine mesh_main_direction: x mesh_runs: 2 diff --git a/bedfans.cfg b/bedfans.cfg index 6ebb7b1..257df38 100644 --- a/bedfans.cfg +++ b/bedfans.cfg @@ -2,8 +2,9 @@ [gcode_macro _BEDFANVARS] variable_threshold: 100 # If bed temp target is above this threshold, fans will be enabled. If temp is set to below this threshold, fans will be disabled. -variable_fast: 1.0 # Fan speed once bed temp is reached -variable_mid: 0.6 # Fan speed while bed is heating +variable_max: 1.0 # Fan speed before close to reached +variable_fast: 0.8 # Fan speed once bed temp is reached +variable_mid: 0.6 # Fan speed while bed is heating variable_slow: 0.2 # Fan speed while bed is heating variable_max_temp: 65 # Temp fans will turn off variable_target_temp: 60 # Temp fans will turn back to slow speed @@ -45,6 +46,13 @@ gcode: SET_FAN_SPEED FAN=BedFans SPEED={FAST} +[gcode_macro BEDFANSMAX] +gcode: + # Vars + {% set MAX = printer["gcode_macro _BEDFANVARS"].fast|float %} + + SET_FAN_SPEED FAN=BedFans SPEED={MAX} + [gcode_macro BEDFANSOFF] gcode: SET_FAN_SPEED FAN=BedFans SPEED=0 @@ -157,6 +165,10 @@ gcode: # If chamber is almost at target temp, mid fans BEDFANSMID UPDATE_DELAYED_GCODE ID=bedfanloop DURATION=5 # If temp not reached yet: loop again + {% elif CHAMBER_TEMP >= TARGET_TEMP - 15 %} + # If chamber is still under max, fast fans + BEDFANSMAX + UPDATE_DELAYED_GCODE ID=bedfanloop DURATION=5 # If temp not reached yet: loop again {% else %} # If chamber is still under max, fast fans BEDFANSFAST diff --git a/fans.cfg b/fans.cfg index 02dbce0..1762af0 100644 --- a/fans.cfg +++ b/fans.cfg @@ -18,15 +18,15 @@ kick_start_time: 0.5 heater: extruder heater_temp: 50.0 ## If you are experiencing back flow, you can reduce fan_speed -fan_speed: 0.8 +fan_speed: 1 [controller_fan mcu] ## Controller Fan - FAN4 pin: PE4 -max_power: 0.5 +max_power: 0.3 kick_start_time: 0.5 stepper: stepper_x -fan_speed: 0.6 +fan_speed: 1 [temperature_sensor CB1] sensor_type: temperature_host diff --git a/printer.cfg b/printer.cfg index e00e5e0..0ba9fb0 100644 --- a/printer.cfg +++ b/printer.cfg @@ -21,18 +21,18 @@ minimum_cruise_ratio: 0 #max_accel_to_decel: 50000 max_z_velocity: 50 max_z_accel: 500 -square_corner_velocity: 8 +square_corner_velocity: 15 [firmware_retraction] retract_length: 0.4 -retract_speed: 30 -unretract_speed: 30 +retract_speed: 50 +unretract_speed: 50 [virtual_sdcard] path: ~/printer_data/gcodes [gcode_arcs] -resolution: 0.1 +resolution: 0.15 [heater_bed] heater_pin: PE1 @@ -59,10 +59,10 @@ gantry_corners: -60.2,-10.4 244.1,234.5 points: - 13,5 - 13,146 + 15,28 + 15,146 150,146 - 150,5 + 150,28 speed: 600 horizontal_move_z: 10 @@ -72,7 +72,7 @@ max_adjust: 10 [bed_mesh] speed: 600 -horizontal_move_z: 0 +horizontal_move_z: 10 mesh_min: 15,28 mesh_max: 150,146 zero_reference_position: 90, 90 @@ -80,7 +80,14 @@ probe_count: 32,16 #mesh_pps: 2,2 algorithm: bicubic #bicubic_tension: 0.2 -#fade_end: 10 +fade_start: 1 +fade_end: 5 + +[axis_twist_compensation] +speed: 100 +calibrate_start_x: 15 +calibrate_end_x: 150 +calibrate_y: 90 [include steppers.cfg] [include fans.cfg] @@ -111,15 +118,15 @@ shaper_freq_y = 64.0 #*# #*# [beacon model default] #*# model_coef = 1.6100259673885389, -#*# 1.9376348663935683, -#*# 0.7395871386879043, -#*# 0.29226082700302425, -#*# 0.2601348070014482, -#*# 0.319091274729962, -#*# -0.1711431052020036, -#*# -0.30633191875220134, -#*# 0.1628838399809095, -#*# 0.1606397177930352 +#*# 1.9376348663935683, +#*# 0.7395871386879043, +#*# 0.29226082700302425, +#*# 0.2601348070014482, +#*# 0.319091274729962, +#*# -0.1711431052020036, +#*# -0.30633191875220134, +#*# 0.1628838399809095, +#*# 0.1606397177930352 #*# model_domain = 3.2802121215684144e-07,3.352464164883853e-07 #*# model_range = 0.200000,5.000000 #*# model_temp = 22.320787 @@ -269,3 +276,8 @@ shaper_freq_y = 64.0 #*# max_x = 147.691 #*# min_y = 43.8621 #*# max_y = 136.138 +#*# +#*# [axis_twist_compensation] +#*# z_compensations = -0.074522, 0.028983, 0.045539 +#*# compensation_start_x = 15.0 +#*# compensation_end_x = 150.0 diff --git a/steppers.cfg b/steppers.cfg index 900c589..f53f8d4 100644 --- a/steppers.cfg +++ b/steppers.cfg @@ -65,7 +65,7 @@ rotation_distance: 32 gear_ratio: 60:16 microsteps: 16 endstop_pin: probe:z_virtual_endstop -position_max: 155 +position_max: 140 position_min: -5 homing_speed: 8 homing_retract_dist: 0 diff --git a/tinytemp.cfg b/tinytemp.cfg index 86f3585..e929384 100644 --- a/tinytemp.cfg +++ b/tinytemp.cfg @@ -24,11 +24,17 @@ aliases: [temperature_sensor chamber] sensor_type: temperature_combined -sensor_list: temperature_sensor _bottom_chamber, temperature_sensor _top_chamber, temperature_sensor _mid_chamber +sensor_list: temperature_sensor _top_chamber, temperature_sensor _mid_chamber combination_method: mean maximum_deviation: 99999999999999 -[temperature_sensor _bottom_chamber] +[temperature_sensor chamber_full] +sensor_type: temperature_combined +sensor_list: temperature_sensor bottom_chamber, temperature_sensor _top_chamber, temperature_sensor _mid_chamber +combination_method: mean +maximum_deviation: 99999999999999 + +[temperature_sensor bottom_chamber] sensor_type: Generic 3950 sensor_pin: tinytemp:T1 pullup_resistor: 4000