Advertisement
BurndTire

Ender 3 Pro BTT SKR v1.3 (macros disabled)

Oct 19th, 2022
2,311
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: 200
  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: 220
  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: 190
  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.1
  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: 38  # frequency for the X mark of the test model
  100. #shaper_freq_y: 39.5  # 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.  
  134. ########################################
  135. # EXP1 / EXP2 (display) pins
  136. ########################################
  137.  
  138. [board_pins]
  139. aliases:
  140.    # EXP1 header
  141.     EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
  142.     EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
  143.    # EXP2 header
  144.     EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
  145.     EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
  146.    # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
  147.  
  148. # See the sample-lcd.cfg file for definitions of common LCD displays.
  149.  
  150. [display]
  151. lcd_type: st7920
  152. cs_pin: EXP1_7
  153. sclk_pin: EXP1_6
  154. sid_pin: EXP1_8
  155. encoder_pins: ^EXP1_5, ^EXP1_3
  156. click_pin: ^!EXP1_2
  157. #kill_pin: ^!EXP2_8
  158.  
  159. [output_pin beeper]
  160. pin: EXP1_1
  161.  
  162. #[gcode_macro PAUSE]
  163. #rename_existing: BASE_PAUSE
  164. #default_parameter_X: 220    # edit to #your preferred park position
  165. #default_parameter_Y: 220    # edit to #your preferred park position
  166. #default_parameter_Z: 10     # edit to #your preferred park position
  167. #default_parameter_E: 1      # edit to #your preferred retract length
  168. #gcode:
  169.    #SAVE_GCODE_STATE NAME=PAUSE_state
  170.    #BASE_PAUSE
  171.    #G91
  172.    #G1 E-{E} F2100
  173.    #G1 Z{Z}
  174.    #G90
  175.    #G1 X{X} Y{Y} F6000
  176.  
  177. #[gcode_macro PAUSE]
  178. #description: Pause the actual running print
  179. #rename_existing: PAUSE_BASE
  180. ## change this if you need more or less extrusion
  181. #variable_extrude: 1.0
  182. #gcode:
  183. #  ##### read E from pause macro #####
  184. #  {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  185. #  ##### set park positon for x and y #####
  186. #  # default is your max posion from your printer.cfg
  187. #  {% set x_park = printer.toolhead.axis_0|float - 5.0 %}
  188. #  {% set y_park = printer.toolhead.axis_0|float - 5.0 %}
  189. #  ##### calculate save lift position #####
  190. #  {% set max_z = printer.toolhead.axis_maximum.z|float %}
  191. #  {% set act_z = printer.toolhead.position.z|float %}
  192. #  {% if act_z < (max_z - 2.0) %}
  193. #      {% set z_safe = 2.0 %}
  194. #  {% else %}
  195. #      {% set z_safe = max_z - act_z %}
  196. #  {% endif %}
  197. #  ##### end of definitions #####
  198. #  PAUSE_BASE
  199. #  G91
  200. #  {% if printer.extruder.can_extrude|lower == 'true' %}
  201. #    G1 E-{E} F2100
  202. #  {% else %}
  203. #    {action_respond_info("Extruder not hot enough")}
  204. #  {% endif %}
  205. #  {% if "xyz" in printer.toolhead.homed_axes %}
  206. #    G1 Z{z_safe} F900
  207. #    G90
  208. #    G1 X{x_park} Y{y_park} F6000
  209. #  {% else %}
  210. #    {action_respond_info("Printer not homed")}
  211. #  {% endif %}
  212.  
  213. #[gcode_macro RESUME]
  214. #rename_existing: BASE_RESUME
  215. #default_parameter_E: 1      # edit to #your preferred retract length
  216. #gcode:
  217.    #G91
  218.    #G1 E{E} F2100
  219.    #G90
  220.    #RESTORE_GCODE_STATE #NAME=PAUSE_state MOVE=1
  221.    #BASE_RESUME
  222.  
  223. #[gcode_macro RESUME]
  224. #description: Resume the actual running print
  225. #rename_existing: RESUME_BASE
  226. #gcode:
  227. #  ##### read E from pause macro #####
  228. #  {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  229. #  #### get VELOCITY parameter if specified ####
  230. #  {% if 'VELOCITY' in params|upper %}
  231. #    {% set get_params = ('VELOCITY=' + params.VELOCITY)  %}
  232. #  {%else %}
  233. #    {% set get_params = "" %}
  234. #  {% endif %}
  235. #  ##### end of definitions #####
  236. #  {% if printer.extruder.can_extrude|lower == 'true' %}
  237. #    G91
  238. #    G1 E{E} F2100
  239. #  {% else %}
  240. #    {action_respond_info("Extruder not hot enough")}
  241. #  {% endif %}  
  242. #  RESUME_BASE {get_params}
  243.  
  244. [gcode_macro CANCEL_PRINT]
  245. description: Cancel the actual running print
  246. rename_existing: CANCEL_PRINT_BASE
  247. gcode:
  248.   TURN_OFF_HEATERS
  249.   CANCEL_PRINT_BASE
  250.  
  251. #*# <---------------------- SAVE_CONFIG ---------------------->
  252. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  253. #*#
  254. #*# [extruder]
  255. #*# control = pid
  256. #*# pid_kp = 23.415
  257. #*# pid_ki = 1.092
  258. #*# pid_kd = 125.561
  259.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement