Pitoer

Chiron Klippy SKR1.3 TMC2209

Jan 2nd, 2022 (edited)
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.15 KB | None | 0 0
  1. ###Chiron Config###
  2. ###SKR1.3/TMC2209###
  3. ###STEPPERS###
  4.  
  5. [stepper_x]
  6. step_pin: P2.2
  7. dir_pin: !P2.6
  8. enable_pin: !P2.1
  9. microsteps: 16
  10. rotation_distance: 40
  11. endstop_pin: !P1.29
  12. position_endstop: 0
  13. #position_min: -10
  14. position_max: 410
  15. homing_speed: 100
  16.  
  17. [tmc2209 stepper_x]
  18. uart_pin: P1.17
  19. interpolate: True
  20. run_current: 0.65
  21. hold_current: 0.5
  22. stealthchop_threshold: 60
  23.  
  24. [stepper_y]
  25. step_pin: P0.22
  26. dir_pin: P2.11
  27. enable_pin: !P0.21
  28. microsteps: 16
  29. rotation_distance: 32
  30. endstop_pin: ^!P1.27
  31. position_endstop: 0
  32. position_max: 410
  33. homing_speed: 60.0
  34.  
  35. [tmc2209 stepper_y]
  36. uart_pin: P1.10
  37. interpolate: True
  38. run_current: 0.8
  39. hold_current: 0.7
  40. stealthchop_threshold: 60
  41.  
  42. [stepper_z]
  43. step_pin: P2.13
  44. dir_pin: !P0.11
  45. enable_pin: !P2.12
  46. microsteps: 16
  47. rotation_distance: 8
  48. endstop_pin: ^P1.28
  49. position_endstop: 0
  50. position_min: 0
  51. position_max: 450
  52. homing_speed: 20.0
  53.  
  54. [tmc2209 stepper_z]
  55. uart_pin: P1.8
  56. interpolate: True
  57. run_current: 0.5
  58. hold_current: 0.40
  59. stealthchop_threshold: 20
  60.  
  61. [stepper_z1]
  62. step_pin: P0.1
  63. dir_pin: !P0.0
  64. enable_pin: !P0.10
  65. microsteps: 16
  66. rotation_distance: 8
  67. endstop_pin: ^P1.24
  68.  
  69. [tmc2209 stepper_z1]
  70. uart_pin: P1.1
  71. interpolate: True
  72. run_current: 0.5
  73. hold_current: 0.40
  74. stealthchop_threshold: 20
  75.  
  76. [safe_z_home]
  77. home_xy_position: 0,0
  78. speed: 50
  79. z_hop: 20
  80. z_hop_speed: 10
  81.  
  82. [z_tilt]
  83. z_positions:
  84. 100, 120
  85. 380, 360
  86. points:
  87. 100, 180
  88. 350, 300
  89. speed: 50
  90. horizontal_move_z: 10
  91. retries: 3
  92. retry_tolerance: 0.05
  93.  
  94. [printer]
  95. kinematics: cartesian
  96. max_velocity: 300
  97. max_accel: 7000
  98. max_accel_to_decel: 7000
  99. max_z_velocity: 15
  100. max_z_accel: 80
  101.  
  102. square_corner_velocity: 5.0
  103.  
  104. [mcu]
  105. serial: /dev/serial/by-id/usb-Klipper_lpc1768_0F50010F612448AFA813285DC62000F5-if00
  106.  
  107. [virtual_sdcard]
  108. path: ~/gcode_files
  109.  
  110. [input_shaper]
  111. shaper_freq_x: 50
  112. shaper_freq_y: 35
  113.  
  114. ###EXTRUDER###
  115.  
  116. [extruder]
  117. step_pin: P0.19
  118. dir_pin: P0.20
  119. enable_pin: !P2.8
  120. microsteps: 16
  121. rotation_distance: 3.4334
  122. full_steps_per_rotation: 200
  123. nozzle_diameter: 0.800
  124. filament_diameter: 1.750
  125. heater_pin: P2.5
  126. sensor_type: ATC Semitec 104GT-2
  127. sensor_pin: P0.24
  128. #control: pid
  129. #pid_Kp: 16.61
  130. #pid_Ki: 1.21
  131. #pid_Kd: 56.88
  132. min_temp: 0
  133. max_temp: 245
  134. pwm_cycle_time: 0.02
  135. max_extrude_only_distance: 200
  136.  
  137. [tmc2209 extruder]
  138. uart_pin: P1.15
  139. interpolate: True
  140. stealthchop_threshold: 999999
  141. run_current: 0.5
  142. hold_current: 0.40
  143.  
  144.  
  145. ###ONLY FANS###
  146.  
  147. [heater_fan my_nozzle_fan]
  148. pin: P2.3
  149. heater_temp: 45.0
  150. fan_speed: 1.0
  151.  
  152. [fan]
  153. pin: P2.4
  154. max_power: 0.5
  155. kick_start_time: 0.2
  156.  
  157. #[heater_fan stepstick_fan]
  158. #pin: PH4
  159.  
  160. ###BED###
  161.  
  162. [heater_bed]
  163. heater_pin: P2.7
  164. sensor_type: EPCOS 100K B57560G104F
  165. sensor_pin: P0.23
  166. #control: pid
  167. #pid_Kp: 97.1
  168. #pid_Ki: 1.41
  169. #pid_Kd: 1675.1
  170. min_temp: 0
  171. max_temp: 110
  172.  
  173. ###BED MESH LEVELING####
  174.  
  175. [probe]
  176. pin: !P1.25
  177. x_offset: 0.0
  178. y_offset: 0.0
  179. z_offset: 0 ###You must do a probe_calibrate prior to bed mesh leveling to generate a new z_offset.
  180. speed: 5.0
  181. samples: 3
  182. sample_retract_dist: 2.0
  183. samples_result: average
  184. samples_tolerance: 0.100
  185. samples_tolerance_retries: 2
  186.  
  187. [screws_tilt_adjust]
  188. screw1: 30,30
  189. screw1_name: front left screw
  190. screw2: 400,30
  191. screw2_name: front right screw
  192. screw3: 400,400
  193. screw3_name: rear right screw
  194. screw4: 30,400
  195. screw4_name: rear left screw
  196. horizontal_move_z: 20.
  197. speed: 50.
  198. screw_thread: CW-M3
  199.  
  200. [bed_mesh]
  201. speed: 50
  202. horizontal_move_z: 20
  203. mesh_min: 20,20
  204. mesh_max: 380, 380
  205. probe_count: 6,6
  206.  
  207. ###MISC###
  208.  
  209. [display_status]
  210.  
  211. [pause_resume]
  212.  
  213.  
  214. ###MACROS###
  215.  
  216. [gcode_macro G29]
  217. description: Run Bed Mesh Leveling
  218. gcode:
  219. {% set t = params.T|default(0)|float %}
  220.  
  221. {% if printer.idle_timeout.state == "Printing" %}
  222. {action_respond_info("This command cannot be used while printing")}
  223. {% elif printer.toolhead.homed_axes != "xyz" %}
  224. {action_respond_info("Please home XYZ first")}
  225. {% else %}
  226. SAVE_GCODE_STATE NAME=G29_state
  227. G90
  228. G1 Z20 F1000
  229. {% if t > 30.0 %}
  230. M190 S{t}
  231. {% endif %}
  232. BED_MESH_CALIBRATE
  233. {% if 'S' in params %}
  234. M140 S{params.S}
  235. {% endif %}
  236. G90
  237. G1 Z20 F1000
  238. G1 X-5 Y0 F6000
  239. RESTORE_GCODE_STATE NAME=G29_state MOVE=0
  240. {% endif %}
  241.  
  242. [gcode_macro CANCEL_PRINT]
  243. description: Cancel the actual running print
  244. rename_existing: CANCEL_PRINT_BASE
  245. gcode:
  246. G1 Z20 F1000
  247. G28
  248. TURN_OFF_HEATERS
  249. CLEAR_PAUSE
  250. SDCARD_RESET_FILE
  251. BASE_CANCEL_PRINT
  252.  
  253. [gcode_macro RESUME]
  254. description: Resume the actual running print
  255. rename_existing: RESUME_BASE
  256. gcode:
  257. ##### read E from pause macro #####
  258. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  259. #### get VELOCITY parameter if specified ####
  260. {% if 'VELOCITY' in params|upper %}
  261. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  262. {%else %}
  263. {% set get_params = "" %}
  264. {% endif %}
  265. ##### end of definitions #####
  266. {% if printer.extruder.can_extrude|lower == 'true' %}
  267. G91
  268. G1 E{E} F2100
  269. {% else %}
  270. {action_respond_info("Extruder not hot enough")}
  271. {% endif %}
  272. RESUME_BASE {get_params}
  273.  
  274. [gcode_macro PAUSE]
  275. description: Pause the actual running print
  276. rename_existing: PAUSE_BASE
  277. # change this if you need more or less extrusion
  278. variable_extrude: 1.0
  279. gcode:
  280. ##### read E from pause macro #####
  281. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  282. ##### set park positon for x and y #####
  283. # default is your max posion from your printer.cfg
  284. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  285. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  286. ##### calculate save lift position #####
  287. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  288. {% set act_z = printer.toolhead.position.z|float %}
  289. {% if act_z < (max_z - 2.0) %}
  290. {% set z_safe = 2.0 %}
  291. {% else %}
  292. {% set z_safe = max_z - act_z %}
  293. {% endif %}
  294. ##### end of definitions #####
  295. PAUSE_BASE
  296. G91
  297. {% if printer.extruder.can_extrude|lower == 'true' %}
  298. G1 E-{E} F2100
  299. {% else %}
  300. {action_respond_info("Extruder not hot enough")}
  301. {% endif %}
  302. {% if "xyz" in printer.toolhead.homed_axes %}
  303. G1 Z{z_safe} F900
  304. G90
  305. G1 X{x_park} Y{y_park} F6000
  306. {% else %}
  307. {action_respond_info("Printer not homed")}
  308. {% endif %}
  309.  
  310. #*# <---------------------- SAVE_CONFIG ---------------------->
  311. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  312. #*#
  313. #*# [extruder]
  314. #*# control = pid
  315. #*# pid_kp = 16.179
  316. #*# pid_ki = 0.593
  317. #*# pid_kd = 110.420
  318. #*#
  319. #*# [heater_bed]
  320. #*# control = pid
  321. #*# pid_kp = 68.646
  322. #*# pid_ki = 1.664
  323. #*# pid_kd = 707.915
  324. #*#
  325. #*# [bed_mesh default]
  326. #*# version = 1
  327. #*# points =
  328. #*# 0.690833, 0.638333, 0.603333, 0.580833, 0.576667, 0.542500
  329. #*# 0.970833, 0.859167, 0.780833, 0.744167, 0.750833, 0.752500
  330. #*# 1.210833, 1.033333, 0.909167, 0.862500, 0.865000, 0.885000
  331. #*# 1.139167, 0.981667, 0.875000, 0.832500, 0.838333, 0.860000
  332. #*# 0.900000, 0.784167, 0.698333, 0.649167, 0.644167, 0.626667
  333. #*# 0.551667, 0.505833, 0.462500, 0.417500, 0.388333, 0.341667
  334. #*# tension = 0.2
  335. #*# min_x = 20.0
  336. #*# algo = lagrange
  337. #*# y_count = 6
  338. #*# mesh_y_pps = 2
  339. #*# min_y = 20.0
  340. #*# x_count = 6
  341. #*# max_y = 380.0
  342. #*# mesh_x_pps = 2
  343. #*# max_x = 380.0
  344.  
Add Comment
Please, Sign In to add comment