Advertisement
AlbinoPanther

printer.conf

Mar 27th, 2021
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.08 KB | None | 0 0
  1. [mcu rpi]
  2. serial: /tmp/klipper_host_mcu
  3.  
  4. [adxl345]
  5. cs_pin: rpi:None
  6.  
  7. [resonance_tester]
  8. accel_chip: adxl345
  9. probe_points:
  10. 100,100,20 # an example
  11.  
  12. # This file contains common pin mappings for the BIGTREETECH SKR V1.3
  13. # board. To use this config, the firmware should be compiled for the
  14. # LPC1768.
  15.  
  16. # See docs/Config_Reference.md for a description of parameters.
  17.  
  18. [stepper_x]
  19. step_pin: P2.2
  20. dir_pin: !P2.6
  21. enable_pin: !P2.1
  22. microsteps: 16
  23. rotation_distance: 40
  24. endstop_pin: P1.29 # P1.28 for X-max
  25. position_endstop: 0
  26. position_max: 235
  27. homing_speed: 100
  28.  
  29. [stepper_y]
  30. step_pin: P0.19
  31. dir_pin: !P0.20
  32. enable_pin: !P2.8
  33. microsteps: 16
  34. rotation_distance: 40
  35. endstop_pin: P1.27 # P1.26 for Y-max
  36. position_endstop: 0
  37. position_max: 235
  38. homing_speed: 100
  39.  
  40. [stepper_z]
  41. step_pin: P0.22
  42. dir_pin: P2.11
  43. enable_pin: !P0.21
  44. microsteps: 16
  45. rotation_distance: 8
  46. endstop_pin: P1.25 # P1.24 for Z-max
  47. position_min: -5
  48. position_max: 250
  49. endstop_pin: probe:z_virtual_endstop
  50.  
  51. [extruder]
  52. max_extrude_cross_section: 50
  53. max_extrude_only_distance: 100.0
  54. step_pin: P2.13
  55. dir_pin: !P0.11
  56. enable_pin: !P2.12
  57. microsteps: 16
  58. rotation_distance: 21.775
  59. nozzle_diameter: 0.400
  60. filament_diameter: 1.750
  61. heater_pin: P2.7
  62. sensor_type: EPCOS 100K B57560G104F
  63. sensor_pin: P0.24
  64. #control: pid
  65. #pid_Kp: 22.2
  66. #pid_Ki: 1.08
  67. #pid_Kd: 114
  68. min_temp: 0
  69. max_temp: 300
  70.  
  71. #[extruder1]
  72. #step_pin: P0.1
  73. #dir_pin: P0.0
  74. #enable_pin: !P0.10
  75. #heater_pin: P2.4
  76. #sensor_pin: P0.25
  77. #...
  78.  
  79. [heater_fan e0_fan]
  80. pin: P2.4
  81. heater: extruder
  82. heater_temp: 50.0
  83. fan_speed: 1.0
  84.  
  85. [heater_bed]
  86. heater_pin: P2.5
  87. sensor_type: EPCOS 100K B57560G104F
  88. sensor_pin: P0.23
  89. control: pid
  90. pid_Kp: 74.845
  91. pid_Ki: 1.801
  92. pid_Kd: 777.457
  93. min_temp: 0
  94. max_temp: 130
  95.  
  96. [fan]
  97. pin: P2.3
  98.  
  99. [mcu]
  100. serial: /dev/serial/by-id/usb-Klipper_lpc1768_0C70000229811DAFFB9DF359C32000F5-if00
  101.  
  102. [printer]
  103. kinematics: cartesian
  104. max_velocity: 150
  105. max_accel: 1000
  106. max_z_velocity: 15
  107. max_z_accel: 100
  108. square_corner_velocity: 2.5
  109.  
  110. [input_shaper]
  111. shaper_freq_x: 45.6
  112. shaper_type_x: ei
  113. shaper_freq_y: 27.0
  114. shaper_type_y: ei
  115.  
  116. ########################################
  117. # TMC2208 configuration
  118. ########################################
  119.  
  120. # For TMC2208 UART
  121. # 1) Remove all of the jumpers below the stepper drivers
  122. # 2) Place jumpers on the red pin headers labeled XUART (XUART, YUART etc.)
  123.  
  124. [tmc2208 stepper_x]
  125. uart_pin: P1.17
  126. run_current: 0.750
  127. hold_current: 0.500
  128. stealthchop_threshold: 250
  129.  
  130. [tmc2208 stepper_y]
  131. uart_pin: P1.15
  132. run_current: 0.750
  133. hold_current: 0.500
  134. stealthchop_threshold: 250
  135.  
  136. [tmc2208 stepper_z]
  137. uart_pin: P1.10
  138. run_current: 0.750
  139. hold_current: 0.450
  140. stealthchop_threshold: 30
  141.  
  142. [tmc2208 extruder]
  143. uart_pin: P1.8
  144. run_current: 0.800
  145. hold_current: 0.500
  146. #stealthchop_threshold: 5
  147.  
  148. ########################################
  149. # EXP1 / EXP2 (display) pins
  150. ########################################
  151.  
  152. [board_pins]
  153. aliases:
  154. # EXP1 header
  155. EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
  156. EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
  157. # EXP2 header
  158. EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
  159. EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
  160. # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
  161.  
  162. # See the sample-lcd.cfg file for definitions of common LCD displays.
  163.  
  164. [display]
  165. lcd_type: st7920
  166. cs_pin: EXP1_7
  167. sclk_pin: EXP1_6
  168. sid_pin: EXP1_8
  169. encoder_pins: ^EXP1_5, ^EXP1_3
  170. click_pin: ^!EXP1_2
  171.  
  172. [output_pin beeper]
  173. pin: EXP1_1
  174.  
  175. [virtual_sdcard]
  176. path: ~/gcode_files
  177.  
  178. [display_status]
  179.  
  180. [pause_resume]
  181.  
  182. [gcode_macro PAUSE]
  183. rename_existing: BASE_PAUSE
  184. default_parameter_X: 230 # edit to your preferred park position
  185. default_parameter_Y: 230 # edit to your preferred park position
  186. default_parameter_Z: 10 # edit to your preferred park position
  187. default_parameter_E: 1 # edit to your preferred retract length
  188. gcode:
  189. SAVE_GCODE_STATE NAME=PAUSE_state
  190. BASE_PAUSE
  191. G91
  192. G1 E-{E} F2100
  193. G1 Z{Z}
  194. G90
  195. G1 X{X} Y{Y} F6000
  196.  
  197. [gcode_macro RESUME]
  198. rename_existing: BASE_RESUME
  199. default_parameter_E: 1 # edit to your preferred retract length
  200. gcode:
  201. G91
  202. G1 E{E} F2100
  203. G90
  204. RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
  205. BASE_RESUME
  206.  
  207. [gcode_macro CANCEL_PRINT]
  208. rename_existing: BASE_CANCEL_PRINT
  209. gcode:
  210. TURN_OFF_HEATERS
  211. CLEAR_PAUSE
  212. SDCARD_RESET_FILE
  213. BASE_CANCEL_PRINT
  214.  
  215. # BLTouch V3.1 (original) running in open drain mode
  216. # SKR 1.3 reference: https://github.com/bigtreetech/BIGTREETECH-SKR-V1.3/blob/master/hardware/SKR-V1.3-PIN.pdf
  217. # BLTouch 3.0 reference: https://docs.wixstatic.com/ugd/f5a1c8_26f2661f0a4542eaacc1586eba8842e7.pdf
  218. # According to this, when the USB is facing towards you, servo pins should be (left to right) colored red (power)-brown (ground)-orange (control pin)
  219. # and the Zmin plug should be (top to bottom) power pin (leave empty), black wire (ground), white wire (sensor pin).
  220.  
  221. [bltouch]
  222. sensor_pin: ^P1.25 # Pull-up (^ symbol) needed in open drain mode
  223. control_pin: P2.0
  224. # Some BLTouch V3 and many clones apparently require this, though mine didnt:
  225. #pin_up_touch_mode_reports_triggered: False
  226. x_offset: -48
  227. y_offset: -10
  228. #z_offset: 2.85
  229. speed: 10
  230. samples: 2
  231.  
  232. # Z-safe homing that (1) moves the probe up 15mm (2) home XY (3) move to center of bed (4) home Z
  233. # Edit the X166 Y120 for your own center of bed
  234. [homing_override]
  235. axes: z
  236. gcode:
  237. G90
  238. G1 Z15
  239. G28 X Y
  240. G1 X166 Y120 F6000
  241. G28 Z
  242. set_position_z: 0.0
  243.  
  244. # This adds a bed mesh calibrate GCode
  245. [bed_mesh]
  246. speed: 250
  247. horizontal_move_z: 10
  248. mesh_min: 15,15
  249. mesh_max: 180,210
  250. probe_count: 3,3
  251.  
  252. # Custom G29 that does (1) home all (2) get bed mesh (3) move nozzle to corner so it doesnt ooze on the bed while heating up.
  253. [gcode_macro G29]
  254. gcode:
  255. G28
  256. BED_MESH_CALIBRATE
  257. G0 X10 Y10 Z10 F6000
  258.  
  259. # This adds a screw tilt adjust command that probes certain points on the bed and recommends new bed screw positions (turn clockwise this much etc)
  260. [screws_tilt_adjust]
  261. screw1: 50,50
  262. screw1_name: Front left screw
  263. screw2: 50,215
  264. screw2_name: Rear left screw
  265. screw3: 215,50
  266. screw3_name: Front right screw
  267. screw4: 215,215
  268. screw4_name: Rear right screw
  269. horizontal_move_z: 10
  270. speed: 250
  271. screw_thread: CW-M3
  272.  
  273. [gcode_macro M108]
  274. gcode:
  275. TURN_OFF_HEATERS
  276.  
  277. [gcode_macro m900]
  278. default_parameter_K: 0
  279. gcode:
  280. SET_PRESSURE_ADVANCE ADVANCE={K}
  281.  
  282. #*# <---------------------- SAVE_CONFIG ---------------------->
  283. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  284. #*#
  285. #*# [extruder]
  286. #*# control = pid
  287. #*# pid_kp = 24.021
  288. #*# pid_ki = 1.195
  289. #*# pid_kd = 120.703
  290. #*#
  291. #*# [bed_mesh default]
  292. #*# version = 1
  293. #*# points =
  294. #*# -0.170000, -0.108750, 0.016250
  295. #*# -0.050000, -0.030000, 0.017500
  296. #*# 0.015000, 0.040000, 0.101250
  297. #*# tension = 0.2
  298. #*# min_x = 15.0
  299. #*# algo = lagrange
  300. #*# y_count = 3
  301. #*# mesh_y_pps = 2
  302. #*# min_y = 15.0
  303. #*# x_count = 3
  304. #*# max_y = 210.0
  305. #*# mesh_x_pps = 2
  306. #*# max_x = 180.0
  307. #*#
  308. #*# [bltouch]
  309. #*# z_offset = 3.13
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement