Advertisement
PotatoKnight

printer.cfg

Mar 16th, 2023
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.78 KB | None | 0 0
  1. #This is an example configuration file, for the Ender Switchwire Conversion with the SKR E3 mini V2.
  2. [include mainsail.cfg]
  3. [include stealthburner_leds.cfg]
  4. [include macros.cfg]
  5.  
  6. [mcu]
  7. serial: /dev/serial/by-id/usb-Klipper_stm32g0b0xx_34001E000E50415833323520-if00
  8.  
  9. [printer]
  10. kinematics: corexz
  11. max_velocity: 200
  12. max_accel: 2000
  13. max_z_velocity: 50
  14. max_z_accel: 2000
  15. square_corner_velocity: 4.0
  16.  
  17. [virtual_sdcard]
  18. path: ~/printer_data/gcodes
  19.  
  20. #####################################################################
  21. # X Stepper Settings
  22. #####################################################################
  23.  
  24. ######
  25. # Motor -XM
  26. # Endstop - X-STOP
  27. ###############
  28.  
  29. [stepper_x]
  30. step_pin: PB13
  31. dir_pin: PB12
  32. enable_pin: !PB14
  33. rotation_distance: 40
  34. microsteps: 16
  35. endstop_pin: tmc2209_stepper_x:virtual_endstop
  36. position_endstop: 220
  37. position_min: 0
  38. position_max: 220
  39. homing_speed: 30
  40. homing_positive_dir: true
  41.  
  42. [tmc2209 stepper_x]
  43. uart_pin: PC11
  44. tx_pin: PC10
  45. uart_address: 0
  46. run_current: 0.7
  47. hold_current: 0.35
  48. sense_resistor: 0.110
  49. interpolate: True
  50. diag_pin: ^PC0
  51. stealthchop_threshold: 250
  52. driver_SGTHRS: 75
  53.  
  54. #####################################################################
  55. # Y Stepper Settings
  56. #####################################################################
  57.  
  58. ######
  59. # Motor -YM
  60. # Endstop - Y-STOP
  61. ###############
  62.  
  63. [stepper_y]
  64. step_pin: PB10
  65. dir_pin: !PB2
  66. enable_pin: !PB11
  67. rotation_distance: 40
  68. microsteps: 16
  69. endstop_pin: !PC1
  70. position_endstop: 0
  71. position_min: 0
  72. position_max: 220
  73. homing_speed: 40
  74. homing_positive_dir: false
  75.  
  76. [tmc2209 stepper_y]
  77. uart_pin: PC11
  78. tx_pin: PC10
  79. uart_address: 2
  80. run_current: 0.5
  81. hold_current: 0.3
  82. interpolate: True
  83. stealthchop_threshold: 250
  84.  
  85. #####################################################################
  86. # Z Stepper Settings
  87. #####################################################################
  88.  
  89. ######
  90. # Motor -ZAM
  91. # Endstop - Z-STOP
  92. ###############
  93.  
  94. [stepper_z]
  95. step_pin: PB0
  96. dir_pin: PC5
  97. enable_pin: !PB1
  98. microsteps: 16
  99. rotation_distance: 40
  100. endstop_pin: probe:z_virtual_endstop
  101. position_max: 220
  102. homing_speed: 40
  103. position_min: -3.0
  104.  
  105. [tmc2209 stepper_z]
  106. uart_pin: PC11
  107. tx_pin: PC10
  108. uart_address: 1
  109. run_current: 0.7
  110. hold_current: 0.35
  111. interpolate: True
  112. stealthchop_threshold: 250
  113.  
  114. #####################################################################
  115. # Probe
  116. #####################################################################
  117.  
  118. ######
  119. #Z Max Connector on Z(main) Board
  120. #Inductive Probe
  121. ###############
  122.  
  123. [probe]
  124. pin: PC14
  125. x_offset: 0
  126. y_offset: 25
  127. z_offset: 1.5
  128. samples: 1
  129. samples_result: median
  130. sample_retract_dist: 3
  131. samples_tolerance: 0.026
  132. samples_tolerance_retries: 3
  133.  
  134. #####################################################################
  135. # Extruder Settings
  136. #####################################################################
  137.  
  138. ######
  139. #Motor - EM
  140. ###############
  141.  
  142. [extruder]
  143. max_extrude_only_distance: 100.0
  144. step_pin: PB3
  145. dir_pin: PB4
  146. enable_pin: !PD1
  147. microsteps: 32
  148. rotation_distance: 22.6789511
  149. gear_ratio: 50:10
  150. nozzle_diameter: 0.400
  151. filament_diameter: 1.750
  152. heater_pin: PC8
  153. pressure_advance: 0.045
  154. pressure_advance_smooth_time: 0.040
  155. sensor_type: Generic 3950
  156. sensor_pin: PA0
  157. min_temp: 0
  158. max_temp: 270
  159. max_power: 0.85
  160. full_steps_per_rotation: 200
  161. #control = pid
  162. #pid_kp = 34.418
  163. #pid_ki = 0.952
  164. #pid_kd = 311.055
  165.  
  166. [tmc2209 extruder]
  167. uart_pin: PC11
  168. tx_pin: PC10
  169. uart_address: 3
  170. run_current: 0.5
  171. hold_current: 0.3
  172. interpolate: True
  173.  
  174.  
  175. #####################################################################
  176. # Bed Heater
  177. #####################################################################
  178.  
  179. ######
  180. # BED Connector
  181. ###############
  182.  
  183. [heater_bed]
  184. heater_pin: PC9
  185. sensor_type: EPCOS 100K B57560G104F
  186. sensor_pin: PC4
  187. #control = pid
  188. #pid_kp = 74.959
  189. #pid_ki = 0.534
  190. #pid_kd = 2631.055
  191. min_temp: 0
  192. max_temp: 130
  193.  
  194. [verify_heater heater_bed]
  195. max_error: 480 #120
  196. check_gain_time: 120
  197.  
  198. [verify_heater extruder]
  199. max_error: 120 #120
  200. check_gain_time: 90
  201.  
  202. #####################################################################
  203. # Fan Control
  204. #####################################################################
  205.  
  206. ######
  207. # Electronics Fan
  208. # FAN1 Connector
  209. ###############
  210. [controller_fan my_controller_fan]
  211. pin: PC7
  212. max_power: 1
  213. kick_start_time: 0.200
  214. heater: heater_bed
  215.  
  216. ######
  217. # Hot End Fan
  218. # FAN2 Connector
  219. ###############
  220. [heater_fan extruder_fan]
  221. pin: PB15
  222. heater: extruder
  223. heater_temp: 50.0
  224. ## If you are experiencing back flow, you can reduce fan_speed
  225. #fan_speed: 1.0
  226.  
  227. ######
  228. # Part Cooling Fan
  229. # FAN0 Connector
  230. ###############
  231. [fan]
  232. pin: PC6 # "FAN0"
  233. cycle_time: 0.010
  234. ## Depending on your fan, you may need to increase this value
  235. ## if your fan will not start. Can change cycle_time (increase)
  236. ## if your fan is not able to slow down effectively
  237. kick_start_time: .25
  238.  
  239. [static_digital_output usb_pullup_enable]
  240. pins: !PA14
  241.  
  242. #####################################################################
  243. # Homing and Bed Mesh
  244. #####################################################################
  245.  
  246. [homing_override]
  247. axes: z
  248. set_position_z: 0
  249. gcode:
  250. G90
  251. G0 Z5 F1000
  252. G28 X2 Y0
  253. G0 X115 Y110 F9000
  254. G28 Z0
  255. # G0 Z5 F500
  256.  
  257. ## To be used with BED_SCREWS_ADJUST
  258. [bed_screws]
  259. screw1: 35,35
  260. screw1_name: front left
  261. screw2: 35,195
  262. screw2_name: back left
  263. screw3: 195,35
  264. screw3_name: front right
  265. screw4: 195,195
  266. screw4_name: back right
  267.  
  268. [bed_mesh]
  269. speed: 200
  270. horizontal_move_z: 6
  271. mesh_min: 25,35.0
  272. mesh_max: 220.0,220
  273. probe_count: 4,4
  274. algorithm: bicubic
  275. fade_start: 1
  276. fade_end: 15
  277. fade_target: 0
  278.  
  279. #####################################################################
  280. # Displays
  281. #####################################################################
  282.  
  283. #[display]
  284. # FYSETC mini12864 LCD Display v2.1
  285. #lcd_type: uc1701
  286. #cs_pin: PB8
  287. #a0_pin: PB15
  288. #rst_pin: PB9
  289. #encoder_pins: ^PA9,^PA10
  290. #click_pin: ^!PB5
  291. #contrast: 63
  292. #spi_software_sclk_pin: PA5
  293. #spi_software_mosi_pin: PA7
  294. #spi_software_miso_pin: PA6
  295.  
  296. #[neopixel fysetc_mini12864]
  297. # To control Neopixel RGB in mini12864 display
  298. #pin: PA15
  299. #chain_count: 3
  300. #initial_RED: 0.2
  301. #initial_GREEN: 0.5
  302. #initial_BLUE: 1.0
  303. #color_order: RGB
  304.  
  305. #[moonraker]
  306. #trusted_clients:
  307. # 192.168.1.0/24
  308.  
  309. #[gcode_macro lights_on]
  310. #gcode:
  311. # SET_PIN PIN=LIGHTS VALUE=1.0
  312. #
  313. #[gcode_macro lights_off]
  314. #gcode:
  315. # SET_PIN PIN=LIGHTS VALUE=0.0
  316.  
  317.  
  318. #####################################################################
  319. # Case Lights
  320. #####################################################################
  321. #[output_pin LIGHTS]
  322. #pin: PA8
  323. #value: 0
  324. #shutdown_value: 0
  325. #
  326. #[gcode_macro lights_on]
  327. #gcode:
  328. # SET_PIN PIN=LIGHTS VALUE=1.0
  329. #
  330. #[gcode_macro lights_off]
  331. #gcode:
  332. # SET_PIN PIN=LIGHTS VALUE=0.0
  333.  
  334.  
  335. [temperature_sensor raspberry_pi]
  336. sensor_type: temperature_host
  337. min_temp: 10
  338. max_temp: 100
  339.  
  340.  
  341. #####################################################################
  342. # Macros
  343. #####################################################################
  344. [
  345.  
  346.  
  347. #*# <---------------------- SAVE_CONFIG ---------------------->
  348. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  349. #*#
  350. #*# [heater_bed]
  351. #*# control = pid
  352. #*# pid_kp = 72.482
  353. #*# pid_ki = 1.275
  354. #*# pid_kd = 1030.152
  355. #*#
  356. #*# [extruder]
  357. #*# control = pid
  358. #*# pid_kp = 16.311
  359. #*# pid_ki = 0.836
  360. #*# pid_kd = 79.516
  361. #*#
  362. #*# [bed_mesh default]
  363. #*# version = 1
  364. #*# points =
  365. #*# 1.525000, 1.275000, 1.062500, 0.925000
  366. #*# 0.525000, 0.425000, 0.275000, 0.275000
  367. #*# -0.212500, 0.212500, 0.250000, 0.387500
  368. #*# 0.950000, 0.625000, 0.375000, 0.225000
  369. #*# x_count = 4
  370. #*# y_count = 4
  371. #*# mesh_x_pps = 2
  372. #*# mesh_y_pps = 2
  373. #*# algo = bicubic
  374. #*# tension = 0.2
  375. #*# min_x = 25.0
  376. #*# max_x = 220.0
  377. #*# min_y = 35.0
  378. #*# max_y = 219.97
  379.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement