Advertisement
lainszvahl

Klipper Ender 5 - MKS GEN L BLTOUCH

Oct 7th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.64 KB | None | 0 0
  1. # This file contains common pin mappings for the 2019 Creality
  2. # Ender 5. To use this config, the firmware should be compiled for the
  3. # AVR atmega1284p.
  4.  
  5. # Note, a number of Melzi boards are shipped with a bootloader that
  6. # requires the following command to flash the board:
  7. # avrdude -p atmega1284p -c arduino -b 57600 -P /dev/ttyUSB0 -U out/klipper.elf.hex
  8. # If the above command does not work and "make flash" does not work
  9. # then one may need to flash a bootloader to the board - see the
  10. # Klipper docs/Bootloaders.md file for more information.
  11.  
  12. # See the example.cfg file for a description of available parameters.
  13.  
  14. #####################################################################################
  15. # Configuration for Ender 5 with a MKS GEN L
  16. # X,Y are TMC2208 in UART Mode.
  17. # Z is a TMC2208 in Drop In mode
  18. # E is an LV8729
  19. #
  20. # a BLTouch is present
  21. #####################################################################################
  22.  
  23. [printer]
  24. kinematics: cartesian
  25. max_velocity: 300
  26. max_accel: 2000
  27. max_z_velocity: 50
  28. max_z_accel: 150
  29. #max_extrude_only_velocity: 120
  30. #max_extrude_only_accel: 1500
  31.  
  32.  
  33. #####################################################################################
  34.  
  35. [tmc2208 stepper_x]
  36. uart_pin: ar63
  37. #tx_pin: ar40
  38. microsteps: 16
  39. interpolate: True
  40. run_current: 0.71
  41. stealthchop_threshold: 200
  42. driver_PWM_AUTOGRAD: True
  43. driver_PWM_AUTOSCALE: True
  44.  
  45. [stepper_x]
  46. step_pin: ar54
  47. dir_pin: ar55
  48. enable_pin: !ar38
  49. step_distance: .0125
  50. endstop_pin: ^ar3
  51. position_endstop: 0
  52. position_min: 0
  53. position_max: 220
  54. homing_speed: 100
  55.  
  56. #####################################################################################
  57.  
  58. [tmc2208 stepper_y]
  59. uart_pin: ar64
  60. #tx_pin: ar59
  61. microsteps: 16
  62. interpolate: True
  63. run_current: 0.71
  64. stealthchop_threshold: 200
  65. driver_PWM_AUTOGRAD: True
  66. driver_PWM_AUTOSCALE: True
  67.  
  68. [stepper_y]
  69. step_pin: ar60
  70. dir_pin: ar61
  71. enable_pin: !ar56
  72. step_distance: .0125
  73. endstop_pin: ^ar14
  74. position_endstop: 0
  75. position_min: 0
  76. position_max: 220
  77. homing_speed: 100
  78.  
  79. #####################################################################################
  80.  
  81. #[tmc2208 stepper_z]
  82. #uart_pin: ar65
  83. #tx_pin: ar59
  84. #microsteps: 16
  85. #interpolate: True
  86. #run_current: 0.71
  87. #stealthchop_threshold: 200
  88. #driver_PWM_AUTOGRAD: True
  89. #driver_PWM_AUTOSCALE: True
  90.  
  91. [stepper_z]
  92. step_pin: ar46
  93. dir_pin: !ar48
  94. enable_pin: !ar62
  95. step_distance: .0025
  96. #endstop_pin: ^ar18
  97. endstop_pin: probe:z_virtual_endstop
  98. #position_endstop: 0
  99. position_min: -5
  100. position_max: 300
  101. homing_retract_dist: 10 # to fix bltouch clone error
  102.  
  103. #####################################################################################
  104.  
  105. [extruder]
  106. step_pin: ar26
  107. dir_pin: !ar28
  108. enable_pin: !ar24
  109. step_distance: 0.0023640661 # 423 esteps Bondtech bmg
  110. nozzle_diameter: 0.400
  111. filament_diameter: 1.750
  112. heater_pin: PB4
  113. sensor_type: EPCOS 100K B57560G104F
  114. sensor_pin: analog13
  115. control: pid
  116. pid_Kp: 22.2
  117. pid_Ki: 1.08
  118. pid_Kd: 114
  119. min_temp: 10
  120. max_temp: 260
  121. pressure_advance: 0.08
  122. #pressure_advance_lookahead_time: 0.05
  123. max_extrude_only_distance: 350.00
  124. #####################################################################################
  125.  
  126. [heater_bed]
  127. heater_pin: PH5
  128. sensor_type: EPCOS 100K B57560G104F
  129. sensor_pin: analog14
  130. #control: pid
  131. #pid_Kp: 54.027
  132. #pid_Ki: 0.770
  133. #pid_Kd: 948.182
  134. min_temp: 10
  135. max_temp: 130
  136.  
  137. #####################################################################################
  138.  
  139. [fan]
  140. pin: ar9
  141. max_power: 1.0
  142.  
  143. [heater_fan noozle_fan]
  144. heater: extruder
  145. max_power: 1.0
  146. shutdown_speed: 0
  147. cycle_time: 0.010
  148. hardware_pwm: True
  149. kick_start_time: 0.100
  150. heater_temp: 50
  151. fan_speed: 1.0
  152. pin: ar7
  153.  
  154. #####################################################################################
  155.  
  156. [bltouch]
  157. sensor_pin: ^ar18
  158. control_pin: ar11
  159. x_offset: -46
  160. y_offset: -14
  161. #z_offset: 0
  162. pin_up_touch_mode_reports_triggered: False
  163. speed: 15.0
  164.  
  165. #####################################################################################
  166.  
  167. #[homing_override]
  168. #axes: z
  169. #gcode:
  170. # G90
  171. # G1 Z10 F600
  172. # G28 X0 Y0 F3000
  173. # G1 X110 Y110 F3000
  174. # G28 Z0
  175. #set_position_z: 5
  176.  
  177. [homing_override]
  178. #set_position_z: 5
  179. #axes: z
  180. gcode:
  181. G90
  182. G1 Z10
  183. G28 X Y
  184. G1 X110 Y110 F6000
  185. G28 Z0
  186. G1 Z10 F600
  187. set_position_z: 5
  188.  
  189. [bed_mesh]
  190. #samples: 2
  191. speed: 100
  192. horizontal_move_z: 10
  193. min_point: 0,0
  194. max_point: 171,207
  195. probe_count: 3,3
  196. #split_delta_z: 0.025
  197. #move_check_distance: 7.0
  198. #mesh_pps: 2,2
  199. algorithm: lagrange
  200.  
  201. [gcode_macro G29]
  202. gcode:
  203. G1 Z10 F600
  204. BED_MESH_CALIBRATE
  205.  
  206. #####################################################################################
  207.  
  208. [mcu]
  209. serial: /dev/ttyUSB0
  210. pin_map: arduino
  211.  
  212. [display]
  213. lcd_type: st7920
  214. cs_pin: ar16
  215. sclk_pin: ar23
  216. sid_pin: ar17
  217. encoder_pins: ^ar31, ^ar33
  218. click_pin: ^!ar35
  219.  
  220. #[display]
  221. #lcd_type: st7920
  222. #cs_pin: ar16
  223. #sclk_pin: PA3
  224. #sid_pin: PA7
  225. #encoder_pins: ^ar23, ^PH0
  226. #click_pin: ^!PC2
  227.  
  228. #####################################################################################
  229.  
  230. #*# <---------------------- SAVE_CONFIG ---------------------->
  231. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  232. #*#
  233. #*# [bed_mesh default]
  234. #*# points =
  235. #*# 0.292500, 0.150000, 0.150000
  236. #*# 0.107500, 0.062500, 0.057500
  237. #*# -0.030000, -0.075000, -0.027500
  238. #*# x_count = 3
  239. #*# y_count = 3
  240. #*# min_x = 0.0
  241. #*# max_x = 171.0
  242. #*# min_y = 0.0
  243. #*# max_y = 207.0
  244. #*# x_offset = -46.0
  245. #*# y_offset = -17.0
  246. #*# mesh_x_pps = 2
  247. #*# mesh_y_pps = 2
  248. #*# algo = lagrange
  249. #*# tension = 0.2
  250. #*#
  251. #*# [heater_bed]
  252. #*# control = pid
  253. #*# pid_kp = 67.894
  254. #*# pid_ki = 1.146
  255. #*# pid_kd = 1005.679
  256. #*#
  257. #*# [bltouch]
  258. #*# z_offset = 3.500
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement