Advertisement
Tom_Neverwinter

Creality Ender 3 S1 Pro [Klipper] old

Sep 19th, 2023 (edited)
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.83 KB | None | 0 0
  1. ##################Creality Ender 3 S1 Pro Klipper Config - Enhanced Version###############
  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: -5
  12. position_min: -5
  13. position_max: 252
  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: -5
  24. position_min: -5
  25. position_max: 230
  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: 270
  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: 9.93
  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.472
  52. # pid_ki = 1.161
  53. # pid_kd = 108.708
  54. min_temp: 0
  55. max_temp: 300
  56. pressure_advance = 0.2414
  57.  
  58.  
  59. [filament_switch_sensor RunoutSensor]
  60. # Set to 'True' to enable automatic pausing when filament runs out.
  61. pause_on_runout: True
  62. runout_gcode: PAUSE_PRINT
  63. insert_gcode: RESUME_PRINT
  64. switch_pin: !PC15
  65.  
  66. [gcode_macro PAUSE_PRINT]
  67. description: Advanced Pause for Filament Runout
  68. gcode:
  69. SAVE_GCODE_STATE NAME=PAUSE_state
  70. M83 ; Set extruder to relative mode
  71. G1 E-1 F2100 ; Retract filament 1mm
  72. G91 ; Relative positioning
  73. G1 Z10 F300 ; Lift Z by 10mm
  74. G90 ; Absolute positioning
  75. G1 X0 Y0 F3000 ; Move to the front-left corner of the bed to park the nozzle
  76. {action_respond_info("Print Paused due to filament runout. Please replace filament and resume print.")}
  77.  
  78. [gcode_macro RESUME_PRINT]
  79. description: Advanced Resume after Filament Change
  80. gcode:
  81. M83 ; Set extruder to relative mode
  82. G4 S10 ; Wait for 10 seconds to allow filament insertion into the extruder
  83. G1 E1 F2100 ; Prime the nozzle by 1mm
  84. RESTORE_GCODE_STATE NAME=PAUSE_state ; Restore the saved state before the pause
  85. {action_respond_info("Print Resumed. Happy printing!")}
  86.  
  87.  
  88. [heater_bed]
  89. heater_pin: PA7
  90. sensor_type: EPCOS 100K B57560G104F
  91. sensor_pin: PC4
  92. # control = pid
  93. # pid_kp = 73.609
  94. # pid_ki = 1.469
  95. # pid_kd = 921.956
  96. min_temp: 0
  97. max_temp: 130
  98.  
  99. [heater_fan hotend_fan]
  100. pin: PC0
  101. heater: extruder
  102. heater_temp: 50.0
  103.  
  104. [fan]
  105. pin: PA0
  106.  
  107. [mcu]
  108. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  109. restart_method: command
  110.  
  111. [printer]
  112. kinematics: cartesian
  113. max_velocity: 500
  114. max_accel: 6000
  115. max_accel_to_decel: 6000
  116. max_z_velocity: 5
  117. square_corner_velocity: 5.0
  118. max_z_accel: 100
  119.  
  120. [bltouch]
  121. sensor_pin: ^PC14
  122. control_pin: PC13
  123. x_offset: -31.8
  124. y_offset: -40.5
  125. z_offset = 4.000
  126. speed:10
  127. samples:1
  128. samples_result:average
  129. probe_with_touch_mode: true
  130. stow_on_each_sample: true
  131.  
  132. [safe_z_home]
  133. home_xy_position: 147,154
  134. speed: 100
  135. z_hop: 10
  136. z_hop_speed: 5
  137.  
  138. [bed_mesh]
  139. speed: 100 # A slightly reduced speed for more accurate probing.
  140. horizontal_move_z: 5 # To ensure the nozzle doesn't hit anything while moving horizontally.
  141. mesh_min: 20, 20 # Starting a bit away from the edge to avoid clamps or any obstructions.
  142. mesh_max: 220, 190 # Adjusted Y to ensure it stays within the range.
  143. probe_count: 6, 5 # 6 probes on X-axis and 5 on Y-axis.
  144. mesh_pps: 3, 3 # Points per segment, slightly increased.
  145. algorithm: bicubic # Bicubic for smooth transitions.
  146. bicubic_tension: 0.2 # Standard tension for bicubic.
  147. move_check_distance: 5 # Checks for bed stability during moves.
  148. split_delta_z: 0.025 # For safety with significant warping.
  149. fade_start: 1 # Starts reducing compensation from 1mm.
  150. fade_end: 10 # Stops compensation by 10mm.
  151. fade_target: 0 # Target level for the fade.
  152.  
  153. [gcode_macro TILT_ADJUST]
  154. description: Start screws tilt adjust
  155. gcode:
  156. SCREWS_TILT_CALCULATE
  157.  
  158. [screws_tilt_adjust]
  159. screw1: 62,232
  160. screw1_name: front left screw
  161. screw2: 234,232
  162. screw2_name: front right screw
  163. screw3: 234,66
  164. screw3_name: rear right screw
  165. screw4: 62,66
  166. screw4_name: rear left screw
  167. horizontal_move_z: 10
  168. speed: 200
  169. screw_thread: CW-M4 # Use CW for Clockwise and CCW for Counter Clockwise
  170.  
  171.  
  172. [exclude_object]
  173.  
  174. # This file contains all settings for KAMP, and must be included in printer.cfg with:
  175.  
  176. [include KAMP_Settings.cfg]
  177.  
  178. ### see KAMP_Settings.cfg. for its settings ###
  179.  
  180. [temperature_sensor Raspberry_Pi]
  181. sensor_type: temperature_host
  182. min_temp: 0
  183. max_temp: 100
  184.  
  185. [virtual_sdcard]
  186. path: /home/pi/printer_data/gcodes
  187.  
  188. [display_status]
  189.  
  190. [pause_resume]
  191.  
  192. [gcode_macro PAUSE]
  193. description: Advanced Pause
  194. rename_existing: PAUSE_BASE
  195. variable_extrude: 1.0
  196. gcode:
  197. PAUSE_BASE
  198. SAVE_GCODE_STATE NAME=PAUSE_state
  199. M83 ; Set extruder to relative mode
  200. G1 E-{extrude} F2100 ; Retract filament
  201. G91 ; Relative positioning
  202. G1 Z10 F300 ; Lift Z
  203. G90 ; Absolute positioning
  204. G1 X0 Y0 ; Move to a defined XY position to park the nozzle
  205. {action_respond_info("Print Paused. Remember to reheat the nozzle before resuming.")}
  206.  
  207. [gcode_macro RESUME]
  208. description: Advanced Resume
  209. rename_existing: RESUME_BASE
  210. gcode:
  211. RESUME_BASE
  212. M83 ; Set extruder to relative mode
  213. G1 E{extrude} F2100 ; Prime the nozzle
  214. RESTORE_GCODE_STATE NAME=PAUSE_state ; Restore the saved state
  215. {action_respond_info("Print Resumed.")}
  216.  
  217. [gcode_macro CANCEL_PRINT]
  218. description: Advanced Cancel Print
  219. rename_existing: CANCEL_PRINT_BASE
  220. variable_park: True
  221. gcode:
  222. {% if printer.pause_resume.is_paused|lower == 'false' and park|lower == 'true'%}
  223. PAUSE ; Invoke the PAUSE macro if not already paused
  224. {% endif %}
  225. TURN_OFF_HEATERS ; Turn off all heaters
  226. CANCEL_PRINT_BASE ; Call the base cancel print functionality
  227. {action_respond_info("Print Cancelled.")}
  228.  
  229. #*# <---------------------- SAVE_CONFIG ---------------------->
  230. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  231. #*#
  232. #*# [extruder]
  233. #*# control = pid
  234. #*# pid_kp = 22.472
  235. #*# pid_ki = 1.161
  236. #*# pid_kd = 108.708
  237. #*#
  238. #*# [heater_bed]
  239. #*# control = pid
  240. #*# pid_kp = 73.609
  241. #*# pid_ki = 1.469
  242. #*# pid_kd = 921.956
  243. #*#
  244. #*# [bed_mesh default]
  245. #*# version = 1
  246. #*# points =
  247. #*# -0.347500, -0.507500, -0.592500, -0.597500, -0.545000, -0.330000
  248. #*# -0.317500, -0.507500, -0.592500, -0.585000, -0.547500, -0.342500
  249. #*# -0.265000, -0.430000, -0.510000, -0.517500, -0.465000, -0.272500
  250. #*# -0.252500, -0.417500, -0.497500, -0.502500, -0.432500, -0.262500
  251. #*# -0.325000, -0.430000, -0.505000, -0.492500, -0.480000, -0.335000
  252. #*# x_count = 6
  253. #*# y_count = 5
  254. #*# mesh_x_pps = 3
  255. #*# mesh_y_pps = 3
  256. #*# algo = bicubic
  257. #*# tension = 0.2
  258. #*# min_x = 19.999999999999996
  259. #*# max_x = 220.0
  260. #*# min_y = 20.0
  261. #*# max_y = 190.0
  262. #*#
  263.  
  264.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement