Pitoer

Chiron Klippy

Nov 27th, 2021 (edited)
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.12 KB | None | 0 0
  1. ###Chiron Config###
  2. ###STEPPERS###
  3.  
  4. [stepper_x]
  5. step_pin: PF0
  6. dir_pin: !PF1
  7. enable_pin: !PD7
  8. microsteps: 16
  9. rotation_distance: 40
  10. endstop_pin: ^!PE5
  11. position_endstop: 0
  12. #position_min: -10
  13. position_max: 410
  14. homing_speed: 60
  15.  
  16. [stepper_y]
  17. step_pin: PF6
  18. dir_pin: !PF7
  19. enable_pin: !PF2
  20. microsteps: 16
  21. rotation_distance: 32
  22. endstop_pin: ^!PL7
  23. position_endstop: 0
  24. position_max: 410
  25. homing_speed: 60.0
  26.  
  27. [stepper_z]
  28. step_pin: PC1
  29. dir_pin: !PC3
  30. enable_pin: !PC7
  31. microsteps: 16
  32. rotation_distance: 8
  33. endstop_pin: ^PL6
  34. position_endstop: -4.3
  35. position_min: -5.3
  36. position_max: 450
  37. homing_speed: 20.0
  38.  
  39. [stepper_z1]
  40. step_pin: PL3
  41. dir_pin: !PL1
  42. enable_pin: !PK0
  43. microsteps: 16
  44. rotation_distance: 8
  45. endstop_pin: ^PD3
  46.  
  47. [safe_z_home]
  48. home_xy_position: 0,0
  49. speed: 50
  50. z_hop: 35
  51. z_hop_speed: 10
  52.  
  53. [z_tilt]
  54. z_positions:
  55. 100, 120
  56. 380, 360
  57. points:
  58. 100, 180
  59. 350, 300
  60. speed: 50
  61. horizontal_move_z: 10
  62. retries: 3
  63. retry_tolerance: 0.05
  64.  
  65. [printer]
  66. kinematics: cartesian
  67. max_velocity: 400
  68. max_accel: 3000
  69. max_accel_to_decel: 2000
  70. max_z_velocity: 60
  71. max_z_accel: 100
  72.  
  73. square_corner_velocity: 5.0
  74.  
  75. [mcu]
  76. serial: /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
  77. baud: 250000
  78.  
  79. [virtual_sdcard]
  80. path: ~/gcode_files
  81.  
  82. [input_shaper] #These are my values for an unmodified Chiron frame.
  83. shaper_freq_x: 50 # frequency for the X mark of the test model
  84. shaper_freq_y: 35 # frequency for the Y mark of the test model
  85.  
  86. ###EXTRUDER###
  87.  
  88. [extruder]
  89. step_pin: PA4
  90. dir_pin: !PA6
  91. enable_pin: !PA2
  92. microsteps: 16
  93. rotation_distance: 3.4334
  94. full_steps_per_rotation: 200
  95. nozzle_diameter: 0.800
  96. filament_diameter: 1.750
  97. heater_pin: PB4 #PH5
  98. sensor_type: ATC Semitec 104GT-2
  99. sensor_pin: PK5
  100. #control: pid
  101. #pid_Kp: 16.61
  102. #pid_Ki: 1.21
  103. #pid_Kd: 56.88
  104. min_temp: 0
  105. max_temp: 245
  106. pwm_cycle_time: 0.02
  107. #pressure_advance=0.94 ###This is my value for a stock length bowden and stock extruder/hotend. YMMV
  108. max_extrude_only_distance: 200
  109.  
  110.  
  111. ###ONLY FANS###
  112.  
  113. [heater_fan my_nozzle_fan]
  114. pin: PL5
  115. heater_temp: 45.0
  116. fan_speed: 1.0
  117.  
  118. [fan]
  119. pin: PH6
  120. max_power: 0.5
  121. kick_start_time: 0.2
  122.  
  123. [heater_fan stepstick_fan]
  124. pin: PH4
  125.  
  126. ###BED###
  127.  
  128. [heater_bed]
  129. heater_pin: PL4
  130. sensor_type: EPCOS 100K B57560G104F
  131. sensor_pin: PK6
  132. #control: pid
  133. #pid_Kp: 97.1
  134. #pid_Ki: 1.41
  135. #pid_Kd: 1675.1
  136. min_temp: 0
  137. max_temp: 110
  138.  
  139. ###BED MESH LEVELING####
  140.  
  141. [probe]
  142. pin: PE4
  143. x_offset: 0.0
  144. y_offset: 0.0
  145. z_offset: 23.2 ###You must do a probe_calibrate prior to bed mesh leveling to generate a new z_offset.
  146. speed: 5.0
  147. samples: 3
  148. sample_retract_dist: 2.0
  149. samples_result: average
  150. samples_tolerance: 0.100
  151. samples_tolerance_retries: 0
  152.  
  153. [screws_tilt_adjust]
  154. screw1: 30,30
  155. screw1_name: front left screw
  156. screw2: 400,30
  157. screw2_name: front right screw
  158. screw3: 400,400
  159. screw3_name: rear right screw
  160. screw4: 30,400
  161. screw4_name: rear left screw
  162. horizontal_move_z: 40.
  163. speed: 50.
  164. screw_thread: CW-M3
  165.  
  166. [bed_mesh]
  167. speed: 80
  168. horizontal_move_z: 40
  169. mesh_min: 20,20
  170. mesh_max: 380, 380
  171. probe_count: 6,6
  172.  
  173. ###MISC###
  174.  
  175. [display_status]
  176.  
  177. [pause_resume]
  178.  
  179.  
  180. ###MACROS###
  181.  
  182. [gcode_macro G29]
  183. description: Run Bed Mesh Leveling
  184. gcode:
  185. {% set t = params.T|default(0)|float %}
  186.  
  187. {% if printer.idle_timeout.state == "Printing" %}
  188. {action_respond_info("This command cannot be used while printing")}
  189. {% elif printer.toolhead.homed_axes != "xyz" %}
  190. {action_respond_info("Please home XYZ first")}
  191. {% else %}
  192. SAVE_GCODE_STATE NAME=G29_state
  193. G90
  194. G1 Z20 F1000
  195. {% if t > 30.0 %}
  196. M190 S{t}
  197. {% endif %}
  198. BED_MESH_CALIBRATE
  199. {% if 'S' in params %}
  200. M140 S{params.S}
  201. {% endif %}
  202. G90
  203. G1 Z20 F1000
  204. G1 X-5 Y0 F6000
  205. RESTORE_GCODE_STATE NAME=G29_state MOVE=0
  206. {% endif %}
  207.  
  208. [gcode_macro CANCEL_PRINT]
  209. description: Cancel the actual running print
  210. rename_existing: CANCEL_PRINT_BASE
  211. gcode:
  212. G1 Z10 F1000
  213. TURN_OFF_HEATERS
  214. CLEAR_PAUSE
  215. SDCARD_RESET_FILE
  216. BASE_CANCEL_PRINT
  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 PAUSE]
  240. description: Pause the actual running print
  241. rename_existing: PAUSE_BASE
  242. # change this if you need more or less extrusion
  243. variable_extrude: 1.0
  244. gcode:
  245. ##### read E from pause macro #####
  246. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  247. ##### set park positon for x and y #####
  248. # default is your max posion from your printer.cfg
  249. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  250. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  251. ##### calculate save lift position #####
  252. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  253. {% set act_z = printer.toolhead.position.z|float %}
  254. {% if act_z < (max_z - 2.0) %}
  255. {% set z_safe = 2.0 %}
  256. {% else %}
  257. {% set z_safe = max_z - act_z %}
  258. {% endif %}
  259. ##### end of definitions #####
  260. PAUSE_BASE
  261. G91
  262. {% if printer.extruder.can_extrude|lower == 'true' %}
  263. G1 E-{E} F2100
  264. {% else %}
  265. {action_respond_info("Extruder not hot enough")}
  266. {% endif %}
  267. {% if "xyz" in printer.toolhead.homed_axes %}
  268. G1 Z{z_safe} F900
  269. G90
  270. G1 X{x_park} Y{y_park} F6000
  271. {% else %}
  272. {action_respond_info("Printer not homed")}
  273. {% endif %}
  274.  
  275. #*# <---------------------- SAVE_CONFIG ---------------------->
  276. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  277. #*#
  278. #*# [extruder]
  279. #*# control = pid
  280. #*# pid_kp = 24.102
  281. #*# pid_ki = 0.940
  282. #*# pid_kd = 154.555
  283. #*#
  284. #*# [heater_bed]
  285. #*# control = pid
  286. #*# pid_kp = 64.508
  287. #*# pid_ki = 1.686
  288. #*# pid_kd = 616.855
  289.  
Add Comment
Please, Sign In to add comment