Advertisement
insippo

Anycubic Kobra Max printer.cfg for Klipper

May 24th, 2023
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.37 KB | None | 0 0
  1. # Config file for Anycubic Kobra Max
  2. # Don't forget to calibrate Zprobe (BEACON_CALIBRATE + SAVE_CONFIG) and (BED_MESH_CALIBRATE + SAVE_CONFIG)
  3.  
  4. [include mainsail.cfg]
  5. [include pressure_advance.cfg]
  6. [virtual_sdcard]
  7. path: /home/orangepi/printer_data/gcodes
  8. on_error_gcode: CANCEL_PRINT
  9.  
  10. [include macros.cfg]
  11.  
  12.  
  13. [stepper_x]
  14. step_pin: PA5
  15. dir_pin: PA4
  16. enable_pin: !PC3
  17. microsteps: 16
  18. rotation_distance: 40
  19. endstop_pin: !PA6
  20. position_min: -5
  21. position_endstop: -4.21
  22. position_max: 404
  23. homing_speed: 100
  24.  
  25. [tmc2209 stepper_x]
  26. uart_pin:PA15
  27. tx_pin:PA9
  28. #diag_pin:PA6
  29. sense_resistor: 0.100
  30. run_current: 0.9
  31. uart_address: 3
  32. #driver_SGTHRS: 0
  33. stealthchop_threshold: 999999
  34.  
  35. [stepper_y]
  36. step_pin: PC4
  37. dir_pin: PA7
  38. enable_pin: !PC3
  39. microsteps: 16
  40. rotation_distance: 40
  41. endstop_pin: !PC5
  42. position_min: -16
  43. position_endstop: -15.15
  44. position_max: 404
  45. homing_speed: 100
  46.  
  47. [tmc2209 stepper_y]
  48. uart_pin:PA15
  49. tx_pin:PA9
  50. diag_pin:^PC5
  51. sense_resistor: 0.100
  52. run_current: 0.9
  53. uart_address: 1
  54. driver_SGTHRS: 50
  55. stealthchop_threshold: 999999
  56.  
  57. [stepper_z]
  58. step_pin: PC7
  59. dir_pin: !PC6
  60. enable_pin: !PC3
  61. microsteps: 16
  62. rotation_distance: 8
  63. endstop_pin: probe:z_virtual_endstop
  64. homing_retract_dist: 0 # beacon needs this to be set to 0
  65. #endstop_pin: PA8
  66. #position_endstop: 0
  67. position_min: -2
  68. position_max: 450
  69. homing_speed: 10
  70.  
  71. [tmc2209 stepper_z]
  72. uart_pin:PA15
  73. tx_pin:PA9
  74. #diag_pin:PA8
  75. sense_resistor: 0.100
  76. run_current: 0.9
  77. uart_address: 2
  78. #driver_SGTHRS: 0
  79. stealthchop_threshold: 999999
  80.  
  81. [stepper_z1]
  82. step_pin: PB1
  83. dir_pin: !PB0
  84. enable_pin: !PC3
  85. microsteps: 16
  86. rotation_distance: 8
  87.  
  88.  
  89. #[probe]
  90. #pin: !PB6
  91. #speed: 5.0
  92. #samples: 2
  93. #samples_tolerance_retries: 3
  94. #z_offset: 0.05
  95. #activate_gcode: probe_reset
  96.  
  97. [output_pin LED]
  98. pin: mcu:PB8
  99. pwm: False
  100. value: 0
  101.  
  102. [output_pin probe_reset_pin]
  103. pin: !PB7
  104.  
  105. [extruder]
  106. max_extrude_only_distance: 100.0
  107. max_extrude_cross_section = 5
  108. step_pin: PC14
  109. dir_pin: !PC15
  110. enable_pin: !PC3
  111. microsteps: 16
  112. rotation_distance: 7.71 #For stock extruder (To be calibrated !)
  113. #rotation_distance: 23 #For Micro Swiss extruder
  114. nozzle_diameter: 0.400
  115. filament_diameter: 1.750
  116. heater_pin: PA1
  117. sensor_type: EPCOS 100K B57560G104F
  118. sensor_pin: PC1
  119. #control = pid
  120. #pid_kp = 31.243
  121. #pid_ki = 3.414
  122. #pid_kd = 71.468
  123. min_temp: 0
  124. max_temp: 250
  125.  
  126. [firmware_retraction]
  127. retract_length:3 #stock is more than 2
  128. retract_speed:20
  129. unretract_extra_length:0
  130. unretract_speed:20
  131.  
  132. [tmc2208 extruder]
  133. uart_pin:PA15
  134. tx_pin:PA9
  135. #diag_pin:PB7
  136. sense_resistor: 0.100
  137. run_current: 0.9
  138. uart_address: 0
  139. stealthchop_threshold: 999999
  140.  
  141.  
  142. [heater_bed]
  143. heater_pin: PA0
  144. sensor_type: EPCOS 100K B57560G104F
  145. sensor_pin: PC0
  146. control = pid
  147. pid_kp = 73.966
  148. pid_ki = 0.884
  149. pid_kd = 1547.747
  150. min_temp: 0
  151. max_temp: 130
  152.  
  153. [fan]
  154. pin: PB9
  155.  
  156. [heater_fan hotend_fan]
  157. pin: PA13
  158. heater: extruder
  159. heater_temp: 50.0
  160.  
  161. [heater_fan controller_fan]
  162. pin: PA14
  163. heater: heater_bed
  164. heater_temp: 45.0
  165.  
  166. [safe_z_home]
  167. home_xy_position: 200, 200 # Center of bed
  168. speed: 100
  169. z_hop: 5 # Move up 5mm
  170. z_hop_speed: 15
  171. move_to_previous: True
  172.  
  173. [bed_mesh]
  174. speed: 200
  175. horizontal_move_z: 3
  176. mesh_min: 20, 20
  177. mesh_max: 360, 360
  178. algorithm: bicubic
  179. probe_count: 10, 10
  180.  
  181. [gcode_macro probe_reset]
  182. gcode:
  183. SET_PIN PIN=probe_reset_pin VALUE=1
  184. G4 P500
  185. SET_PIN PIN=probe_reset_pin VALUE=0
  186. G4 P100
  187.  
  188. [filament_switch_sensor runout]
  189. pause_on_runout: True
  190. switch_pin: !PC13
  191.  
  192. [mcu]
  193. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  194. restart_method: command
  195. baud: 250000
  196.  
  197. [mcu opi]
  198. serial: /tmp/klipper_host_mcu
  199.  
  200. [adxl345]
  201. cs_pin: opi:None
  202. spi_speed: 488000
  203. spi_bus: spidev1.0
  204.  
  205. [resonance_tester]
  206. accel_chip: adxl345
  207. probe_points: 100, 100, 20 # an example
  208.  
  209.  
  210. [printer]
  211. kinematics: cartesian
  212. max_velocity: 300
  213. max_accel: 2000
  214. max_z_velocity: 5
  215. max_z_accel: 100
  216.  
  217.  
  218.  
  219. [beacon]
  220. serial: /dev/serial/by-id/usb-Beacon_Beacon_RevD_BD1D5BAF515137474C202020FF0C1D1F-if00
  221. x_offset: 0 # update with offset from nozzle on your machine
  222. y_offset: 30 # update with offset from nozzle on your machine
  223. mesh_main_direction: x
  224. mesh_runs: 2
  225.  
  226. #*# <---------------------- SAVE_CONFIG ---------------------->
  227. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  228. #*#
  229. #*# [probe]
  230. #*# z_offset = -0.151
  231. #*#
  232. #*# [extruder]
  233. #*# control = pid
  234. #*# pid_kp = 22.198
  235. #*# pid_ki = 1.104
  236. #*# pid_kd = 111.545
  237. #*#
  238. #*# [beacon model default]
  239. #*# model_coef = 1.4514040939028683,
  240. #*# 1.7720853858518817,
  241. #*# 0.7473051881442708,
  242. #*# 0.38519348427937317,
  243. #*# 0.42541487369912,
  244. #*# 0.22477408465000007,
  245. #*# -0.33047371370102635,
  246. #*# -0.05318945183466364,
  247. #*# 0.3058317935833267,
  248. #*# 0.07274578543855743
  249. #*# model_domain = 3.157126281916186e-07,3.3192071316391005e-07
  250. #*# model_range = 0.200000,5.000000
  251. #*# model_temp = 38.929321
  252. #*# model_offset = 0.00000
  253. #*#
  254. #*# [bed_mesh kylmalt]
  255. #*# version = 1
  256. #*# points =
  257. #*# -1.023784, -0.987357, -0.979183, -0.959274, -0.939242, -0.922006, -0.904910, -0.854138, -0.814619, -0.774498
  258. #*# -0.669587, -0.632249, -0.585868, -0.552960, -0.519998, -0.496490, -0.500569, -0.481304, -0.439124, -0.401968
  259. #*# -0.340775, -0.340612, -0.288996, -0.254121, -0.222113, -0.208018, -0.201281, -0.218772, -0.229614, -0.195686
  260. #*# -0.021275, -0.047661, -0.051580, -0.044870, -0.021199, -0.008676, -0.042226, -0.056268, -0.064788, -0.102201
  261. #*# 0.122092, 0.047078, 0.005452, 0.015682, 0.025580, 0.038262, 0.020159, -0.001222, -0.034022, -0.091976
  262. #*# 0.066776, -0.017562, -0.045803, -0.026331, 0.004095, 0.024724, 0.008740, -0.018052, -0.071594, -0.135458
  263. #*# -0.065127, -0.145907, -0.172166, -0.155052, -0.104080, -0.066501, -0.099897, -0.117919, -0.152034, -0.198757
  264. #*# -0.208970, -0.321992, -0.347322, -0.326324, -0.284117, -0.246740, -0.229350, -0.230391, -0.244124, -0.203646
  265. #*# -0.385619, -0.531467, -0.617343, -0.607034, -0.574308, -0.519099, -0.512005, -0.447993, -0.376587, -0.318774
  266. #*# -0.624967, -0.799898, -0.921492, -0.943298, -0.934164, -0.877088, -0.823426, -0.729854, -0.652360, -0.563902
  267. #*# x_count = 10
  268. #*# y_count = 10
  269. #*# mesh_x_pps = 2
  270. #*# mesh_y_pps = 2
  271. #*# algo = bicubic
  272. #*# tension = 0.2
  273. #*# min_x = 19.0
  274. #*# max_x = 380.0
  275. #*# min_y = 19.0
  276. #*# max_y = 380.0
  277. #*#
  278. #*# [bed_mesh PLA 1]
  279. #*# version = 1
  280. #*# points =
  281. #*# -1.368324, -1.220125, -1.095501, -1.010762, -0.951971, -0.921652, -0.932999, -0.955169, -0.989838, -1.046900
  282. #*# -0.944548, -0.809415, -0.671910, -0.578856, -0.516679, -0.485214, -0.514898, -0.549486, -0.598748, -0.651475
  283. #*# -0.591556, -0.479412, -0.352783, -0.269776, -0.207245, -0.183464, -0.227716, -0.285496, -0.359228, -0.459283
  284. #*# -0.284820, -0.217094, -0.131688, -0.057127, 0.009895, 0.026903, -0.044479, -0.116068, -0.224329, -0.354894
  285. #*# -0.166242, -0.142309, -0.079358, -0.005905, 0.039317, 0.055427, 0.011089, -0.073979, -0.204215, -0.354223
  286. #*# -0.222216, -0.208844, -0.136298, -0.056289, 0.015027, 0.043925, -0.008968, -0.093689, -0.233698, -0.391503
  287. #*# -0.346475, -0.337323, -0.276156, -0.193157, -0.098244, -0.061933, -0.125970, -0.202814, -0.330945, -0.480656
  288. #*# -0.486767, -0.509894, -0.448761, -0.373579, -0.295062, -0.260518, -0.279973, -0.337882, -0.426523, -0.523125
  289. #*# -0.688731, -0.728017, -0.733057, -0.672485, -0.603869, -0.547751, -0.555655, -0.565453, -0.600279, -0.647731
  290. #*# -0.929203, -1.007977, -1.038789, -0.992241, -0.943141, -0.885310, -0.867722, -0.845896, -0.877903, -0.923945
  291. #*# x_count = 10
  292. #*# y_count = 10
  293. #*# mesh_x_pps = 2
  294. #*# mesh_y_pps = 2
  295. #*# algo = bicubic
  296. #*# tension = 0.2
  297. #*# min_x = 19.0
  298. #*# max_x = 380.0
  299. #*# min_y = 19.0
  300. #*# max_y = 380.0
  301. #*#
  302. #*# [bed_mesh PETG]
  303. #*# version = 1
  304. #*# points =
  305. #*# -1.699711, -1.538945, -1.409818, -1.282995, -1.189769, -1.102013, -1.045756, -1.003159, -1.002373, -1.026533, -1.055502, -1.123540, -1.193111, -1.276382, -1.389717
  306. #*# -1.348322, -1.197725, -1.079842, -0.944400, -0.852781, -0.765875, -0.702961, -0.673671, -0.673328, -0.704274, -0.736923, -0.802867, -0.885704, -0.955880, -1.065629
  307. #*# -1.078381, -0.936947, -0.810588, -0.684267, -0.592306, -0.503351, -0.445238, -0.416483, -0.419221, -0.461862, -0.494986, -0.563954, -0.648199, -0.735191, -0.844141
  308. #*# -0.846026, -0.720552, -0.598702, -0.476764, -0.389223, -0.304165, -0.243705, -0.206834, -0.220273, -0.261020, -0.314018, -0.392140, -0.485433, -0.583858, -0.703502
  309. #*# -0.605680, -0.504732, -0.396551, -0.287707, -0.206110, -0.121773, -0.054618, -0.006392, -0.046254, -0.112440, -0.164579, -0.251685, -0.365162, -0.483556, -0.623441
  310. #*# -0.459000, -0.366764, -0.270469, -0.173067, -0.092767, -0.009031, 0.053127, 0.088910, 0.061488, 0.001394, -0.065742, -0.162796, -0.288140, -0.421187, -0.578154
  311. #*# -0.397460, -0.318782, -0.242812, -0.145324, -0.063853, 0.021214, 0.064915, 0.091132, 0.084741, 0.036371, -0.026463, -0.134329, -0.277879, -0.414501, -0.584423
  312. #*# -0.392350, -0.317180, -0.265880, -0.171837, -0.081484, 0.008994, 0.060965, 0.094239, 0.083140, 0.038842, -0.029451, -0.142103, -0.291765, -0.423743, -0.600640
  313. #*# -0.471547, -0.402343, -0.326698, -0.223424, -0.134121, -0.040861, 0.038977, 0.060194, 0.066634, 0.007421, -0.050428, -0.163890, -0.314042, -0.464434, -0.636774
  314. #*# -0.550253, -0.491659, -0.412567, -0.319606, -0.231567, -0.140803, -0.051483, 0.010312, -0.017196, -0.073447, -0.134655, -0.243634, -0.386081, -0.530874, -0.700828
  315. #*# -0.625883, -0.576543, -0.511602, -0.419045, -0.338865, -0.246204, -0.167436, -0.112335, -0.124685, -0.185133, -0.232825, -0.335857, -0.464872, -0.599816, -0.751745
  316. #*# -0.735650, -0.704110, -0.649552, -0.564715, -0.484539, -0.401175, -0.339281, -0.287793, -0.288534, -0.326621, -0.370637, -0.457709, -0.568854, -0.685642, -0.822234
  317. #*# -0.891231, -0.853334, -0.828152, -0.768063, -0.695893, -0.610828, -0.548383, -0.504377, -0.493188, -0.525488, -0.558611, -0.626157, -0.717265, -0.803432, -0.929239
  318. #*# -1.047081, -1.001891, -1.008576, -0.975866, -0.908825, -0.839675, -0.779105, -0.729084, -0.710143, -0.735028, -0.754089, -0.812688, -0.879652, -0.965160, -1.077529
  319. #*# -1.248740, -1.231512, -1.226381, -1.198120, -1.141167, -1.070126, -1.022495, -0.976787, -0.954628, -0.970041, -0.981094, -1.027175, -1.113465, -1.212473, -1.316314
  320. #*# x_count = 15
  321. #*# y_count = 15
  322. #*# mesh_x_pps = 2
  323. #*# mesh_y_pps = 2
  324. #*# algo = bicubic
  325. #*# tension = 0.2
  326. #*# min_x = 19.0
  327. #*# max_x = 380.0
  328. #*# min_y = 19.0
  329. #*# max_y = 380.0
  330. #*#
  331. #*# [input_shaper]
  332. #*# shaper_type_x = ei
  333. #*# shaper_freq_x = 69.6
  334. #*# shaper_type_y = mzv
  335. #*# shaper_freq_y = 30.8
  336.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement