Advertisement
Guest User

Ender 3 S1 config

a guest
May 16th, 2022
4,561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.67 KB | None | 0 0
  1. [include timelapse.cfg]
  2.  
  3. [stepper_x]
  4. step_pin: PC2
  5. dir_pin: PB9
  6. enable_pin: !PC3
  7. microsteps: 16
  8. rotation_distance: 40
  9. endstop_pin: !PA5
  10. position_endstop: 0
  11. position_max: 248
  12. position_min: -10
  13. homing_speed: 50
  14.  
  15. [stepper_y]
  16. step_pin: PB8
  17. dir_pin: PB7
  18. enable_pin: !PC3
  19. microsteps: 16
  20. rotation_distance: 40
  21. endstop_pin: !PA6
  22. position_endstop: 0
  23. position_max: 226
  24. position_min: -10
  25. homing_speed: 50
  26.  
  27. [stepper_z]
  28. step_pin: PB6
  29. dir_pin: !PB5
  30. enable_pin: !PC3
  31. microsteps: 16
  32. rotation_distance: 8
  33. endstop_pin: probe:z_virtual_endstop
  34. position_max: 270
  35. position_min: -5
  36.  
  37. [extruder]
  38. max_extrude_only_distance: 100.0
  39. step_pin: PB4
  40. dir_pin: PB3
  41. enable_pin: !PC3
  42. microsteps: 16
  43. gear_ratio: 3.5:1
  44. rotation_distance: 26.193
  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: 250
  56. pressure_advance = 0.133
  57.  
  58. [heater_bed]
  59. heater_pin: PA7
  60. sensor_type: EPCOS 100K B57560G104F
  61. sensor_pin: PC4
  62. #control: pid
  63. #pid_Kp: 69.139
  64. #pid_Ki: 1.273
  65. #pid_Kd: 938.565
  66. min_temp: 0
  67. max_temp: 110
  68.  
  69. [filament_switch_sensor RunoutSensor]
  70. pause_on_runout: True
  71. runout_gcode: PAUSE
  72. insert_gcode: RESUME
  73. switch_pin: !PC15
  74.  
  75. [heater_fan hotend_fan]
  76. pin: PC0
  77. heater: extruder
  78. heater_temp: 50.0
  79.  
  80. [fan]
  81. pin: PA0
  82.  
  83. [mcu]
  84. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  85. restart_method: command
  86.  
  87. [printer]
  88. kinematics: cartesian
  89. max_velocity: 300
  90. max_accel: 2300
  91. max_accel_to_decel: 2000
  92. max_z_velocity: 5
  93. square_corner_velocity: 5.0
  94. max_z_accel: 100
  95.  
  96. [input_shaper]
  97. shaper_freq_x: 90.6 # frequency for the X mark of the test model
  98. shaper_type_x: 2hump_ei
  99. shaper_freq_y: 49.0 # frequency for the Y mark of the test model
  100. shaper_type_y: ei
  101.  
  102. [bltouch]
  103. sensor_pin: ^PC14
  104. control_pin: PC13
  105. x_offset: -31.8
  106. y_offset: -37.2
  107. speed:4
  108. samples:2
  109. samples_result:average
  110. probe_with_touch_mode: true
  111. stow_on_each_sample: false
  112.  
  113. [bed_mesh]
  114. speed: 100
  115. mesh_min: 25,20
  116. mesh_max: 210,181
  117. algorithm: bicubic
  118. probe_count: 10
  119. move_check_distance: 3
  120. split_delta_z: .025
  121.  
  122. [safe_z_home]
  123. home_xy_position: 117, 117
  124. speed: 100
  125. z_hop: 10
  126. z_hop_speed: 5
  127.  
  128. [bed_screws]
  129. screw1: 32, 203
  130. screw2: 32, 33
  131. screw3: 212, 33
  132. screw4: 205, 203
  133.  
  134. [screws_tilt_adjust]
  135. screw1: 60, 73
  136. screw1_name: front left screw
  137. screw2: 237, 73
  138. screw2_name: front right screw
  139. screw3: 237, 213
  140. screw3_name: rear right screw
  141. screw4: 60, 213
  142. screw4_name: rear left screw
  143. horizontal_move_z: 10.
  144. speed: 50.
  145. screw_thread: CW-M3
  146.  
  147. [temperature_sensor Board_MCU]
  148. sensor_type: temperature_mcu
  149. min_temp: 0
  150. max_temp: 100
  151.  
  152. [temperature_sensor Raspberry_Pi]
  153. sensor_type: temperature_host
  154. min_temp: 0
  155. max_temp: 100
  156.  
  157. [virtual_sdcard]
  158. path: ~/gcode_files
  159.  
  160. [mcu rpi]
  161. serial: /tmp/klipper_host_mcu
  162.  
  163. [adxl345]
  164. cs_pin: rpi:None
  165.  
  166. [resonance_tester]
  167. accel_chip: adxl345
  168. probe_points:
  169. 115, 115, 20 # an example
  170.  
  171. [display_status]
  172.  
  173. [pause_resume]
  174.  
  175. [gcode_macro PAUSE]
  176. description: Pause the actual running print
  177. rename_existing: PAUSE_BASE
  178. # change this if you need more or less extrusion
  179. variable_extrude: 1.0
  180. gcode:
  181. ##### read E from pause macro #####
  182. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  183. ##### set park positon for x and y #####
  184. # default is your max posion from your printer.cfg
  185. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  186. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  187. ##### calculate save lift position #####
  188. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  189. {% set act_z = printer.toolhead.position.z|float %}
  190. {% if act_z < (max_z - 2.0) %}
  191. {% set z_safe = 2.0 %}
  192. {% else %}
  193. {% set z_safe = max_z - act_z %}
  194. {% endif %}
  195. ##### end of definitions #####
  196. PAUSE_BASE
  197. G91
  198. {% if printer.extruder.can_extrude|lower == 'true' %}
  199. G1 E-{E} F2100
  200. {% else %}
  201. {action_respond_info("Extruder not hot enough")}
  202. {% endif %}
  203. {% if "xyz" in printer.toolhead.homed_axes %}
  204. G1 Z{z_safe} F900
  205. G90
  206. G1 X{x_park} Y{y_park} F6000
  207. {% else %}
  208. {action_respond_info("Printer not homed")}
  209. {% endif %}
  210.  
  211. [gcode_macro RESUME]
  212. description: Resume the actual running print
  213. rename_existing: RESUME_BASE
  214. gcode:
  215. ##### read E from pause macro #####
  216. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  217. #### get VELOCITY parameter if specified ####
  218. {% if 'VELOCITY' in params|upper %}
  219. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  220. {%else %}
  221. {% set get_params = "" %}
  222. {% endif %}
  223. ##### end of definitions #####
  224. {% if printer.extruder.can_extrude|lower == 'true' %}
  225. G91
  226. G1 E{E} F2100
  227. {% else %}
  228. {action_respond_info("Extruder not hot enough")}
  229. {% endif %}
  230. RESUME_BASE {get_params}
  231.  
  232. [gcode_macro CANCEL_PRINT]
  233. description: Cancel the actual running print
  234. rename_existing: CANCEL_PRINT_BASE
  235. gcode:
  236. TURN_OFF_HEATERS
  237. CANCEL_PRINT_BASE
  238.  
  239. #*# <---------------------- SAVE_CONFIG ---------------------->
  240. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  241. #*#
  242. #*# [bltouch]
  243. #*# z_offset = 3.000
  244. #*#
  245. #*# [extruder]
  246. #*# control = pid
  247. #*# pid_kp = 19.788
  248. #*# pid_ki = 0.956
  249. #*# pid_kd = 102.405
  250. #*#
  251. #*# [heater_bed]
  252. #*# control = pid
  253. #*# pid_kp = 73.454
  254. #*# pid_ki = 1.683
  255. #*# pid_kd = 801.571
  256. #*#
  257. #*# [bed_mesh default]
  258. #*# version = 1
  259. #*# points =
  260. #*# -0.032500, -0.005000, -0.042500, -0.020000, -0.047500, -0.065000, -0.092500, -0.030000, -0.012500, -0.050000
  261. #*# -0.095000, -0.067500, -0.095000, -0.118750, -0.115000, -0.137500, -0.152500, -0.093750, -0.125000, -0.111250
  262. #*# -0.062500, -0.042500, -0.095000, -0.073750, -0.065000, -0.095000, -0.107500, -0.053750, -0.067500, -0.077500
  263. #*# -0.005000, 0.007500, -0.027500, -0.005000, -0.012500, -0.033750, -0.065000, 0.002500, -0.002500, -0.007500
  264. #*# -0.002500, 0.030000, -0.020000, -0.000000, -0.000000, -0.015000, -0.042500, 0.007500, 0.031250, 0.017500
  265. #*# 0.026250, 0.022500, -0.012500, -0.015000, 0.003750, -0.022500, -0.048750, 0.022500, 0.015000, 0.001250
  266. #*# -0.005000, -0.000000, -0.012500, -0.008750, -0.003750, -0.008750, -0.020000, 0.020000, -0.000000, 0.005000
  267. #*# -0.031250, -0.010000, -0.027500, -0.053750, -0.012500, -0.037500, -0.025000, 0.015000, 0.016250, 0.025000
  268. #*# 0.005000, -0.000000, -0.025000, -0.027500, 0.002500, -0.010000, -0.015000, 0.010000, 0.021250, 0.032500
  269. #*# -0.003750, -0.005000, -0.037500, -0.053750, -0.005000, -0.057500, -0.073750, -0.033750, -0.062500, -0.075000
  270. #*# tension = 0.2
  271. #*# min_x = 25.0
  272. #*# algo = bicubic
  273. #*# y_count = 10
  274. #*# mesh_y_pps = 2
  275. #*# min_y = 20.0
  276. #*# x_count = 10
  277. #*# max_y = 180.92
  278. #*# mesh_x_pps = 2
  279. #*# max_x = 209.95
  280.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement