Advertisement
BurndTire

Ender 3 Pro SKR 1.3 TMC2208 Klipper Fluidd

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