Advertisement
chewyt

Untitled

Nov 15th, 2022
972
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 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.75
  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.75
  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.  
  64. ## for 3dtouch. comment for mannual mesh bed leveling
  65. endstop_pin: probe:z_virtual_endstop
  66.  
  67. ## uncomment below for manual mesh bed leveling and to enable Z limit switches
  68. #endstop_pin: ^PC2
  69. #position_endstop: 0
  70.  
  71. position_max: 350
  72. position_min: 0
  73. homing_speed: 10
  74. homing_positive_dir: false
  75. #homing_retract_dist = 5
  76. #second_homing_speed = 3
  77.  
  78.  
  79. [tmc2209 stepper_z]
  80. uart_pin: PC11
  81. tx_pin: PC10
  82. uart_address: 1
  83. run_current: 0.75
  84. stealthchop_threshold: 999999
  85.  
  86. [extruder]
  87. step_pin: PB3
  88. dir_pin: PB4
  89. enable_pin: !PD1
  90. microsteps: 16
  91. rotation_distance: 7.881
  92. nozzle_diameter: 0.400
  93. filament_diameter: 1.750
  94. heater_pin: PC8
  95. sensor_type: EPCOS 100K B57560G104F
  96. sensor_pin: PA0
  97. #control: pid
  98. #pid_Kp: 21.527
  99. #pid_Ki: 1.063
  100. #pid_Kd: 108.982
  101. min_temp: 0
  102. max_temp: 260
  103. min_extrude_temp: 0
  104. max_extrude_only_distance: 1000
  105.  
  106.  
  107. [firmware_retraction]
  108. retract_length: 1
  109. # The length of filament (in mm) to retract when G10 is activated,
  110. # and to unretract when G11 is activated (but see
  111. # unretract_extra_length below). The default is 0 mm.
  112. retract_speed: 40
  113. # The speed of retraction, in mm/s. The default is 20 mm/s.
  114. unretract_extra_length: 0
  115. # The length (in mm) of *additional* filament to add when
  116. # unretracting.
  117. unretract_speed: 30
  118. # The speed of unretraction, in mm/s. The default is 10 mm/s.
  119.  
  120.  
  121. [tmc2209 extruder]
  122. uart_pin: PC11
  123. tx_pin: PC10
  124. uart_address: 3
  125. run_current: 0.5
  126. stealthchop_threshold: 999999
  127.  
  128. [heater_bed]
  129. heater_pin: PC9
  130. sensor_type: ATC Semitec 104GT-2
  131. sensor_pin: PC4
  132. #control: pid
  133. #pid_Kp: 54.027
  134. #pid_Ki: 0.770
  135. #pid_Kd: 948.182
  136. min_temp: 0
  137. max_temp: 100
  138.  
  139.  
  140.  
  141. [heater_fan nozzle_cooling_fan]
  142. pin: PC7
  143.  
  144. [heater_fan controller_fan]
  145. pin: PB15
  146.  
  147. [fan]
  148. pin: PC6
  149.  
  150. [mcu]
  151. serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_34002B000750414235363020-if00
  152.  
  153.  
  154.  
  155. [printer]
  156. kinematics: cartesian
  157. max_velocity: 300
  158. max_accel: 500
  159. max_z_velocity: 5
  160. max_z_accel: 100
  161.  
  162. # PROBE
  163.  
  164. [bltouch]
  165. sensor_pin: ^PC14
  166. control_pin: PA1
  167. x_offset: 45
  168. y_offset: 0
  169. z_offset: 2.295
  170. #stow_on_each_sample: False
  171. #probe_with_touch_mode: True
  172.  
  173. [safe_z_home]
  174. home_xy_position: 150,150 # Change coordinates to the center of your print bed
  175. speed: 50
  176. z_hop: 10
  177. z_hop_speed: 10
  178.  
  179.  
  180.  
  181.  
  182. [gcode_macro PAUSE]
  183. description: Pause the actual running print
  184. rename_existing: PAUSE_BASE
  185. # change this if you need more or less extrusion
  186. variable_extrude: 1.0
  187. gcode:
  188. ##### read E from pause macro #####
  189. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  190. ##### set park positon for x and y #####
  191. # default is your max posion from your printer.cfg
  192. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  193. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  194. ##### calculate save lift position #####
  195. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  196. {% set act_z = printer.toolhead.position.z|float %}
  197. {% if act_z < (max_z - 2.0) %}
  198. {% set z_safe = 2.0 %}
  199. {% else %}
  200. {% set z_safe = max_z - act_z %}
  201. {% endif %}
  202. ##### end of definitions #####
  203. PAUSE_BASE
  204. G91
  205. {% if printer.extruder.can_extrude|lower == 'true' %}
  206. G1 E-{E} F2100
  207. {% else %}
  208. {action_respond_info("Extruder not hot enough")}
  209. {% endif %}
  210. {% if "xyz" in printer.toolhead.homed_axes %}
  211. G1 Z{z_safe} F900
  212. G90
  213. G1 X{x_park} Y{y_park} F6000
  214. {% else %}
  215. {action_respond_info("Printer not homed")}
  216. {% endif %}
  217.  
  218. [gcode_macro RESUME]
  219. description: Resume the actual running print
  220. rename_existing: RESUME_BASE
  221. gcode:
  222. ##### read E from pause macro #####
  223. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  224. #### get VELOCITY parameter if specified ####
  225. {% if 'VELOCITY' in params|upper %}
  226. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  227. {%else %}
  228. {% set get_params = "" %}
  229. {% endif %}
  230. ##### end of definitions #####
  231. {% if printer.extruder.can_extrude|lower == 'true' %}
  232. G91
  233. G1 E{E} F2100
  234. {% else %}
  235. {action_respond_info("Extruder not hot enough")}
  236. {% endif %}
  237. RESUME_BASE {get_params}
  238.  
  239. [gcode_macro CANCEL_PRINT]
  240. description: Cancel the actual running print
  241. rename_existing: CANCEL_PRINT_BASE
  242. gcode:
  243. TURN_OFF_HEATERS
  244. CANCEL_PRINT_BASE
  245.  
  246. [board_pins]
  247. aliases:
  248. # EXP1 header
  249. EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
  250. EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PD6, EXP1_10=<5V>
  251.  
  252. # See the sample-lcd.cfg file for definitions of common LCD displays.
  253.  
  254. #*# <---------------------- SAVE_CONFIG ---------------------->
  255. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  256. #*#
  257. #*# [extruder]
  258. #*# control = pid
  259. #*# pid_kp = 22.388
  260. #*# pid_ki = 1.166
  261. #*# pid_kd = 107.463
  262. #*#
  263. #*# [heater_bed]
  264. #*# control = pid
  265. #*# pid_kp = 68.981
  266. #*# pid_ki = 1.006
  267. #*# pid_kd = 1182.164
  268.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement