Segway72

printer.cfg

Feb 5th, 2021
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. # This file contains common pin mappings for the BIGTREETECH SKR mini
  2. # E3 v1.2. To use this config, the firmware should be compiled for the
  3. # STM32F103 with a "28KiB bootloader". Also, select "Enable extra
  4. # low-level configuration options" and configure "GPIO pins to set at
  5. # micro-controller startup" to "!PC13".
  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. # Note: This board has a design flaw in its thermistor circuits that
  15. # cause inaccurate temperatures (most noticeable at low temperatures).
  16.  
  17. [stepper_x]
  18. step_pin: PB13
  19. dir_pin: !PB12
  20. enable_pin: !PB14
  21. microsteps: 16
  22. rotation_distance: 40
  23. endstop_pin: ^PC0
  24. position_endstop: 0
  25. position_max: 235
  26. homing_speed: 50
  27.  
  28. [tmc2209 stepper_x]
  29. uart_pin: PB15
  30. run_current: 0.580
  31. hold_current: 0.500
  32. stealthchop_threshold: 250
  33.  
  34. [stepper_y]
  35. step_pin: PB10
  36. dir_pin: !PB2
  37. enable_pin: !PB11
  38. microsteps: 16
  39. rotation_distance: 40
  40. endstop_pin: ^PC1
  41. position_endstop: 0
  42. position_max: 235
  43. homing_speed: 50
  44.  
  45. [tmc2209 stepper_y]
  46. uart_pin: PC6
  47. run_current: 0.580
  48. hold_current: 0.500
  49. stealthchop_threshold: 250
  50.  
  51. [stepper_z]
  52. step_pin: PB0
  53. dir_pin: PC5
  54. enable_pin: !PB1
  55. microsteps: 16
  56. rotation_distance: 8
  57. endstop_pin: ^PC2
  58. position_endstop: 0.0
  59. position_max: 250
  60.  
  61. [tmc2209 stepper_z]
  62. uart_pin: PC10
  63. run_current: 0.580
  64. hold_current: 0.500
  65. stealthchop_threshold: 5
  66.  
  67. [extruder]
  68. step_pin: PB3
  69. dir_pin: !PB4
  70. enable_pin: !PD2
  71. microsteps: 16
  72. rotation_distance: 22.68
  73. gear_ratio: 50:17
  74. nozzle_diameter: 0.400
  75. filament_diameter: 1.750
  76. heater_pin: PC8
  77. sensor_type: EPCOS 100K B57560G104F
  78. sensor_pin: PA0
  79. control: pid
  80. pid_Kp: 21.527
  81. pid_Ki: 1.063
  82. pid_Kd: 108.982
  83. min_temp: 0
  84. max_temp: 250
  85.  
  86. [tmc2209 extruder]
  87. uart_pin: PC11
  88. run_current: 0.650
  89. hold_current: 0.500
  90. stealthchop_threshold: 5
  91.  
  92. [heater_bed]
  93. heater_pin: PC9
  94. sensor_type: ATC Semitec 104GT-2
  95. sensor_pin: PC3
  96. control: pid
  97. pid_Kp: 54.027
  98. pid_Ki: 0.770
  99. pid_Kd: 948.182
  100. min_temp: 0
  101. max_temp: 130
  102.  
  103. [fan]
  104. pin: PA8
  105.  
  106. [mcu]
  107. serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_35FFD705524E343528860543-if00
  108.  
  109. [printer]
  110. kinematics: cartesian
  111. max_velocity: 300
  112. max_accel: 3000
  113. max_z_velocity: 5
  114. max_z_accel: 100
  115.  
  116. [static_digital_output usb_pullup_enable]
  117. pins: !PC13
  118.  
  119. [board_pins]
  120. aliases:
  121. # EXP1 header
  122. EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
  123. EXP1_2=PB6, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PB7, EXP1_10=<5V>
  124.  
  125. [virtual_sdcard]
  126. path: ~/gcode_files
  127.  
  128. [display_status]
  129. lcd_type: st7920
  130. cs_pin: EXP1_7
  131. sclk_pin: EXP1_6
  132. sid_pin: EXP1_8
  133. encoder_pins: ^EXP1_5, ^EXP1_3
  134. click_pin: ^!EXP1_2
  135.  
  136. [output_pin beeper]
  137. pin: EXP1_1
  138.  
  139. [pause_resume]
  140.  
  141. [gcode_macro PAUSE]
  142. rename_existing: BASE_PAUSE
  143. default_parameter_X: 230 #edit to your park position
  144. default_parameter_Y: 230 #edit to your park position
  145. default_parameter_Z: 10 #edit to your park position
  146. default_parameter_E: 1 #edit to your retract length
  147. gcode:
  148. SAVE_GCODE_STATE NAME=PAUSE_state
  149. BASE_PAUSE
  150. G91
  151. G1 E-{E} F2100
  152. G1 Z{Z}
  153. G90
  154. G1 X{X} Y{Y} F6000
  155.  
  156. [gcode_macro RESUME]
  157. rename_existing: BASE_RESUME
  158. default_parameter_E: 1 #edit to your retract length
  159. gcode:
  160. G91
  161. G1 E{E} F2100
  162. G90
  163. RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
  164. BASE_RESUME
  165.  
  166. [gcode_macro CANCEL_PRINT]
  167. rename_existing: BASE_CANCEL_PRINT
  168. gcode:
  169. TURN_OFF_HEATERS
  170. CLEAR_PAUSE
  171. SDCARD_RESET_FILE
  172. BASE_CANCEL_PRINT
  173.  
  174. # See the sample-lcd.cfg file for definitions of common LCD displays.
  175.  
Advertisement
Add Comment
Please, Sign In to add comment