HcNguyen111

CR-10S Pro V2 Klipper printer.cfg

Oct 26th, 2021 (edited)
379
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This file contains pin mappings for the Creality CR-10S Pro V2. To use
  2. # this config, the firmware should be compiled for the AVR atmega2560.
  3.  
  4. [stepper_x]
  5. step_pin: PF0
  6. dir_pin: PF1
  7. enable_pin: !PD7
  8. rotation_distance: 40
  9. microsteps: 16
  10. full_steps_per_rotation: 200
  11. endstop_pin: ^PE5
  12. position_endstop: 0
  13. position_min: 0
  14. position_max: 320
  15. homing_speed: 50
  16. homing_retract_speed: 25
  17. homing_retract_dist: 5
  18. second_homing_speed: 10
  19.  
  20. [stepper_y]
  21. step_pin: PF6
  22. dir_pin: !PF7
  23. enable_pin: !PF2
  24. rotation_distance: 40
  25. microsteps: 16
  26. full_steps_per_rotation: 200
  27. endstop_pin: ^PJ1
  28. position_endstop: 0
  29. position_min: 0
  30. position_max: 310
  31. homing_speed: 50
  32. homing_retract_speed: 25
  33. homing_retract_dist: 5
  34. second_homing_speed: 10
  35.  
  36. [stepper_z]
  37. step_pin: PL3
  38. dir_pin: !PL1
  39. enable_pin: !PK0
  40. rotation_distance: 8
  41. microsteps: 16
  42. full_steps_per_rotation: 200
  43. endstop_pin: probe:z_virtual_endstop
  44. position_min: -1
  45. position_max: 376
  46.  
  47. [extruder]
  48. step_pin: PA4
  49. dir_pin: PA6
  50. enable_pin: !PA2
  51. rotation_distance: 22.900
  52. microsteps: 16
  53. full_steps_per_rotation: 200
  54. nozzle_diameter: 0.400
  55. filament_diameter: 1.750
  56. max_extrude_only_distance: 500.0
  57. max_extrude_only_velocity: 70.0
  58. max_extrude_only_accel: 1000.0
  59. heater_pin: PB4
  60. sensor_type: EPCOS 100K B57560G104F
  61. sensor_pin: PK5
  62. control: pid
  63. pid_Kp: 22.2
  64. pid_Ki: 1.08
  65. pid_Kd: 114
  66. min_extrude_temp: 170
  67. min_temp: 5
  68. max_temp: 275
  69.  
  70. [heater_bed]
  71. heater_pin: PH5
  72. sensor_type: EPCOS 100K B57560G104F
  73. sensor_pin: PK6
  74. control: pid
  75. pid_Kp: 690.34
  76. pid_Ki: 111.47
  77. pid_Kd: 1068.83
  78. min_temp: 5
  79. max_temp: 140
  80.  
  81. [fan]
  82. pin: PH6
  83.  
  84. [mcu]
  85. serial: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A10KK520-if00-port0
  86.  
  87. [printer]
  88. kinematics: cartesian
  89. max_velocity: 240 #200
  90. max_accel: 1600 #1500
  91. max_accel_to_decel: 800 # half of max_accel
  92. max_z_velocity: 10.0
  93. max_z_accel: 100
  94. square_corner_velocity: 5.0
  95.  
  96. [input_shaper]
  97. shaper_freq_x: 31.5
  98. shaper_freq_y: 34.0
  99. shaper_type: mzv
  100.  
  101. [bltouch]
  102. sensor_pin: ^PD2
  103. control_pin: PB5
  104. stow_on_each_sample: False
  105. probe_with_touch_mode: True
  106. x_offset: -27
  107. y_offset: -2
  108. z_offset: 2.08
  109. speed: 4.0
  110. samples: 2
  111. sample_retract_dist: 3.0
  112.  
  113. [safe_z_home]
  114. home_xy_position: 177, 152
  115. speed: 80.0
  116. z_hop: 10.0
  117. z_hop_speed: 5.0
  118.  
  119. [bed_mesh]
  120. speed: 200
  121. horizontal_move_z: 3.0
  122. mesh_min: 5, 5
  123. mesh_max: 288, 303
  124. probe_count: 6
  125. fade_start: 1
  126. fade_end: 10
  127.  
  128. [bed_screws]
  129. screw1: 56, 38
  130. screw2: 307, 38
  131. screw3: 56, 279
  132. screw4: 307, 279
  133. horizontal_move_z: 5.0
  134. probe_height: 0.2
  135. speed: 80.0
  136. probe_speed: 3.2
  137.  
  138. [screws_tilt_adjust]
  139. screw1: 56, 38 ;29, 36
  140. screw1_name: front left screw
  141. screw2: 307, 38 ;280, 36
  142. screw2_name: front right screw
  143. screw3: 56, 279 ;29, 277
  144. screw3_name: rear right screw
  145. screw4: 307, 279 ;280, 277
  146. screw4_name: rear left screw
  147. horizontal_move_z: 5.0
  148. speed: 50.0
  149. screw_thread: CW-M4
  150.  
  151. [filament_switch_sensor e0_sensor]
  152. switch_pin: PE4
  153. pause_on_runout: False
  154. runout_gcode:
  155.   PAUSE_PARK
  156.  
  157. [temperature_sensor raspberry_pi]
  158. sensor_type: temperature_host
  159.  
  160. [dgus_display]
  161. type: t5uid1
  162. uart_bus: usart2
  163. implementation: dgus_printer_menu
  164. volume: 0
  165. brightness: 15
  166.  
  167. [pause_resume]
  168.  
  169. [display_status]
  170.  
  171. [virtual_sdcard]
  172. path: ~/gcode_files
  173.  
  174. # https://github.com/Desuuuu/klipper-macros
  175. # If you want to use these macros, follow the instructions from the repository
  176. # and uncomment the following lines.
  177.  
  178. [include macros/*.cfg]
  179.  
  180. [save_variables]
  181. filename: ~/klipper_config/variables.cfg
  182.  
  183. [delayed_gcode macros_initialize]
  184. initial_duration: 1
  185. gcode:
  186.   INITIALIZE_VARIABLE VARIABLE=park_x VALUE=20
  187.   INITIALIZE_VARIABLE VARIABLE=park_y VALUE=150
  188.   INITIALIZE_VARIABLE VARIABLE=bowden_len VALUE=400
RAW Paste Data