Advertisement
Guest User

TronXY klipper file

a guest
Jan 31st, 2025
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.74 KB | None | 0 0
  1. # This file contains common pin mappings for the BIGTREETECH SKR miniE3 v3.0.
  2. # I am merging this with TronXY D01 postings on Reddit and GIThub
  3. # v1.0 1/29/25 10:15pm
  4.  
  5. #[include fluidd.cfg]
  6. [include mainsail.cfg]
  7. [virtual_sdcard]
  8. path: /home/pi/printer_data/gcodes
  9. on_error_gcode: CANCEL_PRINT
  10.  
  11. [mcu]
  12. serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_3D003A000C504B5735313920-if00
  13. restart_method: command
  14.  
  15.  
  16. [board_pins]
  17. aliases:
  18. # EXP1 header
  19. EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
  20. EXP1_2=PA15, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PD6, EXP1_10=<5V>
  21.  
  22. [printer]
  23. kinematics: corexy
  24. max_velocity: 300
  25. #max_accel: 4500 #Original config
  26. #max_accel_to_decel: 4500 #original config
  27. max_accel: 3000
  28. max_accel_to_decel: 3000
  29. square_corner_velocity: 5
  30. max_z_velocity: 25
  31. max_z_accel: 30
  32.  
  33.  
  34. [stepper_x]
  35. step_pin: PB13
  36. dir_pin: !PB12
  37. enable_pin: !PB14
  38. microsteps: 16 # suggested 32
  39. rotation_distance: 40
  40. endstop_pin: !PC0 # needed to invert endstops
  41. position_endstop: 0 # suggested -1 to safely trigger microswitch
  42. # position_min: -1 #Put in same as the endstop, else calibration won't work anymore, (don't have calibration tested yet)
  43. position_max: 235 # suggested 330 for bed mesh
  44. homing_speed: 50
  45. # homing_retract_dist: 10
  46. # second_homing_speed: 10.0
  47. # stepper X compared
  48.  
  49.  
  50. #[tmc2209 stepper _x]
  51. # uart_pin: PC11
  52. # tx_pin: PC10
  53. # uart_address: 0
  54. # run_current: 0.580
  55. # stealthchop_threshold: 999999
  56. # was not in the reddit version for D01
  57.  
  58.  
  59. [stepper_y]
  60. step_pin: PB10
  61. dir_pin: !PB2
  62. enable_pin: !PB11
  63. microsteps: 16 # suggested 32
  64. rotation_distance: 40
  65. endstop_pin: !PC1 # needed to invert endstops
  66. position_endstop: 0 # suggested -2
  67. # position_min: -2 # added by Reddit
  68. position_max: 235 # Suggested 330
  69. homing_speed: 50
  70. # homing_retract_dist: 10
  71. # second_homing_speed: 10.0
  72. # stepper Y compared
  73.  
  74. # [tmc2209 stepper_y]
  75. # uart_pin: PC11
  76. # tx_pin: PC10
  77. # uart_address: 2
  78. # run_current: 0.580
  79. # stealthchop_threshold: 999999
  80. # was not in the reddit version for D01
  81.  
  82.  
  83. [stepper_z]
  84. step_pin: PB0
  85. dir_pin: PC5
  86. enable_pin: !PB1
  87. microsteps: 16
  88. rotation_distance: 8 # suggested 4
  89. endstop_pin: !PC2 # "probe:z_virtual_endstop" # needed to invert endstops
  90. position_endstop: 0.0 # position_min: -1 #check the max z level of your bed and put it slightly above to correct mechanical inaccuracy
  91. position_max: 250 # suggested 400
  92. # stepper Z compared
  93.  
  94. # [tmc2209 stepper_z]
  95. # uart_pin: PC11
  96. # tx_pin: PC10
  97. # uart_address: 1
  98. # run_current: 0.580
  99. # stealthchop_threshold: 999999
  100. # was not in the reddit version for D01
  101.  
  102. [extruder]
  103. step_pin: PB3
  104. dir_pin: !PB4
  105. enable_pin: !PD1 #should be correct for BMG extruder, otherwise retracts
  106. microsteps: 16
  107. rotation_distance: 33.500 # suggested 4
  108. nozzle_diameter: 0.400
  109. filament_diameter: 1.750
  110. heater_pin: PC8
  111. sensor_type: EPCOS 100K B57560G104F # suggested ATC Semitec 104GT-2
  112. sensor_pin: PA0
  113. control: pid # see below
  114. pid_Kp: 21.527 # comment out after PID test
  115. pid_Ki: 1.063 # dto
  116. pid_Kd: 108.982 # dto
  117. min_temp: 0
  118. max_temp: 250
  119. min_extrude_temp: 170 #added reddit
  120. max_extrude_only_distance: 300 #added reddit, whats that for?
  121. # extruder compared
  122.  
  123. # [tmc2209 extruder]
  124. # uart_pin: PC11
  125. # tx_pin: PC10
  126. # uart_address: 3
  127. # run_current: 0.650
  128.  
  129. [heater_bed]
  130. heater_pin: PC9
  131. sensor_type: EPCOS 100K B57560G104F
  132. sensor_pin: PC4
  133. control: pid
  134. pid_Kp: 54.027
  135. pid_Ki: 0.770
  136. pid_Kd: 948.182
  137. min_temp: 0
  138. max_temp: 130 #suggest 110
  139. # heater bed compared, run PID calibrate
  140.  
  141. [heater_fan hotend_fan]
  142. heater: extruder
  143. heater_temp: 50.0 # what is that for?
  144. pin: PC7 #Fan 1 board label
  145. # checked
  146.  
  147. [fan]
  148. pin: PC6 #is this part cooling? Fan 0 board label
  149. # checked
  150.  
  151. [controller_fan drivers_fan]
  152. pin: PB15 # internal Fan 2 board label
  153. # checked
  154.  
  155. [filament_switch_sensor filament_sensor]
  156. pause_on_runout: True
  157. runout_gcode: M25
  158. switch_pin: !PC15 # stop on switch open?
  159. # chekced
  160.  
  161. #----------------------------------------------------------------------
  162. # section below is not in SKR mini from BTT, will comment out for now
  163.  
  164.  
  165. #[output_pin beeper]
  166. #pin: PA8 # not found in BTT SKR
  167. #checked
  168.  
  169. #[safe_z_home]
  170. #home_xy_position: 165, 165
  171. #speed: 50
  172. #z_hop: 10
  173. #z_hop_speed: 5
  174.  
  175. #[bed_mesh]
  176. #speed: 120
  177. #probe_count: 5, 4
  178. #horizontal_move_z: 7
  179. #algorithm: lagrange
  180. #mesh_min : 30, 30
  181. #mesh_max : 300, 300
  182. #mesh_min : 15, 50
  183. #mesh_max : 300, 275
  184. #mesh_pps: 0
  185. #fade_start: 1
  186. #fade_end: 10
  187. #fade_target: 0
  188.  
  189. #[bed_screws]
  190. #screw1: 1, 5
  191. #screw2: 161, 5
  192. #screw3: 322, 5
  193. #screw4: 1, 325
  194. #screw5: 161, 325
  195. #screw6: 321, 325
  196.  
  197. [probe]
  198. x_offset: 14
  199. y_offset: 46
  200. pin: PC14
  201. speed: 5 #for the TR touch sensor, seems between 5-10 is acceptable in range.
  202. samples: 2
  203. z_offset: 8 #gets excluded after Probe_calibrate
  204.  
  205. #Config part below is generated after doing some things in klipper. These are auto generated, when it has the same configuration in the upper part, Those get excluded with an #
  206.  
  207. #*# <---------------------- SAVE_CONFIG ---------------------->
  208. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  209. #*#
  210. #*# [probe]
  211. #*# z_offset = 5.500
  212. #*#
  213. #*# [bed_mesh TEST]
  214. #*# version = 1
  215. #*# points =
  216. #*# 0.008750, -0.020000, -0.020000, -0.036250, -0.036875
  217. #*# 0.022500, -0.016250, -0.025625, -0.046875, -0.060000
  218. #*# 0.053750, 0.000625, 0.007500, -0.019375, -0.018125
  219. #*# 0.061250, 0.036250, 0.061250, 0.022500, 0.001250
  220. #*# x_count = 5
  221. #*# y_count = 4
  222. #*# mesh_x_pps = 0
  223. #*# mesh_y_pps = 0
  224. #*# algo = lagrange
  225. #*# tension = 0.2
  226. #*# min_x = 15.0
  227. #*# max_x = 300.0
  228. #*# min_y = 50.0
  229. #*# max_y = 275.0
  230. #*#
  231. #*# [extruder]
  232. #*# control = pid
  233. #*# pid_kp = 23.898
  234. #*# pid_ki = 1.285
  235. #*# pid_kd = 111.125
  236. #*#
  237. #*# [heater_bed]
  238. #*# control = pid
  239. #*# pid_kp = 74.326
  240. #*# pid_ki = 1.408
  241. #*# pid_kd = 981.099
Tags: #D print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement