Guest User

Untitled

a guest
Jan 14th, 2025
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.72 KB | None | 0 0
  1. # This file contains common pin mappings for the BIGTREETECH SKR mini
  2. # E3 v2.0. To use this config, the firmware should be compiled for the
  3. # STM32F103 with a "28KiB bootloader" and USB communication. Also,
  4. # select "Enable extra low-level configuration options" and configure
  5. # "GPIO pins to set at micro-controller startup" to "!PA14".
  6.  
  7. # The "make flash" command does not work on the SKR mini E3. Instead,
  8. # after running "make", copy the generated "out/klipper.bin" file to a
  9. # file named "firmware.bin" on an SD card and then restart the SKR
  10. # mini E3 with that SD card.
  11.  
  12. # See docs/Config_Reference.md for a description of parameters.
  13.  
  14. [stepper_x]
  15. step_pin: PB13
  16. dir_pin: !PB12
  17. enable_pin: !PB14
  18. microsteps: 16
  19. rotation_distance: 40
  20. endstop_pin: ^PC0
  21. position_endstop: 350
  22. position_max: 350
  23. homing_speed: 100
  24.  
  25. [tmc2209 stepper_x]
  26. uart_pin: PC11
  27. tx_pin: PC10
  28. uart_address: 0
  29. run_current: 0.580
  30. hold_current: 0.500
  31. stealthchop_threshold: 250
  32.  
  33. [stepper_y]
  34. step_pin: PB10
  35. dir_pin: !PB2
  36. enable_pin: !PB11
  37. microsteps: 16
  38. rotation_distance: 40
  39. endstop_pin: ^PC1
  40. position_endstop: 350
  41. position_max: 350
  42. homing_speed: 100
  43.  
  44. [tmc2209 stepper_y]
  45. uart_pin: PC11
  46. tx_pin: PC10
  47. uart_address: 2
  48. run_current: 0.580
  49. hold_current: 0.500
  50. stealthchop_threshold: 250
  51.  
  52. [stepper_z]
  53. step_pin: PB0
  54. dir_pin: !PC5
  55. enable_pin: !PB1
  56. microsteps: 16
  57. rotation_distance: 4
  58. endstop_pin: probe:z_virtual_endstop
  59. position_max: 410
  60. position_min: -4
  61. homing_speed: 10.0
  62.  
  63.  
  64. [tmc2209 stepper_z]
  65. uart_pin: PC11
  66. tx_pin: PC10
  67. uart_address: 1
  68. run_current: 0.580
  69. hold_current: 0.500
  70. stealthchop_threshold: 5
  71.  
  72. [bltouch]
  73. sensor_pin: ^PC2
  74. control_pin: PA1
  75. x_offset: -47.5
  76. y_offset: -10
  77. #z_offset: 2.70
  78. speed: 2.0
  79. samples: 2
  80. sample_retract_dist: 4.0
  81. probe_with_touch_mode: True
  82.  
  83.  
  84. [safe_z_home]
  85. home_xy_position: 180, 180
  86. speed: 100
  87. z_hop: 10
  88. z_hop_speed: 5
  89.  
  90. [bed_mesh]
  91. speed: 100
  92. horizontal_move_z: 8
  93. mesh_min: 50, 50
  94. mesh_max: 300,300
  95. probe_count: 3,3
  96.  
  97. [extruder]
  98. step_pin: PB3
  99. dir_pin: !PB4
  100. enable_pin: !PD2
  101. microsteps: 16
  102. rotation_distance: 21.775
  103. nozzle_diameter: 0.400
  104. filament_diameter: 1.750
  105. heater_pin: PC8
  106. sensor_type: EPCOS 100K B57560G104F
  107. sensor_pin: PA0
  108. control: pid
  109. pid_Kp: 22.2
  110. pid_Ki: 1.08
  111. pid_Kd: 114
  112. min_temp: 0
  113. max_temp: 260
  114.  
  115. [tmc2209 extruder]
  116. uart_pin: PC11
  117. tx_pin: PC10
  118. uart_address: 3
  119. run_current: 0.650
  120. hold_current: 0.500
  121. stealthchop_threshold: 5
  122.  
  123. [heater_bed]
  124. heater_pin: PC9
  125. sensor_type: ATC Semitec 104GT-2
  126. sensor_pin: PC3
  127. control: pid
  128. pid_Kp: 690.34
  129. pid_Ki: 111.47
  130. pid_Kd: 1068.83
  131. min_temp: 0
  132. max_temp: 130
  133.  
  134. [heater_fan nozzle_cooling_fan]
  135. pin: PC7
  136.  
  137. [fan]
  138. pin: PC6
  139.  
  140. [mcu]
  141. serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_39FFD8054246303721681857-if00
  142. ;serial: /dev/ttyACM0
  143. baud: 250000
  144. [filament_switch_sensor filament_sensor]
  145. switch_pin: PC15
  146.  
  147.  
  148. [printer]
  149. kinematics: cartesian
  150. max_velocity: 300
  151. max_accel: 3000
  152. max_z_velocity: 5
  153. max_z_accel: 100
  154.  
  155. [virtual_sdcard]
  156. path: ~/printer_data/gcodes
  157.  
  158. [display_status]
  159.  
  160. [pause_resume]
  161.  
  162. [gcode_macro PAUSE]
  163. rename_existing: BASE_PAUSE
  164. ;default_parameter_e: 1.7
  165. gcode:
  166. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  167. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  168. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  169. {% set act_z = printer.toolhead.position.z|float %}
  170. {% if act_z < (max_z - 2.0) %}
  171. {% set z_safe = 2.0 %}
  172. {% else %}
  173. {% set z_safe = max_z - act_z %}
  174. {% endif %}
  175. SAVE_GCODE_STATE NAME=PAUSE_state
  176. BASE_PAUSE
  177. G91
  178. G1 E-{E} F2100
  179. G1 Z{z_safe} F900
  180. G90
  181. G0 X{x_park} Y{y_park} F6000
  182. G91
  183.  
  184. [gcode_macro RESUME]
  185. rename_existing: BASE_RESUME
  186. ;default_parameter_e: 1 # edit to your preferred retract length
  187. gcode:
  188. G91
  189. G1 E{E} F2100
  190. G90
  191. RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
  192. BASE_RESUME
  193.  
  194. [gcode_macro CANCEL_PRINT]
  195. rename_existing: BASE_CANCEL_PRINT
  196. gcode:
  197. TURN_OFF_HEATERS
  198. CLEAR_PAUSE
  199. SDCARD_RESET_FILE
  200. BASE_CANCEL_PRINT
  201.  
  202. [static_digital_output usb_pullup_enable]
  203. pins: !PA14
  204.  
  205. [board_pins]
  206. aliases:
  207. # EXP1 header
  208. EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
  209. EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PB15, EXP1_10=<5V>
  210.  
  211. # See the sample-lcd.cfg file for definitions of common LCD displays.
  212. #
  213. [display]
  214. lcd_type: st7920
  215. cs_pin: EXP1_7
  216. sclk_pin: EXP1_6
  217. sid_pin: EXP1_8
  218. encoder_pins: ^EXP1_5, ^EXP1_3
  219. click_pin: ^!EXP1_2
  220.  
  221. [output_pin beeper]
  222. pin: EXP1_1
  223.  
  224. [screws_tilt_adjust]
  225. screw1: 10, 50
  226. screw1_name: front left screw
  227. screw2: 315, 50
  228. screw2_name: front right screw
  229. screw3: 315, 310
  230. screw3_name: rear right screw
  231. screw4: 10, 310
  232. screw4_name: rear left screw
  233. horizontal_move_z: 10.
  234. speed: 50.
  235. screw_thread: CW-M3
Advertisement
Add Comment
Please, Sign In to add comment