Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.19 KB | None | 0 0
  1. # This file contains common pin mappings for the BIGTREETECH SKR V1.3
  2. # board. To use this config, the firmware should be compiled for the
  3. # LPC1768.
  4.  
  5. # See the example.cfg file for a description of available parameters.
  6.  
  7. [stepper_x]
  8. step_pin: P2.2
  9. dir_pin: !P2.6
  10. enable_pin: !P2.1
  11. step_distance: 0.0125
  12. endstop_pin: P1.29 #P1.28 for X-max
  13. position_endstop: 0
  14. position_max: 235
  15. homing_speed: 100
  16.  
  17. [stepper_y]
  18. step_pin: P0.19
  19. dir_pin: !P0.20
  20. enable_pin: !P2.8
  21. step_distance: 0.0125
  22. endstop_pin: P1.27 #P1.26 for Y-max
  23. position_endstop: -25
  24. position_min: -26
  25. position_max: 215
  26. homing_speed: 100
  27.  
  28. [stepper_z]
  29. step_pin: P0.22
  30. dir_pin: P2.11
  31. enable_pin: !P0.21
  32. step_distance: 0.0025
  33. endstop_pin: probe: P1.25 #for Z-min, P1.24 for Z-max
  34. #position_endstop: 0.5
  35. position_min: -5
  36. position_max: 235
  37.  
  38. [extruder]
  39. max_extrude_only_distance: 500
  40. step_pin: P2.13
  41. dir_pin: !P0.11
  42. enable_pin: !P2.12
  43. step_distance: 0.00140
  44. nozzle_diameter: 0.400
  45. filament_diameter: 1.750
  46. heater_pin: P2.7
  47. sensor_type: EPCOS 100K B57560G104F
  48. sensor_pin: P0.24
  49. #control: pid
  50. #pid_Kp: 22.2
  51. #pid_Ki: 1.08
  52. #pid_Kd: 114
  53. min_temp: 0
  54. max_temp: 300
  55. pressure_advance: 0.05
  56.  
  57. #[extruder1]
  58. #step_pin: P0.1
  59. #dir_pin: P0.0
  60. #enable_pin: !P0.10
  61. #heater_pin: P2.4
  62. #sensor_pin: P0.25
  63. #...
  64.  
  65. [heater_bed]
  66. heater_pin: P2.5
  67. sensor_type: ATC Semitec 104GT-2
  68. sensor_pin: P0.23
  69. control: watermark
  70. min_temp: 0
  71. max_temp: 130
  72.  
  73. [heater_fan extruder_fan]
  74. pin: P2.4
  75. heater: extruder
  76. heater_temp: 50.0
  77. fan_speed: 1.0
  78.  
  79. [fan]
  80. pin: P2.3
  81.  
  82. [mcu]
  83. serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
  84.  
  85. [printer]
  86. kinematics: cartesian
  87. max_velocity: 300
  88. max_accel: 2000
  89. max_z_velocity: 25
  90. max_z_accel: 100
  91.  
  92.  
  93. ########################################
  94. # TMC2208 configuration
  95. ########################################
  96.  
  97. # For TMC2208 UART
  98. # 1) Remove all of the jumpers below the stepper drivers
  99. # 2) Place jumpers on the red pin headers labeled XUART (XUART, YUART etc.)
  100.  
  101. [tmc2208 stepper_x]
  102. uart_pin: P1.17
  103. microsteps: 16
  104. run_current: 0.540
  105. hold_current: 0.340
  106. stealthchop_threshold: 250
  107.  
  108. [tmc2208 stepper_y]
  109. uart_pin: P1.15
  110. microsteps: 16
  111. run_current: 0.540
  112. hold_current: 0.340
  113. stealthchop_threshold: 250
  114.  
  115. [tmc2208 stepper_z]
  116. uart_pin: P1.10
  117. microsteps: 16
  118. run_current: 0.540
  119. hold_current: 0.340
  120. stealthchop_threshold: 30
  121.  
  122. [tmc2208 extruder]
  123. uart_pin: P1.8
  124. microsteps: 16
  125. run_current: 0.750
  126. hold_current: 0.500
  127. stealthchop_threshold: 0
  128.  
  129. #[tmc2208 extruder1]
  130. #uart_pin: P1.1
  131. #microsteps: 16
  132. #run_current: 0.800
  133. #hold_current: 0.500
  134. #stealthchop_threshold: 5
  135.  
  136. # Support manually moving stepper motors for diagnostic purposes.
  137. # Note, using this feature may place the printer in an invalid state -
  138. # see docs/G-Codes.md for important details.
  139. [force_move]
  140. enable_force_move: True
  141. # Set to true to enable FORCE_MOVE and SET_KINEMATIC_POSITION
  142. # extended G-Code commands. The default is false.
  143.  
  144. # Support for a display attached to the micro-controller.
  145. [display]
  146. lcd_type: st7920
  147. # The type of LCD chip in use. This may be "hd44780" (which is used
  148. # in "RepRapDiscount 2004 Smart Controller" type displays), "st7920"
  149. # (which is used in "RepRapDiscount 12864 Full Graphic Smart
  150. # Controller" type displays), "uc1701" (which is used in "MKS Mini
  151. # 12864" type displays), or "ssd1306". This parameter must be
  152. # provided.
  153. # be provided when using an hd44780 display.
  154. cs_pin: P1.19
  155. sclk_pin: P1.21
  156. sid_pin: P1.23
  157. # The pins connected to an st7920 type lcd. These parameters must be
  158. # provided when using an st7920 display.
  159. #contrast:
  160. # The contrast to set when using a uc1701/st7567 type displays. The value
  161. # may range from 0 to 63. Default is 40 for uc1701 and 60 for st7567.
  162. #menu_root:
  163. # Entry point for menu, root menu container name. If this parameter
  164. # is not provided then default menu root is used. When provided
  165. # menu entry is 'deck' type then it'll be initiated immediately at startup.
  166. # Description of menu items is located in example-menu.cfg file.
  167. #menu_timeout:
  168. # Timeout for menu. Being inactive this amount of seconds will trigger
  169. # menu exit or return to root menu when having autorun enabled.
  170. # The default is 0 seconds (disabled)
  171. encoder_pins: ^P1.18, ^P1.20
  172. # The pins connected to encoder. 2 pins must be provided when
  173. # using encoder. This parameter must be provided when using menu.
  174. click_pin: !P0.28
  175. # The pin connected to 'enter' button or encoder 'click'. This parameter
  176. # must be provided when using menu. The presence of an 'analog_range_click_pin'
  177. # config parameter turns this parameter from digital to analog.
  178. #back_pin:
  179. # The pin connected to 'back' button. This parameter is optional, menu
  180. # can be used without it. The presence of an 'analog_range_back_pin'
  181. # config parameter turns this parameter from digital to analog.
  182. #up_pin:
  183. # The pin connected to 'up' button. This parameter must be provided
  184. # when using menu without encoder. The presence of an 'analog_range_up_pin'
  185. # config parameter turns this parameter from digital to analog.
  186. #down_pin:
  187. # The pin connected to 'down' button. This parameter must be provided
  188. # when using menu without encoder. The presence of an 'analog_range_down_pin'
  189. # config parameter turns this parameter from digital to analog.
  190. #kill_pin:
  191. # The pin connected to 'kill' button. This button will call emergency stop.
  192. # The presence of an 'analog_range_kill_pin' config parameter turns this
  193. # parameter from digital to analog.
  194. #analog_pullup_resistor: 4700
  195. # The resistance (in ohms) of the pullup attached to the analog button.
  196. # The default is 4700 ohms.
  197. #analog_pin_debug:
  198. # When enabled it will output analog (ADC) button readings to the log.
  199. # It's useful for finding analog button resistance range values.
  200. # The default is False (disabled)
  201. #analog_range_click_pin:
  202. # The resistance range for a 'enter' button. Range minimum and maximum
  203. # comma-separated values must be provided when using analog button.
  204. #analog_range_back_pin:
  205. # The resistance range for a 'back' button. Range minimum and maximum
  206. # comma-separated values must be provided when using analog button.
  207. #analog_range_up_pin:
  208. # The resistance range for a 'up' button. Range minimum and maximum
  209. # comma-separated values must be provided when using analog button.
  210. #analog_range_down_pin:
  211. # The resistance range for a 'down' button. Range minimum and maximum
  212. # comma-separated values must be provided when using analog button.
  213. #analog_range_kill_pin:
  214. # The resistance range for a 'kill' button. Range minimum and maximum
  215. # comma-separated values must be provided when using analog button.
  216.  
  217. # A virtual sdcard may be useful if the host machine is not fast
  218. # enough to run OctoPrint well. It allows the Klipper host software to
  219. # directly print gcode files stored in a directory on the host using
  220. # standard sdcard G-Code commands (eg, M24).
  221. [virtual_sdcard]
  222. path: ~/.octoprint/uploads/
  223. # The path of the local directory on the host machine to look for
  224. # g-code files. This is a read-only directory (sdcard file writes
  225. # are not supported). One may point this to OctoPrint's upload
  226. # directory (generally ~/.octoprint/uploads/ ). This parameter must
  227. # be provided.
  228.  
  229. # Pause/Resume functionality with support of position capture and restore
  230. [pause_resume]
  231. recover_velocity: 50.
  232. # When capture/restore is enabled, the speed at which to return to
  233. # the captured position (in mm/s). Default is 50.0 mm/s.
  234.  
  235. [gcode_macro M600]
  236. default_parameter_X: 200
  237. default_parameter_Y: 0
  238. default_parameter_Z: 10
  239. gcode:
  240. PAUSE
  241. SET_IDLE_TIMEOUT [TIMEOUT=21600]
  242. G91
  243. G1 E-.8 F2700
  244. G1 Z{Z}
  245. G90
  246. G1 X{X} Y{Y} F3000
  247. G1 E5 F1000
  248. G1 E-100 F1000
  249.  
  250. #[delayed_gcode printer_start]
  251. #initial_duration: 0
  252. #gcode:
  253.  
  254. [board_pins]
  255. aliases:
  256. # EXP1 header
  257. EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
  258. EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
  259. # EXP2 header
  260. EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
  261. EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
  262. # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement