From 9cf77f8e81f4a275126a7133f824b81db4744178 Mon Sep 17 00:00:00 2001 From: Kyle Brown Date: Wed, 8 Mar 2023 21:11:14 -0800 Subject: [PATCH] goliath --- calibration_macros.cfg | 54 +++++++++++++++++++++--------------------- fans.cfg | 4 ++++ printer.cfg | 23 +++++++++++------- purge_bucket.cfg | 2 +- sensorless.cfg | 8 +++++++ sherpa_mini.cfg | 37 ++++++++++++++++++----------- steppers.cfg | 8 +++---- 7 files changed, 82 insertions(+), 54 deletions(-) diff --git a/calibration_macros.cfg b/calibration_macros.cfg index eff3a86..8d7f27e 100644 --- a/calibration_macros.cfg +++ b/calibration_macros.cfg @@ -18,9 +18,9 @@ gcode: [gcode_macro ENABLE_XY] gcode: SET_STEPPER_ENABLE STEPPER=stepper_x ENABLE=1 - SET_STEPPER_ENABLE STEPPER=stepper_x1 ENABLE=1 SET_STEPPER_ENABLE STEPPER=stepper_y ENABLE=1 SET_STEPPER_ENABLE STEPPER=stepper_y1 ENABLE=1 + SET_STEPPER_ENABLE STEPPER=stepper_x1 ENABLE=1 [gcode_macro TEST_Z_DOWN] gcode: @@ -50,7 +50,7 @@ gcode: [gcode_macro TEST_SPEED] gcode: - # Example: TEST_SPEED SPEED=300 ACCEL=5000 ITERATIONS=10 + # Example: TEST_SPEED SPEED=300 ACCEL=5000 ITERATIONS=10 Z=10 # Speed {% set speed = params.SPEED|default(printer.configfile.settings.printer.max_velocity)|int %} # Iterations @@ -81,15 +81,15 @@ gcode: {% set y_center_min = y_center - (smallpatternsize/2) %} {% set y_center_max = y_center + (smallpatternsize/2) %} + # Home first + G28 + # Save current gcode state (absolute/relative, etc) SAVE_GCODE_STATE NAME=TEST_SPEED # Output parameters to g-code terminal { action_respond_info("TEST_SPEED: starting %d iterations at speed %d, accel %d" % (iterations, speed, accel)) } - # Home and get position for comparison later: - G28 - # Absolute positioning G90 @@ -140,9 +140,9 @@ gcode: # Restore previous gcode state (absolute/relative, etc) RESTORE_GCODE_STATE NAME=TEST_SPEED -[gcode_macro TEST_CARTESIAN_SPEED] +[gcode_macro TEST_CARDINAL_SPEED] gcode: - # Example: TEST_SPEED SPEED=300 ACCEL=5000 ITERATIONS=10 + # Example: TEST_CARDINAL_SPEED SPEED=300 ACCEL=5000 ITERATIONS=10 ZPOS=10 # Speed {% set speed = params.SPEED|default(printer.configfile.settings.printer.max_velocity)|int %} # Iterations @@ -173,14 +173,14 @@ gcode: {% set y_center_min = y_center - (smallpatternsize/2) %} {% set y_center_max = y_center + (smallpatternsize/2) %} + # Home first + G28 + # Save current gcode state (absolute/relative, etc) SAVE_GCODE_STATE NAME=TEST_SPEED # Output parameters to g-code terminal - { action_respond_info("TEST_SPEED: starting %d iterations at speed %d, accel %d" % (iterations, speed, accel)) } - - # Home and get position for comparison later: - G28 + { action_respond_info("TEST_CARDINAL_SPEED: starting %d iterations at speed %d, accel %d" % (iterations, speed, accel)) } # Absolute positioning G90 @@ -228,7 +228,7 @@ gcode: [gcode_macro TEST_DIAG_SPEED] gcode: - # Example: TEST_SPEED SPEED=300 ACCEL=5000 ITERATIONS=10 + # Example: TEST_DIAG_SPEED SPEED=300 ACCEL=5000 ITERATIONS=10 ZPOS=10 # Speed {% set speed = params.SPEED|default(printer.configfile.settings.printer.max_velocity)|int %} # Iterations @@ -259,14 +259,14 @@ gcode: {% set y_center_min = y_center - (smallpatternsize/2) %} {% set y_center_max = y_center + (smallpatternsize/2) %} + # Home first + G28 + # Save current gcode state (absolute/relative, etc) SAVE_GCODE_STATE NAME=TEST_SPEED # Output parameters to g-code terminal - { action_respond_info("TEST_SPEED: starting %d iterations at speed %d, accel %d" % (iterations, speed, accel)) } - - # Home and get position for comparison later: - G28 + { action_respond_info("TEST_DIAG_SPEED: starting %d iterations at speed %d, accel %d" % (iterations, speed, accel)) } # Absolute positioning G90 @@ -306,7 +306,7 @@ gcode: [gcode_macro TEST_X_SPEED] gcode: - # Example: TEST_SPEED SPEED=300 ACCEL=5000 ITERATIONS=10 + # Example: TEST_X_SPEED SPEED=300 ACCEL=5000 ITERATIONS=10 ZPOS=10 # Speed {% set speed = params.SPEED|default(printer.configfile.settings.printer.max_velocity)|int %} # Iterations @@ -329,14 +329,14 @@ gcode: {% set x_center = (printer.toolhead.axis_minimum.x|float + printer.toolhead.axis_maximum.x|float ) / 2 %} {% set y_center = (printer.toolhead.axis_minimum.y|float + printer.toolhead.axis_maximum.y|float ) / 2 %} + # Home first + G28 + # Save current gcode state (absolute/relative, etc) SAVE_GCODE_STATE NAME=TEST_SPEED # Output parameters to g-code terminal - { action_respond_info("TEST_SPEED: starting %d iterations at speed %d, accel %d" % (iterations, speed, accel)) } - - # Home and get position for comparison later: - G28 + { action_respond_info("TEST_X_SPEED: starting %d iterations at speed %d, accel %d" % (iterations, speed, accel)) } # Absolute positioning G90 @@ -364,9 +364,9 @@ gcode: # Restore previous gcode state (absolute/relative, etc) RESTORE_GCODE_STATE NAME=TEST_SPEED -[gcode_macro TEST_X_SPEED] +[gcode_macro TEST_Y_SPEED] gcode: - # Example: TEST_SPEED SPEED=300 ACCEL=5000 ITERATIONS=10 + # Example: TEST_Y_SPEED SPEED=300 ACCEL=5000 ITERATIONS=10 ZPOS=10 # Speed {% set speed = params.SPEED|default(printer.configfile.settings.printer.max_velocity)|int %} # Iterations @@ -389,14 +389,14 @@ gcode: {% set x_center = (printer.toolhead.axis_minimum.x|float + printer.toolhead.axis_maximum.x|float ) / 2 %} {% set y_center = (printer.toolhead.axis_minimum.y|float + printer.toolhead.axis_maximum.y|float ) / 2 %} + # Home first + G28 + # Save current gcode state (absolute/relative, etc) SAVE_GCODE_STATE NAME=TEST_SPEED # Output parameters to g-code terminal - { action_respond_info("TEST_SPEED: starting %d iterations at speed %d, accel %d" % (iterations, speed, accel)) } - - # Home and get position for comparison later: - G28 + { action_respond_info("TEST_Y_SPEED: starting %d iterations at speed %d, accel %d" % (iterations, speed, accel)) } # Absolute positioning G90 diff --git a/fans.cfg b/fans.cfg index d9d606f..4c15fee 100644 --- a/fans.cfg +++ b/fans.cfg @@ -41,3 +41,7 @@ off_below: 0.10 sensor_type: temperature_host min_temp: 10 max_temp: 100 + +#[temperature_sensor chamber] +#sensor_type: Generic 3950 +#sensor_pin: PF4 diff --git a/printer.cfg b/printer.cfg index 0ac9092..1bb8c77 100644 --- a/printer.cfg +++ b/printer.cfg @@ -1,4 +1,4 @@ -#[include pico.cfg] +# [include pico.cfg] [include basic_macros.cfg] [include timelapse.cfg] [include kiauh_macros.cfg] @@ -33,10 +33,11 @@ timeout: 1800 # change timeout to 30 minutes # https://github.com/Piezoid/klipper/blob/ae295ba64b3111b0eb296e1d15adc2ac7b2e6eae/klippy/kinematics/limited_cartesian.py kinematics: limited_corexy max_velocity: 1000 -max_accel: 15000 -max_x_accel: 50000 -max_y_accel: 15000 -max_accel_to_decel: 15000 +max_accel: 50000 +max_accel_to_decel: 50000 +max_x_accel: 45000 +max_y_accel: 16000 +scale_xy_accel: true max_z_velocity: 80 max_z_accel: 1000 square_corner_velocity: 8 @@ -67,7 +68,13 @@ retract_speed: 100 unretract_speed: 100 [input_shaper] -shaper_type_x = mzv -shaper_freq_x = 74.6 # accel=12000 # backup zv 67.0 17500 accel +# Fitted shaper 'zv' frequency = 120.4 Hz (vibrations = 1.7%, smoothing ~= 0.016) +# To avoid too much smoothing with 'zv', suggested max_accel <= 56500 mm/sec^2 +shaper_type_x = zv +shaper_freq_x = 120.4 +# Fitted shaper 'zv' frequency = 96.8 Hz (vibrations = 17.8%, smoothing ~= 0.022) +# To avoid too much smoothing with 'zv', suggested max_accel <= 36500 mm/sec^2 +# Fitted shaper 'mzv' frequency = 75.0 Hz (vibrations = 0.0%, smoothing ~= 0.038) +# To avoid too much smoothing with 'mzv', suggested max_accel <= 16600 mm/sec^2 shaper_type_y = mzv -shaper_freq_y = 74.6 # accel=16400 # backup zv 82.6 26600 accel +shaper_freq_y = 75.0 diff --git a/purge_bucket.cfg b/purge_bucket.cfg index 3d0d34f..741b760 100644 --- a/purge_bucket.cfg +++ b/purge_bucket.cfg @@ -11,7 +11,7 @@ variable_enable_purge: True # These parameters define your filament purging. The retract variable is used to retract right after purging to prevent unnecessary # oozing. Some filament are particularly oozy and may continue to ooze out of the nozzle for a second or two after retracting. The # ooze dwell variable makes allowance for this. Update as necessary. If you decided to not enable purge, you can ignore this section. -variable_purge_len: 20 ; Amount of filament, in mm, to purge. +variable_purge_len: 25 ; Amount of filament, in mm, to purge. variable_purge_spd: 300 ; Speed, in mm/min, of the purge. variable_purge_temp_min: 220 ; Minimum nozzle temperature to permit a purge. Otherwise, purge will not occur. variable_purge_ret: 0 ; Retract length, in mm, after purging to prevent slight oozing. Adjust as necessary. diff --git a/sensorless.cfg b/sensorless.cfg index 498f727..63b07bb 100644 --- a/sensorless.cfg +++ b/sensorless.cfg @@ -10,6 +10,8 @@ gcode: # Set current for sensorless homing SET_TMC_CURRENT STEPPER=stepper_x CURRENT={HOME_CUR} SET_TMC_CURRENT STEPPER=stepper_x1 CURRENT={HOME_CUR} # AWD + SET_TMC_CURRENT STEPPER=stepper_y CURRENT={HOME_CUR} + SET_TMC_CURRENT STEPPER=stepper_y1 CURRENT={HOME_CUR} # AWD # Pause to ensure driver stall flag is clear G4 P2200 # Home @@ -21,6 +23,8 @@ gcode: # Set current during print SET_TMC_CURRENT STEPPER=stepper_x CURRENT={RUN_CUR} SET_TMC_CURRENT STEPPER=stepper_x1 CURRENT={RUN_CUR} # AWD + SET_TMC_CURRENT STEPPER=stepper_y CURRENT={RUN_CUR} + SET_TMC_CURRENT STEPPER=stepper_y1 CURRENT={RUN_CUR} # AWD [gcode_macro SENSORLESS_HOME_Y] gcode: @@ -32,6 +36,8 @@ gcode: {% set RUN_CUR = driver_config.run_current %} {action_respond_info("Sensorless home Y")} # Set current for sensorless homing + SET_TMC_CURRENT STEPPER=stepper_x CURRENT={HOME_CUR} + SET_TMC_CURRENT STEPPER=stepper_x1 CURRENT={HOME_CUR} # AWD SET_TMC_CURRENT STEPPER=stepper_y CURRENT={HOME_CUR} SET_TMC_CURRENT STEPPER=stepper_y1 CURRENT={HOME_CUR} # AWD # Pause to ensure driver stall flag is clear @@ -43,6 +49,8 @@ gcode: G1 Y-10 F{20*60} G90 # Set current during print + SET_TMC_CURRENT STEPPER=stepper_x CURRENT={RUN_CUR} + SET_TMC_CURRENT STEPPER=stepper_x1 CURRENT={RUN_CUR} # AWD SET_TMC_CURRENT STEPPER=stepper_y CURRENT={RUN_CUR} SET_TMC_CURRENT STEPPER=stepper_y1 CURRENT={RUN_CUR} # AWD diff --git a/sherpa_mini.cfg b/sherpa_mini.cfg index f3f63df..f68faa3 100644 --- a/sherpa_mini.cfg +++ b/sherpa_mini.cfg @@ -6,7 +6,7 @@ microsteps: 16 gear_ratio: 50:8 #for sherpa mini 8t motor full_steps_per_rotation: 200 #1.8deg Motor -nozzle_diameter: 0.5 +nozzle_diameter: 0.8 filament_diameter: 1.750 max_extrude_only_distance: 1400.0 @@ -20,24 +20,33 @@ step_pin: skr:PB3 dir_pin: !skr:PB4 enable_pin: !skr:PD2 heater_pin: PA2 -sensor_type: PT1000 +sensor_type: Generic 3950 sensor_pin: PF4 +#sensor_type: MAX31865 +#sensor_pin: PF8 +#spi_software_sclk_pin: PA5 +#spi_software_mosi_pin: PA7 +#spi_software_miso_pin: PA6 +#rtd_nominal_r: 100 +#rtd_num_of_wires: 2 +#rtd_reference_r: 430 control: pid # Copper -pid_Kp = 19.742 -pid_Ki = 0.752 -pid_Kd = 129.554 +#pid_Kp = 19.742 +#pid_Ki = 0.752 +#pid_Kd = 129.554 -# Dragon HF -# pid_Kp=19.814 -# pid_Ki=1.083 -# pid_Kd=90.649 +# Goliath -# Alu -# pid_Kp = 21.956 -# pid_Ki = 1.1031 -# pid_Kd = 116.914 +pid_Kp = 21.225 +pid_Ki = 1.335 +pid_Kd = 84.369 + +# Bad PT1000 +#pid_Kp = 16.313 +#pid_Ki = 1.394 +#pid_Kd = 47.75 #settings for NEMA14 Stepper @@ -50,4 +59,4 @@ interpolate: False #Run current is listed in RMS #run_current: 0.30 #min current, equivalent to 0.42A peak (Peak = RMS/0.707) #run_current: 0.35 #max current, equivalent to 0.49A peak (Peak = RMS/0.707) -run_current: 0.45 +run_current: 0.6 diff --git a/steppers.cfg b/steppers.cfg index b6ade84..5b9dfe6 100644 --- a/steppers.cfg +++ b/steppers.cfg @@ -21,7 +21,7 @@ run_current: 2 sense_resistor: 0.110 stealthchop_threshold: 0 diag_pin: ^PG6 # Set to MCU pin connected to TMC DIAG pin -driver_SGTHRS: 50 # 255 is most sensitive value, 0 is least sensitive +driver_SGTHRS: 60 # 255 is most sensitive value, 0 is least sensitive driver_TBL: 1 driver_TOFF: 3 driver_HSTRT: 1 @@ -44,7 +44,7 @@ run_current: 2 sense_resistor: 0.110 stealthchop_threshold: 0 diag_pin: ^PG11 # Set to MCU pin connected to TMC DIAG pin -driver_SGTHRS: 50 # 255 is most sensitive value, 0 is least sensitive +driver_SGTHRS: 60 # 255 is most sensitive value, 0 is least sensitive driver_TBL: 1 driver_TOFF: 3 driver_HSTRT: 1 @@ -73,7 +73,7 @@ run_current: 2 sense_resistor: 0.110 stealthchop_threshold: 0 diag_pin: ^PG12 # Set to MCU pin connected to TMC DIAG pin -driver_SGTHRS: 40 # 255 is most sensitive value, 0 is least sensitive +driver_SGTHRS: 70 # 255 is most sensitive value, 0 is least sensitive driver_TBL: 1 driver_TOFF: 3 driver_HSTRT: 1 @@ -96,7 +96,7 @@ run_current: 2 sense_resistor: 0.110 stealthchop_threshold: 0 diag_pin: ^PG13 # Set to MCU pin connected to TMC DIAG pin -driver_SGTHRS: 40 # 255 is most sensitive value, 0 is least sensitive +driver_SGTHRS: 70 # 255 is most sensitive value, 0 is least sensitive driver_TBL: 1 driver_TOFF: 3 driver_HSTRT: 1