KenadyDwag44

Untitled

Oct 8th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.71 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: .4
  32. hold_current: .4
  33. sense_resistor: 0.110
  34. stealthchop_threshold: 0
  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: .4
  53. hold_current: .4
  54. sense_resistor: 0.110
  55. stealthchop_threshold: 0
  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.2
  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.2
  202. #initial_GREEN: 0.05
  203. #initial_BLUE: 0
  204.  
  205. [gcode_macro PRINT_START]
  206. gcode:
  207. M104 S155
  208. M190 S{BED_TEMP}
  209.  
  210. M117 Homing... ; display message
  211. G28 Y0 X0 Z0
  212. G92 E0;
  213. G90
  214. G0 X5 Y5 F6000
  215. M109 S{EXT_TEMP}
  216.  
  217. G0 Z0.4
  218. G91
  219. G1 X100 E30 F1200;
  220. G1 Y1
  221. G1 X-100 E30 F1200;
  222. G92 E0;
  223.  
  224. G90
  225. G1 Z15.0 F600 ;move the platform down 15mm
  226. G1 X60 Y60 F3000
  227. G92 E0 ;zero the extruded length again
  228. G1 F9000
  229. M117 Printing..
  230.  
  231.  
  232. [gcode_macro PRINT_END]
  233. # Use PRINT_END for the slicer ending script - please customise for your slicer of choice
  234. gcode:
  235. M400 ; wait for buffer to clear
  236. G92 E0 ; zero the extruder
  237. G1 E-10.0 F3600 ; retract filament
  238. G91 ; relative positioning
  239. G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing
  240. TURN_OFF_HEATERS
  241. M107 ; turn off fan
  242. G1 Z2 F3000 ; move nozzle up 2mm
  243. G90 ; absolute positioning
  244. G0 X60 Y120 F3600 ; park nozzle at rear
  245.  
  246. [gcode_macro LOAD_FILAMENT]
  247. gcode:
  248. M83 ; set extruder to relative
  249. G1 E280 F1800 ; quickly load filament to down bowden
  250. G1 E30 F300 ; slower extrusion for hotend path
  251. G1 E15 F150 ; prime nozzle with filament
  252. M82 ; set extruder to absolute
  253.  
  254. [gcode_macro UNLOAD_FILAMENT]
  255. gcode:
  256. M83 ; set extruder to relative
  257. G1 E10 F300 ; extrude a little to soften tip
  258. G1 E-380 F1800 ; retract filament completely
  259. M82 ; set extruder to absolute
  260.  
  261. [virtual_sdcard]
  262. path: ~/gcode_files
  263.  
  264. [pause_resume]
  265. [display_status]
  266.  
  267. # Sensor Types
  268. # "EPCOS 100K B57560G104F"
  269. # "ATC Semitec 104GT-2"
  270. # "NTC 100K beta 3950"
  271. # "Honeywell 100K 135-104LAG-J01"
  272. # "NTC 100K MGB18-104F39050L32" (Keenovo Heater Pad)
  273. # "AD595"
  274. # "PT100 INA826"
  275.  
  276.  
  277. #*# <---------------------- SAVE_CONFIG ---------------------->
  278. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  279. #*#
  280. #*# [heater_bed]
  281. #*# control = pid
  282. #*# pid_kp = 30.935
  283. #*# pid_ki = 1.599
  284. #*# pid_kd = 149.649
  285. #*#
  286. #*# [stepper_z]
  287. #*# position_endstop = 0.250
  288. #*#
  289. #*# [extruder]
  290. #*# control = pid
  291. #*# pid_kp = 25.216
  292. #*# pid_ki = 1.176
  293. #*# pid_kd = 135.219
  294.  
Advertisement
Add Comment
Please, Sign In to add comment