Small performance improvement

This commit is contained in:
Kyle Brown 2023-01-29 18:33:35 -08:00
parent 45e4904c65
commit d728b68cc3
9 changed files with 103 additions and 63 deletions

View file

@ -112,7 +112,7 @@ gcode:
gcode:
#Edit this#
{% set X = 55 %}
{% set Y = 325 %}
{% set Y = 312 %}
{% set Z = 2 %}
###########
SAFE_RETRACT

View file

@ -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_x1 ENABLE=1
SET_STEPPER_ENABLE STEPPER=stepper_y ENABLE=1
#SET_STEPPER_ENABLE STEPPER=stepper_y1 ENABLE=1
SET_STEPPER_ENABLE STEPPER=stepper_y1 ENABLE=1
[gcode_macro TEST_Z_DOWN]
gcode:

View file

@ -1,11 +1,17 @@
[multi_pin driver_fan_pins]
pins: PD12, PD13
[temperature_sensor mcu_temp]
[temperature_sensor Octopus Pro]
sensor_type: temperature_mcu
min_temp: 10
max_temp: 100
[temperature_sensor SKR Mini V2]
sensor_type: temperature_mcu
sensor_mcu: skr
min_temp: 10
max_temp: 100
[fan]
## Print Cooling Fan - FAN0 Connector
pin: PA8

View file

@ -38,6 +38,10 @@ square_corner_velocity: 8
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_3F003E001650534E4E313420-if00
[mcu skr]
serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_33FFD8055646303527842243-if00
[heater_bed]
heater_pin: PA3
sensor_type: NTC 100K MGB18-104F39050L32

View file

@ -2,8 +2,8 @@
[bed_screws]
screw1: 12,0
screw2: 12,300
screw3: 312,300
screw2: 12,287
screw3: 312,287
screw4: 312,0
[screws_tilt_adjust]
@ -11,9 +11,9 @@ screw1: 0, 0
screw1_name: front left screw
screw2: 294, 0
screw2_name: front right screw
screw3: 294, 239
screw3: 294, 226
screw3_name: rear right screw
screw4: 0, 239
screw4: 0, 226
screw4_name: rear left screw
horizontal_move_z: 20
speed: 500
@ -32,9 +32,9 @@ samples_tolerance_retries: 3
speed: 5
lift_speed: 20
dock_position: 5,329,20
approach_position: 5,300,20
detach_position: 35,329,20
dock_position: 5,316,20
approach_position: 5,287,20
detach_position: 35,316,20
attach_speed: 30
detach_speed: 30
travel_speed: 500
@ -44,8 +44,8 @@ dock_retries: 3
allow_delayed_detach: True
[z_calibration]
nozzle_xy_position: 327.5,240
switch_xy_position: 320,224
nozzle_xy_position: 327.5,226
switch_xy_position: 320,210
bed_xy_position: 150,150
switch_offset: 0.
switch_offset: 0.43 # Lower number is farther from bed
@ -63,7 +63,7 @@ end_gcode: DETACH_PROBE
speed: 500
horizontal_move_z: 7
mesh_min: 20, 20
mesh_max: 320, 295
mesh_max: 320, 282
probe_count: 6, 6
algorithm: bicubic
fade_start: 1

View file

@ -50,7 +50,7 @@ variable_brush_start: 72
variable_brush_width: 30
## These are only used if location_bucket_rear is False. You specify a custom location in y axis for your brush - see diagram above. ##
variable_brush_front: 318
variable_brush_front: 301
variable_brush_depth: 4

View file

@ -9,7 +9,7 @@ gcode:
{action_respond_info("Sensorless home x")}
# 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_x1 CURRENT={HOME_CUR} # AWD
# Pause to ensure driver stall flag is clear
G4 P2200
# Home
@ -20,7 +20,7 @@ gcode:
G91
# 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_x1 CURRENT={RUN_CUR} # AWD
[gcode_macro SENSORLESS_HOME_Y]
gcode:
@ -33,7 +33,7 @@ gcode:
{action_respond_info("Sensorless home Y")}
# Set current for sensorless homing
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={HOME_CUR}
#SET_TMC_CURRENT STEPPER=stepper_y1 CURRENT={HOME_CUR} # AWD
SET_TMC_CURRENT STEPPER=stepper_y1 CURRENT={HOME_CUR} # AWD
# Pause to ensure driver stall flag is clear
G4 P2200
# Home
@ -44,7 +44,7 @@ gcode:
G90
# Set current during print
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={RUN_CUR}
#SET_TMC_CURRENT STEPPER=stepper_y1 CURRENT={RUN_CUR} # AWD
SET_TMC_CURRENT STEPPER=stepper_y1 CURRENT={RUN_CUR} # AWD
[homing_override]
axes: xyz
@ -56,37 +56,15 @@ gcode:
G90
G1 Z{Z} # Z lift
{% set home_all = params.X is not defined and params.Y is not defined and params.Z is not defined %}
{% if params.Y is defined or home_all %}
{% if "x" in printer.toolhead.homed_axes %}
G90
G1 x20
G91
{% else %}
SENSORLESS_HOME_X
{% endif %}
SENSORLESS_HOME_Y
{% else %}
{% if params.X is defined or home_all %}
SENSORLESS_HOME_X
{% endif %}
{% endif %}
{% if params.Z is defined or home_all %}
{action_respond_info("Doing G28 Z0")}
# You can do your logic for safe z here
G4 P2200
G90
G1 x300 y241 F{800*60}
# Belt is tight on the edge. Go slow to reach the endstop.
G1 x327.5 y240 F{30*60}
SET_GCODE_OFFSET Z=0.0 # Reset offset before homing Z
G28 Z0
G1 Z{Z}
G91
{% endif %}
SENSORLESS_HOME_X
SENSORLESS_HOME_Y
G4 P2200
G90
G1 x300 y226 F{800*60}
# Belt is tight on the edge. Go slow to reach the endstop.
G1 x327.5 y226 F{30*60}
SET_GCODE_OFFSET Z=0.0 # Reset offset before homing Z
G28 Z0
G1 Z{Z}
G91

View file

@ -16,9 +16,9 @@ max_extrude_only_accel: 1500
min_temp: 0
max_temp: 500
step_pin: PG4
dir_pin: !PC1
enable_pin: !PA0
step_pin: skr:PB3
dir_pin: !skr:PB4
enable_pin: !skr:PD2
heater_pin: PA2
sensor_type: PT1000
sensor_pin: PF4
@ -42,7 +42,11 @@ pid_Kd = 129.554
#settings for NEMA14 Stepper
[tmc2209 extruder]
uart_pin: PC7
uart_pin: skr:PC11 # SKR E
tx_pin: skr:PC10
uart_address: 3
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)

View file

@ -21,7 +21,30 @@ run_current: 2
sense_resistor: 0.110
stealthchop_threshold: 0
diag_pin: ^PG6 # Set to MCU pin connected to TMC DIAG pin
driver_SGTHRS: 20 # 255 is most sensitive value, 0 is least sensitive
driver_SGTHRS: 50 # 255 is most sensitive value, 0 is least sensitive
driver_TBL: 1
driver_TOFF: 3
driver_HSTRT: 1
driver_HEND: 3
[stepper_x1]
step_pin: PG4 # Drive 3
dir_pin: PC1
enable_pin: !PA0
endstop_pin: tmc2209_stepper_x:virtual_endstop
microsteps: 16
rotation_distance: 40
full_steps_per_rotation: 200
step_pulse_duration: 0.000001
#LDO 48mm 1.8 42STH48-2004AC - 1.4Ohm 3mH
[tmc2209 stepper_x1]
uart_pin: PC7
run_current: 2
sense_resistor: 0.110
stealthchop_threshold: 0
diag_pin: ^PG11 # Set to MCU pin connected to TMC DIAG pin
driver_SGTHRS: 70 # 255 is most sensitive value, 0 is least sensitive
driver_TBL: 1
driver_TOFF: 3
driver_HSTRT: 1
@ -34,9 +57,9 @@ enable_pin: !PG2
endstop_pin: tmc2209_stepper_y:virtual_endstop
microsteps: 32
rotation_distance: 40
position_endstop: 328
position_endstop: 315
position_min: 0
position_max: 331
position_max: 315
homing_speed: 40
full_steps_per_rotation: 200
homing_retract_dist: 0
@ -56,13 +79,36 @@ driver_TOFF: 3
driver_HSTRT: 1
driver_HEND: 3
[stepper_z]
[stepper_y1]
step_pin: PC13 # Drive5
dir_pin: !PF0
dir_pin: PF0
enable_pin: !PF1
endstop_pin: tmc2209_stepper_y:virtual_endstop
microsteps: 16
rotation_distance: 40
full_steps_per_rotation: 200
step_pulse_duration: 0.000001
#LDO 48mm 1.8 42STH48-2004AC - 1.4Ohm 3mH
[tmc2209 stepper_y1]
uart_pin: PE4
run_current: 2
sense_resistor: 0.110
stealthchop_threshold: 0
diag_pin: ^PG13 # Set to MCU pin connected to TMC DIAG pin
driver_SGTHRS: 60 # 255 is most sensitive value, 0 is least sensitive
driver_TBL: 1
driver_TOFF: 3
driver_HSTRT: 1
driver_HEND: 3
[stepper_z]
step_pin: skr:PB0 # SKR Z
dir_pin: skr:PC5
enable_pin: !skr:PB1
microsteps: 16
rotation_distance: 4
endstop_pin: PG10 # Nozzle Endstop
endstop_pin: skr:PC2 # Nozzle Endstop
position_endstop: 3.725
position_min: -1
position_max: 400
@ -75,7 +121,9 @@ step_pulse_duration: 0.000004
[tmc2209 stepper_z]
interpolate: false
uart_pin: PE4
uart_pin: skr:PC11
tx_pin: skr:PC10
uart_address: 1
run_current: 1.0
sense_resistor: 0.110
stealthchop_threshold: 0