robathome

printer.cfg for christoph zimmerman

May 8th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.57 KB | None | 0 0
  1.  
  2. ##########################################################################################################
  3. ## ##
  4. ## Printer ##
  5. ## ##
  6. ##########################################################################################################
  7.  
  8.  
  9. [printer]
  10. kinematics: cartesian
  11. max_velocity: 300
  12. max_accel: 3000
  13. max_z_velocity: 10
  14. max_z_accel: 250 # <---------- This can go much higher, I use 1250
  15. max_accel_to_decel: 1250 # <----------- This can be used to reduce machine vibration when using high max_accel values (I usually run 5000-6000)
  16. square_corner_velocity: 5 # <----------- See above
  17.  
  18. [mcu]
  19. serial: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A6021A9T-if00-port0
  20. pin_map: arduino
  21. # baud: 250000 # <----------- Most boards default to 115200, even if they can handle 250000
  22.  
  23.  
  24. ##########################################################################################################
  25. ## ##
  26. ## Auto Bed Leveling ##
  27. ## ##
  28. ##########################################################################################################
  29.  
  30. [probe]
  31. pin: ^!ar18
  32. x_offset: 47
  33. y_offset: 0.0
  34. speed: 2.0
  35. sample_retract_dist: 2.75 <------ Why? not used if you don't collect multiple samples
  36. lift_speed: 5.0
  37. # samples: 5 <------ modern Z-probes are good, but not good enough to trust a single sample
  38.  
  39.  
  40. [bed_mesh]
  41. speed: 150
  42. horizontal_move_z: 3
  43. min_point: 5,40
  44. max_point: 235,265
  45. probe_count: 4,4 <------ the bicubic regression method works better with odd-numbered grid dimensions
  46. algorithm: bicubic
  47. mesh_pps: 3,3
  48.  
  49.  
  50. [z_tilt]
  51. z_positions: -40,150
  52. 330,150
  53. points: 0,150
  54. 245,150
  55.  
  56.  
  57.  
  58. ##########################################################################################################
  59. ## ##
  60. ## Steppers ##
  61. ## ##
  62. ##########################################################################################################
  63.  
  64. [stepper_x]
  65. step_pin: ar54
  66. dir_pin: !ar55
  67. enable_pin: !ar38
  68. step_distance: 0.0125
  69. endstop_pin: ^ar3
  70. position_endstop: 0
  71. position_min: 0
  72. position_max: 280
  73. homing_speed: 50
  74. #homing_retract_dist: 10 <---------- these are beneficial, and only add a couple of seconds to your homing sequence
  75. #homing_retract_speed: 25
  76. #second_homing_speed: 10
  77.  
  78. [stepper_y]
  79. step_pin: ar60
  80. dir_pin: !ar61
  81. enable_pin: !ar56
  82. step_distance: 0.0125
  83. endstop_pin: ^ar14
  84. position_endstop: -12
  85. position_min: -12
  86. position_max: 288
  87. homing_speed: 50
  88. #homing_retract_dist: 10
  89. #homing_retract_speed: 25
  90. #second_homing_speed: 10
  91.  
  92. [stepper_z]
  93. step_pin: ar46
  94. dir_pin: ar48
  95. enable_pin: !ar62
  96. step_distance: 0.0025
  97. endstop_pin: probe:z_virtual_endstop
  98. position_min: -5.0
  99. position_endstop: 0.0
  100. position_max: 265
  101. #homing_speed: 10
  102. #homing_retract_dist: 5
  103. #homing_retract_speed: 10
  104. #second_homing_speed: 2.5
  105.  
  106. [stepper_z1]
  107. step_pin: ar36
  108. dir_pin: ar34
  109. enable_pin: !ar30
  110. step_distance: 0.0025
  111.  
  112.  
  113. ##########################################################################################################
  114. ## ##
  115. ## Heaters ##
  116. ## ##
  117. ##########################################################################################################
  118.  
  119.  
  120. [extruder]
  121. step_pin: !ar26
  122. dir_pin: ar28
  123. enable_pin: !ar24
  124. step_distance: 0.002408
  125. nozzle_diameter: 0.4
  126. filament_diameter: 1.750
  127. heater_pin: ar10
  128. sensor_type: ATC Semitec 104GT-2
  129. sensor_pin: analog13
  130. min_temp: 0
  131. max_temp: 300
  132. # pressure_advance: 0.05
  133. control: pid
  134. pid_kp: 30.371
  135. pid_ki: 1.131
  136. pid_kd: 203.867
  137.  
  138.  
  139. [verify_heater extruder]
  140. max_error: 200
  141. hysteresis: 2
  142. heating_gain: 1
  143.  
  144.  
  145. [heater_bed]
  146. heater_pin: ar8
  147. sensor_type: EPCOS 100K B57560G104F
  148. sensor_pin: analog14
  149. min_temp: 0
  150. max_temp: 130
  151. control: pid
  152. pid_kp: 70.482
  153. pid_ki: 0.826
  154. pid_kd: 1503.908
  155.  
  156.  
  157.  
  158. ##########################################################################################################
  159. ## ##
  160. ## TMC2208 ##
  161. ## ##
  162. ##########################################################################################################
  163.  
  164.  
  165. [tmc2208 stepper_x]
  166. uart_pin: ar63
  167. microsteps: 16
  168. run_current: 0.71
  169. #hold_current: 0.2 <------ Defaults to the same as run_current, which is unneccessary and puts a lot of thermal strain on your steppers
  170. stealthchop_threshold: 300
  171.  
  172. [tmc2208 stepper_y]
  173. uart_pin: ar40
  174. microsteps: 16
  175. run_current: 0.71
  176. #hold_current: 0.2
  177. stealthchop_threshold: 300
  178.  
  179. [tmc2208 stepper_z]
  180. uart_pin: ar42
  181. microsteps: 16
  182. run_current: 0.6
  183. #hold_current: 0.5 <----- Z-axis hold current should be higher than X or Y because a lot of time is spent holding the z-axis in place while the X and Y move
  184. stealthchop_threshold: 300
  185.  
  186. [tmc2208 stepper_z1]
  187. uart_pin: ar44
  188. microsteps: 16
  189. run_current: 0.6
  190. #hold_current: 0.5
  191. stealthchop_threshold: 300
  192.  
  193. [tmc2208 extruder]
  194. uart_pin: ar64
  195. microsteps: 16
  196. run_current: 0.8
  197. #hold_current: 0.4
  198. stealthchop_threshold: 0 <-------- ALWAYS ZERO! Using stealthchop in fast-paced extrude-retract-extrude sequences will cause it to disable the driver entirely, without throwing an error (the print will continue like nothing is wrong)
  199. #interpolate: False <-------- Same thing. The is True by default, which doesnt play nice with extruders
  200.  
  201.  
  202. ##########################################################################################################
  203. ## ##
  204. ## Macros ##
  205. ## ##
  206. ##########################################################################################################
  207.  
  208.  
  209.  
  210. [gcode_macro M600]
  211. default_parameter_X: 50
  212. default_parameter_Y: 0
  213. default_parameter_Z: 10
  214. gcode:
  215. SAVE_GCODE_STATE NAME=M600_state
  216. PAUSE
  217. G91
  218. G1 E-.8 F2700
  219. G1 Z{Z}
  220. G90
  221. G1 X{X} Y{Y} F3000
  222. G91
  223. G1 E-50 F1000
  224. RESTORE_GCODE_STATE NAME=M600_state
  225.  
  226.  
  227. [gcode_macro G29]
  228. gcode:
  229. BED_MESH_CALIBRATE
  230.  
  231.  
  232. [gcode_macro G80]
  233. gcode:
  234. G28
  235. Z_TILT_ADJUST
  236. BED_MESH_CALIBRATE
  237.  
  238.  
  239.  
  240. [gcode_macro G81]
  241. gcode:
  242. BED_MESH_OUTPUT
  243.  
  244.  
  245.  
  246. ##########################################################################################################
  247. ## ##
  248. ## Other ##
  249. ## ##
  250. ##########################################################################################################
  251.  
  252.  
  253. [fan]
  254. pin: ar9
  255.  
  256.  
  257. [idle_timeout]
  258. gcode: <---- why do you have this section?
  259.  
  260.  
  261. [pause_resume]
  262. recover_velocity: 50.0
  263.  
  264.  
  265. [force_move]
  266. enable_force_move: True
  267.  
  268.  
  269. [filament_switch_sensor my_sensor]
  270. pause_on_runout: True
  271. #event_delay: 3 <----- runout sensor must be triggered for 3 seconds before halting the print. Prevents accidental runout vents, which are a thing
  272. runout_gcode:
  273. M600
  274. switch_pin: ^!ar19
  275.  
  276.  
  277. [homing_override]
  278. set_position_z: 15
  279. axes: z
  280. gcode: G91 <----- I'm guessing you're using these two lines to prevent from dragging the nozzle on the bed. This should be a relative command, not absolute
  281. G1 Z30 F480
  282. G91 <------
  283. G28 X0 Y0 <--- techncially the 0's are unnecessary
  284. ;G1 X125 Y125 F3600
  285. G1 X150 Y150 F3600
  286. G28 Z0
  287. G1 Z10 F480
  288.  
  289.  
  290. [virtual_sdcard]
  291. path: ~/.octoprint/uploads/
  292.  
  293.  
  294. ##########################################################################################################
  295. ## ##
  296. ## Display ##
  297. ## ##
  298. ##########################################################################################################
  299.  
  300.  
  301. [display]
  302. lcd_type: st7920
  303. cs_pin: ar16
  304. sclk_pin: ar23
  305. sid_pin: ar17
  306. encoder_pins: ^ar31, ^ar33
  307. click_pin: ^!ar35
  308.  
  309.  
  310.  
  311.  
  312. #*# <---------------------- SAVE_CONFIG ---------------------->
  313. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  314. #*#
  315. #*#
  316. #*# [bed_mesh default]
  317. #*# points =
  318. #*# 0.067500, 0.135000, 0.025000, -0.157500
  319. #*# -0.025000, 0.037500, 0.007500, -0.180000
  320. #*# 0.002500, 0.005000, -0.050000, -0.217500
  321. #*# 0.175000, 0.155000, 0.050000, -0.137500
  322. #*# x_count = 4
  323. #*# y_count = 4
  324. #*# min_x = 5.0
  325. #*# max_x = 234.98
  326. #*# min_y = 40.0
  327. #*# max_y = 265.0
  328. #*# x_offset = 47.0
  329. #*# y_offset = 0.0
  330. #*# mesh_x_pps = 3
  331. #*# mesh_y_pps = 3
  332. #*# algo = bicubic
  333. #*# tension = 0.2
  334. #*#
  335. #*# [probe]
  336. #*# z_offset = 0.250
Add Comment
Please, Sign In to add comment