Advertisement
Black_Lynx

Klipper.cfg

Dec 11th, 2023 (edited)
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## DISCLAIMER!!! ## This config dosn't work! Этот конфиг не работает!
  2. # chassis - Ender 3 Pro
  3. # board - BTT SKR 2B + TMC2209
  4. # extruder - BTT H2 500 + MAX31865
  5. #
  6. [stepper_x]
  7. step_pin: PE2
  8. dir_pin: PE1
  9. enable_pin: !PE3
  10. microsteps: 16
  11. rotation_distance: 40
  12. endstop_pin: PC1
  13. position_endstop: 0
  14. position_max: 235
  15. homing_speed: 50
  16.  
  17. [stepper_y]
  18. step_pin: PD5
  19. dir_pin: !PD4
  20. enable_pin: !PD6
  21. microsteps: 16
  22. rotation_distance: 40
  23. endstop_pin: PC3
  24. position_endstop: 0
  25. position_max: 235
  26. homing_speed: 50
  27.  
  28. [stepper_z]
  29. step_pin: PA15
  30. dir_pin: PA8
  31. enable_pin: !PD1
  32. microsteps: 16
  33. rotation_distance: 8
  34. endstop_pin: PC0
  35. position_endstop: 0.5
  36. position_max: 250
  37.  
  38. [extruder]
  39. step_pin: PD15
  40. dir_pin: PD14
  41. enable_pin: !PD13
  42. microsteps: 16
  43. rotation_distance: 4.575
  44. nozzle_diameter: 0.400
  45. filament_diameter: 1.750
  46. heater_pin: PB3
  47. sensor_type: MAX31865
  48. sensor_pin: PD12
  49. spi_speed: 4000000
  50. spi_software_sclk_pin: PE15
  51. spi_software_mosi_pin: PE14
  52. spi_software_miso_pin: PA14
  53. rtd_nominal_r: 100
  54. rtd_reference_r: 430
  55. rtd_num_of_wires: 2
  56. rtd_use_50hz_filter: True
  57. min_temp: 0
  58. max_temp: 250
  59. control: pid
  60. pid_Kp: 21.527
  61. pid_Ki: 1.063
  62. pid_Kd: 108.982
  63.  
  64.  
  65. [heater_bed]
  66. heater_pin: PD7
  67. sensor_type: EPCOS 100K B57560G104F
  68. sensor_pin: PA1
  69. control: pid
  70. pid_Kp: 54.027
  71. pid_Ki: 0.770
  72. pid_Kd: 948.182
  73. min_temp: 0
  74. max_temp: 130
  75.  
  76.  
  77. [fan]
  78. pin: PB7
  79. kick_start_time: 0.100
  80.  
  81. #[heater_fan fan1]
  82. #pin: PB6
  83.  
  84. #[heater_fan fan2]
  85. #pin: PB5
  86.  
  87. # Due to BTT implementing a Marlin-specific safety feature,
  88. # "anti-reversal stepper protection", this pin needs pulling
  89. # high to pass power to stepper drivers and most FETs
  90.  
  91. [output_pin motor_power]
  92. pin: PC13
  93. value: 1
  94.  
  95. [mcu]
  96. serial: /dev/serial/by-id/usb-Klipper_stm32f429xx_200024001151303239383034-if00
  97. restart_method: command
  98.  
  99. [printer]
  100. kinematics: cartesian
  101. max_velocity: 300
  102. max_accel: 3000
  103. max_z_velocity: 5
  104. max_z_accel: 100
  105.  
  106. ########################################
  107. # EXP1 / EXP2 (display) pins
  108. ########################################
  109.  
  110. [board_pins]
  111. aliases:
  112.     # EXP1 header
  113.     EXP1_1=PC5, EXP1_3=PB1, EXP1_5=PE10, EXP1_7=PE12, EXP1_9=<GND>,
  114.     EXP1_2=PB0, EXP1_4=PE9, EXP1_6=PE11, EXP1_8=PE13, EXP1_10=<5V>,
  115.     # EXP2 header
  116.     EXP2_1=PA6, EXP2_3=PE7, EXP2_5=PB2, EXP2_7=PC4,   EXP2_9=<GND>,
  117.     EXP2_2=PA5, EXP2_4=PA4, EXP2_6=PA7, EXP2_8=<RST>, EXP2_10=<NC>
  118.  
  119. # See the sample-lcd.cfg file for definitions of common LCD displays.
  120.  
  121. ########################################
  122. # TMC2209 configuration
  123. ########################################
  124.  
  125. #[tmc2209 stepper_x]
  126. #uart_pin: PE0
  127. #run_current: 0.680
  128. #hold_current: 0.800
  129. #diag_pin: PC1
  130. #driver_SGTHRS: 100
  131. #stealthchop_threshold: 1
  132.  
  133. #[tmc2209 stepper_y]
  134. #uart_pin: PD3
  135. #run_current: 0.680
  136. #hold_current: 0.800
  137. #diag_pin: PC3
  138. #driver_SGTHRS: 100
  139. #stealthchop_threshold: 1
  140.  
  141. #[tmc2209 stepper_z]
  142. #uart_pin: PD0
  143. #run_current: 0.680
  144. #hold_current: 0.800
  145. #diag_pin: PC0
  146. #stealthchop_threshold: 1
  147.  
  148. #[tmc2209 extruder]
  149. #uart_pin: PC6
  150. #run_current: 0.650
  151. #diag_pin: PC2
  152. #stealthchop_threshold: 1
  153.  
  154. [display]
  155. lcd_type: st7920
  156. cs_pin: EXP1_7
  157. sclk_pin: EXP1_6
  158. sid_pin: EXP1_8
  159. encoder_pins: ^EXP1_5, ^EXP1_3
  160. click_pin: ^!EXP1_2
  161.  
  162. [output_pin beeper]
  163. pin: EXP1_1
  164.  
  165.  
  166. [bltouch]
  167. sensor_pin: ^PE4 # this is unique to your mainboard
  168. control_pin: PE5  #this is unique to your mainboard
  169. x_offset: 57         #this needs to be calibrated
  170. y_offset: 0
  171. samples: 2
  172. speed: 2
  173. z_offset: 0.0
  174.  
  175. [safe_z_home]
  176. home_xy_position: 125,125 #this should be the center of your bed
  177. speed: 50
  178. z_hop: 10
  179. z_hop_speed: 5
  180.  
  181. [bed_mesh]
  182. speed: 80
  183. horizontal_move_z: 5
  184. mesh_min: 10, 10       #!!min and max co-ords are based on the probes location not the nozzle!!
  185. mesh_max: 100, 100  #needs to be calibrated for your individual printer
  186. probe_count: 5,5 #this is the number of probing points on X then Y axis
  187. mesh_pps: 2,2
  188. fade_start: 1
  189. fade_end: 10
  190. fade_target: 0
  191.  
  192. [include fluidd.cfg]
Tags: klipper
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement