Guest User

Untitled

a guest
May 18th, 2024
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.21 KB | None | 0 0
  1. # This file contains pin mappings for the stock 2021 Creality Ender 3
  2. # S1 & S1 Pro. To use this config, check the STM32 Chip on the
  3. # Mainboard, during "make menuconfig" select accordingly either the
  4. # STM32F103 with "28KiB bootloader" or the STM32F401 with
  5. # "64KiB bootloader" and serial (on USART1 PA10/PA9) for both.
  6.  
  7. # For a direct serial connection, in "make menuconfig" select
  8. # "Enable extra low-level configuration options" and Serial
  9. # (on USART2 PA3/PA2), which is on the 10 pin IDC cable used
  10. # for the LCD module as follows: 3: Tx, 4: Rx, 9: GND, 10: VCC
  11.  
  12. # Flash this firmware by copying "out/klipper.bin" to a SD card and
  13. # turning on the printer with the card inserted. The filename
  14. # must be changed to "firmware.bin"
  15.  
  16. # With STM32F401, you might need to put "firmware.bin" in a
  17. # folder on the SD card called "STM32F4_UPDATE" in order to flash.
  18.  
  19. # See docs/Config_Reference.md for a description of parameters.
  20.  
  21. [stepper_x]
  22. step_pin: PC2
  23. dir_pin: PB9
  24. enable_pin: !PC3
  25. microsteps: 16
  26. rotation_distance: 40
  27. endstop_pin: !PA5
  28. position_endstop: -10
  29. position_max: 235
  30. position_min: -10
  31. homing_speed: 50
  32.  
  33. [stepper_y]
  34. step_pin: PB8
  35. dir_pin: PB7
  36. enable_pin: !PC3
  37. microsteps: 16
  38. rotation_distance: 40
  39. endstop_pin: !PA6
  40. position_endstop: -8
  41. position_max: 225
  42. position_min: -13
  43. homing_speed: 50
  44.  
  45. [stepper_z]
  46. step_pin: PB6
  47. dir_pin: !PB5
  48. enable_pin: !PC3
  49. microsteps: 16
  50. rotation_distance: 8
  51. endstop_pin: probe:z_virtual_endstop
  52. position_max: 270
  53. position_min: -4
  54.  
  55. [extruder]
  56. step_pin: PB4
  57. dir_pin: PB3
  58. enable_pin: !PC3
  59. microsteps: 16
  60. gear_ratio: 42:12
  61. rotation_distance: 26.4908
  62. nozzle_diameter: 0.400
  63. filament_diameter: 1.750
  64. heater_pin: PA1
  65. sensor_type: EPCOS 100K B57560G104F
  66. sensor_pin: PC5
  67. #control: pid
  68. #pid_Kp: 23.561
  69. #pid_Ki: 1.208
  70. #pid_Kd: 114.859
  71. min_temp: 0
  72. max_temp: 260 # Set to 300 for S1 Pro
  73. max_extrude_only_distance: 101
  74. max_extrude_cross_section: 5
  75.  
  76. [heater_bed]
  77. heater_pin: PA7
  78. sensor_type: EPCOS 100K B57560G104F
  79. sensor_pin: PC4
  80. control: pid
  81. pid_Kp: 71.867
  82. pid_Ki: 1.536
  83. pid_Kd: 840.843
  84. min_temp: 0
  85. max_temp: 100 # Set to 110 for S1 Pro
  86.  
  87. [heater_fan hotend_fan]
  88. pin: PC0
  89.  
  90. [fan]
  91. pin: PA0
  92.  
  93. [mcu]
  94. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  95. restart_method: command
  96.  
  97. [printer]
  98. kinematics: cartesian
  99. max_velocity: 300
  100. max_accel: 2000
  101. max_z_velocity: 5
  102. max_z_accel: 100
  103.  
  104. [bltouch]
  105. sensor_pin: ^PC14
  106. control_pin: PC13
  107. x_offset: -31.8
  108. y_offset: -40.5
  109. #z_offset: 0
  110. probe_with_touch_mode: true
  111. stow_on_each_sample: false
  112.  
  113. [bed_mesh]
  114. speed: 120
  115. mesh_min: 10, 10
  116. mesh_max: 200, 170
  117. probe_count: 8,8
  118. algorithm: bicubic
  119.  
  120. [safe_z_home]
  121. home_xy_position: 147, 154
  122. speed: 75
  123. z_hop: 10
  124. z_hop_speed: 5
  125.  
  126. [filament_switch_sensor e0_sensor]
  127. switch_pin: !PC15
  128. pause_on_runout: true
  129. runout_gcode: PAUSE
  130.  
  131. [pause_resume]
  132. recover_velocity: 25
  133.  
  134. [bed_screws]
  135. screw1: 20, 29
  136. screw2: 195, 29
  137. screw3: 195, 198
  138. screw4: 20, 198
  139.  
  140. [exclude_object]
  141.  
  142. [gcode_macro M486]
  143. gcode:
  144. # Parameters known to M486 are as follows:
  145. # [C<flag>] Cancel the current object
  146. # [P<index>] Cancel the object with the given index
  147. # [S<index>] Set the index of the current object.
  148. # If the object with the given index has been canceled, this will cause
  149. # the firmware to skip to the next object. The value -1 is used to
  150. # indicate something that isn’t an object and shouldn’t be skipped.
  151. # [T<count>] Reset the state and set the number of objects
  152. # [U<index>] Un-cancel the object with the given index. This command will be
  153. # ignored if the object has already been skipped
  154.  
  155. {% if 'exclude_object' not in printer %}
  156. {action_raise_error("[exclude_object] is not enabled")}
  157. {% endif %}
  158.  
  159. {% if 'T' in params %}
  160. EXCLUDE_OBJECT RESET=1
  161.  
  162. {% for i in range(params.T | int) %}
  163. EXCLUDE_OBJECT_DEFINE NAME={i}
  164. {% endfor %}
  165. {% endif %}
  166.  
  167. {% if 'C' in params %}
  168. EXCLUDE_OBJECT CURRENT=1
  169. {% endif %}
  170.  
  171. {% if 'P' in params %}
  172. EXCLUDE_OBJECT NAME={params.P}
  173. {% endif %}
  174.  
  175. {% if 'S' in params %}
  176. {% if params.S == '-1' %}
  177. {% if printer.exclude_object.current_object %}
  178. EXCLUDE_OBJECT_END NAME={printer.exclude_object.current_object}
  179. {% endif %}
  180. {% else %}
  181. EXCLUDE_OBJECT_START NAME={params.S}
  182. {% endif %}
  183. {% endif %}
  184.  
  185. {% if 'U' in params %}
  186. EXCLUDE_OBJECT RESET=1 NAME={params.U}
  187. {% endif %}
  188.  
  189.  
  190. [gcode_macro M600]
  191. gcode:
  192. {% set X = params.X|default(50)|float %}
  193. {% set Y = params.Y|default(0)|float %}
  194. {% set Z = params.Z|default(25)|float %}
  195. SAVE_GCODE_STATE NAME=M600_state
  196. PAUSE
  197. G91
  198. G1 E-.8 F2700
  199. G1 Z{Z}
  200. G90
  201. G1 X{X} Y{Y} F3000
  202. G91
  203. G1 E-50 F1000
  204. RESTORE_GCODE_STATE NAME=M600_state
  205.  
  206. [skew_correction]
  207.  
  208.  
  209. [include mainsail.cfg]
  210.  
  211. [include moonraker_obico_macros.cfg]
  212.  
  213. #*# <---------------------- SAVE_CONFIG ---------------------->
  214. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  215. #*#
  216. #*# [bed_mesh default]
  217. #*# version = 1
  218. #*# points =
  219. #*# -0.055000, -0.047500, -0.017500, -0.005000, -0.005000, 0.055000, 0.035000, 0.017500
  220. #*# -0.097500, -0.090000, -0.070000, -0.055000, -0.055000, -0.012500, -0.062500, -0.067500
  221. #*# -0.055000, -0.047500, -0.020000, -0.005000, -0.015000, 0.040000, -0.017500, -0.035000
  222. #*# -0.087500, -0.075000, -0.042500, -0.045000, -0.055000, 0.005000, -0.010000, -0.050000
  223. #*# -0.072500, -0.065000, -0.030000, -0.035000, -0.045000, 0.027500, -0.007500, -0.027500
  224. #*# -0.090000, -0.085000, -0.060000, -0.075000, -0.075000, -0.015000, -0.032500, -0.045000
  225. #*# -0.085000, -0.072500, -0.065000, -0.082500, -0.105000, -0.025000, -0.060000, -0.065000
  226. #*# -0.065000, -0.080000, -0.060000, -0.062500, -0.070000, -0.022500, -0.062500, -0.055000
  227. #*# x_count = 8
  228. #*# y_count = 8
  229. #*# mesh_x_pps = 2
  230. #*# mesh_y_pps = 2
  231. #*# algo = bicubic
  232. #*# tension = 0.2
  233. #*# min_x = 9.999999999999996
  234. #*# max_x = 199.97
  235. #*# min_y = 10.0
  236. #*# max_y = 169.95
  237. #*#
  238. #*# [bltouch]
  239. #*# z_offset = 3.400
  240. #*#
  241. #*# [extruder]
  242. #*# control = pid
  243. #*# pid_kp = 21.600
  244. #*# pid_ki = 0.923
  245. #*# pid_kd = 126.361
  246. #*#
  247. #*# [skew_correction CaliFlower]
  248. #*# xy_skew = -0.0019008621144161368
  249. #*# xz_skew = 0.0
  250. #*# yz_skew = 0.0
  251.  
Advertisement
Add Comment
Please, Sign In to add comment