48 Commits

Author SHA1 Message Date
Bassam Husain
7e13084f03 Added TMC2209 settings from klipper.org reference. 2023-04-19 02:01:15 -04:00
Bassam Husain
2e5764f295 Adjusted print_start start x, y positions conditionally. 2023-04-18 10:39:22 -04:00
Bassam Husain
7e5aeb6654 Print_start adjusted. 2023-04-17 02:13:19 -04:00
Bassam Husain
f5d3499da7 Getting safe_z_home info in print_start. 2023-04-17 01:02:20 -04:00
Bassam Husain
2c8a4e5aa0 Print_start improvements. 2023-04-17 00:55:51 -04:00
Bassam Husain
b8d246762f Added print_start heating. 2023-04-14 07:39:46 -04:00
Bassam Husain
9fc09eef43 Added more steps to heating in print_start. 2023-04-13 19:48:11 -04:00
Bassam Husain
02eb713930 Added more steps to heating in print_start. 2023-04-13 18:06:36 -04:00
Bassam Husain
f0729bfc2e New z_offset. 2023-04-11 15:54:19 -04:00
Bassam Husain
9352cbc3d0 New z_offset. 2023-04-09 15:21:18 -04:00
Bassam Husain
0ce30e2d23 Manual mesh edit; center; b11. 2023-04-09 12:06:06 -04:00
Bassam Husain
bc612db077 Manual bed mesh edit b10. 2023-04-09 10:50:23 -04:00
Bassam Husain
ef774efde3 Manual bed mesh edit b9. 2023-04-09 10:17:54 -04:00
Bassam Husain
44a1db591b Set microsteps to 128; MCU can't handle generate those microsteps in all conditions. 2023-04-08 21:21:38 -04:00
Bassam Husain
d53a6d822a Adjusted PRINT_START: travel speeds. 2023-04-06 09:31:15 -04:00
Bassam Husain
3f06eebe42 Adjusted PRINT_START temperature heating sequence. 2023-04-06 09:16:18 -04:00
Bassam Husain
85b2ca15e8 Set microsteps to 256. 2023-04-06 08:28:35 -04:00
Bassam Husain
857a8fdd3b New shaper x. 2023-04-03 05:26:46 -04:00
Bassam Husain
e2ec5b8d49 Added image to readme in personal branch. 2023-04-02 22:56:54 -04:00
Bassam Husain
f9832b60c3 Adjusted print_start to start heating first, then home x and y. 2023-04-02 20:38:14 -04:00
Bassam Husain
3b59b534c9 Adjust max accel and velocity. 2023-04-02 20:11:15 -04:00
Bassam Husain
1805a999b1 Adjusted start position for purge_line. 2023-04-02 18:47:41 -04:00
Bassam Husain
a19df40bed Adjusted stepper_x.run_current: 0.900. 2023-03-31 19:31:45 -04:00
Bassam Husain
57f4aa303f Merge branch 'temp-ms-good-mesh-edited' into personal 2023-03-30 08:27:31 -04:00
Bassam Husain
2ad0456132 Adjusted mesh manually. Increase currents x and y. 2023-03-30 07:55:38 -04:00
Bassam Husain
64825fda41 New edited mesh, mostly good. New z_offset. 2023-03-30 07:39:40 -04:00
Bassam Husain
5ba208b674 Adjusted mesh manually. 2023-03-30 05:51:42 -04:00
Bassam Husain
baa31179a3 Adjusted mesh manually. 2023-03-29 20:08:11 -04:00
Bassam Husain
6dafba0ab8 Adjusted mesh manually. 2023-03-29 02:04:09 -04:00
Bassam Husain
837f6d1e19 Adjusted mesh manually. 2023-03-29 02:00:38 -04:00
Bassam Husain
efddacb0cb Merge branch 'personal' into temp-ms-good-mesh-edited 2023-03-29 01:23:20 -04:00
Bassam Husain
40c32cab69 Adjusted readme for personal branch. 2023-03-27 23:27:52 -04:00
Bassam Husain
ad78f3f759 Merge branch 'purge' into personal 2023-03-27 17:02:55 -04:00
Bassam Husain
d227fcb58f Re-added temperature_wait. 2023-03-27 16:57:42 -04:00
Bassam Husain
d08bbb7f23 Adjust purge_line. 2023-03-27 16:50:43 -04:00
Bassam Husain
c462eb819c Adjust purge_line. 2023-03-26 15:04:35 -04:00
Bassam Husain
4528151bc1 Adjusted print_end to fix speed calculation error. 2023-03-26 14:35:04 -04:00
Bassam Husain
aff79ff8de Merge remote-tracking branch 'origin/temp-ms' into personal 2023-03-26 14:24:43 -04:00
Bassam Husain
f12e2f3382 Adjusted print_end to use speeds pulled from config. 2023-03-26 14:16:24 -04:00
Bassam Husain
382b4c4159 New edited mesh, mostly good. 2023-03-26 01:57:41 -04:00
Bassam Husain
dd71ed1320 Removed stealthchop_threshold. 2023-03-26 01:50:55 -04:00
Bassam Husain
e469e05a91 New mesh and z_offset. 2023-03-25 21:47:41 -04:00
Bassam Husain
3c73cf3461 Removed temperature_wait. Increased microsteps to 128. 2023-03-24 03:12:40 -04:00
Bassam Husain
104c9fca75 Increased square_corner_velocity to 8. 2023-03-23 02:40:49 -04:00
Bassam Husain
5fcb29322d Adjusted z_offset; too much squish. 2023-03-20 14:11:32 -04:00
Bassam Husain
f4ce4165d5 Added beeping on colour/filament change. 2023-03-20 01:02:56 -04:00
Bassam Husain
04fb184c86 New input shaper x after 5015 fan. 2023-03-14 23:21:09 -04:00
Bassam Husain
2303b4422a New pid extruder and bed. 2023-03-14 22:28:57 -04:00
4 changed files with 177 additions and 52 deletions

View File

@@ -2,4 +2,8 @@
## This branch contains my personal settings.
## Please refer to the [master](https://github.com/bassamanator/Sovol-SV06-firmware/tree/master) branch to download the recommended Klipper configuration.
## Please refer to the [master](https://github.com/bassamanator/Sovol-SV06-firmware/tree/master) branch to download the recommended Klipper configuration for the SV06.
## For all other printers running Klipper, please refer to the [any-printer](https://github.com/bassamanator/Sovol-SV06-firmware/tree/any-printer) branch to download the OSS Klipper configuration.
<img src="./images/octahedroflake.jpg" />

View File

@@ -22,7 +22,7 @@ gcode:
[gcode_macro _globals]
variable_filament_sensor_enabled: 1 # NOTE Enable(1) or disable(0) the filament sensor, if one is connected
variable_beeping_enabled: 1 # NOTE Enable(1) or disable(0) beeping everywhere except during gantry calibration
variable_pre_purge_prime_length: 1.4
variable_pre_purge_prime_length: 1.25
gcode:
SET_GCODE_VARIABLE MACRO=_globals VARIABLE=pre_purge_prime_length VALUE={ variable_pre_purge_prime_length }
SET_GCODE_VARIABLE MACRO=_globals VARIABLE=filament_sensor_enabled VALUE={ variable_filament_sensor_enabled }
@@ -75,17 +75,34 @@ gcode:
{% endif %}
[gcode_macro PURGE_LINE]
# https://github.com/JoeCat1207/V0.1-Purge-line-SuperSlicer/blob/main/Purgeline.txt
# https://github.com/VoronDesign/Voron-Switchwire/blob/200cdae033c59ef81f67c4235469da7ca66d53a1/Firmware/skr_mini_e3_v2_config.cfg
gcode:
{% set PRE_PURGE_PRIME_LENGTH=printer["gcode_macro _globals"].pre_purge_prime_length|default(1.40)|float %}
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
G0 Y0 X0 F4000 ; go to tongue of print bed
G1 Z0.4 F500.0 ; move bed to nozzle
# Get Boundaries
{% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
{% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
{% set max_z = printer.configfile.config["stepper_z"]["position_max"]|float %}
{% set extrudeAmount = 26.6 %}
{% set movementLength = 100.0 %}
{% set movementSpeed = 15 * 60 %}
{% set xStart = 0.5 %}
{% set yStart = 0.5 %}
# Set safe speeds
{% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %}
{% set maxVelocityAdjusted = (0.95 * maxVelocity * 60)|int %}
G92 E0.0 ; reset extruder
G90 ; Absolute positioning
G0 X{xStart} Y{yStart} F{maxVelocityAdjusted} ; move to purge position
G1 Z0.4 F500.0 ; move to purge height
M83 ; Relative extrusion mode
G1 E{PRE_PURGE_PRIME_LENGTH} F500 ; pre-purge prime LENGTH SHOULD MATCH YOUR PRINT_END RETRACT
G1 Y140 E35.0 F1200.0 ; intro line 1
G1 X{xStart + movementLength} E{extrudeAmount} F{movementSpeed} ; intro line 1
#G1 E-.5 F2100 # Retract
G92 E0.0 ; reset extruder
M82 ; Absolute extrusion mode
G1 Z5.0 ; move nozzle to prevent scratch
[gcode_macro CANCEL_PRINT]
@@ -104,32 +121,59 @@ gcode:
{% set hotendtemp = params.HOTEND|int %}
{% set chambertemp = params.CHAMBER|default(0)|int %}
{% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %}
{% set maxVelocityAdjusted = (0.90 * maxVelocity * 60)|int %}
{% if printer.configfile.settings.safe_z_home %}
{% set startX = printer.configfile.settings.safe_z_home.home_xy_position[0]|float %}
{% set startY = printer.configfile.settings.safe_z_home.home_xy_position[1]|float %}
{% else %}
{% set startX = 0 %}
{% set startY = 0 %}
{% endif %}
{% set bedtempAlmost = (bedtemp - 2)|int %}
{% set hotendtempStepOne = 150|int %}
{% set hotendtempStepTwo = 170|int %}
BED_MESH_PROFILE LOAD=default ; NOTE if not using a mesh, comment out this line
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
G90 ; absolute positioning
M140 S{bedtempAlmost} ; set & don't wait for bed temp
M104 S{hotendtempStepOne} ; set & don't wait for hotend temp
G28 X Y
# <insert your routines here>
M140 S{bedtemp} ; set & don't wait for bed temp
M104 S{hotendtemp} ; set & don't wait for hotend temp
G1 X{startX} Y{startY} F{maxVelocityAdjusted}
M190 S{bedtempAlmost} ; set & wait for bed temp
M104 S{hotendtempStepTwo} ; set & don't wait for hotend temp
M190 S{bedtemp} ; set & wait for bed temp
# TEMPERATURE_WAIT SENSOR="temperature_sensor chamber" MINIMUM={chambertemp} ; wait for chamber temp
# <insert your routines here>
M109 S{hotendtemp} ; set & wait for hotend temp
# <insert your routines here>
M104 S{hotendtemp} ; set & don't wait for hotend temp
G28 Z ; final z homing
BED_MESH_PROFILE LOAD=default
G1 X0 Y0 F{maxVelocityAdjusted}
M109 S{hotendtemp} ; set & wait for hotend temp
G1 Z20 F3000 ; move nozzle away from bed
[gcode_macro PRINT_END]
gcode:
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=0
CONDITIONAL_BEEP I=2 DUR=30 FREQ=8500 ; NOTE Comment out this line to stop the beeps at the end of a print
CONDITIONAL_BEEP I=2 DUR=30 FREQ=8500
{% set PRE_PURGE_PRIME_LENGTH=printer["gcode_macro _globals"].pre_purge_prime_length|default(1.40)|float %}
M400 ; wait for buffer to clear
G92 E0 ; zero the extruder
G1 E-{PRE_PURGE_PRIME_LENGTH} F400 ; retract filament
G91 ; relative positioning
# Set safe speeds
{% set zVelocity = printer.configfile.settings.printer.max_z_velocity|default(15)|int %}
{% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %}
{% set zVelocityAdjusted = (0.95 * zVelocity * 60)|int %}
{% set maxVelocityAdjusted = (0.95 * maxVelocity * 60)|int %}
# Get Boundaries
{% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
{% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
@@ -155,8 +199,8 @@ gcode:
{% set z_safe = max_z - printer.toolhead.position.z %}
{% endif %}
G0 Z{z_safe} F2000 ; move nozzle up
G0 X{x_safe} Y{y_safe} F9000 ; move nozzle to remove stringing
G0 Z{z_safe} F{zVelocityAdjusted} ; move nozzle up
G0 X{x_safe} Y{y_safe} F{maxVelocityAdjusted} ; move nozzle to remove stringing
TURN_OFF_HEATERS
M107 ; turn off fan
G90 ; absolute positioning
@@ -178,6 +222,9 @@ gcode:
[gcode_macro M600]
gcode:
CONDITIONAL_BEEP i=1 dur=300
CONDITIONAL_BEEP i=1 dur=100
CONDITIONAL_BEEP i=1 dur=100
PAUSE ; Pause
[gcode_macro PAUSE]

BIN
images/octahedroflake.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 KiB

View File

@@ -20,10 +20,11 @@ restart_method: command
[printer]
kinematics: cartesian
max_velocity: 250
max_accel: 3000
max_velocity: 275
max_accel: 3500
max_z_velocity: 15
max_z_accel: 45
square_corner_velocity: 8.0
#####################################################################
# X/Y/Z Stepper Settings
@@ -33,7 +34,7 @@ max_z_accel: 45
step_pin: PC2
dir_pin: !PB9
enable_pin: !PC3
microsteps: 64
microsteps: 128
rotation_distance: 40
endstop_pin: tmc2209_stepper_x:virtual_endstop
position_endstop: 0
@@ -43,19 +44,32 @@ homing_retract_dist: 0
[tmc2209 stepper_x]
uart_pin: PC1
run_current: 0.860
run_current: 0.900
stealthchop_threshold: 0
interpolate: False
sense_resistor: 0.150
sense_resistor: 0.110 # 0.150
uart_address: 3
driver_SGTHRS: 81
diag_pin: PA5
driver_IHOLDDELAY: 8 # don't change
driver_TPOWERDOWN: 20 # don't change
driver_TBL: 2 # Retrieved from DUMP_TMC, correct me if i'm wrong
driver_TOFF: 3 # default with TMC2209, I think klipper throws error if another value is set.
driver_HEND: 0 # Retrieved from the sheet
driver_HSTRT: 5 # Retrieved from the sheet
driver_PWM_AUTOGRAD: False # StealthChop value, leave it false
driver_PWM_AUTOSCALE: False # StealthChop value, leave it false
driver_PWM_LIM: 12 # StealthChop value, don't modify
driver_PWM_REG: 8 # StealthChop value, don't modify
driver_PWM_FREQ: 1 # StealthChop value, don't modify
driver_PWM_GRAD: 14 # StealthChop value, don't modify
driver_PWM_OFS: 36 # StealthChop value, don't modify
[stepper_y]
step_pin: PB8
dir_pin: PB7
enable_pin: !PC3
microsteps: 64
microsteps: 128
rotation_distance: 40
endstop_pin: tmc2209_stepper_y:virtual_endstop
position_endstop: 0
@@ -65,19 +79,32 @@ homing_retract_dist: 0
[tmc2209 stepper_y]
uart_pin: PC0
run_current: 0.900
run_current: 1.000
stealthchop_threshold: 0
interpolate: False
sense_resistor: 0.150
sense_resistor: 0.110 # 0.150
uart_address: 3
driver_SGTHRS: 81
diag_pin: PA6
driver_IHOLDDELAY: 8 # don't change
driver_TPOWERDOWN: 20 # don't change
driver_TBL: 2 # Retrieved from DUMP_TMC, correct me if i'm wrong
driver_TOFF: 3 # default with TMC2209, I think klipper throws error if another value is set.
driver_HEND: 0 # Retrieved from the sheet
driver_HSTRT: 5 # Retrieved from the sheet
driver_PWM_AUTOGRAD: False # StealthChop value, leave it false
driver_PWM_AUTOSCALE: False # StealthChop value, leave it false
driver_PWM_LIM: 12 # StealthChop value, don't modify
driver_PWM_REG: 8 # StealthChop value, don't modify
driver_PWM_FREQ: 1 # StealthChop value, don't modify
driver_PWM_GRAD: 14 # StealthChop value, don't modify
driver_PWM_OFS: 36 # StealthChop value, don't modify
[stepper_z]
step_pin: PB6
dir_pin: !PB5
enable_pin: !PC3
microsteps: 64
microsteps: 128
rotation_distance: 4
endstop_pin: probe:z_virtual_endstop
position_min: -3
@@ -89,9 +116,22 @@ uart_pin: PA15
run_current: 1.000
stealthchop_threshold: 0
interpolate: False
sense_resistor: 0.150
sense_resistor: 0.110 # 0.150
uart_address: 3
diag_pin: PA7
driver_IHOLDDELAY: 8 # don't change
driver_TPOWERDOWN: 20 # don't change
driver_TBL: 2 # Retrieved from DUMP_TMC, correct me if i'm wrong
driver_TOFF: 3 # default with TMC2209, I think klipper throws error if another value is set.
driver_HEND: 0 # Retrieved from the sheet
driver_HSTRT: 5 # Retrieved from the sheet
driver_PWM_AUTOGRAD: False # StealthChop value, leave it false
driver_PWM_AUTOSCALE: False # StealthChop value, leave it false
driver_PWM_LIM: 12 # StealthChop value, don't modify
driver_PWM_REG: 8 # StealthChop value, don't modify
driver_PWM_FREQ: 1 # StealthChop value, don't modify
driver_PWM_GRAD: 14 # StealthChop value, don't modify
driver_PWM_OFS: 36 # StealthChop value, don't modify
#####################################################################
# Extruder
@@ -101,7 +141,7 @@ diag_pin: PA7
step_pin: PB4
dir_pin: !PB3
enable_pin: !PC3
microsteps: 64
microsteps: 256
rotation_distance: 4.65 # NOTE Calibrate e-steps and adjust https://www.klipper3d.org/Rotation_Distance.html
nozzle_diameter: 0.400
filament_diameter: 1.750
@@ -118,8 +158,21 @@ uart_pin: PC14
run_current: 0.550
stealthchop_threshold: 0
interpolate: False
sense_resistor: 0.150
sense_resistor: 0.110 # 0.150
uart_address: 3
driver_IHOLDDELAY: 8 # don't change
driver_TPOWERDOWN: 20 # don't change
driver_TBL: 2 # Retrieved from DUMP_TMC, correct me if i'm wrong
driver_TOFF: 3 # default with TMC2209, I think klipper throws error if another value is set.
driver_HEND: 0 # Retrieved from the sheet
driver_HSTRT: 5 # Retrieved from the sheet
driver_PWM_AUTOGRAD: False # StealthChop value, leave it false
driver_PWM_AUTOSCALE: False # StealthChop value, leave it false
driver_PWM_LIM: 12 # StealthChop value, don't modify
driver_PWM_REG: 8 # StealthChop value, don't modify
driver_PWM_FREQ: 1 # StealthChop value, don't modify
driver_PWM_GRAD: 14 # StealthChop value, don't modify
driver_PWM_OFS: 36 # StealthChop value, don't modify
#####################################################################
# Bed Heater
@@ -182,9 +235,9 @@ encoder_pins: ^PB14, ^PB10
click_pin: ^!PB2
[input_shaper]
shaper_freq_x = 82.2 # 84.2; 4020
shaper_type_x: 2hump_ei
shaper_freq_y = 40.6 # 41.8; 4020
shaper_freq_x: 55.0 # 97.2 # 82.2 # 84.2; 4020
shaper_type_x: mzv # 3hump_ei # 2hump_ei
shaper_freq_y: 40.6 # 41.8; 4020
shaper_type_y: mzv
[bed_screws]
@@ -224,8 +277,10 @@ switch_pin: !PA4 # "Pulled-high"
pause_on_runout: True
insert_gcode:
M117 Insert Detected
{ action_respond_info("Insert Detected") }
runout_gcode:
M117 Runout Detected
{ action_respond_info("Runout Detected") }
CONDITIONAL_BEEP i=3 dur=300 freq=400
#*# <---------------------- SAVE_CONFIG ---------------------->
@@ -233,18 +288,18 @@ runout_gcode:
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 21.766
#*# pid_ki = 1.395
#*# pid_kd = 84.888
#*# pid_kp = 23.147
#*# pid_ki = 1.559
#*# pid_kd = 85.934
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 67.629
#*# pid_ki = 1.288
#*# pid_kd = 887.637
#*# pid_kp = 68.957
#*# pid_ki = 1.281
#*# pid_kd = 928.332
#*#
#*# [probe]
#*# z_offset = 1.690
#*# z_offset = 1.610
#*#
#*# [bed_mesh newbed]
#*# version = 1
@@ -287,11 +342,11 @@ runout_gcode:
#*# [bed_mesh default-v1]
#*# version = 1
#*# points =
#*# -0.219375, -0.138125, -0.072500, -0.067500, -0.108750
#*# -0.208125, -0.140625, -0.065625, -0.053125, -0.111250
#*# -0.220000, -0.124375, -0.058750, -0.051250, -0.100625
#*# -0.224375, -0.121250, -0.046250, -0.049375, -0.097500
#*# -0.184375, -0.072500, -0.006875, -0.008125, -0.043125
#*# -0.181250, -0.127500, -0.082500, -0.086875, -0.124375
#*# -0.182500, -0.123750, -0.063750, -0.069375, -0.132500
#*# -0.190000, -0.106250, -0.056250, -0.067500, -0.128125
#*# -0.185625, -0.100000, -0.042500, -0.063750, -0.128125
#*# -0.133125, -0.045625, 0.000000, -0.019375, -0.079375
#*# min_x = 27.0
#*# max_x = 222.0
#*# min_y = 5.0
@@ -303,14 +358,33 @@ runout_gcode:
#*# algo = bicubic
#*# tension = 0.2
#*#
#*# [bed_mesh default]
#*# [bed_mesh personalPreEdit]
#*# version = 1
#*# points =
#*# -0.181250, -0.127500, -0.082500, -0.086875, -0.124375
#*# -0.182500, -0.123750, -0.063750, -0.069375, -0.132500
#*# -0.190000, -0.106250, -0.056250, -0.067500, -0.128125
#*# -0.185625, -0.100000, -0.042500, -0.063750, -0.128125
#*# -0.133125, -0.045625, 0.000000, -0.019375, -0.079375
#*# -0.147188, -0.085313, -0.033906, -0.025469, -0.035000
#*# -0.163594, -0.095313, -0.027344, -0.014219, -0.057813
#*# -0.187500, -0.087188, -0.030938, -0.019375, -0.063594
#*# -0.179844, -0.080625, -0.012813, -0.013750, -0.061406
#*# -0.126094, -0.026250, 0.033594, 0.030781, -0.010000
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 27.0
#*# max_x = 222.0
#*# min_y = 5.0
#*# max_y = 203.0
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.150000, -0.110000, -0.110000, -0.130000, -0.130000
#*# -0.165000, -0.130000, -0.130000, -0.130000, -0.130000
#*# -0.165000, -0.112266, -0.110000, -0.130000, -0.130000
#*# -0.160000, -0.105430, -0.110000, -0.130000, -0.130000
#*# -0.120000, -0.071211, -0.091407, -0.110000, -0.110000
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2