Advertisement
rootiest

printer.cfg

Jan 28th, 2023
973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.42 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. [include macros/*.cfg]
  22. [respond]
  23.  
  24. [virtual_sdcard]
  25. path: /home/seanc712/printer_data/gcodes
  26. [display_status]
  27. [pause_resume]
  28.  
  29. [stepper_x]
  30. step_pin: PC2
  31. dir_pin: PB9
  32. enable_pin: !PC3
  33. microsteps: 16
  34. rotation_distance: 40
  35. endstop_pin: !PA5
  36. position_endstop: -4.9
  37. position_max: 248
  38. position_min: -4.9
  39. homing_speed: 50
  40.  
  41. [stepper_y]
  42. step_pin: PB8
  43. dir_pin: PB7
  44. enable_pin: !PC3
  45. microsteps: 16
  46. rotation_distance: 40
  47. endstop_pin: !PA6
  48. position_endstop: -3.9
  49. position_max: 229
  50. position_min: -3.9
  51. homing_speed: 50
  52.  
  53. [stepper_z]
  54. step_pin: PB6
  55. dir_pin: !PB5
  56. enable_pin: !PC3
  57. microsteps: 16
  58. rotation_distance: 8
  59. endstop_pin: probe:z_virtual_endstop
  60. position_max: 267
  61. position_min: -4
  62.  
  63. [extruder]
  64. step_pin: PB4
  65. dir_pin: PB3
  66. enable_pin: !PC3
  67. microsteps: 16
  68. gear_ratio: 42:12
  69. rotation_distance: 27.676950
  70. nozzle_diameter: 0.600
  71. filament_diameter: 1.750
  72. heater_pin: PA1
  73. sensor_type: EPCOS 100K B57560G104F
  74. sensor_pin: PC5
  75. control: pid
  76. pid_Kp: 23.561
  77. pid_Ki: 1.208
  78. pid_Kd: 114.859
  79. min_temp: 0
  80. max_temp: 260 # Set to 300 for S1 Pro
  81. max_extrude_only_distance: 110
  82.  
  83. [heater_bed]
  84. heater_pin: PA7
  85. sensor_type: EPCOS 100K B57560G104F
  86. sensor_pin: PC4
  87. control: pid
  88. pid_Kp: 71.867
  89. pid_Ki: 1.536
  90. pid_Kd: 840.843
  91. min_temp: 0
  92. max_temp: 110 # Set to 110 for S1 Pro (100 for regular) - set to 110 after adding insulation
  93.  
  94. [heater_fan hotend_fan]
  95. pin: PC0
  96.  
  97. [fan]
  98. pin: PA0
  99.  
  100. [mcu]
  101. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  102. restart_method: command
  103.  
  104. [printer]
  105. kinematics: cartesian
  106. max_velocity: 300
  107. max_accel: 2000
  108. max_z_velocity: 5
  109. max_z_accel: 100
  110.  
  111. [bltouch]
  112. sensor_pin: ^PC14
  113. control_pin: PC13
  114. x_offset: -46 #-31.8 default. Remeasured after new mount
  115. y_offset: 1.1 #-40.5 default. Remeasured after installing 0 offset Y nount
  116. #z_offset: 2.13
  117. z_offset: 0
  118. probe_with_touch_mode: true
  119. stow_on_each_sample: false
  120. #tbis didn't help, but save for later use:
  121. #samples: 3
  122. #samples_result: median
  123. #sample_retract_dist: 5.0
  124. #samples_tolerance: 0.01
  125. #samples_tolerance_retries: 3
  126.  
  127. [bed_mesh]
  128. speed: 120
  129. mesh_min: 30, 30  #set this just to not be on absolute corner
  130. mesh_max: 200, 200
  131. probe_count: 10, 10
  132. algorithm: bicubic
  133.  
  134. #[gcode_macro BED_MESH_CALIBRATE]
  135. #description: custom overwrite of the base BED_MESH_CALIBRATE function
  136. #rename_existing: BED_MESH_CALIBRATE_BASE
  137. #gcode:
  138. #        BED_MESH_CLEAR
  139. #        G28
  140. #        BED_MESH_CALIBRATE_BASE {rawparams}
  141.  
  142. [safe_z_home]
  143. home_xy_position: 147, 154
  144. speed: 75
  145. z_hop: 10
  146. z_hop_speed: 5
  147. move_to_previous: true
  148.  
  149. [filament_switch_sensor e0_sensor]
  150. switch_pin: !PC15
  151. pause_on_runout: true
  152. runout_gcode: PAUSE
  153.  
  154. [bed_screws]
  155. screw1: 20, 29
  156. screw2: 195, 29
  157. screw3: 195, 198
  158. screw4: 20, 198
  159.  
  160. [screws_tilt_adjust]  ##I HAD TO ADD THIS MYSELF. TOOK bed_screws and subracted probe offset
  161. screw1: 65, 29
  162. screw1_name: front left screw
  163. screw2: 240, 29
  164. screw2_name: front right screw
  165. screw3: 240, 198
  166. screw3_name: rear right screw
  167. screw4: 65, 198
  168. screw4_name: rear left screw
  169. horizontal_move_z: 5.
  170. speed: 50.
  171. screw_thread: CW-M4
  172.  
  173. #*# <---------------------- SAVE_CONFIG ---------------------->
  174. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  175. #*#
  176. #*# [bed_mesh default]
  177. #*# version = 1
  178. #*# points =
  179. #*#     -0.002500, -0.007500, 0.000000, -0.007500, -0.032500, -0.042500, -0.010000, -0.015000, 0.015000, 0.010000
  180. #*#     -0.020000, -0.022500, -0.020000, -0.030000, -0.042500, -0.077500, -0.035000, -0.020000, -0.010000, -0.012500
  181. #*#     -0.025000, -0.030000, -0.025000, -0.032500, -0.052500, -0.087500, -0.047500, -0.032500, -0.027500, -0.025000
  182. #*#     -0.065000, -0.052500, -0.047500, -0.050000, -0.067500, -0.092500, -0.047500, -0.032500, -0.025000, -0.012500
  183. #*#     -0.012500, -0.007500, -0.002500, -0.015000, -0.040000, -0.067500, -0.035000, -0.025000, -0.022500, -0.022500
  184. #*#     -0.007500, -0.005000, 0.000000, -0.015000, -0.035000, -0.065000, -0.037500, -0.027500, -0.025000, -0.022500
  185. #*#     0.020000, 0.010000, 0.020000, 0.002500, -0.020000, -0.047500, -0.020000, -0.012500, 0.000000, -0.005000
  186. #*#     -0.002500, -0.002500, 0.010000, 0.005000, -0.017500, -0.035000, -0.012500, 0.000000, 0.005000, 0.015000
  187. #*#     0.030000, 0.035000, 0.032500, 0.020000, -0.007500, -0.035000, -0.007500, 0.010000, 0.002500, 0.007500
  188. #*#     0.032500, 0.027500, 0.035000, 0.027500, -0.002500, -0.030000, 0.012500, 0.015000, 0.020000, 0.030000
  189. #*# x_count = 10
  190. #*# y_count = 10
  191. #*# mesh_x_pps = 2
  192. #*# mesh_y_pps = 2
  193. #*# algo = bicubic
  194. #*# tension = 0.2
  195. #*# min_x = 30.0
  196. #*# max_x = 199.92
  197. #*# min_y = 30.0
  198. #*# max_y = 199.92
  199.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement