Advertisement
Guest User

printer.cfg prusa mini

a guest
Mar 12th, 2022
810
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. # This file contains common configurations and pin mappings for the Prusa
  2. [mcu]
  3. serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_2E003A001547393431383232-if00
  4.  
  5. restart_method: command
  6.  
  7. [virtual_sdcard]
  8. path: ~/uploads/
  9.  
  10. #[input_shaper]
  11. #shaper_freq_x: 54
  12. #shaper_freq_y: 21.9
  13. #shaper_type: mzv
  14.  
  15. [stepper_x]
  16. step_pin: PD1
  17. dir_pin: PD0
  18. enable_pin: !PD3
  19. microsteps: 16
  20. rotation_distance: 32 # 200 * 16 / 100
  21. endstop_pin: tmc2209_stepper_x:virtual_endstop
  22. position_endstop: 180.4
  23. position_min: -2
  24. position_max: 180.4
  25. homing_speed: 75
  26. homing_retract_dist: 0
  27.  
  28. [stepper_y]
  29. step_pin: PD13
  30. dir_pin: PD12
  31. enable_pin: !PD14
  32. microsteps: 16
  33. rotation_distance: 32 # 200 * 16 / 100
  34. endstop_pin: tmc2209_stepper_y:virtual_endstop
  35. position_endstop: -3
  36. position_min: -3
  37. position_max: 180
  38. homing_speed: 75
  39. homing_retract_dist: 0
  40.  
  41. [stepper_z]
  42. step_pin: PD4
  43. dir_pin: !PD15
  44. enable_pin: !PD2
  45. microsteps: 16
  46. rotation_distance: 4
  47. endstop_pin: probe:z_virtual_endstop
  48. position_min: 0
  49. position_max: 185
  50.  
  51.  
  52. [extruder]
  53. step_pin: PD9
  54. dir_pin: !PD8
  55. enable_pin: !PD10
  56. microsteps: 16
  57. rotation_distance: 20.5622 # (200 * 16 * 48/18) / 415
  58. gear_ratio: 48:18
  59. nozzle_diameter: 0.400
  60. filament_diameter: 1.750
  61. heater_pin: PB1
  62. sensor_type: ATC Semitec 104GT-2
  63. sensor_pin: PC0
  64. #control: pid
  65. min_extrude_temp: 169
  66. # Prusa's firmware defaults.
  67. #pid_Kp: 7
  68. #pid_Ki: 0.5
  69. #pid_Kd: 45
  70. min_temp: 10
  71. max_temp: 305
  72. #pressure_advance: 0.2
  73.  
  74. [tmc2209 stepper_x]
  75. uart_pin: PD5
  76. uart_address: 1
  77. diag_pin: ^PE2
  78. driver_SGTHRS: 130
  79. run_current: 0.35
  80. sense_resistor: 0.22
  81. stealthchop_threshold: 999999
  82.  
  83. [tmc2209 stepper_y]
  84. uart_pin: PD5
  85. uart_address: 3
  86. diag_pin: ^PE1
  87. driver_SGTHRS: 130
  88. run_current: 0.35
  89. sense_resistor: 0.22
  90. stealthchop_threshold: 999999
  91.  
  92. [tmc2209 stepper_z]
  93. uart_pin: PD5
  94. uart_address: 0
  95. diag_pin: ^PE3
  96. driver_SGTHRS: 100
  97. run_current: 0.35
  98. sense_resistor: 0.22
  99. stealthchop_threshold: 999999
  100.  
  101. [tmc2209 extruder]
  102. uart_pin: PD5
  103. uart_address: 2
  104. diag_pin: ^PA15
  105. driver_SGTHRS: 100
  106. run_current: 0.4
  107. sense_resistor: 0.22
  108.  
  109. [heater_bed]
  110. heater_pin: PB0
  111. sensor_type: EPCOS 100K B57560G104F
  112. sensor_pin: PA4
  113. #control: pid
  114. # Prusa's firmware defaults.
  115. #pid_Kp: 120
  116. #pid_Ki: 1.5
  117. #pid_Kd: 600
  118. min_temp: 10
  119. max_temp: 110
  120.  
  121. # Hotend fan.
  122. # The stock firmware uses control ranges of PWM 0-50%, RPM 1000-8000.
  123. # Change fan_speed below to match your preference. Measured speeds:
  124. # fan_speed 0.5: 50% PWM = 4000RPM (Prusa stock default speed)
  125. # fan_speed 1.0: 100% PWM = 8000RPM (safe but loud)
  126. [heater_fan hotend_fan]
  127. pin: PE9
  128. tachometer_pin: PE14
  129. fan_speed: 0.5
  130.  
  131. # Part cooling fan.
  132. # The stock firmware uses control ranges of PWM 10-50%, RPM 500-5000.
  133. # To match stock firmware, set the Klipper fan speed to 50%. This speed
  134. # can be safely increased to 100% for better part cooling. Measured speeds:
  135. # 50% PWM = 2500RPM (Prusa stock default speed)
  136. # 100% PWM = 5000RPM (better cooling, still quiet)
  137. [fan]
  138. pin: PE11
  139. tachometer_pin: PE10
  140. kick_start_time: 0.100
  141. max_power: 1.0
  142.  
  143. # The SuperPINDA has built-in temperature compensation and no thermistor output,
  144. # so no compensation table is needed here.
  145. [probe]
  146. pin: PA8
  147. x_offset: -29
  148. y_offset: -3
  149. #z_offset: 0 # set this to your Live Z Offset, but negated (invert the sign)
  150. speed: 6.0
  151. samples:2
  152. samples_result: median
  153. sample_retract_dist: 1
  154. samples_tolerance: 0.03
  155. samples_tolerance_retries: 10
  156.  
  157. [safe_z_home]
  158. home_xy_position: 147.4,21.1
  159. z_hop: 4
  160.  
  161. [bed_mesh]
  162. speed: 150
  163. horizontal_move_z: 5
  164. mesh_min: 10,10
  165. mesh_max: 141,167
  166. probe_count: 4,4
  167.  
  168. [filament_switch_sensor filament_sensor]
  169. switch_pin: ^PB4
  170. pause_on_runout: True
  171. runout_gcode:
  172. {action_respond_info("RUNOUT Motion Sensor: Filament runout")}
  173. M600
  174. insert_gcode:
  175. {action_respond_info("RUNOUT Motion Sensor: Filament inserted")}
  176. # The minimum amount of time in seconds to delay between events.
  177. # Events triggered during this time period will be silently
  178. # ignored. The default is 3 seconds.
  179. event_delay: 3.0
  180. # The amount of time to delay, in seconds, between the pause command
  181. # dispatch and execution of the runout_gcode. It may be useful to
  182. # increase this delay if OctoPrint exhibits strange pause behavior.
  183. # Default is 0.5 seconds.
  184. pause_delay: 0.5
  185. ## XYE mcu E0DET
  186.  
  187.  
  188. [printer]
  189. kinematics: cartesian
  190. # Prusa firmware defaults.
  191. max_velocity: 180
  192. max_accel: 1250
  193. max_z_velocity: 12
  194. max_z_accel: 400
  195. max_accel_to_decel: 1250
  196. square_corner_velocity: 5
  197.  
  198. #[firmware_retraction] ;It seems overly aggressive, better contol with slicer retraction
  199. #retract_length: 3
  200. # The length of filament (in mm) to retract when G10 is activated,
  201. # and to unretract when G11 is activated (but see
  202. # unretract_extra_length below). The default is 0 mm.
  203. #retract_speed: 70
  204. # The speed of retraction, in mm/s. The default is 20 mm/s.
  205. #unretract_extra_length: 0
  206. # The length (in mm) of *additional* filament to add when
  207. # unretracting.
  208. #unretract_speed: 40
  209. # The speed of unretraction, in mm/s. The default is 10 mm/s.
  210.  
  211. [display]
  212. lcd_type: st7789v
  213. spi_bus: spi2a
  214. rst_pin: PC8
  215. cs_pin: PC9
  216. rs_pin: PD11
  217. encoder_pins: ^PE13, ^PE15
  218. click_pin: ^!PE12
  219. display_group: _default_20x4
  220.  
  221.  
  222. [display_data _default_20x4 extruder]
  223. position: 1, 0
  224. text: { render("_heater_temperature", param_heater_name="extruder") }
  225.  
  226. [display_data _default_20x4 heater_bed1]
  227. position: 0, 15
  228. text:Bed
  229. [display_data _default_20x4 heater_bed]
  230. position: 1, 15
  231. text: { render("_heater_temperature", param_heater_name="heater_bed") }
  232.  
  233. [display_data _default_20x4 extruder1]
  234. position: 0, 0
  235. text:Extruder
  236.  
  237. [display_data _default_20x4 fan1]
  238. position: 4, 15
  239. text: { render("_fan_speed") }
  240.  
  241. [display_data _default_20x4 fan]
  242. position: 3, 15
  243. text:Fan
  244.  
  245. [display_data _default_20x4 speedfactor]
  246. position: 3, 0
  247. text:Feed Rate
  248.  
  249. [display_data _default_20x4 speed_factor]
  250. position: 4, 0
  251. text:
  252. ~feedrate~
  253. { "{:^4.0%}".format(printer.gcode_move.speed_factor) }
  254.  
  255.  
  256. [display_data _default_20x4 print_progress]
  257. position: 8, 0
  258. text: { "{:^10.0%}".format(printer.display_status.progress) }
  259. [display_data _default_20x4 progress_bar]
  260. position: 8, 1 # Draw graphical progress bar after text is written
  261. text: { draw_progress_bar(8, 0, 28, printer.display_status.progress) }
  262. [display_data _default_20x4 print_progress]
  263. position: 9, 12
  264. text:
  265. {% if 'virtual_sdcard' in printer and printer.virtual_sdcard.progress %}
  266. ~sd~
  267. {% else %}
  268. ~usb~
  269. {% endif %}
  270. { "{:^4.0%}".format(printer.display_status.progress) }
  271.  
  272. [display_data _default_20x4 printing_time]
  273. position: 7, 0
  274. text:
  275. Printing Time ~clock~
  276. { render("_printing_time") }
  277.  
  278. [display_data _default_20x4 print_status]
  279. position: 6, 0
  280. text: { render("_print_status") }
  281.  
  282.  
  283. [menu __main __filament __load]
  284. type: command
  285. name: Load Filament
  286. index: 1
  287. gcode:
  288. LOAD_FILAMENT
  289.  
  290. [menu __main __filament __unload]
  291. type: command
  292. name: Unload Filament
  293. index: 2
  294. gcode:
  295. UNLOAD_FILAMENT
  296.  
  297.  
  298.  
  299. [include macros/macros.cfg]
  300.  
  301. #*# <---------------------- SAVE_CONFIG ---------------------->
  302. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  303. #*#
  304. #*# [bed_mesh default]
  305. #*# version = 1
  306. #*# points =
  307. #*# 0.191875, 0.136875, 0.080625, -0.148125
  308. #*# 0.260000, 0.280000, 0.176250, 0.060625
  309. #*# 0.241250, 0.296875, 0.241250, 0.156875
  310. #*# 0.095000, 0.195625, 0.245000, 0.196250
  311. #*# tension = 0.2
  312. #*# min_x = 10.0
  313. #*# algo = lagrange
  314. #*# y_count = 4
  315. #*# mesh_y_pps = 2
  316. #*# min_y = 10.0
  317. #*# x_count = 4
  318. #*# max_y = 166.99
  319. #*# mesh_x_pps = 2
  320. #*# max_x = 140.98
  321. #*#
  322. #*# [extruder]
  323. #*# control = pid
  324. #*# pid_kp = 35.159
  325. #*# pid_ki = 3.907
  326. #*# pid_kd = 79.108
  327. #*#
  328. #*# [heater_bed]
  329. #*# control = pid
  330. #*# pid_kp = 56.236
  331. #*# pid_ki = 1.071
  332. #*# pid_kd = 738.095
  333. #*#
  334. #*# [probe]
  335. #*# z_offset = 0.775
  336.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement