Pitoer

PredatorKLipper

Jun 27th, 2020 (edited)
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.57 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: 120
  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: 300
  42. max_accel: 3000
  43. max_z_velocity: 200
  44. delta_radius: 180
  45. square_corner_velocity: 5.0
  46. minimum_z_position: -15
  47.  
  48. [delta_calibrate]
  49. radius: 160
  50. speed: 50
  51. horizontal_move_z: 50
  52.  
  53.  
  54. [idle_timeout]
  55. timeout: 360
  56.  
  57. [probe]
  58. pin:^P1.25
  59. z_offset:20
  60. speed: 30
  61. samples: 3
  62. sample_retract_dist: 3.0
  63. samples_tolerance: 0.100
  64. samples_tolerance_retries: 2
  65.  
  66. ########################################
  67. # EXTRUDER & BED configuration
  68. ########################################
  69. [extruder]
  70. step_pin: P2.13
  71. dir_pin: !P0.11
  72. enable_pin: !P2.12
  73. microsteps: 16
  74. rotation_distance: 33.500
  75. nozzle_diameter: 0.400
  76. filament_diameter: 1.750
  77. heater_pin: P2.7
  78. sensor_type: EPCOS 100K B57560G104F
  79. sensor_pin: P0.24
  80. control: pid
  81. pid_Kp: 36.656
  82. pid_Ki: 2.546
  83. pid_Kd: 131.963
  84. min_temp: 0
  85. max_temp: 300
  86.  
  87. [fan]
  88. pin: P2.3
  89. kick_start_time: 0.100
  90.  
  91. [heater_fan my_nozzle_fan]
  92. pin:P2.4
  93. heater: extruder
  94. heater_temp: 50.0
  95. fan_speed: 1.0
  96.  
  97. [filament_switch_sensor my_sensor]
  98. pause_on_runout: True
  99. #runout_gcode:
  100. #insert_gcode:
  101. event_delay: 3.0
  102. pause_delay: 0.5
  103. switch_pin: P1.27
  104.  
  105. [heater_bed]
  106. heater_pin: P2.5
  107. sensor_type: ATC Semitec 104GT-2
  108. sensor_pin: P0.23
  109. control: pid
  110. pid_Kp: 74.506
  111. pid_Ki: 2.169
  112. pid_Kd: 639.824
  113. min_temp: 0
  114. max_temp: 130
  115.  
  116.  
  117. ########################################
  118. # TMC2209 configuration
  119. ########################################
  120.  
  121. [tmc2209 stepper_a]
  122. uart_pin: P1.17
  123. interpolate: True
  124. run_current: 1.2
  125. hold_current: 1.0
  126. #sense_resistor: 0.110
  127. stealthchop_threshold: 160
  128.  
  129. [tmc2209 stepper_b]
  130. uart_pin: P1.15
  131. interpolate: True
  132. run_current: 1.2
  133. hold_current: 1.0
  134. #sense_resistor: 0.110
  135. stealthchop_threshold: 160
  136.  
  137. [tmc2209 stepper_c]
  138. uart_pin: P1.10
  139. interpolate: True
  140. run_current: 1.2
  141. hold_current: 1.0
  142. #sense_resistor: 0.110
  143. stealthchop_threshold: 160
  144.  
  145.  
  146. ########################################
  147. # DISPLAY configuration
  148. ########################################
  149. [display]
  150. lcd_type: uc1701
  151. cs_pin: EXP1_3
  152. a0_pin: EXP1_4
  153. rst_pin: EXP1_5
  154. contrast: 60
  155. encoder_pins: ^EXP2_5, ^EXP2_3
  156. click_pin: ^!EXP1_2
  157. #kill_pin: ^!EXP2_8
  158.  
  159. [output_pin beeper]
  160. pin: EXP1_1
  161.  
  162. [neopixel ML]
  163. pin: EXP1_6
  164. chain_count: 3
  165. color_order: RGB
  166. initial_RED: 0.4
  167. initial_GREEN: 0.4
  168. initial_BLUE: 0.5
  169.  
  170. ########################################
  171. # MACRO configuration
  172. ########################################
  173.  
  174. [gcode_macro M105]
  175. rename_existing: M105.1
  176. gcode:
  177. M105.1
  178. # ML <- NEOPIX LED)
  179. {% if printer.extruder.target == 0 %}
  180. {% if printer.extruder.temperature > 60.0 %}
  181. SET_LED LED=ML RED=0.95 GREEN=0.1 BLUE=0.1 INDEX=3
  182. SET_LED LED=ML RED=0.95 GREEN=0.1 BLUE=0.1 INDEX=2
  183. {% else %}
  184. SET_LED LED=ML RED=0 GREEN=0 BLUE=1 INDEX=3
  185. SET_LED LED=ML RED=0 GREEN=0 BLUE=1 INDEX=2
  186. {% endif %}
  187. {% else %}
  188. {% if printer.extruder.temperature >= printer.extruder.target - 1.0 %}
  189. SET_LED LED=ML RED=0 GREEN=1 BLUE=0 INDEX=3
  190. SET_LED LED=ML RED=0 GREEN=1 BLUE=0 INDEX=2
  191. {% else %}
  192. {% set scaler = printer.extruder.temperature|float / printer.extruder.target|float %}
  193. SET_LED LED=ML RED={ scaler|float * 1 } GREEN=0 BLUE=0 INDEX=3
  194. SET_LED LED=ML RED={ scaler|float * 1 } GREEN=0 BLUE=0 INDEX=2
  195. {% endif %}
  196.  
  197. {% endif %}
  198.  
  199. ########################################
  200. # EXP1 / EXP2 (display) pins
  201. ########################################
  202.  
  203. [board_pins]
  204. aliases:
  205. # EXP1 header
  206. EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
  207. EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
  208. # EXP2 header
  209. EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
  210. EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
  211. # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
  212.  
Add Comment
Please, Sign In to add comment