Advertisement
insippo

ender 3s1 printer.cfg klipper

Feb 22nd, 2024
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.46 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. [exclude_object]
  4. [include mainsail.cfg]
  5. [include KAMP_Settings.cfg]
  6. [include timelapse.cfg]
  7.  
  8.  
  9. [stepper_x]
  10. step_pin: PC2
  11. dir_pin: PB9
  12. enable_pin: !PC3
  13. microsteps: 16
  14. rotation_distance: 40
  15. endstop_pin: !PA5
  16. position_endstop: 0
  17. position_max: 258
  18. homing_speed: 50
  19.  
  20. [stepper_y]
  21. step_pin: PB8
  22. dir_pin: PB7
  23. enable_pin: !PC3
  24. microsteps: 16
  25. rotation_distance: 40
  26. endstop_pin: !PA6
  27. position_endstop: 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.095
  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: 130
  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: 3000
  95. max_accel_to_decel: 3000
  96. max_z_velocity: 5
  97. square_corner_velocity: 5.0
  98. max_z_accel: 100
  99.  
  100. [bltouch]
  101. sensor_pin: ^PC14
  102. control_pin: PC13
  103. x_offset: -32
  104. y_offset: -41
  105. #z_offset: 2.80
  106. speed:10
  107. samples:1
  108. samples_result:average
  109. probe_with_touch_mode: true
  110. stow_on_each_sample: false
  111.  
  112. [safe_z_home]
  113. home_xy_position: 154,154
  114. speed: 100
  115. z_hop: 10
  116. z_hop_speed: 5
  117.  
  118. [bed_screws]
  119. screw1: 32, 203
  120. screw2: 32, 33
  121. screw3: 212, 33
  122. screw4: 205, 203
  123.  
  124. [screws_tilt_adjust]
  125. screw1: 64, 78
  126. screw1_name: front left screw
  127. screw2: 242, 73
  128. screw2_name: front right screw
  129. screw3: 242, 229
  130. screw3_name: rear right screw
  131. screw4: 64, 229
  132. screw4_name: rear left screw
  133. horizontal_move_z: 10.
  134. speed: 50.
  135. screw_thread: CW-M3
  136.  
  137. [mcu rpi]
  138. serial: /tmp/klipper_host_mcu
  139.  
  140. [adxl345]
  141. cs_pin: rpi:None
  142.  
  143. [resonance_tester]
  144. accel_chip: adxl345
  145. probe_points:
  146. 115, 115, 20 # an example
  147.  
  148. #[input_shaper]
  149. #sharper_type_x = zv
  150. #sharper_freq_x = 53.8
  151. #sharper_type_y = mzv
  152. #sharper_freq_y = 41.8
  153.  
  154.  
  155.  
  156.  
  157. [bed_mesh]
  158. speed: 100
  159. mesh_min: 10, 10
  160. mesh_max: 225, 189
  161. algorithm: bicubic
  162. probe_count: 8,8
  163.  
  164. [temperature_sensor Board_MCU]
  165. sensor_type: temperature_mcu
  166. min_temp: 0
  167. max_temp: 100
  168.  
  169. [temperature_sensor Raspberry_Pi]
  170. sensor_type: temperature_host
  171. min_temp: 0
  172. max_temp: 100
  173.  
  174. [virtual_sdcard]
  175. path: /home/seston/printer_data/gcodes
  176.  
  177. [display_status]
  178.  
  179. [gcode_macro M205]
  180. gcode:
  181.  
  182. [pause_resume]
  183.  
  184. [gcode_macro PAUSE]
  185. description: Pause the actual running print
  186. rename_existing: PAUSE_BASE
  187. # change this if you need more or less extrusion
  188. variable_extrude: 1.0
  189. gcode:
  190. ##### read E from pause macro #####
  191. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  192. ##### set park positon for x and y #####
  193. # default is your max posion from your printer.cfg
  194. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  195. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  196. ##### calculate save lift position #####
  197. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  198. {% set act_z = printer.toolhead.position.z|float %}
  199. {% if act_z < (max_z - 2.0) %}
  200. {% set z_safe = 2.0 %}
  201. {% else %}
  202. {% set z_safe = max_z - act_z %}
  203. {% endif %}
  204. ##### end of definitions #####
  205. PAUSE_BASE
  206. G91
  207. {% if printer.extruder.can_extrude|lower == 'true' %}
  208. G1 E-{E} F2100
  209. {% else %}
  210. {action_respond_info("Extruder not hot enough")}
  211. {% endif %}
  212. {% if "xyz" in printer.toolhead.homed_axes %}
  213. G1 Z{z_safe} F900
  214. G90
  215. G1 X{x_park} Y{y_park} F6000
  216. {% else %}
  217. {action_respond_info("Printer not homed")}
  218. {% endif %}
  219.  
  220. [gcode_macro RESUME]
  221. description: Resume the actual running print
  222. rename_existing: RESUME_BASE
  223. gcode:
  224. ##### read E from pause macro #####
  225. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  226. #### get VELOCITY parameter if specified ####
  227. {% if 'VELOCITY' in params|upper %}
  228. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  229. {%else %}
  230. {% set get_params = "" %}
  231. {% endif %}
  232. ##### end of definitions #####
  233. {% if printer.extruder.can_extrude|lower == 'true' %}
  234. G91
  235. G1 E{E} F2100
  236. {% else %}
  237. {action_respond_info("Extruder not hot enough")}
  238. {% endif %}
  239. RESUME_BASE {get_params}
  240.  
  241. [gcode_macro CANCEL_PRINT]
  242. description: Cancel the actual running print
  243. rename_existing: CANCEL_PRINT_BASE
  244. gcode:
  245. TURN_OFF_HEATERS
  246. CANCEL_PRINT_BASE
  247.  
  248. #*# <---------------------- SAVE_CONFIG ---------------------->
  249. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  250. #*#
  251. #*# [bed_mesh default]
  252. #*# version = 1
  253. #*# points =
  254. #*# -0.092500, -0.075000, -0.087500, -0.092500
  255. #*# -0.080000, -0.062500, -0.070000, -0.087500
  256. #*# -0.057500, -0.047500, -0.065000, -0.062500
  257. #*# -0.040000, -0.022500, -0.047500, -0.057500
  258. #*# -0.047500, -0.030000, -0.060000, -0.050000
  259. #*# -0.025000, -0.010000, -0.022500, -0.032500
  260. #*# -0.000000, -0.007500, -0.015000, -0.030000
  261. #*# x_count = 4
  262. #*# y_count = 7
  263. #*# mesh_x_pps = 2
  264. #*# mesh_y_pps = 2
  265. #*# algo = bicubic
  266. #*# tension = 0.2
  267. #*# min_x = 69.23
  268. #*# max_x = 150.79
  269. #*# min_y = 35.58
  270. #*# max_y = 172.61
  271. #*#
  272. #*# [bltouch]
  273. #*# z_offset = 3.190
  274. #*#
  275. #*# [bed_mesh PLA@60]
  276. #*# version = 1
  277. #*# points =
  278. #*# 0.090000, 0.065000, 0.077500, 0.100000, 0.177500
  279. #*# -0.057500, -0.067500, -0.062500, -0.052500, 0.005000
  280. #*# 0.075000, 0.022500, -0.005000, -0.025000, -0.017500
  281. #*# 0.105000, 0.075000, 0.055000, 0.037500, 0.060000
  282. #*# 0.147500, 0.102500, 0.242500, 0.075000, 0.115000
  283. #*# x_count = 5
  284. #*# y_count = 5
  285. #*# mesh_x_pps = 2
  286. #*# mesh_y_pps = 2
  287. #*# algo = bicubic
  288. #*# tension = 0.2
  289. #*# min_x = 10.0
  290. #*# max_x = 225.0
  291. #*# min_y = 10.0
  292. #*# max_y = 189.0
  293. #*#
  294. #*# [bed_mesh PETG@80]
  295. #*# version = 1
  296. #*# points =
  297. #*# 0.077500, 0.077500, 0.005000, 0.017500, -0.017500, -0.022500, -0.015000, 0.002500
  298. #*# -0.162500, -0.170000, -0.195000, -0.155000, -0.170000, -0.140000, -0.127500, -0.087500
  299. #*# -0.195000, -0.187500, -0.200000, -0.172500, -0.172500, -0.145000, -0.127500, -0.095000
  300. #*# -0.132500, -0.112500, -0.172500, -0.137500, -0.152500, -0.137500, -0.137500, -0.122500
  301. #*# -0.142500, -0.132500, -0.170000, -0.135000, -0.145000, -0.112500, -0.130000, -0.105000
  302. #*# -0.120000, -0.112500, -0.147500, -0.130000, -0.145000, -0.130000, -0.145000, -0.120000
  303. #*# -0.125000, -0.102500, -0.137500, -0.105000, -0.120000, -0.097500, -0.102500, -0.065000
  304. #*# -0.102500, -0.100000, -0.130000, -0.095000, -0.092500, -0.067500, -0.055000, -0.020000
  305. #*# x_count = 8
  306. #*# y_count = 8
  307. #*# mesh_x_pps = 2
  308. #*# mesh_y_pps = 2
  309. #*# algo = bicubic
  310. #*# tension = 0.2
  311. #*# min_x = 10.0
  312. #*# max_x = 224.97000000000003
  313. #*# min_y = 10.0
  314. #*# max_y = 188.99
  315. #*#
  316. #*# [input_shaper]
  317. #*# shaper_type_x = zv
  318. #*# shaper_freq_x = 53.8
  319. #*# shaper_type_y = mzv
  320. #*# shaper_freq_y = 41.8
  321.  
Tags: 3s1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement