Guest User

Ender 3 S1 / PRO

a guest
May 16th, 2022
8,878
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.83 KB | None | 0 0
  1. #Mainsail settings
  2. [include mainsail.cfg]
  3.  
  4. ##################Creality Ender 3 S1 Klipper Config - 3DPrintBeginner###################
  5. ######Full guide: https://3dprintbeginner.com/how-to-install-klipper-on-ender-3-s1/######
  6.  
  7. [stepper_x]
  8. step_pin: PC2
  9. dir_pin: PB9
  10. enable_pin: !PC3
  11. microsteps: 16
  12. rotation_distance: 40
  13. endstop_pin: !PA5
  14. position_endstop: 0
  15. position_min: 0
  16. position_max: 258
  17. homing_speed: 50
  18.  
  19. [stepper_y]
  20. step_pin: PB8
  21. dir_pin: PB7
  22. enable_pin: !PC3
  23. microsteps: 16
  24. rotation_distance: 40
  25. endstop_pin: !PA6
  26. position_endstop: 0
  27. position_min: 0
  28. position_max: 230
  29. homing_speed: 50
  30.  
  31. [stepper_z]
  32. step_pin: PB6
  33. dir_pin: !PB5
  34. enable_pin: !PC3
  35. microsteps: 16
  36. rotation_distance: 8
  37. endstop_pin: probe:z_virtual_endstop
  38. position_max: 270
  39. position_min: -5
  40.  
  41. [extruder]
  42. max_extrude_only_distance: 100.0
  43. step_pin: PB4
  44. dir_pin: PB3
  45. enable_pin: !PC3
  46. microsteps: 16
  47. rotation_distance: 7.6190
  48. nozzle_diameter: 0.400
  49. filament_diameter: 1.750
  50. heater_pin: PA1
  51. sensor_type: EPCOS 100K B57560G104F
  52. sensor_pin: PC5
  53. #control: pid
  54. #pid_Kp: 22.865
  55. #pid_Ki: 1.292
  56. #pid_Kd: 101.178
  57. min_temp: 0
  58. max_temp: 250
  59. pressure_advance = 0.12
  60.  
  61. [filament_switch_sensor RunoutSensor]
  62. pause_on_runout: False
  63. runout_gcode: PAUSE
  64. insert_gcode: RESUME
  65. switch_pin: !PC15
  66.  
  67. [heater_bed]
  68. heater_pin: PA7
  69. sensor_type: EPCOS 100K B57560G104F
  70. sensor_pin: PC4
  71. #control: pid
  72. #pid_Kp: 69.139
  73. #pid_Ki: 1.273
  74. #pid_Kd: 938.565
  75. min_temp: 0
  76. max_temp: 110
  77.  
  78.  
  79. [heater_fan hotend_fan]
  80. pin: PC0
  81. heater: extruder
  82. heater_temp: 50.0
  83.  
  84. [fan]
  85. pin: PA0
  86.  
  87. [mcu]
  88. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  89. restart_method: command
  90.  
  91. [printer]
  92. kinematics: cartesian
  93. max_velocity: 500
  94. max_accel: 2000
  95. max_accel_to_decel: 2000
  96. max_z_velocity: 5
  97. max_z_accel: 100
  98. square_corner_velocity: 5.0
  99.  
  100. [bltouch]
  101. sensor_pin: ^PC14
  102. control_pin: PC13
  103. x_offset: -32
  104. y_offset: -41
  105. z_offset: 3.3
  106. speed:35
  107. samples:3
  108. samples_result: median
  109. samples_tolerance: 0.0075
  110. samples_tolerance_retries: 10
  111. probe_with_touch_mode: true
  112. stow_on_each_sample: false
  113.  
  114. [safe_z_home]
  115. home_xy_position: 154,154
  116. speed: 100
  117. z_hop: 10
  118. z_hop_speed: 5
  119.  
  120. [bed_mesh]
  121. speed: 120
  122. mesh_min: 10, 10
  123. #relative_reference_index: 45
  124. mesh_max: 225, 189
  125. algorithm: bicubic
  126. probe_count: 5,5
  127. split_delta_z: 0.0125
  128. #mesh_pps: 2,2
  129. move_check_distance: 3
  130. bicubic_tension: 0.2
  131.  
  132. [bed_screws]
  133. screw1: 32, 35
  134. screw2: 205, 35
  135. screw3: 205, 202
  136. screw4: 32, 202
  137.  
  138. [screws_tilt_adjust]
  139. screw1: 64, 76
  140. screw1_name: front left screw
  141. screw2: 237, 76
  142. screw2_name: front right screw
  143. screw3: 237, 230
  144. screw3_name: rear right screw
  145. screw4: 60, 230
  146. screw4_name: rear left screw
  147. horizontal_move_z: 10.
  148. speed: 50.
  149. screw_thread: CW-M3 # Use CW for Clowise and CCW for Counter Clockwise
  150.  
  151.  
  152. [temperature_sensor Board_MCU]
  153. sensor_type: temperature_mcu
  154. min_temp: 0
  155. max_temp: 100
  156.  
  157. [temperature_sensor Raspberry_Pi]
  158. sensor_type: temperature_host
  159. min_temp: 0
  160. max_temp: 100
  161.  
  162. [virtual_sdcard]
  163. path: ~/gcode_files
  164.  
  165. [display_status]
  166.  
  167. [pause_resume]
  168.  
  169. [gcode_macro PAUSE]
  170. description: Pause the actual running print
  171. rename_existing: PAUSE_BASE
  172. # change this if you need more or less extrusion
  173. variable_extrude: 1.0
  174. gcode:
  175. ##### read E from pause macro #####
  176. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  177. ##### set park positon for x and y #####
  178. # default is your max posion from your printer.cfg
  179. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  180. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  181. ##### calculate save lift position #####
  182. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  183. {% set act_z = printer.toolhead.position.z|float %}
  184. {% if act_z < (max_z - 2.0) %}
  185. {% set z_safe = 2.0 %}
  186. {% else %}
  187. {% set z_safe = max_z - act_z %}
  188. {% endif %}
  189. ##### end of definitions #####
  190. PAUSE_BASE
  191. G91
  192. {% if printer.extruder.can_extrude|lower == 'true' %}
  193. G1 E-{E} F2100
  194. {% else %}
  195. {action_respond_info("Extruder not hot enough")}
  196. {% endif %}
  197. {% if "xyz" in printer.toolhead.homed_axes %}
  198. G1 Z{z_safe} F900
  199. G90
  200. G1 X{x_park} Y{y_park} F6000
  201. {% else %}
  202. {action_respond_info("Printer not homed")}
  203. {% endif %}
  204.  
  205. [gcode_macro RESUME]
  206. description: Resume the actual running print
  207. rename_existing: RESUME_BASE
  208. gcode:
  209. ##### read E from pause macro #####
  210. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  211. #### get VELOCITY parameter if specified ####
  212. {% if 'VELOCITY' in params|upper %}
  213. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  214. {%else %}
  215. {% set get_params = "" %}
  216. {% endif %}
  217. ##### end of definitions #####
  218. {% if printer.extruder.can_extrude|lower == 'true' %}
  219. G91
  220. G1 E{E} F2100
  221. {% else %}
  222. {action_respond_info("Extruder not hot enough")}
  223. {% endif %}
  224. RESUME_BASE {get_params}
  225.  
  226. [gcode_macro CANCEL_PRINT]
  227. description: Cancel the actual running print
  228. rename_existing: CANCEL_PRINT_BASE
  229. gcode:
  230. TURN_OFF_HEATERS
  231. CANCEL_PRINT_BASE
  232.  
  233. #*# <---------------------- SAVE_CONFIG ---------------------->
  234. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  235. #*#
  236. #*# [bed_mesh default]
  237. #*# version = 1
  238. #*# points =
  239. #*# -0.062500, 0.005000, 0.045000, 0.060000, 0.065000
  240. #*# -0.117500, -0.050000, -0.002500, 0.002500, -0.010000
  241. #*# -0.022500, 0.032500, 0.032500, 0.032500, 0.007500
  242. #*# -0.047500, 0.020000, 0.035000, 0.030000, -0.007500
  243. #*# -0.112500, -0.062500, -0.037500, -0.055000, -0.085000
  244. #*# tension = 0.2
  245. #*# min_x = 10.0
  246. #*# algo = bicubic
  247. #*# y_count = 5
  248. #*# mesh_y_pps = 2
  249. #*# min_y = 10.0
  250. #*# x_count = 5
  251. #*# max_y = 189.0
  252. #*# mesh_x_pps = 2
  253. #*# max_x = 225.0
  254. #*#
  255. #*# [extruder]
  256. #*# control = pid
  257. #*# pid_kp = 17.938
  258. #*# pid_ki = 0.747
  259. #*# pid_kd = 107.631
  260. #*#
  261. #*# [heater_bed]
  262. #*# control = pid
  263. #*# pid_kp = 66.055
  264. #*# pid_ki = 0.949
  265. #*# pid_kd = 1149.350
  266.  
Advertisement
Add Comment
Please, Sign In to add comment