Guest User

printer.cfg

a guest
Feb 6th, 2024
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. # This file contains common pin mappings for the BigTreeTech SKR 2.
  2. # To use this config, the firmware should be compiled for the
  3. # STM32F407 with a "32KiB bootloader".
  4.  
  5. # In newer versions of this board shipped in late 2021 the STM32F429
  6. # is used, if this is the case compile for this with a "32KiB bootloader"
  7. # You will need to check the chip on your board to identify which you have.
  8. # Use "make menuconfig" to configure the build.
  9. # The "make flash" command does not work on the SKR 2. Instead,
  10. # after running "make", copy the generated "out/klipper.bin" file to a
  11. # file named "firmware.bin" on an SD card and then restart the SKR 2
  12. # with that SD card.
  13.  
  14. # See docs/Config_Reference.md for a description of parameters.
  15.  
  16. # Note: The initial revision of this board has a flaw that can cause
  17. # damage to itself and other boards. Be sure to verify the board is
  18. # not impacted by this flaw before using it.
  19.  
  20. # https://www.makenprint.uk/3d-printing/3d-firmware-guides/klipper/compiling-klipper-firmware/#BTT-SKR-2
  21. # https://www.makenprint.uk/3d-printing/3d-firmware-guides/klipper/compiling-klipper-firmware/#Compiling-the-Klipper-Firmware
  22.  
  23. [mcu]
  24. serial: /dev/serial/by-id/usb-STMicroelectronics_MARLIN_STM32F407VGT6_CCM_CDC_in_FS_Mode_2061325E4730-if00
  25. baud: 250000
  26. restart_method: command
  27.  
  28. [printer]
  29. kinematics: cartesian
  30. max_velocity: 300
  31. max_accel: 3000
  32. max_z_velocity: 5
  33. max_z_accel: 100
  34.  
  35. [bltouch]
  36. sensor_pin: PE4
  37. control_pin: PE5
  38. x_offset: 70
  39. y_offset:
  40. 0
  41. z_offset: 0
  42.  
  43. [safe_z_home]
  44. home_xy_position: 100, 100 # Change coordinates to the center of your print bed
  45. speed: 50
  46. z_hop: 10 # Move up 10mm
  47. z_hop_speed: 5
  48.  
  49.  
  50. [stepper_x]
  51. step_pin: PE2
  52. dir_pin: PE1
  53. enable_pin: !PE3
  54. microsteps: 16
  55. rotation_distance: 40
  56. endstop_pin: ^PC1
  57. position_endstop: 0
  58. position_max: 200
  59. homing_speed: 50
  60.  
  61. [tmc2209 stepper_x]
  62. uart_pin: PE0
  63. run_current: 0.800
  64. diag_pin:
  65.  
  66. [stepper_y]
  67. step_pin: PD5
  68. dir_pin: !PD4
  69. enable_pin: !PD6
  70. microsteps: 16
  71. rotation_distance: 40
  72. endstop_pin: ^PC3
  73. position_endstop: 0
  74. position_max: 200
  75. homing_speed: 50
  76.  
  77. [tmc2209 stepper_y]
  78. uart_pin: PD3
  79. run_current: 0.800
  80. diag_pin:
  81.  
  82. [stepper_z]
  83. step_pin: PA15
  84. dir_pin: PA8
  85. enable_pin: !PD1
  86. microsteps: 16
  87. rotation_distance: 40
  88. endstop_pin: ^PC0
  89. position_endstop: 0.5
  90. position_max: 200
  91.  
  92. [tmc2209 stepper_z]
  93. uart_pin: PD0
  94. run_current: 0.800
  95. diag_pin:
  96.  
  97. # [stepper_z2]
  98. # step_pin: PA15
  99. # dir_pin: PA8
  100. # enable_pin: !PD1
  101. # microsteps: 16
  102. # rotation_distance: 40
  103. # endstop_pin: ^PC0
  104. # position_endstop: 0.5
  105. # position_max: 200
  106.  
  107. # [tmc2209 stepper_z2]
  108. # uart_pin: PD0
  109. # run_current: 0.800
  110. # diag_pin:
  111.  
  112. [extruder]
  113. step_pin: PD15
  114. dir_pin: PD14
  115. enable_pin: !PC7
  116. microsteps: 16
  117. rotation_distance: 33.500
  118. nozzle_diameter: 0.400
  119. filament_diameter: 1.750
  120. heater_pin: PB3
  121. sensor_type: EPCOS 100K B57560G104F
  122. sensor_pin: PA2
  123. control: pid
  124. pid_Kp: 22.2
  125. pid_Ki: 1.08
  126. pid_Kd: 114
  127. min_temp: 0
  128. max_temp: 250
  129.  
  130. [tmc2209 extruder]
  131. uart_pin: PC6
  132. run_current: 0.600
  133. diag_pin:
  134.  
  135. [heater_bed]
  136. heater_pin: PD7
  137. sensor_type: Generic 3950
  138. sensor_pin: PA1
  139. control: watermark
  140. min_temp: 0
  141. max_temp: 130
  142.  
  143. [fan]
  144. pin: PB7
  145. [heater_fan fan1]
  146. pin: PB6
  147.  
  148. #[heater_fan fan2]
  149. #pin: PB5
  150.  
  151. # Due to BTT implementing a Marlin-specific safety feature,
  152. # "anti-reversal stepper protection", this pin needs pulling
  153. # high to pass power to stepper drivers and most FETs
  154.  
  155. [output_pin motor_power]
  156. pin: PC13
  157. value: 1
  158.  
  159. ########################################
  160. # EXP1 / EXP2 (display) pins
  161. ########################################
  162.  
  163. [board_pins]
  164. aliases:
  165. # EXP1 header
  166. EXP1_1=PC5, EXP1_3=PB1, EXP1_5=PE10, EXP1_7=PE12, EXP1_9=<GND>,
  167. EXP1_2=PB0, EXP1_4=PE9, EXP1_6=PE11, EXP1_8=PE13, EXP1_10=<5V>,
  168. # EXP2 header
  169. EXP2_1=PA6, EXP2_3=PE7, EXP2_5=PB2, EXP2_7=PC4, EXP2_9=<GND>,
  170. EXP2_2=PA5, EXP2_4=PA4, EXP2_6=PA7, EXP2_8=<RST>, EXP2_10=<NC>
  171.  
  172. # See the sample-lcd.cfg file for definitions of common LCD displays.
  173. ######################################################################
  174. # "RepRapDiscount 128x64 Full Graphic Smart Controller" type displays
  175. ######################################################################
  176. [display]
  177. lcd_type: st7920
  178. cs_pin: EXP1_4
  179. sclk_pin: EXP1_5
  180. sid_pin: EXP1_3
  181. encoder_pins: ^EXP2_3, ^EXP2_5
  182. click_pin: ^!EXP1_2
  183. #kill_pin: ^!EXP2_8
  184.  
  185. [output_pin beeper]
  186. pin: EXP1_1
  187.  
Advertisement
Add Comment
Please, Sign In to add comment