Advertisement
chewyt

Untitled

Oct 17th, 2022
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.61 KB | None | 0 0
  1. # This file contains common pin mappings for the BIGTREETECH SKR mini
  2. # E3 v3.0. To use this config, the firmware should be compiled for the
  3. # STM32G0B1 with a "8KiB bootloader" and USB communication.
  4.  
  5. # The "make flash" command does not work on the SKR mini E3. Instead,
  6. # after running "make", copy the generated "out/klipper.bin" file to a
  7. # file named "firmware.bin" on an SD card and then restart the SKR
  8. # mini E3 with that SD card.
  9.  
  10. # See docs/Config_Reference.md for a description of parameters.
  11.  
  12. [virtual_sdcard]
  13. path: ~/gcode_files
  14.  
  15. [display_status]
  16.  
  17. [pause_resume]
  18.  
  19.  
  20. [stepper_x]
  21. step_pin: PB13
  22. dir_pin: !PB12
  23. enable_pin: !PB14
  24. microsteps: 16
  25. rotation_distance: 40
  26. endstop_pin: ^PC0
  27. position_endstop: 0
  28. position_max: 300
  29. homing_speed: 25
  30.  
  31.  
  32. [tmc2209 stepper_x]
  33. uart_pin: PC11
  34. tx_pin: PC10
  35. uart_address: 0
  36. run_current: 0.6
  37. stealthchop_threshold: 999999
  38.  
  39. [stepper_y]
  40. step_pin: PB10
  41. dir_pin: !PB2
  42. enable_pin: !PB11
  43. microsteps: 16
  44. rotation_distance: 40
  45. endstop_pin: ^PC1
  46. position_endstop: 0
  47. position_max: 300
  48. homing_speed: 25
  49.  
  50. [tmc2209 stepper_y]
  51. uart_pin: PC11
  52. tx_pin: PC10
  53. uart_address: 2
  54. run_current: 0.6
  55. stealthchop_threshold: 999999
  56.  
  57. [stepper_z]
  58. step_pin: PB0
  59. dir_pin: PC5
  60. enable_pin: !PB1
  61. microsteps: 16
  62. rotation_distance: 8
  63. endstop_pin: ^PC2
  64. position_endstop: 0.0
  65. position_max: 350
  66.  
  67. [tmc2209 stepper_z]
  68. uart_pin: PC11
  69. tx_pin: PC10
  70. uart_address: 1
  71. run_current: 0.6
  72. stealthchop_threshold: 999999
  73.  
  74. [extruder]
  75. step_pin: PB3
  76. dir_pin: PB4
  77. enable_pin: !PD1
  78. microsteps: 16
  79. rotation_distance: 6.74
  80. nozzle_diameter: 0.400
  81. filament_diameter: 1.750
  82. heater_pin: PC8
  83. sensor_type: EPCOS 100K B57560G104F
  84. sensor_pin: PA0
  85. control: pid
  86. pid_Kp: 21.527
  87. pid_Ki: 1.063
  88. pid_Kd: 108.982
  89. min_temp: 0
  90. max_temp: 250
  91. #min_extrude_temp: 0
  92. max_extrude_only_distance: 1000
  93.  
  94. [tmc2209 extruder]
  95. uart_pin: PC11
  96. tx_pin: PC10
  97. uart_address: 3
  98. run_current: 0.5
  99. stealthchop_threshold: 999999
  100.  
  101. [heater_bed]
  102. heater_pin: PC9
  103. sensor_type: ATC Semitec 104GT-2
  104. sensor_pin: PC4
  105. control: pid
  106. pid_Kp: 54.027
  107. pid_Ki: 0.770
  108. pid_Kd: 948.182
  109. min_temp: 0
  110. max_temp: 130
  111.  
  112.  
  113. [heater_fan nozzle_cooling_fan]
  114. pin: PC7
  115.  
  116. [heater_fan controller_fan]
  117. pin: PB15
  118.  
  119. [fan]
  120. pin: PC6
  121.  
  122. [mcu]
  123. serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_34002B000750414235363020-if00
  124.  
  125.  
  126.  
  127. [printer]
  128. kinematics: cartesian
  129. max_velocity: 300
  130. max_accel: 3000
  131. max_z_velocity: 5
  132. max_z_accel: 100
  133.  
  134. [gcode_macro PAUSE]
  135. description: Pause the actual running print
  136. rename_existing: PAUSE_BASE
  137. # change this if you need more or less extrusion
  138. variable_extrude: 1.0
  139. gcode:
  140. ##### read E from pause macro #####
  141. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  142. ##### set park positon for x and y #####
  143. # default is your max posion from your printer.cfg
  144. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  145. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  146. ##### calculate save lift position #####
  147. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  148. {% set act_z = printer.toolhead.position.z|float %}
  149. {% if act_z < (max_z - 2.0) %}
  150. {% set z_safe = 2.0 %}
  151. {% else %}
  152. {% set z_safe = max_z - act_z %}
  153. {% endif %}
  154. ##### end of definitions #####
  155. PAUSE_BASE
  156. G91
  157. {% if printer.extruder.can_extrude|lower == 'true' %}
  158. G1 E-{E} F2100
  159. {% else %}
  160. {action_respond_info("Extruder not hot enough")}
  161. {% endif %}
  162. {% if "xyz" in printer.toolhead.homed_axes %}
  163. G1 Z{z_safe} F900
  164. G90
  165. G1 X{x_park} Y{y_park} F6000
  166. {% else %}
  167. {action_respond_info("Printer not homed")}
  168. {% endif %}
  169.  
  170. [gcode_macro RESUME]
  171. description: Resume the actual running print
  172. rename_existing: RESUME_BASE
  173. gcode:
  174. ##### read E from pause macro #####
  175. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  176. #### get VELOCITY parameter if specified ####
  177. {% if 'VELOCITY' in params|upper %}
  178. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  179. {%else %}
  180. {% set get_params = "" %}
  181. {% endif %}
  182. ##### end of definitions #####
  183. {% if printer.extruder.can_extrude|lower == 'true' %}
  184. G91
  185. G1 E{E} F2100
  186. {% else %}
  187. {action_respond_info("Extruder not hot enough")}
  188. {% endif %}
  189. RESUME_BASE {get_params}
  190.  
  191. [gcode_macro CANCEL_PRINT]
  192. description: Cancel the actual running print
  193. rename_existing: CANCEL_PRINT_BASE
  194. gcode:
  195. TURN_OFF_HEATERS
  196. CANCEL_PRINT_BASE
  197.  
  198. [board_pins]
  199. aliases:
  200. # EXP1 header
  201. EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
  202. EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PD6, EXP1_10=<5V>
  203.  
  204. # See the sample-lcd.cfg file for definitions of common LCD displays.
  205.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement