KenadyDwag44

Untitled

Oct 14th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.16 KB | None | 0 0
  1. # This file contains common pin mappings for the BIGTREETECH SKR
  2. # MINI. To use this config, the firmware should be compiled for the
  3. # STM32F103 with a "28KiB bootloader".
  4.  
  5. # The "make flash" command does not work on the SKR mini. Instead,
  6. # after running "make", copy the generated "out/klipper.bin" file to a
  7. # file named "firmware.bin" on an SD card and then restart the SKR
  8. # mini with that SD card.
  9.  
  10. # See the example.cfg file for a description of available parameters.
  11.  
  12. [mcu]
  13. serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_30FFD8054246383505760457-if00
  14.  
  15. [stepper_x]
  16. step_pin: PB13
  17. dir_pin: !PB12
  18. enable_pin: !PB14
  19. step_distance: .0125
  20. endstop_pin: PC0
  21. position_endstop: 120
  22. position_max: 120
  23. homing_speed: 20 #Max 100
  24. homing_retract_dist: 5
  25. homing_positive_dir: true
  26.  
  27. [tmc2209 stepper_x]
  28. uart_pin: PB15
  29. microsteps: 16
  30. interpolate: true
  31. run_current: .7
  32. hold_current: .5
  33. sense_resistor: 0.110
  34. stealthchop_threshold: 300
  35.  
  36. [stepper_y]
  37. step_pin: PB10
  38. dir_pin: !PB2
  39. enable_pin: !PB11
  40. step_distance: .0125
  41. endstop_pin: PC1
  42. position_endstop: 120
  43. position_max: 120
  44. homing_speed: 20 #Max 100
  45. homing_retract_dist: 5
  46. homing_positive_dir: true
  47.  
  48. [tmc2209 stepper_y]
  49. uart_pin: PC6
  50. microsteps: 16
  51. interpolate: true
  52. run_current: .7
  53. hold_current: .5
  54. sense_resistor: 0.110
  55. stealthchop_threshold: 300
  56.  
  57. [stepper_z]
  58. step_pin: PB0
  59. dir_pin: PC5
  60. enable_pin: !PB1
  61. step_distance: .000625
  62. endstop_pin: PC2
  63. #position_endstop: -.10
  64. position_max: 120
  65. position_min: -1
  66. homing_speed: 10 #Max 100
  67. second_homing_speed: 3.0
  68. homing_retract_dist: 3.0
  69.  
  70. [tmc2209 stepper_z]
  71. uart_pin: PC10
  72. microsteps: 16
  73. interpolate: True
  74. run_current: .3
  75. hold_current: 0.3
  76. sense_resistor: 0.110
  77. stealthchop_threshold: 500
  78.  
  79.  
  80. [extruder]
  81. step_pin: PB3
  82. dir_pin: PB4
  83. enable_pin: !PD2
  84. step_distance: .002395368
  85. nozzle_diameter: 0.400
  86. filament_diameter: 1.750
  87. heater_pin: PC8
  88. sensor_type: EPCOS 100K B57560G104F
  89. sensor_pin: PA0
  90. #control: pid
  91. #pid_Kp: 22.2
  92. #pid_Ki: 1.08
  93. #pid_Kd: 114
  94. min_temp: 0
  95. max_temp: 270
  96. min_extrude_temp: 170
  97. max_extrude_only_distance: 780.0
  98. max_extrude_cross_section: .8
  99. Pressure_advance: 0.36 #ABS
  100. pressure_advance_smooth_time: 0.040
  101.  
  102. [tmc2209 extruder]
  103. uart_pin: PC11
  104. microsteps: 16
  105. interpolate: True
  106. run_current: 0.6
  107. hold_current: 0.6
  108. sense_resistor: 0.110
  109. stealthchop_threshold: 500
  110.  
  111. [heater_bed]
  112. heater_pin: PC12
  113. sensor_type: NTC 100K beta 3950
  114. #sensor_type: NTC 100K MGB18-104F39050L32
  115. sensor_pin: PC3
  116. smooth_time: 3.0
  117. max_power: 1.0
  118. #control: pid
  119. min_temp: 0
  120. max_temp: 120
  121. #pid_kp: 58.437
  122. #pid_ki: 2.347
  123. #pid_kd: 363.769
  124.  
  125. [printer]
  126. kinematics: corexy
  127. max_velocity: 250
  128. max_accel: 4000
  129. max_z_velocity: 25
  130. max_z_accel: 35
  131. square_corner_velocity: 5.0
  132.  
  133. [heater_fan hotend_fan]
  134. # Hotend Fan
  135. pin: PA8
  136. max_power: 1.0
  137. kick_start_time: 0.5
  138. heater: extruder
  139. heater_temp: 50.0
  140. #If you are experiencing back flow, you can reduce fan_speed
  141. #fan_speed: 1.0
  142.  
  143. [fan]
  144. # Print Cooling Fan - XYE board, Fan Pin
  145. pin: PC9
  146. kick_start_time: 0.5
  147. #depending on your fan, you may need to increase or reduce this value
  148. #if your fan will not start
  149. off_below: 0.13
  150. cycle_time: 0.001
  151.  
  152. [idle_timeout]
  153. timeout: 1800
  154.  
  155.  
  156. [homing_override]
  157. axes: z
  158. set_position_z: 0
  159. gcode:
  160. G90
  161. G0 Z5 F600
  162. G28 X Y
  163. # XY Location of the Z Endstop Switch
  164. # Update X0 and Y0 to your values (such as X157, Y305) after going through
  165. # Z Endstop Pin Location Definition step.
  166. G0 X30 Y0 F3600
  167.  
  168. G28 Z
  169. G0 Z10 F1800
  170. G0 X60 Y60 Z20 F3600
  171.  
  172. # Tool to help adjust bed leveling screws. One may define a
  173. # [bed_screws] config section to enable a BED_SCREWS_ADJUST g-code
  174. # command.
  175.  
  176. [bed_screws]
  177.  
  178. screw1: 60,5
  179. screw1_name: Front Center
  180. screw2: 5,115
  181. screw2_name: Rear Left
  182. screw3: 115,115
  183. screw3_name: Rear Right
  184.  
  185. #[mcu displayEncoder]
  186. #serial: /dev/serial/by-id/usb-Klipper_stm32f042x6_1800088016434E5333333920-#if00
  187. #restart_method: command
  188.  
  189. #[display]
  190. #lcd_type: sh1106
  191. #i2c_mcu: displayEncoder
  192. #i2c_bus: i2c1a
  193. #encoder_pins: ^displayEncoder:PA4, ^displayEncoder:PA3
  194. #click_pin: ^!displayEncoder:PA1
  195. #kill_pin: ^!displayEncoder:PA5
  196.  
  197. #[neopixel displayStatus]
  198. #pin: displayEncoder:PA0
  199. #chain_count: 1
  200. #color_order_GRB: True
  201. #initial_RED: 0.0
  202. #initial_GREEN: 0.0
  203. #initial_BLUE: 0.1
  204.  
  205. [gcode_macro PRINT_START]
  206. gcode:
  207. M104 S155
  208. M190 S{BED_TEMP}
  209. M117 Homing... ; display message
  210. G28 Y0 X0 Z0
  211. G92 E0;
  212. G90
  213. G0 X5 Y5 F6000
  214. M109 S{EXT_TEMP}
  215.  
  216. G0 Z0.4
  217. G91
  218. G1 X100 E30 F1200;
  219. G1 Y1
  220. G1 X-100 E30 F1200;
  221. G1 E-4.0 F3600 ; retract filament
  222. G92 E0;
  223.  
  224. G90
  225. G1 Z15.0 F600 ;move the platform down 15mm
  226. G92 E0 ;zero the extruded length again
  227. G1 F9000
  228. M117 Printing..
  229.  
  230.  
  231. [gcode_macro PRINT_END]
  232. # Use PRINT_END for the slicer ending script - please customise for your slicer of choice
  233. gcode:
  234. M400 ; wait for buffer to clear
  235. G92 E0 ; zero the extruder
  236. G1 E-10.0 F3600 ; retract filament
  237. G91 ; relative positioning
  238. G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing
  239. TURN_OFF_HEATERS
  240. M107 ; turn off fan
  241. G1 Z2 F3000 ; move nozzle up 2mm
  242. G90 ; absolute positioning
  243. G0 X60 Y120 F3600 ; park nozzle at rear
  244.  
  245. [gcode_macro LOAD_FILAMENT]
  246. gcode:
  247. M83 ; set extruder to relative
  248. G1 E280 F1800 ; quickly load filament to down bowden
  249. G1 E30 F300 ; slower extrusion for hotend path
  250. G1 E15 F150 ; prime nozzle with filament
  251. M82 ; set extruder to absolute
  252.  
  253. [gcode_macro UNLOAD_FILAMENT]
  254. gcode:
  255. M83 ; set extruder to relative
  256. G1 E10 F300 ; extrude a little to soften tip
  257. G1 E-380 F1800 ; retract filament completely
  258. M82 ; set extruder to absolute
  259.  
  260. [gcode_macro HEAT_SOAK]
  261. #uncomment HEAT_SOAK lines in PRINT_START or add HEAT_SOAK to slicer start gcode to enable
  262. gcode:
  263. G0 X60 Y60 Z10 ; move toolhead to centre
  264. PAUSE
  265.  
  266. UPDATE_DELAYED_GCODE ID=SOAK_TIME DURATION=300 ; resume after 300 seconds
  267.  
  268. [delayed_gcode SOAK_TIME]
  269. gcode:
  270. RESUME
  271. M107 ; turn off cooling fans
  272.  
  273. [gcode_macro SKIP]
  274. gcode:
  275. UPDATE_DELAYED_GCODE ID=SOAK_TIME DURATION=1
  276.  
  277.  
  278. # Sensor Types
  279. # "EPCOS 100K B57560G104F"
  280. # "ATC Semitec 104GT-2"
  281. # "NTC 100K beta 3950"
  282. # "Honeywell 100K 135-104LAG-J01"
  283. # "NTC 100K MGB18-104F39050L32" (Keenovo Heater Pad)
  284. # "AD595"
  285. # "PT100 INA826"
  286.  
  287. #*# <---------------------- SAVE_CONFIG ---------------------->
  288. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  289. #*#
  290. #*# [heater_bed]
  291. #*# control = pid
  292. #*# pid_kp = 30.935
  293. #*# pid_ki = 1.599
  294. #*# pid_kd = 149.649
  295. #*#
  296. #*# [stepper_z]
  297. #*# position_endstop = 0.250
  298. #*#
  299. #*# [extruder]
  300. #*# control = pid
  301. #*# pid_kp = 25.216
  302. #*# pid_ki = 1.176
  303. #*# pid_kd = 135.219
  304.  
Advertisement
Add Comment
Please, Sign In to add comment