BurndTire

Ender 3 Pro SKR 1.3 TMC2208 Klipper Fluidd Update

Sep 8th, 2021 (edited)
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This file contains common pin mappings for the BIGTREETECH SKR V1.3
  2. # board. To use this config, the firmware should be compiled for the
  3. # LPC1768.
  4.  
  5. # See docs/Config_Reference.md for a description of parameters.
  6.  
  7. [virtual_sdcard]
  8. path: ~/gcode_files
  9.  
  10. [display_status]
  11.  
  12. [pause_resume]
  13.  
  14. [stepper_x]
  15. step_pin: P2.2
  16. dir_pin: !P2.6
  17. enable_pin: !P2.1
  18. microsteps: 16
  19. rotation_distance: 40
  20. endstop_pin: P1.29  # P1.28 for X-max
  21. position_endstop: 0
  22. position_max: 320
  23. homing_speed: 50
  24. homing_retract_dist: 0
  25.  
  26. [stepper_y]
  27. step_pin: P0.19
  28. dir_pin: !P0.20
  29. enable_pin: !P2.8
  30. microsteps: 16
  31. rotation_distance: 40
  32. endstop_pin: P1.27  # P1.26 for Y-max
  33. position_endstop: 0
  34. position_max: 300
  35. homing_speed: 50
  36.  
  37. [stepper_z]
  38. step_pin: P0.22
  39. dir_pin: P2.11
  40. enable_pin: !P0.21
  41. microsteps: 16
  42. rotation_distance: 8
  43. endstop_pin: P1.25  # P1.24 for Z-max
  44. position_endstop: 0.5
  45. position_max: 400
  46.  
  47. [extruder]
  48. step_pin: P2.13
  49. dir_pin: !P0.11
  50. enable_pin: !P2.12
  51. microsteps: 16
  52. rotation_distance: 33.500
  53. nozzle_diameter: 0.400
  54. filament_diameter: 1.750
  55. pressure_advance = 0.58
  56. heater_pin: P2.7
  57. sensor_type: EPCOS 100K B57560G104F
  58. sensor_pin: P0.24
  59. control: pid
  60. pid_Kp: 22.2
  61. pid_Ki: 1.08
  62. pid_Kd: 114
  63. min_temp: 0
  64. max_temp: 260
  65.  
  66. [heater_bed]
  67. heater_pin: P2.5
  68. sensor_type: ATC Semitec 104GT-2
  69. sensor_pin: P0.23
  70. control: pid
  71. pid_Kp: 54.027
  72. pid_Ki: 0.770
  73. pid_Kd: 948.182
  74. min_temp: 0
  75. max_temp: 130
  76.  
  77. [fan]
  78. pin: P2.3
  79.  
  80. [heater_fan hotend_fan]
  81. pin: P2.4
  82. heater: extruder
  83. heater_temp: 50.0
  84. fan_speed: 1.0
  85.  
  86. [mcu]
  87. serial: /dev/serial/by-id/usb-Klipper_lpc1768_20D0FF04809C48AF952E3A5DC22000F5-if00
  88.  
  89. [printer]
  90. kinematics: cartesian
  91. max_velocity: 300
  92. max_accel: 3000
  93. max_accel_to_decel: 3000
  94. square_corner_velocity: 5.0
  95. max_z_velocity: 5
  96. max_z_accel: 100
  97.  
  98. [input_shaper]
  99. shaper_freq_x: 40.8  # frequency for the X mark of the test model
  100. shaper_freq_y: 41.7  # frequency for the Y mark of the test model
  101. shaper_type: mzv
  102.  
  103. ########################################
  104. # TMC2208 configuration
  105. ########################################
  106.  
  107. # For TMC2208 UART
  108. #   1) Remove all of the jumpers below the stepper drivers
  109. #   2) Place jumpers on the red pin headers labeled XUART (XUART, YUART etc.)
  110.  
  111. [tmc2208 stepper_x]
  112. uart_pin: P1.17
  113. run_current: 0.800
  114. hold_current: 0.500
  115. stealthchop_threshold: 999999
  116.  
  117. [tmc2208 stepper_y]
  118. uart_pin: P1.15
  119. run_current: 0.800
  120. hold_current: 0.500
  121. stealthchop_threshold: 999999
  122.  
  123. [tmc2208 stepper_z]
  124. uart_pin: P1.10
  125. run_current: 0.650
  126. hold_current: 0.450
  127. stealthchop_threshold: 999999
  128.  
  129. [tmc2208 extruder]
  130. uart_pin: P1.8
  131. run_current: 0.800
  132. hold_current: 0.500
  133. stealthchop_threshold: 0
  134.  
  135. ########################################
  136. # EXP1 / EXP2 (display) pins
  137. ########################################
  138.  
  139. [board_pins]
  140. aliases:
  141.    # EXP1 header
  142.     EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
  143.     EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
  144.    # EXP2 header
  145.     EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
  146.     EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
  147.    # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
  148.  
  149. # See the sample-lcd.cfg file for definitions of common LCD displays.
  150.  
  151. [display]
  152. lcd_type: st7920
  153. cs_pin: EXP1_7
  154. sclk_pin: EXP1_6
  155. sid_pin: EXP1_8
  156. encoder_pins: ^EXP1_5, ^EXP1_3
  157. click_pin: ^!EXP1_2
  158. #kill_pin: ^!EXP2_8
  159.  
  160. [output_pin beeper]
  161. pin: EXP1_1
  162.  
  163. [gcode_macro PAUSE]
  164. description: Pause the actual running print
  165. rename_existing: PAUSE_BASE
  166. # change this if you need more or less extrusion
  167. variable_extrude: 1.0
  168. gcode:
  169.  ##### read E from pause macro #####
  170.   {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  171.  ##### set park positon for x and y #####
  172.  # default is your max posion from your printer.cfg
  173.   {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  174.   {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  175.  ##### calculate save lift position #####
  176.   {% set max_z = printer.toolhead.axis_maximum.z|float %}
  177.   {% set act_z = printer.toolhead.position.z|float %}
  178.   {% if act_z < (max_z - 2.0) %}
  179.       {% set z_safe = 2.0 %}
  180.   {% else %}
  181.       {% set z_safe = max_z - act_z %}
  182.   {% endif %}
  183.  ##### end of definitions #####
  184.   PAUSE_BASE
  185.   G91
  186.   {% if printer.extruder.can_extrude|lower == 'true' %}
  187.     G1 E-{E} F2100
  188.   {% else %}
  189.     {action_respond_info("Extruder not hot enough")}
  190.   {% endif %}
  191.   {% if "xyz" in printer.toolhead.homed_axes %}
  192.     G1 Z{z_safe} F900
  193.     G90
  194.     G1 X{x_park} Y{y_park} F6000
  195.   {% else %}
  196.     {action_respond_info("Printer not homed")}
  197.   {% endif %}
  198.  
  199. [gcode_macro RESUME]
  200. description: Resume the actual running print
  201. rename_existing: RESUME_BASE
  202. gcode:
  203.  ##### read E from pause macro #####
  204.   {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  205.  #### get VELOCITY parameter if specified ####
  206.   {% if 'VELOCITY' in params|upper %}
  207.     {% set get_params = ('VELOCITY=' + params.VELOCITY)  %}
  208.   {%else %}
  209.     {% set get_params = "" %}
  210.   {% endif %}
  211.  ##### end of definitions #####
  212.   {% if printer.extruder.can_extrude|lower == 'true' %}
  213.     G91
  214.     G1 E{E} F2100
  215.   {% else %}
  216.     {action_respond_info("Extruder not hot enough")}
  217.   {% endif %}  
  218.   RESUME_BASE {get_params}
  219.  
  220. [gcode_macro CANCEL_PRINT]
  221. description: Cancel the actual running print
  222. rename_existing: CANCEL_PRINT_BASE
  223. gcode:
  224.   TURN_OFF_HEATERS
  225.   CANCEL_PRINT_BASE
Add Comment
Please, Sign In to add comment