feat: Update with metal

This commit is contained in:
Kyle Brown 2024-07-16 01:47:14 +00:00
parent 2bda2aa5be
commit 8acfab13b6
8 changed files with 87 additions and 46 deletions

View file

@ -1,6 +1,6 @@
# Below you can include specific configuration files depending on what you want KAMP to do: # 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/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/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. [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. 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 # 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_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_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_detach_macro: 'Dock_Probe' # The macro that is used to store the probe. # Euclid Probe: 'Deploy_Probe' | 'Stow_Probe'
# Legacy Gcode: 'M401' | 'M402' # Legacy Gcode: 'M401' | 'M402'
# The following variables are for adjusting adaptive purge settings for KAMP. # The following variables are for adjusting adaptive purge settings for KAMP.

View file

@ -5,7 +5,9 @@ gcode:
{% set hotendTemp = params.HOTEND|int %} {% set hotendTemp = params.HOTEND|int %}
{% set bedTemp = params.BED|int %} {% set bedTemp = params.BED|int %}
{% set chamberTemp = params.CHAMBER|default(0)|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 BED_MESH_CLEAR
SET_GCODE_OFFSET Z=0 SET_GCODE_OFFSET Z=0
SET_HEATER_TEMPERATURE HEATER=extruder TARGET=150 # Set extruder chamber warm temp 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) TEMPERATURE_WAIT SENSOR=heater_bed MINIMUM={bedTemp} MAXIMUM={bedTemp+1} # Wait for bed temp (within 1 degree)
{% if chamberTemp != 0 %} # If chamber temp set {% if chamberTemp != 0 %} # If chamber temp set
SET_CHAMBER_TEMP CHAMBER={chamberTemp} # Set target chamber temp 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 %} {% endif %}
G4 P{60*100} # Let temps settle for 60s G4 P{60*100} # Let temps settle for 60s
FAST_QGL # QGL after soak FAST_QGL # QGL after soak
#BED_MESH_CALIBRATE BED_MESH_CALIBRATE
G90 # Absolute positioning G90 # Absolute positioning
SMART_PARK SMART_PARK
M109 S{hotendTemp} # Set extruder to printing temperature 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 # 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 G1 X{90} F{500*60} # Avoid brush
VORON_PURGE # Purge VORON_PURGE # Purge
M117 Printing... M117 Printing...
@ -38,9 +41,10 @@ gcode:
{% set z_pcf_height = 5 %} # Height from the bed while warming {% set z_pcf_height = 5 %} # Height from the bed while warming
{% set fan_speed = 100 %} # Fan speed in percent {% set fan_speed = 100 %} # Fan speed in percent
{% set bedTemp = params.BED|default(110)|int %}
{% set chamberTemp = params.TEMPERATURE|default(0)|int %} {% set chamberTemp = params.TEMPERATURE|default(0)|int %}
{% if printer["temperature_sensor chamber"].temperature < chamberTemp %} {% 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. # Only move and turn on fan if chamber is not to temp.
G90 # Absolute positioning G90 # Absolute positioning
# park above bed center # park above bed center
@ -49,12 +53,14 @@ gcode:
M117 Waiting for chamber temperature {chamberTemp}c... M117 Waiting for chamber temperature {chamberTemp}c...
TEMPERATURE_WAIT SENSOR="temperature_sensor chamber" MINIMUM={chamberTemp} # Wait for chamber temp TEMPERATURE_WAIT SENSOR="temperature_sensor chamber" MINIMUM={chamberTemp} # Wait for chamber temp
M106 S0 # Disable part cooling fan after soak M106 S0 # Disable part cooling fan after soak
G4 {20*1000} # Wait for bed to recover temp
{% endif %} {% endif %}
M117 Chamber at temp M117 Chamber at temp
[gcode_macro PARK] [gcode_macro PARK]
gcode: gcode:
GO_TO_BUCKET SMART_PARK
#GO_TO_BUCKET
[gcode_macro GO_TO_BUCKET] [gcode_macro GO_TO_BUCKET]
gcode: gcode:
@ -113,18 +119,21 @@ gcode:
M107 ; turn off fan M107 ; turn off fan
BED_MESH_CLEAR BED_MESH_CLEAR
GO_TO_BUCKET #GO_TO_BUCKET
RESTORE_GCODE_STATE NAME=STATE_PRINT_END 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] [gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT rename_existing: BASE_CANCEL_PRINT
gcode: gcode:
M106 S0 #M106 S0
TURN_OFF_HEATERS #TURN_OFF_HEATERS
CLEAR_PAUSE CLEAR_PAUSE
SDCARD_RESET_FILE SDCARD_RESET_FILE
BASE_CANCEL_PRINT #BASE_CANCEL_PRINT
BED_MESH_CLEAR #BED_MESH_CLEAR
PRINT_END
[gcode_macro PAUSE] [gcode_macro PAUSE]
rename_existing: BASE_PAUSE rename_existing: BASE_PAUSE
@ -137,7 +146,8 @@ gcode:
G91 G91
SAFE_RETRACT SAFE_RETRACT
G1 Z{Z} G1 Z{Z}
GO_TO_BUCKET SMART_PARK
#GO_TO_BUCKET
G91 G91
[gcode_macro RESUME] [gcode_macro RESUME]
@ -158,10 +168,11 @@ gcode:
# Home first if needed # Home first if needed
{% if printer.toolhead.homed_axes != "xyz" %} {% if printer.toolhead.homed_axes != "xyz" %}
G28 METHOD=PROXIMITY G28 METHOD=PROXIMITY
QUAD_GANTRY_LEVEL horizontal_move_z=7 retry_tolerance=1 PROBE_METHOD=PROXIMITY
{% endif %} {% 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 QUAD_GANTRY_LEVEL horizontal_move_z={z_offset} PROBE_METHOD=PROXIMITY
G28 Z G28 Z
BEACON_AUTO_CALIBRATE
[gcode_macro SAFE_RETRACT] [gcode_macro SAFE_RETRACT]
gcode: gcode:
@ -182,9 +193,9 @@ gcode:
M82 # Set extruder to absolute mode M82 # Set extruder to absolute mode
G92 E0 G92 E0
{% if printer.extruder.can_extrude|lower != 'true' %} # Checking for minimum extrusion temperature {% 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) # 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! M118 Hotend heating!
M109 S235 T0 # Set temperature and wait M109 S235 T0 # Set temperature and wait
{% endif %} {% endif %}
G1 E10 F{5*60} # Extrude a little to soften tip G1 E10 F{5*60} # Extrude a little to soften tip
G0 E-5 F{60*60} # Extract filament to cold end G0 E-5 F{60*60} # Extract filament to cold end

View file

@ -3,7 +3,7 @@
[beacon] [beacon]
serial: /dev/serial/by-id/usb-Beacon_Beacon_RevD_A7B668494E4B333448202020FF0A0937-if00 serial: /dev/serial/by-id/usb-Beacon_Beacon_RevD_A7B668494E4B333448202020FF0A0937-if00
x_offset: 0 # update with offset from nozzle on your machine 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_main_direction: x
mesh_runs: 2 mesh_runs: 2

View file

@ -2,8 +2,9 @@
[gcode_macro _BEDFANVARS] [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_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_max: 1.0 # Fan speed before close to reached
variable_mid: 0.6 # Fan speed while bed is heating 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_slow: 0.2 # Fan speed while bed is heating
variable_max_temp: 65 # Temp fans will turn off variable_max_temp: 65 # Temp fans will turn off
variable_target_temp: 60 # Temp fans will turn back to slow speed variable_target_temp: 60 # Temp fans will turn back to slow speed
@ -45,6 +46,13 @@ gcode:
SET_FAN_SPEED FAN=BedFans SPEED={FAST} 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_macro BEDFANSOFF]
gcode: gcode:
SET_FAN_SPEED FAN=BedFans SPEED=0 SET_FAN_SPEED FAN=BedFans SPEED=0
@ -157,6 +165,10 @@ gcode:
# If chamber is almost at target temp, mid fans # If chamber is almost at target temp, mid fans
BEDFANSMID BEDFANSMID
UPDATE_DELAYED_GCODE ID=bedfanloop DURATION=5 # If temp not reached yet: loop again 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 %} {% else %}
# If chamber is still under max, fast fans # If chamber is still under max, fast fans
BEDFANSFAST BEDFANSFAST

View file

@ -18,15 +18,15 @@ kick_start_time: 0.5
heater: extruder heater: extruder
heater_temp: 50.0 heater_temp: 50.0
## If you are experiencing back flow, you can reduce fan_speed ## If you are experiencing back flow, you can reduce fan_speed
fan_speed: 0.8 fan_speed: 1
[controller_fan mcu] [controller_fan mcu]
## Controller Fan - FAN4 ## Controller Fan - FAN4
pin: PE4 pin: PE4
max_power: 0.5 max_power: 0.3
kick_start_time: 0.5 kick_start_time: 0.5
stepper: stepper_x stepper: stepper_x
fan_speed: 0.6 fan_speed: 1
[temperature_sensor CB1] [temperature_sensor CB1]
sensor_type: temperature_host sensor_type: temperature_host

View file

@ -21,18 +21,18 @@ minimum_cruise_ratio: 0
#max_accel_to_decel: 50000 #max_accel_to_decel: 50000
max_z_velocity: 50 max_z_velocity: 50
max_z_accel: 500 max_z_accel: 500
square_corner_velocity: 8 square_corner_velocity: 15
[firmware_retraction] [firmware_retraction]
retract_length: 0.4 retract_length: 0.4
retract_speed: 30 retract_speed: 50
unretract_speed: 30 unretract_speed: 50
[virtual_sdcard] [virtual_sdcard]
path: ~/printer_data/gcodes path: ~/printer_data/gcodes
[gcode_arcs] [gcode_arcs]
resolution: 0.1 resolution: 0.15
[heater_bed] [heater_bed]
heater_pin: PE1 heater_pin: PE1
@ -59,10 +59,10 @@ gantry_corners:
-60.2,-10.4 -60.2,-10.4
244.1,234.5 244.1,234.5
points: points:
13,5 15,28
13,146 15,146
150,146 150,146
150,5 150,28
speed: 600 speed: 600
horizontal_move_z: 10 horizontal_move_z: 10
@ -72,7 +72,7 @@ max_adjust: 10
[bed_mesh] [bed_mesh]
speed: 600 speed: 600
horizontal_move_z: 0 horizontal_move_z: 10
mesh_min: 15,28 mesh_min: 15,28
mesh_max: 150,146 mesh_max: 150,146
zero_reference_position: 90, 90 zero_reference_position: 90, 90
@ -80,7 +80,14 @@ probe_count: 32,16
#mesh_pps: 2,2 #mesh_pps: 2,2
algorithm: bicubic algorithm: bicubic
#bicubic_tension: 0.2 #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 steppers.cfg]
[include fans.cfg] [include fans.cfg]
@ -111,15 +118,15 @@ shaper_freq_y = 64.0
#*# #*#
#*# [beacon model default] #*# [beacon model default]
#*# model_coef = 1.6100259673885389, #*# model_coef = 1.6100259673885389,
#*# 1.9376348663935683, #*# 1.9376348663935683,
#*# 0.7395871386879043, #*# 0.7395871386879043,
#*# 0.29226082700302425, #*# 0.29226082700302425,
#*# 0.2601348070014482, #*# 0.2601348070014482,
#*# 0.319091274729962, #*# 0.319091274729962,
#*# -0.1711431052020036, #*# -0.1711431052020036,
#*# -0.30633191875220134, #*# -0.30633191875220134,
#*# 0.1628838399809095, #*# 0.1628838399809095,
#*# 0.1606397177930352 #*# 0.1606397177930352
#*# model_domain = 3.2802121215684144e-07,3.352464164883853e-07 #*# model_domain = 3.2802121215684144e-07,3.352464164883853e-07
#*# model_range = 0.200000,5.000000 #*# model_range = 0.200000,5.000000
#*# model_temp = 22.320787 #*# model_temp = 22.320787
@ -269,3 +276,8 @@ shaper_freq_y = 64.0
#*# max_x = 147.691 #*# max_x = 147.691
#*# min_y = 43.8621 #*# min_y = 43.8621
#*# max_y = 136.138 #*# 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

View file

@ -65,7 +65,7 @@ rotation_distance: 32
gear_ratio: 60:16 gear_ratio: 60:16
microsteps: 16 microsteps: 16
endstop_pin: probe:z_virtual_endstop endstop_pin: probe:z_virtual_endstop
position_max: 155 position_max: 140
position_min: -5 position_min: -5
homing_speed: 8 homing_speed: 8
homing_retract_dist: 0 homing_retract_dist: 0

View file

@ -24,11 +24,17 @@ aliases:
[temperature_sensor chamber] [temperature_sensor chamber]
sensor_type: temperature_combined 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 combination_method: mean
maximum_deviation: 99999999999999 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_type: Generic 3950
sensor_pin: tinytemp:T1 sensor_pin: tinytemp:T1
pullup_resistor: 4000 pullup_resistor: 4000