From b18edb8f2df63fc55eb6a9d1934e0392325fd2eb Mon Sep 17 00:00:00 2001 From: Kyle Brown Date: Tue, 16 May 2023 11:23:38 -0700 Subject: [PATCH] refinement --- basic_macros.cfg | 4 +++- calibration_macros.cfg | 16 +++++++++++++++ printer.cfg | 44 +++--------------------------------------- tri_zero.cfg | 19 ++++++++++-------- 4 files changed, 33 insertions(+), 50 deletions(-) diff --git a/basic_macros.cfg b/basic_macros.cfg index d2006b6..6d0b4f3 100644 --- a/basic_macros.cfg +++ b/basic_macros.cfg @@ -10,9 +10,11 @@ gcode: M140 S{bedTemp} ; set bed temp to warm while starting up G28 ; home after setting temps #G1 Z20 F3000 ; move nozzle away from bed - G90 ; absolute positioning M117 Waiting for temperatures... TEMPERATURE_WAIT SENSOR=heater_bed MINIMUM={bedTemp} MAXIMUM={bedTemp+1} ; Wait for bed temp (within 1 degree) + Z_TILT_ADJUST + G28 Z + G90 ; absolute positioning BED_MESH_CALIBRATE G1 X0 Y0 Z0.2 F20000 ; park nozzle on bed to prevent ooze M109 S{hotendTemp} ; Set extruder to printing temperature diff --git a/calibration_macros.cfg b/calibration_macros.cfg index 4e021f5..0d01556 100644 --- a/calibration_macros.cfg +++ b/calibration_macros.cfg @@ -39,6 +39,22 @@ gcode: gcode: PID_CALIBRATE HEATER=heater_bed TARGET=100 +[gcode_macro DISABLE_Z] +gcode: + SET_STEPPER_ENABLE STEPPER=stepper_z ENABLE=0 + SET_STEPPER_ENABLE STEPPER=stepper_z1 ENABLE=0 + SET_STEPPER_ENABLE STEPPER=stepper_z2 ENABLE=0 + +[gcode_macro ENABLE_XY] +gcode: + SET_STEPPER_ENABLE STEPPER=stepper_x ENABLE=1 + SET_STEPPER_ENABLE STEPPER=stepper_y ENABLE=1 + +[gcode_macro DISABLE_XY] +gcode: + SET_STEPPER_ENABLE STEPPER=stepper_x ENABLE=0 + SET_STEPPER_ENABLE STEPPER=stepper_y ENABLE=0 + [gcode_macro TEST_SPEED] gcode: # Example: TEST_SPEED SPEED=300 ACCEL=5000 ITERATIONS=10 diff --git a/printer.cfg b/printer.cfg index 2fa28fd..7c1b588 100644 --- a/printer.cfg +++ b/printer.cfg @@ -112,31 +112,6 @@ stealthchop_threshold: 0 driver_SGTHRS: 100 # 255 is most sensitive value, 0 is least sensitive diag_pin: ^PC1 -##################################################################### -# Z Stepper Settings -##################################################################### - -#[stepper_z] -#step_pin: PB0 -#dir_pin: !PC5 -#enable_pin: !PB1 -#rotation_distance: 8 -#microsteps: 32 -#endstop_pin: probe:z_virtual_endstop -#position_max: 120 -#position_min: -15 -#homing_speed: 10 -#second_homing_speed: 3.0 -#homing_retract_dist: 8.0 - -#[tmc2209 stepper_z] -#uart_pin: PC11 -#tx_pin: PC10 -#uart_address: 1 -#interpolate: False -#run_current: 0.3 -#sense_resistor: 0.110 -#stealthchop_threshold: 999999 ##################################################################### # Extruder @@ -212,27 +187,14 @@ off_below: 0.13 cycle_time: 0.010 -##################################################################### -# Homing and Gantry Adjustment Routines -##################################################################### - [idle_timeout] timeout: 600 -[bed_screws] -screw1: 55,9 -screw1_name: front screw -screw2: 9,108 -screw2_name: back left -screw3: 108,108 -screw3_name: back right - [dockable_probe] pin: ^PC2 -z_offset: 0.1 sample_retract_dist: 4.0 samples: 3 -dock_position: 0, 115.5, 10 +dock_position: 0, 115.7, 10 approach_position: 24, 115.5 detach_position: 0, 24 check_open_attach: True @@ -243,9 +205,9 @@ travel_speed: 50 post_attach_gcode: G0 X24 Y115.5 -x_offset: -17.4 +x_offset: -16 y_offset: 17 -z_offset: 9.515 +z_offset: 10.248 [bed_mesh] speed: 120 diff --git a/tri_zero.cfg b/tri_zero.cfg index 1204a32..c47a497 100644 --- a/tri_zero.cfg +++ b/tri_zero.cfg @@ -19,7 +19,7 @@ uart_pin: skrPico:gpio9 tx_pin: skrPico:gpio8 uart_address: 1 interpolate: False -run_current: 0.8 +run_current: 1 sense_resistor: 0.110 stealthchop_threshold: 0 # Set to 999999 to turn stealthchop on, and 0 to use spreadcycle @@ -37,7 +37,7 @@ uart_pin: skrPico:gpio9 tx_pin: skrPico:gpio8 uart_address: 2 interpolate: False -run_current: 0.8 +run_current: 1 sense_resistor: 0.110 stealthchop_threshold: 0 # Set to 999999 to turn stealthchop on, and 0 to use spreadcycle @@ -59,20 +59,23 @@ uart_pin: skrPico:gpio9 tx_pin: skrPico:gpio8 uart_address: 0 interpolate: False -run_current: 0.8 +run_current: 1 sense_resistor: 0.110 stealthchop_threshold: 0 # Set to 999999 to turn stealthchop on, and 0 to use spreadcycle [z_tilt] z_positions: - -50, 0 - 60, 140 - 170, 0 + #-50, 0 + #60, 140 + #170, 0 + -47.5, 15 + 60, 141 + 167.5, 15 points: - 25, 0 + 30, 0 80, 75 108, 0 speed: 200 horizontal_move_z: 15 retries: 5 -retry_tolerance: 0.0075 +retry_tolerance: 0.02