Facebook
From Me, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 2943
  1. [include shell_command.cfg]
  2. # This file contains common pin mappings for the BIGTREETECH SKR mini
  3. # E3 v2.0. To use this config, the firmware should be compiled for the
  4. # STM32F103 with a "28KiB bootloader" and USB communication. Also,
  5. # select "Enable extra low-level configuration options" and configure
  6. # "GPIO pins to set at micro-controller startup" to "!PA14".
  7.  
  8. # The "make flash" command does not work on the SKR mini E3. Instead,
  9. # after running "make", copy the generated "out/klipper.bin" file to a
  10. # file named "firmware.bin" on an SD card and then restart the SKR
  11. # mini E3 with that SD card.
  12.  
  13. # See docs/Config_Reference.md for a description of parameters.
  14.  
  15.  
  16. [mcu rpi]
  17. serial: /tmp/klipper_host_mcu
  18.  
  19. [adxl345]
  20. cs_pin: rpi:None
  21.  
  22. [resonance_tester]
  23. accel_chip: adxl345
  24. probe_points: 115, 115, 70  # an example
  25.  
  26. [input_shaper]
  27. ##  A frequency (in Hz) of the input shaper for X or Y axis.
  28. shaper_freq_x: 65.8
  29. shaper_freq_y: 31.0
  30. ##  A type of the intput shaper for X or Y axis.
  31. shaper_type_x: mzv
  32. shaper_type_y: mzv
  33.  
  34. [stepper_x]
  35. step_pin: PB13
  36. dir_pin: !PB12
  37. enable_pin: !PB14
  38. microsteps: 16
  39. rotation_distance: 40
  40. endstop_pin: ^PC0
  41. position_endstop: -17
  42. position_max: 231
  43. position_min: -17
  44. homing_speed: 50
  45.  
  46. [tmc2209 stepper_x]
  47. uart_pin: PC11
  48. tx_pin: PC10
  49. uart_address: 0
  50. run_current: 0.580
  51. stealthchop_threshold: 999999
  52.  
  53. [stepper_y]
  54. step_pin: PB10
  55. dir_pin: !PB2
  56. enable_pin: !PB11
  57. microsteps: 16
  58. rotation_distance: 40
  59. endstop_pin: ^PC1
  60. position_endstop: -24
  61. position_max: 202
  62. position_min: -24
  63. homing_speed: 50
  64.  
  65. [tmc2209 stepper_y]
  66. uart_pin: PC11
  67. tx_pin: PC10
  68. uart_address: 2
  69. run_current: 0.580
  70. stealthchop_threshold: 999999
  71.  
  72. [stepper_z]
  73. step_pin: PB0
  74. dir_pin: !PC5
  75. enable_pin: !PB1
  76. microsteps: 16
  77. rotation_distance: 8
  78. endstop_pin: probe:z_virtual_endstop #^PC2
  79. position_min: -5
  80. position_max: 235 # 235 normally without Copperhead Heatsink height
  81.  
  82. [tmc2209 stepper_z]
  83. uart_pin: PC11
  84. tx_pin: PC10
  85. uart_address: 1
  86. run_current: 0.580
  87. stealthchop_threshold: 999999
  88.  
  89. [bltouch]
  90. sensor_pin: ^PC2
  91. control_pin: PA1
  92. set_output_mode: 5V
  93. probe_with_touch_mode: true
  94. x_offset: -40.9
  95. y_offset: -5.6
  96. #pin_up_touch_mode_reports_triggered: False
  97. #z_offset: -0.19
  98. stow_on_each_sample = False
  99. #pin_move_time: 0.4
  100.  
  101. [bed_mesh]
  102. speed: 200
  103. horizontal_move_z: 6
  104. mesh_min: 10, 10
  105. mesh_max: 190, 196
  106. probe_count: 5, 5
  107. fade_end: 10
  108. mesh_pps: 2, 2
  109. algorithm: bicubic
  110. bicubic_tension: 0.2
  111. move_check_distance: 7
  112. split_delta_z: .025
  113.  
  114. [safe_z_home]
  115. home_xy_position: 160,116
  116. speed: 80.0
  117. z_hop: 10.0
  118. z_hop_speed: 10.0
  119.  
  120. [extruder]
  121. step_pin: PB3
  122. dir_pin: PB4
  123. enable_pin: !PD2
  124. full_steps_per_rotation: 200
  125. microsteps: 16
  126. rotation_distance: 4.637 # 7.76 (16 microsteps / 408 steps per mm) * 200 steps per full rotation
  127. nozzle_diameter: 0.400
  128. filament_diameter: 1.750
  129. max_extrude_only_distance: 450
  130. max_extrude_only_velocity: 120
  131. max_extrude_only_accel: 800
  132. pressure_advance_smooth_time: 0.02
  133. heater_pin: PC8
  134. sensor_type: EPCOS 100K B57560G104F
  135. sensor_pin: PA0
  136. max_extrude_cross_section: 50.0
  137. #control: pid
  138. #pid_kp = 21.50
  139. #pid_ki = 1.85
  140. #pid_kd = 62.35
  141. min_temp: 0
  142. max_temp: 285
  143. pressure_advance: 0.03
  144.  
  145. #[verify_heater extruder]
  146. #max_error: 120
  147. #check_gain_time: 40
  148. #hysteresis: 5
  149. #heating_gain: 2
  150.  
  151. #[firmware_retraction]
  152. #retract_speed: 5
  153. #unretract_extra_length: 0
  154. #unretract_speed: 5
  155.  
  156. [tmc2209 extruder]
  157. uart_pin: PC11
  158. tx_pin: PC10
  159. uart_address: 3
  160. run_current: 0.85
  161. hold_current: 0.100
  162. sense_resistor: 0.11
  163. stealthchop_threshold: 0
  164. interpolate: true
  165. driver_TBL: 0
  166. driver_TOFF: 4
  167. driver_HEND: 6
  168. driver_HSTRT: 7
  169.  
  170. [heater_bed]
  171. heater_pin: PC9
  172. sensor_type: ATC Semitec 104GT-2
  173. sensor_pin: PC3
  174. #control: pid
  175. #pid_Kp: 62.86
  176. #pid_Ki: 12.28
  177. #pid_Kd: 214.50
  178. min_temp: 0
  179. max_temp: 130
  180.  
  181. [controller_fan motherboard_fan]
  182. pin: PC7
  183. max_power: 0.5
  184. #shutdown_speed:
  185. #cycle_time:
  186. #hardware_pwm:
  187. #kick_start_time:
  188. #off_below:
  189.  
  190. [fan]
  191. pin: PC6
  192.  
  193. ####################################################################
  194. # Mainsail Settings
  195. ####################################################################
  196.  
  197. [include Adaptive_Mesh.cfg]
  198. [include macros.cfg]
  199. [include mainsail.cfg]
  200.  
  201. [virtual_sdcard]
  202. path: /home/pi/Ender3Pro_data/gcodes
  203.  
  204. [mcu]
  205. serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_35FFD0054246303039811057-if00
  206.  
  207.  
  208. [printer]
  209. kinematics: cartesian
  210. max_velocity: 120
  211. max_accel: 2000 #7000 for ringing test
  212. max_accel_to_decel: 2000 #7000 added for ringing test
  213. max_z_velocity: 5 # Stock is 5
  214. max_z_accel: 100
  215.  
  216. [static_digital_output usb_pullup_enable]
  217. pins: !PA14
  218.  
  219. [board_pins]
  220. aliases:
  221.     # EXP1 header
  222.     EXP1_1=PB5, EXP1_3=PA9,   EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
  223.     EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9,  EXP1_8=PB15, EXP1_10=<5V>
  224.  
  225.  
  226.  
  227. # [filament_motion_sensor btt_smartie]
  228. # detection_length: 12.0
  229. # extruder: extruder
  230. # switch_pin: !PC15
  231. # runout_gcode: FILAMENT_RUNOUT
  232. # pause_delay: 5.0
  233.  
  234. # UNCOMMENT LONG ####### BELOW TO RESTORE FUNCTION
  235. ####### [filament_motion_sensor my_sensor]
  236. # detection_length: 20.0
  237. #   The minimum length of filament pulled through the sensor to trigger
  238. #   a state change on the switch_pin
  239. #   Default is 7 mm.
  240. ###### extruder: extruder
  241. #   The name of the extruder section this sensor is associated with.
  242. #   This parameter must be provided.
  243. ###### switch_pin: !PC15
  244. ###### pause_on_runout: True
  245. #runout_gcode:
  246. #insert_gcode:
  247. #event_delay:
  248. #pause_delay:
  249. #   See the "filament_switch_sensor" section for a description of the
  250. #   above parameters.
  251.  
  252. # [bed_mesh]
  253. # speed: 200
  254. # horizontal_move_z: 5
  255. # mesh_min: 5, 5
  256. # mesh_max: 200, 190
  257. # probe_count: 9,9
  258. # fade_start: 1.0
  259. # mesh_pps: 2,2
  260.  
  261. # Enable object exclusion
  262. [exclude_object]
  263.  
  264. # Enable arcs support
  265. [gcode_arcs]
  266. resolution: 0.1
  267.  
  268.  
  269.  
  270.  
  271.  
  272. [gcode_macro G29]
  273. gcode:
  274.     BED_MESH_CLEAR
  275.     BED_MESH_CALIBRATE
  276.     BED_MESH_OUTPUT
  277.  
  278.  
  279. [display]
  280. lcd_type: emulated_st7920
  281. en_pin: EXP1_7
  282. spi_software_sclk_pin: EXP1_6
  283. spi_software_mosi_pin: EXP1_8
  284. spi_software_miso_pin: PA3
  285. encoder_pins: ^EXP1_5, ^EXP1_3
  286. click_pin: ^!EXP1_2
  287.  
  288. [display_status]
  289.  
  290. [screws_tilt_adjust]
  291. screw1: 64,30
  292. screw1_name: front left screw
  293. screw2: 235,30
  294. screw2_name: front right screw
  295. screw3: 235,200
  296. screw3_name: rear right screw
  297. screw4: 64,200
  298. screw4_name: rear left screw
  299. screw_thread: CW-M4
  300.  
  301. [pause_resume]
  302.  
  303.  
  304. [gcode_macro M600]
  305. gcode:
  306.   {% set X = params.X|default(25)|float %}
  307.   {% set Y = params.Y|default(25)|float %}
  308.   {% set Z = params.Z|default(10)|float %}
  309.     SAVE_GCODE_STATE NAME=M600_state
  310.     PAUSE X=0 Y=0 Z_MIN=0
  311.   G91
  312.   G1 E-.8 F2700
  313.   G1 Z{Z}
  314.   G90
  315.   G1 X{X} Y{Y} F3000
  316.   G91
  317.   G1 E-15 F1000
  318.    SET_IDLE_TIMEOUT TIMEOUT=345600
  319.    RESTORE_GCODE_STATE NAME=M600_state
  320.  
  321.  
  322. [gcode_macro PAUSE]
  323. rename_existing: BASE_PAUSE
  324. # change this if you need more or less extrusion
  325. variable_extrude: 1.0
  326. gcode:
  327.   ##### read E from pause macro #####
  328.   {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  329.   ##### set park positon for x and y #####
  330.   # default is your max posion from your printer.cfg
  331.   {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  332.   {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  333.   ##### calculate save lift position #####
  334.   {% set max_z = printer.toolhead.axis_maximum.z|float %}
  335.   {% set act_z = printer.toolhead.position.z|float %}
  336.   {% if act_z < (max_z - 2.0) %}
  337.       {% set z_safe = 2.0 %}
  338.   {% else %}
  339.       {% set z_safe = max_z - act_z %}
  340.   {% endif %}
  341.   ##### end of definitions #####
  342.   SAVE_GCODE_STATE NAME=PAUSE_state
  343.   BASE_PAUSE
  344.   G91
  345.   G1 E-{E} F2100
  346.   G1 Z{z_safe} F900
  347.   G90
  348.   G1 X{x_park} Y{y_park} F6000
  349.  
  350. [IDLE_TIMEOUT]
  351.  
  352. timeout: 3600
  353. gcode:
  354.     {% if printer.pause_resume.is_paused %}
  355.         M118 Bypassed Timeout
  356.         M117 Bypassed Timeout
  357.     {% else %}
  358.         M118 Timeout Reached
  359.         M117 Timeout Reached
  360.         TURN_OFF_HEATERS
  361.         M84
  362.     {% endif %}
  363.  
  364.  
  365. [gcode_macro m25]
  366. rename_existing: M25.6245197
  367. gcode:
  368.   PAUSE
  369.  
  370. [gcode_macro RESUME]
  371. rename_existing: BASE_RESUME
  372. gcode:
  373.   ##### read E from pause macro #####
  374.   {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  375.   ##### end of definitions #####
  376.   G91
  377.   G1 E{E} F2100
  378.   RESTORE_GCODE_STATE NAME=PAUSE_state
  379.   BASE_RESUME
  380.  
  381. [gcode_macro M486]
  382. gcode:
  383.   # Parameters known to M486 are as follows:
  384.   #   [C<flag>] Cancel the current object
  385.   #   [P<index>] Cancel the object with the given index
  386.   #   [S<index>] Set the index of the current object.
  387.   #       If the object with the given index has been canceled, this will cause
  388.   #       the firmware to skip to the next object. The value -1 is used to
  389.   #       indicate something that isn’t an object and shouldn’t be skipped.
  390.   #   [T<count>] Reset the state and set the number of objects
  391.   #   [U<index>] Un-cancel the object with the given index. This command will be
  392.   #       ignored if the object has already been skipped
  393.  
  394.   {% if 'exclude_object' not in printer %}
  395.     {action_raise_error("[exclude_object] is not enabled")}
  396.   {% endif %}
  397.  
  398.   {% if 'T' in params %}
  399.     EXCLUDE_OBJECT RESET=1
  400.  
  401.     {% for i in range(params.T | int) %}
  402.       EXCLUDE_OBJECT_DEFINE NAME={i}
  403.     {% endfor %}
  404.   {% endif %}
  405.  
  406.   {% if 'C' in params %}
  407.     EXCLUDE_OBJECT CURRENT=1
  408.   {% endif %}
  409.  
  410.   {% if 'P' in params %}
  411.     EXCLUDE_OBJECT NAME={params.P}
  412.   {% endif %}
  413.  
  414.   {% if 'S' in params %}
  415.     {% if params.S == '-1' %}
  416.       {% if printer.exclude_object.current_object %}
  417.         EXCLUDE_OBJECT_END NAME={printer.exclude_object.current_object}
  418.       {% endif %}
  419.     {% else %}
  420.       EXCLUDE_OBJECT_START NAME={params.S}
  421.     {% endif %}
  422.   {% endif %}
  423.  
  424.   {% if 'U' in params %}
  425.     EXCLUDE_OBJECT RESET=1 NAME={params.U}
  426.   {% endif %}
  427.  
  428. [gcode_macro CANCEL_PRINT]
  429. rename_existing: BASE_CANCEL_PRINT
  430. gcode:
  431.   TURN_OFF_HEATERS
  432.   CLEAR_PAUSE
  433.   SDCARD_RESET_FILE
  434.   BASE_CANCEL_PRINT
  435.  
  436.  
  437. [pause_resume]
  438. recover_velocity: 50
  439. #   When capture/restore is enabled, the speed at which to return to
  440. #   the captured position (in mm/s). Default is 50.0 mm/s.
  441.  
  442. [respond]
  443. #default_type: echo
  444. #   Sets the default prefix of the "M118" and "RESPOND" output to one
  445. #   of the following:
  446. #       echo: "echo: " (This is the default)
  447. #       command: "// "
  448. #       error: "!! "
  449. #default_prefix: echo:
  450. #   Directly sets the default prefix. If present, this value will
  451. #   override the "default_type".
  452.  
  453. #-------------------------------------------------------------------------
  454.  
  455.  
  456.  
  457.  
  458. # See the sample-lcd.cfg file for definitions of common LCD displays.
  459.  
  460. #*# <---------------------- SAVE_CONFIG ----------------------&gt;
  461. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  462. #*#
  463. #*# [bltouch]
  464. #*# z_offset = 2.705
  465. #*#
  466. #*# [extruder]
  467.  #*# c
  468. #*# pid_kp = 30.704
  469. #*# pid_ki = 2.843
  470. #*# pid_kd = 82.902
  471. #*#
  472. #*# [heater_bed]
  473.  #*# c
  474. #*# pid_kp = 74.312
  475. #*# pid_ki = 2.082
  476. #*# pid_kd = 663.235
  477. #*#
  478. #*# [bed_mesh default]
  479.  #*# versi
  480. #*# points =
  481. #*#    -0.015000, 0.010000, 0.007500
  482. #*#    -0.017500, -0.010000, 0.005000
  483. #*#    -0.017500, -0.002500, -0.002500
  484. #*# x_count = 3
  485. #*# y_count = 3
  486. #*# mesh_x_pps = 2
  487. #*# mesh_y_pps = 2
  488. #*# algo = lagrange
  489.  #*# tensi
  490. #*# min_x = 101.19999999999999
  491. #*# max_x = 128.79999999999998
  492. #*# min_y = 71.2
  493. #*# max_y = 130.8