Advertisement
b18rexracer

Ender 3 s1 pro klipper cfg

Feb 28th, 2023 (edited)
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.98 KB | None | 0 0
  1. ##################Creality Ender 3 S1 Klipper Config - 3DPrintBeginner###################
  2. ######Full guide: https://3dprintbeginner.com/how-to-install-klipper-on-ender-3-s1/######
  3.  
  4. [stepper_x]
  5. step_pin: PC2
  6. dir_pin: PB9
  7. enable_pin: !PC3
  8. microsteps: 16
  9. rotation_distance: 40
  10. endstop_pin: !PA5
  11. position_endstop: -4
  12. position_min: -4
  13. position_max: 254
  14. homing_speed: 50
  15.  
  16. [stepper_y]
  17. step_pin: PB8
  18. dir_pin: PB7
  19. enable_pin: !PC3
  20. microsteps: 16
  21. rotation_distance: 40
  22. endstop_pin: !PA6
  23. position_endstop: -2
  24. position_min: -2
  25. position_max: 235
  26. homing_speed: 50
  27.  
  28. [stepper_z]
  29. step_pin: PB6
  30. dir_pin: !PB5
  31. enable_pin: !PC3
  32. microsteps: 16
  33. rotation_distance: 8
  34. endstop_pin: probe:z_virtual_endstop
  35. position_max: 259
  36. position_min: -5
  37.  
  38. [extruder]
  39. max_extrude_only_distance: 100.0
  40. step_pin: PB4
  41. dir_pin: PB3
  42. enable_pin: !PC3
  43. microsteps: 16
  44. rotation_distance: 7.46662
  45. nozzle_diameter: 0.400
  46. filament_diameter: 1.750
  47. heater_pin: PA1
  48. sensor_type: EPCOS 100K B57560G104F
  49. sensor_pin: PC5
  50. #control: pid
  51. #pid_Kp: 22.865
  52. #pid_Ki: 1.292
  53. #pid_Kd: 101.178
  54. min_temp: 0
  55. max_temp: 300
  56. pressure_advance= 0.060
  57.  
  58.  
  59. [filament_switch_sensor RunoutSensor]
  60. pause_on_runout: False
  61. runout_gcode: PAUSE
  62. insert_gcode: RESUME
  63. switch_pin: !PC15
  64.  
  65. [heater_bed]
  66. heater_pin: PA7
  67. sensor_type: EPCOS 100K B57560G104F
  68. sensor_pin: PC4
  69. #control: pid
  70. #pid_Kp: 69.139
  71. #pid_Ki: 1.273
  72. #pid_Kd: 938.565
  73. min_temp: 0
  74. max_temp: 110
  75.  
  76. [heater_fan hotend_fan]
  77. pin: PC0
  78. heater: extruder
  79. heater_temp: 50.0
  80.  
  81. [fan]
  82. pin: PA0
  83.  
  84. [mcu]
  85. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  86. baud:250000
  87. restart_method: command
  88.  
  89. [printer]
  90. kinematics: cartesian
  91. max_velocity: 500
  92. max_accel: 4800
  93. max_accel_to_decel: 4800
  94. max_z_velocity: 5
  95. square_corner_velocity: 5.0
  96. max_z_accel: 100
  97.  
  98. [input_shaper]
  99. shaper_freq_x:47.6
  100. shaper_type_x:mzv
  101. shaper_freq_y:50.6
  102. shaper_type_y:ei
  103.  
  104. #[include adxlmcu.cfg]
  105.  
  106. [probe]
  107. pin: ^!PB1 #Probe-Stop Connection on SKR 2
  108. #don't forget to add the '^'
  109. z_offset: 2.0 #Measure per your specific setup
  110. #Move nozzle to center of bed. issue command G90.
  111. #Then G0 z0. #Place a 1mm spacer between the probe and the bed, then tighten probe into place.
  112. #Command hotend up 1mm using controls. Adjust the brass screw until
  113. #the red light is just barely lit and don't turn it any further.
  114. #Be sure it stays lit when you remove the screwdriver
  115. #and your hands.
  116. x_offset: -48 # negative = left of the nozzle
  117. y_offset: 0 # negative = in front of of the nozzle
  118. #Follow the instructions under Probe calibration section
  119. #of the Klipper documentation to set offsets correctly.
  120. #Ignore Calibrating probe Z offset section, we calibrated manually.
  121. speed: 5.0
  122. lift_speed: 30.0
  123. sample_retract_dist: 1
  124. samples: 2
  125. samples_tolerance_retries: 6
  126.  
  127. ##[(7x7)-1] / 2 = 24
  128. ##[(5x5)-1] / 2 = 12
  129. [bed_mesh]
  130. speed: 300
  131. horizontal_move_z: 3
  132. mesh_min: 42,19
  133. mesh_max: 245,232
  134. probe_count: 7,7
  135. relative_reference_index: 24
  136. algorithm: bicubic
  137. fade_start: 1
  138. fade_end: 10
  139. #fade_target:
  140. # The z position in which fade should converge. When this value is set
  141. # to a non-zero value it must be within the range of z-values in the mesh.
  142. # Users that wish to converge to the z homing position should set this to 0.
  143. # Default is the average z value of the mesh.
  144. split_delta_z: 0.015
  145. # The amount of Z difference (in mm) along a move that will
  146. # trigger a split. Default is .025.
  147. move_check_distance: 3
  148. # The distance (in mm) along a move to check for split_delta_z.
  149. # This is also the minimum length that a move can be split. Default
  150. # is 5.0.
  151. mesh_pps: 4,4
  152. # A comma separated pair of integers (X,Y) defining the number of
  153. # points per segment to interpolate in the mesh along each axis. A
  154. # "segment" can be defined as the space between each probed
  155. # point. The user may enter a single value which will be applied
  156. # to both axes. Default is 2,2.
  157. #bicubic_tension: .2
  158. # When using the bicubic algorithm the tension parameter above
  159. # may be applied to change the amount of slope interpolated.
  160. # Larger numbers will increase the amount of slope, which
  161. # results in more curvature in the mesh. Default is .2.
  162.  
  163. #[bltouch]
  164. #sensor_pin: ^PC14
  165. #control_pin: PC13
  166. #x_offset: -48
  167. #y_offset: 0
  168. #z_offset: 2.80
  169. #speed:10
  170. #samples:1
  171. #samples_result:average
  172. #probe_with_touch_mode: true
  173. #stow_on_each_sample: true
  174.  
  175. [safe_z_home]
  176. home_xy_position: 165,116
  177. speed: 100
  178. z_hop: 10
  179. z_hop_speed: 5
  180. move_to_previous: true
  181.  
  182. [bed_screws]
  183. screw1: 29, 205
  184. screw2: 197, 205
  185. screw3: 29, 33
  186. screw4: 202, 33
  187.  
  188. #[bed_calibration]
  189. #auto_level: = 1
  190.  
  191. #[bed_mesh]
  192. #speed: 120
  193. #mesh_min: 30, 30
  194. #mesh_max: 205, 205
  195. #algorithm: bicubic
  196. #probe_count: 6,6
  197. #fade_start: 1
  198. #fade_end: 10
  199. #fade_target: 0
  200.  
  201. [heater_fan hotend_fan]
  202. fan_speed: 0.6
  203.  
  204.  
  205. [temperature_sensor Board_MCU]
  206. sensor_type: temperature_mcu
  207. min_temp: 0
  208. max_temp: 100
  209.  
  210. [temperature_sensor Raspberry_Pi]
  211. sensor_type: temperature_host
  212. min_temp: 0
  213. max_temp: 100
  214.  
  215. [virtual_sdcard]
  216. path: /home/pi/printer_data/gcodes
  217.  
  218. [display_status]
  219.  
  220. [pause_resume]
  221.  
  222. [gcode_macro PAUSE]
  223. description: Pause the actual running print
  224. rename_existing: PAUSE_BASE
  225. # change this if you need more or less extrusion
  226. variable_extrude: 1.0
  227. gcode:
  228. ##### read E from pause macro #####
  229. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  230. ##### set park positon for x and y #####
  231. # default is your max posion from your printer.cfg
  232. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  233. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  234. ##### calculate save lift position #####
  235. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  236. {% set act_z = printer.toolhead.position.z|float %}
  237. {% if act_z < (max_z - 2.0) %}
  238. {% set z_safe = 2.0 %}
  239. {% else %}
  240. {% set z_safe = max_z - act_z %}
  241. {% endif %}
  242. ##### end of definitions #####
  243. PAUSE_BASE
  244. G91
  245. {% if printer.extruder.can_extrude|lower == 'true' %}
  246. G1 E-{E} F2100
  247. {% else %}
  248. {action_respond_info("Extruder not hot enough")}
  249. {% endif %}
  250. {% if "xyz" in printer.toolhead.homed_axes %}
  251. G1 Z{z_safe} F900
  252. G90
  253. G1 X{x_park} Y{y_park} F6000
  254. {% else %}
  255. {action_respond_info("Printer not homed")}
  256. {% endif %}
  257.  
  258. [gcode_macro RESUME]
  259. description: Resume the actual running print
  260. rename_existing: RESUME_BASE
  261. gcode:
  262. ##### read E from pause macro #####
  263. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  264. #### get VELOCITY parameter if specified ####
  265. {% if 'VELOCITY' in params|upper %}
  266. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  267. {%else %}
  268. {% set get_params = "" %}
  269. {% endif %}
  270. ##### end of definitions #####
  271. {% if printer.extruder.can_extrude|lower == 'true' %}
  272. G91
  273. G1 E{E} F2100
  274. {% else %}
  275. {action_respond_info("Extruder not hot enough")}
  276. {% endif %}
  277. RESUME_BASE {get_params}
  278.  
  279. [gcode_macro CANCEL_PRINT]
  280. description: Cancel the actual running print
  281. rename_existing: CANCEL_PRINT_BASE
  282. gcode:
  283. TURN_OFF_HEATERS
  284. CANCEL_PRINT_BASE
  285.  
  286. #*# <---------------------- SAVE_CONFIG ---------------------->
  287. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  288. #*#
  289. #*#
  290. #*# [extruder]
  291. #*# control = pid
  292. #*# pid_kp = 26.733
  293. #*# pid_ki = 2.122
  294. #*# pid_kd = 84.210
  295. #*#
  296. #*# [heater_bed]
  297. #*# control = pid
  298. #*# pid_kp = 67.178
  299. #*# pid_ki = 0.978
  300. #*# pid_kd = 1153.782
  301. #*#
  302. #*# [bed_mesh default]
  303. #*# version = 1
  304. #*# points =
  305. #*# 0.010000, -0.010000, -0.035000, -0.047500, -0.057500, -0.040000
  306. #*# -0.022500, -0.045000, -0.075000, -0.092500, -0.107500, -0.092500
  307. #*# -0.005000, -0.002500, -0.020000, -0.010000, -0.017500, 0.045000
  308. #*# 0.005000, 0.002500, -0.012500, -0.025000, -0.012500, 0.010000
  309. #*# 0.007500, 0.012500, 0.022500, 0.035000, 0.057500, 0.115000
  310. #*# -0.025000, -0.042500, -0.055000, -0.060000, -0.052500, -0.002500
  311. #*# x_count = 6
  312. #*# y_count = 6
  313. #*# mesh_x_pps = 2
  314. #*# mesh_y_pps = 2
  315. #*# algo = bicubic
  316. #*# tension = 0.2
  317. #*# min_x = 30.0
  318. #*# max_x = 205.0
  319. #*# min_y = 30.0
  320. #*# max_y = 205.0
  321.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement