Advertisement
MysticManVP

Coreception/elf BLtouch Mainsail klipper

Dec 11th, 2020
1,879
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.46 KB | None | 0 0
  1. # This file contains common pin mappings for MKS Robin Nano (v1.2.004)
  2. # boards. To use this config, the firmware should be compiled for the
  3. # STM32F103. When running "make menuconfig", enable "extra low-level
  4. # configuration setup", select the 28KiB bootloader, disable "USB for
  5. # communication", and select USART3 for the "Serial Port".
  6.  
  7. # Note that the "make flash" command does not work with MKS Robin
  8. # boards. After running "make", run the following command:
  9. # ./scripts/update_mks_robin.py out/klipper.bin out/Robin_nano.bin
  10. # Copy the file out/Robin_nano.bin to an SD card and then restart the
  11. # printer with that SD card.
  12.  
  13. # See docs/Config_Reference.md for a description of parameters.
  14.  
  15. [stepper_x]
  16. step_pin: PE3
  17. dir_pin: PE2
  18. enable_pin: !PE4
  19. step_distance: .0125
  20. endstop_pin: PA15
  21. position_endstop: 300
  22. position_max: 300
  23. homing_speed: 50
  24.  
  25. [stepper_y]
  26. step_pin: PE0
  27. dir_pin: PB9
  28. enable_pin: !PE1
  29. step_distance: .0125
  30. endstop_pin: PA12
  31. position_endstop: 300
  32. position_max: 300
  33. homing_speed: 50
  34.  
  35. [stepper_z]
  36. step_pin: PB5
  37. dir_pin: PB4
  38. enable_pin: !PB8
  39. step_distance: .0025
  40. endstop_pin:probe:z_virtual_endstop
  41. position_min:-3.5
  42. position_max: 354
  43.  
  44. [stepper_z1]
  45. step_pin: PA6
  46. dir_pin: PA1
  47. enable_pin: !PA3
  48. step_distance: 0.0025
  49. #endstop_pin: PA11
  50.  
  51. [extruder]
  52. max_extrude_cross_section: 50.0
  53. step_pin: PD6
  54. max_extrude_only_distance: 250
  55. dir_pin: !PD3
  56. enable_pin: !PB3
  57. step_distance: .0024602
  58. nozzle_diameter: 0.400
  59. filament_diameter: 1.750
  60. heater_pin: PC3
  61. sensor_type: EPCOS 100K B57560G104F
  62. sensor_pin: PC1
  63. control: pid
  64. pid_Kp=22.546
  65. pid_Ki=1.022
  66. pid_Kd=124.285
  67. #pressure_advance: 0.096
  68. min_temp: 0
  69. max_temp: 300
  70.  
  71.  
  72. [heater_bed]
  73. heater_pin: PA0
  74. sensor_type: ATC Semitec 104GT-2
  75. sensor_pin: PC0
  76. control: pid
  77. pid_Kp=70.173
  78. pid_Ki=1.172
  79. pid_Kd=1049.965
  80. min_temp: 0
  81. max_temp: 130
  82.  
  83. [fan]
  84. pin: PB1
  85.  
  86. [mcu]
  87. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  88. restart_method: command
  89.  
  90. [printer]
  91. kinematics: corexy
  92. max_velocity: 200
  93. max_accel: 5000
  94. max_z_velocity: 20
  95. max_z_accel: 100
  96. square_corner_velocity: 5
  97. max_accel_to_decel: 2500
  98.  
  99. [virtual_sdcard]
  100. path: /home/pi/sdcard
  101.  
  102.  
  103. ########################################
  104. # TMC2208 configuration
  105. ########################################
  106.  
  107. # For TMC2208 UART
  108. # 1) Remove all of the jumpers below the stepper drivers
  109. # 2) Place jumpers on the red pin headers labeled XUART (XUART, YUART etc.)
  110.  
  111. [bed_screws]
  112. screw1: 30,30
  113. screw2: 270,30
  114. screw3: 270,270
  115. screw4: 30,270
  116.  
  117. [output_pin power]
  118. pin:PB2
  119. value: 1.0
  120. shutdown_value: 0.0
  121.  
  122. [gcode_arcs]
  123. resolution: 0.05
  124.  
  125. #[tmc2208 stepper_z]
  126. #microsteps: 16
  127. #run_current: 0.650
  128. #hold_current: 0.450
  129. #stealthchop_threshold: 30
  130.  
  131. #[tmc2208 extruder]
  132. #microsteps: 16
  133. #run_current: 0.800
  134. #hold_current: 0.500
  135. #stealthchop_threshold: 5
  136.  
  137. #[tmc2208 extruder1]
  138. #uart_pin: P1.1
  139. #microsteps: 16
  140. #run_current: 0.800
  141. #hold_current: 0.500
  142. #stealthchop_threshold: 5
  143.  
  144.  
  145. ########################################
  146. # TMC2130 configuration
  147. ########################################
  148.  
  149. # For TMC SPI
  150. # 1) Place jumpers on all the red pin headers under the stepper drivers
  151. # 2) Remove jumpers from the red pin headers labeled XUART (XUART, YUART etc.)
  152.  
  153. #[tmc2130 stepper_x]
  154. #cs_pin: P1.17
  155. #spi_software_miso_pin: P0.5
  156. #spi_software_mosi_pin: P4.28
  157. #spi_software_sclk_pin: P0.4
  158. ##diag1_pin: P1.29
  159. #microsteps: 16
  160. #run_current: 0.800
  161. #hold_current: 0.500
  162. #stealthchop_threshold: 250
  163.  
  164. #[tmc2130 stepper_y]
  165. #cs_pin: P1.15
  166. #spi_software_miso_pin: P0.5
  167. #spi_software_mosi_pin: P4.28
  168. #spi_software_sclk_pin: P0.4
  169. ##diag1_pin: P1.27
  170. #microsteps: 16
  171. #run_current: 0.800
  172. #hold_current: 0.500
  173. #stealthchop_threshold: 250
  174.  
  175. #[tmc2130 stepper_z]
  176. #cs_pin: P1.10
  177. #spi_software_miso_pin: P0.5
  178. #spi_software_mosi_pin: P4.28
  179. #spi_software_sclk_pin: P0.4
  180. ##diag1_pin: P1.25
  181. #microsteps: 16
  182. #run_current: 0.650
  183. #hold_current: 0.450
  184. #stealthchop_threshold: 30
  185.  
  186. #[tmc2130 extruder]
  187. #cs_pin: P1.8
  188. #spi_software_miso_pin: P0.5
  189. #spi_software_mosi_pin: P4.28
  190. #spi_software_sclk_pin: P0.4
  191. ##diag1_pin: P1.28
  192. #microsteps: 16
  193. #run_current: 0.800
  194. #hold_current: 0.500
  195. #stealthchop_threshold: 5
  196.  
  197. #[tmc2130 extruder1]
  198. #cs_pin: P1.1
  199. #spi_software_miso_pin: P0.5
  200. #spi_software_mosi_pin: P4.28
  201. #spi_software_sclk_pin: P0.4
  202. ##diag1_pin: P1.26
  203. #microsteps: 16
  204. #run_current: 0.800
  205. #hold_current: 0.500
  206. #stealthchop_threshold: 5
  207.  
  208. [gcode_macro G29]
  209. gcode:
  210. BED_MESH_CALIBRATE
  211.  
  212. [bltouch]
  213. sensor_pin: PA11
  214. control_pin: PA8
  215. x_offset: 0
  216. y_offset: -20
  217. z_offset: 0.700
  218. pin_move_time: 0.4
  219. probe_with_touch_mode: True
  220.  
  221.  
  222. [safe_z_home]
  223. home_xy_position: 150,150
  224. speed: 50
  225. z_hop: 10
  226. z_hop_speed: 5
  227.  
  228. [bed_mesh]
  229. speed: 100
  230. mesh_min: 43,20
  231. mesh_max: 280,250
  232. probe_count: 5,5
  233. mesh_pps: 2,2
  234. algorithm: bicubic
  235. bicubic_tension: 0.2
  236. move_check_distance: 3.0
  237. split_delta_z: .010
  238. fade_start: 1.0
  239. fade_end: 5.0
  240.  
  241. [static_digital_output reset_display]
  242. pins: !PC6, !PD13
  243.  
  244. [z_tilt]
  245. z_positions:
  246. 270,175
  247. 30,175
  248. points:
  249. 30,175
  250. 270,175
  251. speed: 100
  252. horizontal_move_z: 6
  253. retries: 5
  254. retry_tolerance: 0.01
  255.  
  256. [include mainsail.cfg]
  257.  
  258. [gcode_macro PAUSE]
  259. rename_existing: BASE_PAUSE
  260. default_parameter_X: 265 #edit to your park position
  261. default_parameter_Y: 50 #edit to your park position
  262. default_parameter_Z: 10 #edit to your park position
  263. default_parameter_E: 2 #edit to your retract length
  264. gcode:
  265. SAVE_GCODE_STATE NAME=PAUSE_state
  266. BASE_PAUSE
  267. G91
  268. G1 E-{E} F2100
  269. G1 Z{Z}
  270. G90
  271. G1 X{X} Y{Y} F6000
  272.  
  273. [gcode_macro RESUME]
  274. rename_existing: BASE_RESUME
  275. default_parameter_E: 2 #edit to your retract length
  276. gcode:
  277. G91
  278. G1 E{E} F2100
  279. G90
  280. RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
  281. BASE_RESUME
  282.  
  283. [gcode_macro CANCEL_PRINT]
  284. rename_existing: BASE_CANCEL_PRINT
  285. gcode:
  286. TURN_OFF_HEATERS
  287. CLEAR_PAUSE
  288. SDCARD_RESET_FILE
  289. BASE_CANCEL_PRINT
  290.  
  291. [gcode_macro BED_MESH_CALIBRATE]
  292. rename_existing: BASE_BED_MESH_CALIBRATE
  293. gcode:
  294. #before the original gcode
  295. BED_MESH_CLEAR
  296. QUAD_GANTRY_LEVEL
  297. G1 X125 Y125 Z5 F6000
  298. #the original gcode
  299. BASE_BED_MESH_CALIBRATE
  300. #after the original gcod
  301. #*# <---------------------- SAVE_CONFIG ---------------------->
  302. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  303.  
  304. #*# <---------------------- SAVE_CONFIG ---------------------->
  305. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  306. #*#
  307. #*# [bltouch]
  308. #*# z_offset = 0.700
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement