Pitoer

predator9000

Feb 14th, 2021 (edited)
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.91 KB | None | 0 0
  1. #Predator9000
  2.  
  3. ########################################
  4. # PRINTER configuration
  5. ########################################
  6. [stepper_a]
  7. step_pin: P2.2
  8. dir_pin: !P2.6
  9. enable_pin: !P2.1
  10. microsteps: 16
  11. rotation_distance: 40
  12. endstop_pin: P1.28
  13. #position_endstop: 0
  14. homing_speed: 100
  15. #position_endstop: 460
  16. #arm_length: 440
  17.  
  18. [stepper_b]
  19. step_pin: P0.19
  20. dir_pin: !P0.20
  21. enable_pin: !P2.8
  22. microsteps: 16
  23. rotation_distance: 40
  24. endstop_pin: P1.26
  25. #position_endstop: 0
  26.  
  27. [stepper_c]
  28. step_pin: P0.22
  29. dir_pin: !P2.11
  30. enable_pin: !P0.21
  31. microsteps: 16
  32. rotation_distance: 40
  33. endstop_pin: P1.24
  34. #position_endstop: 0
  35.  
  36. [mcu]
  37. serial:/dev/serial/by-id/usb-Klipper_lpc1768_0F50010F612448AFA813285DC62000F5-if00
  38.  
  39. [printer]
  40. kinematics: delta
  41. max_velocity: 400
  42. max_accel: 3000
  43. max_z_velocity: 250
  44. #delta_radius: 185
  45. square_corner_velocity: 5
  46.  
  47. max_accel: 7000
  48. max_accel_to_decel: 7000
  49.  
  50. minimum_z_position: -15
  51.  
  52. [mcu rpi]
  53. serial: /tmp/klipper_host_mcu
  54.  
  55. [adxl345]
  56. cs_pin: rpi:None
  57.  
  58. [resonance_tester]
  59. accel_chip: adxl345
  60. probe_points:0,0,150
  61.  
  62. [input_shaper]
  63. #max_smoothing
  64.  
  65. [delta_calibrate]
  66. radius: 180
  67. speed: 80
  68. horizontal_move_z: 25
  69.  
  70. [bed_mesh]
  71. speed: 80
  72. horizontal_move_z: 25
  73. round_probe_count: 9
  74. algorithm: bicubic
  75. mesh_origin: 0,0
  76. mesh_radius: 170
  77. fade_start: 1
  78. fade_end: 10
  79.  
  80. [idle_timeout]
  81. timeout: 360
  82.  
  83. [probe]
  84. pin:^P1.25
  85. z_offset:20
  86. speed: 5
  87. samples: 3
  88. sample_retract_dist: 3.0
  89. samples_tolerance: 0.05
  90. samples_tolerance_retries: 2
  91.  
  92. [virtual_sdcard]
  93. path: ~/gcode_files
  94.  
  95. [pause_resume]
  96.  
  97. ########################################
  98. # EXTRUDER & BED configuration
  99. ########################################
  100. [extruder]
  101. step_pin: P2.13
  102. dir_pin: !P0.11
  103. enable_pin: !P2.12
  104. microsteps: 16
  105. step_distance: .00245
  106. nozzle_diameter: 0.600
  107. filament_diameter: 1.750
  108. heater_pin: P2.7
  109. sensor_type: EPCOS 100K B57560G104F
  110. sensor_pin: P0.24
  111. #control: pid
  112. #pid_Kp: 36.656
  113. #pid_Ki: 2.546
  114. #pid_Kd: 131.963
  115. min_temp: 0
  116. max_temp: 300
  117.  
  118. pressure_advance = 0.16
  119.  
  120. [fan]
  121. pin: P2.3
  122. kick_start_time: 0.100
  123.  
  124. [heater_fan my_nozzle_fan]
  125. pin:P2.4
  126. heater: extruder
  127. heater_temp: 50.0
  128. fan_speed: 1.0
  129.  
  130. [filament_switch_sensor filament_sensor]
  131. pause_on_runout: True
  132. runout_gcode:
  133. event_delay: 3.0
  134. switch_pin: !P1.27
  135.  
  136. [heater_bed]
  137. heater_pin: P2.5
  138. sensor_type: ATC Semitec 104GT-2
  139. sensor_pin: P0.23
  140. #control: pid
  141. #pid_Kp: 74.506
  142. #pid_Ki: 2.169
  143. #pid_Kd: 639.824
  144. min_temp: 0
  145. max_temp: 130
  146.  
  147.  
  148. ########################################
  149. # TMC2209 configuration
  150. ########################################
  151.  
  152. [tmc2209 stepper_a]
  153. uart_pin: P1.17
  154. interpolate: True
  155. run_current: 2.0
  156. hold_current: 1.9
  157. #sense_resistor: 0.110
  158. stealthchop_threshold: 300
  159.  
  160. [tmc2209 stepper_b]
  161. uart_pin: P1.15
  162. interpolate: True
  163. run_current: 2.0
  164. hold_current: 1.9
  165. #sense_resistor: 0.110
  166. stealthchop_threshold: 300
  167.  
  168. [tmc2209 stepper_c]
  169. uart_pin: P1.10
  170. interpolate: True
  171. run_current: 2.0
  172. hold_current: 1.9
  173. #sense_resistor: 0.110
  174. stealthchop_threshold: 300
  175.  
  176. [tmc2209 extruder]
  177. uart_pin: P1.8
  178. interpolate: True
  179. run_current: 1
  180. #hold_current: 0.4
  181. stealthchop_threshold: 1
  182.  
  183. ########################################
  184. # DISPLAY configuration
  185. ########################################
  186. [display]
  187. lcd_type: uc1701
  188. cs_pin: EXP1_3
  189. a0_pin: EXP1_4
  190. rst_pin: EXP1_5
  191. contrast: 60
  192. encoder_pins: ^EXP2_5, ^EXP2_3
  193. click_pin: ^!EXP1_2
  194. #kill_pin: ^!EXP2_8
  195.  
  196. [output_pin beeper]
  197. pin: EXP1_1
  198.  
  199. [neopixel ML]
  200. pin: EXP1_6
  201. chain_count: 3
  202. color_order: RGB
  203. initial_RED: 0.4
  204. initial_GREEN: 0.4
  205. initial_BLUE: 0.5
  206.  
  207. ########################################
  208. # MACRO configuration
  209. ########################################
  210.  
  211. [gcode_macro M105]
  212. rename_existing: M105.1
  213. gcode:
  214. # ML <- NEOPIX LED)
  215. {% if printer.extruder.target == 0 %}
  216. {% if printer.extruder.temperature > 60.0 %}
  217. SET_LED LED=ML RED=0.95 GREEN=0.1 BLUE=0.1 INDEX=3
  218. SET_LED LED=ML RED=0.95 GREEN=0.1 BLUE=0.1 INDEX=2
  219. {% else %}
  220. SET_LED LED=ML RED=0 GREEN=0 BLUE=1 INDEX=3
  221. SET_LED LED=ML RED=0 GREEN=0 BLUE=1 INDEX=2
  222. {% endif %}
  223. {% else %}
  224. {% if printer.extruder.temperature >= printer.extruder.target - 1.0 %}
  225. SET_LED LED=ML RED=0 GREEN=1 BLUE=0 INDEX=3
  226. SET_LED LED=ML RED=0 GREEN=1 BLUE=0 INDEX=2
  227. {% else %}
  228. {% set scaler = printer.extruder.temperature|float / printer.extruder.target|float %}
  229. SET_LED LED=ML RED={ scaler|float * 1 } GREEN=0 BLUE=0 INDEX=3
  230. SET_LED LED=ML RED={ scaler|float * 1 } GREEN=0 BLUE=0 INDEX=2
  231. {% endif %}
  232.  
  233. {% endif %}
  234.  
  235.  
  236. [gcode_macro PAUSE]
  237. rename_existing: BASE_PAUSE
  238. default_parameter_X: 230 # edit to your preferred park position
  239. default_parameter_Y: 230 # edit to your preferred park position
  240. default_parameter_Z: 10 # edit to your preferred park position
  241. default_parameter_E: 1 # edit to your preferred retract length
  242. gcode:
  243. SAVE_GCODE_STATE NAME=PAUSE_state
  244. BASE_PAUSE
  245. G91
  246. G1 E-{E} F2100
  247. G1 Z{Z}
  248. G90
  249. G1 X{X} Y{Y} F6000
  250.  
  251. [gcode_macro RESUME]
  252. rename_existing: BASE_RESUME
  253. default_parameter_E: 1 # edit to your preferred retract length
  254. gcode:
  255. G91
  256. G1 E{E} F2100
  257. G90
  258. RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
  259. BASE_RESUME
  260.  
  261.  
  262. [gcode_macro CANCEL_PRINT]
  263. rename_existing: BASE_CANCEL_PRINT
  264. gcode:
  265. TURN_OFF_HEATERS
  266. CLEAR_PAUSE
  267. SDCARD_RESET_FILE
  268. BASE_CANCEL_PRINT
  269.  
  270. [gcode_macro DELTA_PROBE_CALI]
  271. gcode:
  272. G28
  273. G1 Z30
  274. probe_calibrate
  275.  
  276. [gcode_macro DELTA_CALI]
  277. gcode:
  278. G28
  279. delta_calibrate
  280. G28
  281. save_config
  282.  
  283. [gcode_macro DELTA_MESH]
  284. gcode:
  285. G28
  286. bed_mesh_calibrate
  287. G1 X0 Y0 Z15 F4200
  288. save_config
  289.  
  290. [gcode_macro DELTA_SHAPE]
  291. gcode:
  292. G28
  293. SHAPER_CALIBRATE
  294. save_config
  295.  
  296. [gcode_macro PAUSE]
  297. rename_existing: BASE_PAUSE
  298. default_parameter_X: 230 #edit to your park position
  299. default_parameter_Y: 230 #edit to your park position
  300. default_parameter_Z: 10 #edit to your park position
  301. default_parameter_E: 1 #edit to your retract length
  302. gcode:
  303. SAVE_GCODE_STATE NAME=PAUSE_state
  304. BASE_PAUSE
  305. G91
  306. G1 E-{E} F2100
  307. G1 Z{Z}
  308. G90
  309. G1 X{X} Y{Y} F6000
  310.  
  311.  
  312. [gcode_macro PA_OFF]
  313. default_parameter_J=0
  314. default_parameter_S=0.00
  315. gcode: SET_PRESSURE_ADVANCE ADVANCE={J} smooth_time={S}
  316.  
  317. [gcode_macro PA_ON]
  318. default_parameter_P= 0.16
  319. default_parameter_S= 0.08
  320. gcode: SET_PRESSURE_ADVANCE ADVANCE={P} smooth_time={S}
  321.  
  322.  
  323. [gcode_macro RESUME]
  324. rename_existing: BASE_RESUME
  325. default_parameter_E: 1 #edit to your retract length
  326. gcode:
  327. G91
  328. G1 E{E} F2100
  329. G90
  330. RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
  331. BASE_RESUME
  332.  
  333. [gcode_macro CANCEL_PRINT]
  334. rename_existing: BASE_CANCEL_PRINT
  335. gcode:
  336. TURN_OFF_HEATERS
  337. CLEAR_PAUSE
  338. SDCARD_RESET_FILE
  339. BASE_CANCEL_PRINT
  340.  
  341. [gcode_macro START_PRINT]
  342. default_parameter_BED_TEMP: 60
  343. default_parameter_EXTRUDER_TEMP: 205
  344. gcode:
  345. # Use absolute coordinates
  346. G90
  347. # Reset the G-Code Z offset (adjust Z offset if needed)
  348. SET_GCODE_OFFSET Z=-0.15 #-0.12
  349. # Home the printer
  350. G28
  351. # Load default bed mesh
  352. BED_MESH_PROFILE LOAD=default
  353. # Start bed heating
  354. M140 S{BED_TEMP}
  355. # Wait for bed to reach temperature
  356. M190 S{BED_TEMP}
  357. # Set and wait for nozzle to reach temperature
  358. M109 S{EXTRUDER_TEMP}
  359. #M104 S{material_print_temperature_layer_0} T0 ; heat nozzle
  360. #M190 S{material_bed_temperature_layer_0} T0 ; heat bed and wait
  361. #M109 S{material_print_temperature_layer_0} T0 ; wait for nozzle
  362. G1 X-50 Y-180 Z5 F2000
  363. G1 Z0.3
  364. #;Prime the extruder
  365. G92 E0
  366. G1 E15 F500
  367. G92 E0
  368. G1 X0.0 E10 F1000
  369. G1 X50 E14 F3200
  370. G92 E0
  371.  
  372. [gcode_macro END_PRINT]
  373. gcode:
  374. # Turn off bed, extruder, and fan
  375. M140 S0
  376. M104 S0
  377. M106 S0
  378. # Move nozzle away from print while retracting
  379. G28
  380. G91
  381. G1 E-10 F300
  382. # Raise nozzle by 10mm
  383. G90
  384. # Disable steppers
  385. #M84
  386.  
  387.  
  388. ########################################
  389. # EXP1 / EXP2 (display) pins
  390. ########################################
  391.  
  392. [board_pins]
  393. aliases:
  394. # EXP1 header
  395. EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
  396. EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
  397. # EXP2 header
  398. EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
  399. EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
  400. # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
  401.  
  402. #*# <---------------------- SAVE_CONFIG ---------------------->
  403. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  404. #*#
  405. #*# [printer]
  406. #*# delta_radius = 228.372928
  407. #*#
  408. #*# [stepper_a]
  409. #*# angle = 209.972002
  410. #*# arm_length = 440.000000
  411. #*# position_endstop = 454.327598
  412. #*#
  413. #*# [stepper_b]
  414. #*# angle = 330.145302
  415. #*# arm_length = 440.000000
  416. #*# position_endstop = 456.229357
  417. #*#
  418. #*# [stepper_c]
  419. #*# angle = 90.000000
  420. #*# arm_length = 440.000000
  421. #*# position_endstop = 455.836977
  422. #*#
  423. #*# [bed_mesh default]
  424. #*# version = 1
  425. #*# points =
  426. #*# 0.123343, 0.123343, 0.123343, 0.123343, 0.123343, 0.123343, 0.123343, 0.123343, 0.123343
  427. #*# 0.133051, 0.133051, 0.133051, 0.073273, 0.155110, 0.248503, 0.367288, 0.367288, 0.367288
  428. #*# 0.287166, 0.287166, 0.181159, 0.162360, 0.240621, 0.262601, 0.305059, 0.354504, 0.354504
  429. #*# 0.294233, 0.294233, 0.241881, 0.282357, 0.344722, 0.340832, 0.321965, 0.313040, 0.313040
  430. #*# 0.313333, 0.222611, 0.232843, 0.315949, 0.377139, 0.380802, 0.345238, 0.293339, 0.222586
  431. #*# 0.236235, 0.236235, 0.292003, 0.329075, 0.370251, 0.348358, 0.331570, 0.251978, 0.251978
  432. #*# 0.224967, 0.224967, 0.255541, 0.290490, 0.333257, 0.341768, 0.303468, 0.153474, 0.153474
  433. #*# 0.275975, 0.275975, 0.275975, 0.273738, 0.305832, 0.299663, 0.250361, 0.250361, 0.250361
  434. #*# 0.356101, 0.356101, 0.356101, 0.356101, 0.356101, 0.356101, 0.356101, 0.356101, 0.356101
  435. #*# tension = 0.2
  436. #*# min_x = -170.0
  437. #*# algo = bicubic
  438. #*# y_count = 9
  439. #*# mesh_y_pps = 2
  440. #*# min_y = -170.0
  441. #*# x_count = 9
  442. #*# max_y = 170.0
  443. #*# mesh_x_pps = 2
  444. #*# max_x = 170.0
  445. #*#
  446. #*# [extruder]
  447. #*# control = pid
  448. #*# pid_kp = 38.371
  449. #*# pid_ki = 2.665
  450. #*# pid_kd = 138.136
  451. #*#
  452. #*# [heater_bed]
  453. #*# control = pid
  454. #*# pid_kp = 73.695
  455. #*# pid_ki = 1.997
  456. #*# pid_kd = 679.836
  457. #*#
  458. #*# [input_shaper]
  459. #*# shaper_freq_x = 29.6
  460. #*# shaper_freq_y = 29.2
  461. #*# shaper_type_x = zv
  462. #*# shaper_type_y = zv
  463. #*#
  464. #*# [delta_calibrate]
  465. #*# height0 = 20.0
  466. #*# height0_pos = 34745.000,34900.000,34861.000
  467. #*# height1 = 20.0
  468. #*# height1_pos = 43160.667,43300.667,30052.667
  469. #*# height2 = 20.0
  470. #*# height2_pos = 33624.667,48709.667,33745.667
  471. #*# height3 = 20.0
  472. #*# height3_pos = 30152.000,41919.000,41862.000
  473. #*# height4 = 20.0
  474. #*# height4_pos = 33414.333,33577.333,44065.333
  475. #*# height5 = 20.0
  476. #*# height5_pos = 40495.000,30585.000,40607.000
  477. #*# height6 = 20.0
  478. #*# height6_pos = 46053.333,33627.333,33602.333
  479.  
Add Comment
Please, Sign In to add comment