Advertisement
rootiest

printer.cfg

Apr 24th, 2023
895
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.71 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. # This file contains common pin mappings for the BIGTREETECH SKR mini
  15. # E3 v2.0. To use this config, the firmware should be compiled for the
  16. # STM32F103 with a "28KiB bootloader" and USB communication. Also,
  17. # select "Enable extra low-level configuration options" and configure
  18. # "GPIO pins to set at micro-controller startup" to "!PA14".
  19.  
  20. # The "make flash" command does not work on the SKR mini E3. Instead,
  21. # after running "make", copy the generated "out/klipper.bin" file to a
  22. # file named "firmware.bin" on an SD card and then restart the SKR
  23. # mini E3 with that SD card.
  24.  
  25. # See docs/Config_Reference.md for a description of parameters.
  26.  
  27. [stepper_x]
  28. step_pin: PB13
  29. dir_pin: !PB12
  30. enable_pin: !PB14
  31. microsteps: 16
  32. rotation_distance: 40
  33. endstop_pin: ^PC0
  34. position_endstop: 0
  35. position_max: 235
  36. homing_speed: 50
  37.  
  38. [tmc2209 stepper_x]
  39. uart_pin: PC11
  40. tx_pin: PC10
  41. uart_address: 0
  42. run_current: 0.580
  43. stealthchop_threshold: 999999
  44.  
  45. [stepper_y]
  46. step_pin: PB10
  47. dir_pin: !PB2
  48. enable_pin: !PB11
  49. microsteps: 16
  50. rotation_distance: 40
  51. endstop_pin: ^PC1
  52. position_endstop: 0
  53. position_max: 235
  54. homing_speed: 50
  55.  
  56. [tmc2209 stepper_y]
  57. uart_pin: PC11
  58. tx_pin: PC10
  59. uart_address: 2
  60. run_current: 0.580
  61. stealthchop_threshold: 999999
  62.  
  63. [stepper_z]
  64. step_pin: PB0
  65. dir_pin: PC5
  66. enable_pin: !PB1
  67. microsteps: 16
  68. rotation_distance: 8
  69. ## When using a z-endstop:
  70. #endstop_pin: ^PC2
  71. ## When using a probe/bltouch:
  72. endstop_pin: probe:z_virtual_endstop
  73. position_endstop: 0.0
  74. position_max: 250
  75.  
  76. [tmc2209 stepper_z]
  77. uart_pin: PC11
  78. tx_pin: PC10
  79. uart_address: 1
  80. run_current: 0.580
  81. stealthchop_threshold: 999999
  82.  
  83. [extruder]
  84. step_pin: PB3
  85. dir_pin: !PB4
  86. enable_pin: !PD2
  87. microsteps: 16
  88. rotation_distance: 33.500
  89. nozzle_diameter: 0.400
  90. filament_diameter: 1.750
  91. heater_pin: PC8
  92. sensor_type: EPCOS 100K B57560G104F
  93. sensor_pin: PA0
  94. control: pid
  95. pid_Kp: 21.527
  96. pid_Ki: 1.063
  97. pid_Kd: 108.982
  98. min_temp: 0
  99. max_temp: 250
  100.  
  101. [tmc2209 extruder]
  102. uart_pin: PC11
  103. tx_pin: PC10
  104. uart_address: 3
  105. run_current: 0.650
  106. stealthchop_threshold: 999999
  107.  
  108. [heater_bed]
  109. heater_pin: PC9
  110. sensor_type: ATC Semitec 104GT-2
  111. sensor_pin: PC3
  112. control: pid
  113. pid_Kp: 54.027
  114. pid_Ki: 0.770
  115. pid_Kd: 948.182
  116. min_temp: 0
  117. max_temp: 130
  118.  
  119. [heater_fan heatbreak_cooling_fan]
  120. pin: PC7
  121.  
  122. [fan]
  123. pin: PC6
  124.  
  125. [mcu]
  126. serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_31FFD5054254383318821957-if00
  127.  
  128. [printer]
  129. kinematics: cartesian
  130. max_velocity: 300
  131. max_accel: 3000
  132. max_z_velocity: 5
  133. max_z_accel: 100
  134.  
  135. [static_digital_output usb_pullup_enable]
  136. pins: !PA14
  137.  
  138. [board_pins]
  139. aliases:
  140.    # EXP1 header
  141.     EXP1_1=PB5,  EXP1_3=PA9,   EXP1_5=PA10, EXP1_7=PB8,  EXP1_9=<GND>,
  142.     EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9,  EXP1_8=PB15, EXP1_10=<5V>
  143. # See the sample-lcd.cfg file for definitions of common LCD displays.
  144.  
  145.  
  146. [bltouch]
  147. control_pin: PA1
  148.  
  149. ## When using z-endstop connector:
  150. #sensor_pin: ^PC2
  151. ## When using probe connector:
  152. sensor_pin: ^PC14
  153.  
  154.  
  155. ## Adjust these to fit your bltouch mount:
  156. x_offset: -45.0
  157. y_offset: -10.0
  158. z_offset: 0
  159.  
  160.  
  161. [safe_z_home]
  162. home_xy_position: 100, 100 # Change coordinates to the center of your print bed
  163. speed: 50
  164. z_hop: 10                 # Move up 10mm
  165. z_hop_speed: 5
  166.  
  167. [gcode_macro START_PRINT]
  168. gcode:
  169.    {% set BED_TEMP = params.BED_TEMP|default(60)|float %}
  170.     {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
  171.     # Start bed heating
  172.     M140 S{BED_TEMP}
  173.     # Use absolute coordinates
  174.     G90
  175.     # Reset the G-Code Z offset (adjust Z offset if needed)
  176.     SET_GCODE_OFFSET Z=0.0
  177.     # Home the printer
  178.     G28
  179.     # Move the nozzle near the bed
  180.     G1 Z5 F3000
  181.     # Move the nozzle very close to the bed
  182.     G1 Z0.15 F300
  183.     # Wait for bed to reach temperature
  184.     M190 S{BED_TEMP}
  185.     # Set and wait for nozzle to reach temperature
  186.     M109 S{EXTRUDER_TEMP}
  187.  
  188. [gcode_macro END_PRINT]
  189. gcode:
  190.    # Turn off bed, extruder, and fan
  191.     M140 S0
  192.     M104 S0
  193.     M106 S0
  194.     # Move nozzle away from print while retracting
  195.     G91
  196.     G1 X-2 Y-2 E-3 F300
  197.     # Raise nozzle by 10mm
  198.     G1 Z10 F3000
  199.     G90
  200.     # Disable steppers
  201.     M84
  202.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement