Advertisement
Guest User

klipper

a guest
Jul 18th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.20 KB | None | 0 0
  1. # This file contains common pin mappings for Smoothieboard. To use
  2. # this config, the firmware should be compiled for the LPC176x.
  3.  
  4. # The "make flash" command does not work on the Smoothieboard.
  5. # Instead, after running "make", copy the generated "out/klipper.bin"
  6. # file to a file named "firmware.bin" on an SD card and then restart
  7. # the Smoothieboard with that SD card.
  8.  
  9. # See the example.cfg file for a description of available parameters.
  10.  
  11. [stepper_x]
  12. step_pin: P2.0
  13. # dir_pin: P0.5 # without TMC2130
  14. dir_pin: !P0.5
  15. enable_pin: !P0.4
  16. step_distance: 0.00625
  17. endstop_pin: ^!P1.24
  18. # endstop_pin: tmc2130_stepper_x:virtual_endstop
  19. position_endstop: -23.5
  20. position_min: -23.5
  21. position_max: 240
  22. homing_speed: 70
  23. # homing_retract_dist=0
  24.  
  25. [tmc2130 stepper_x]
  26. cs_pin: P1.22
  27. microsteps: 32
  28. interpolate: True
  29. # run_current: 0.85
  30. run_current: 0.9
  31. # hold_current: 0.133194589
  32. hold_current: 0.4
  33. #sense_resistor: 0.110
  34. stealthchop_threshold: 100
  35. #driver_IHOLDDELAY: 8
  36. #driver_TPOWERDOWN: 0
  37. #driver_BLANK_TIME_SELECT: 1
  38. #driver_TOFF: 4
  39. #driver_HEND: 7
  40. #driver_HSTRT: 0
  41. #driver_PWM_AUTOSCALE: True
  42. #driver_PWM_FREQ: 1
  43. #driver_PWM_GRAD: 4
  44. #driver_PWM_AMPL: 128
  45. driver_SGT: 4
  46. diag1_pin: ^!P1.25
  47.  
  48. [stepper_y]
  49. step_pin: P2.1
  50. # dir_pin: P0.11 # without TMC2130
  51. dir_pin: !P0.11
  52. enable_pin: !P0.10
  53. step_distance: 0.00625
  54. endstop_pin: ^!P1.26
  55. # endstop_pin: tmc2130_stepper_y:virtual_endstop
  56. position_endstop: -14.5
  57. position_min: -14.5
  58. position_max: 210.5
  59. homing_speed: 70
  60. # homing_retract_dist=0
  61.  
  62. [tmc2130 stepper_y]
  63. cs_pin: P1.23
  64. microsteps: 32
  65. interpolate: True
  66. # run_current: 0.85
  67. run_current: 0.9
  68. # hold_current: 0.133194589
  69. hold_current: 0.4
  70. #sense_resistor: 0.110
  71. stealthchop_threshold: 70
  72. #driver_IHOLDDELAY: 8
  73. #driver_TPOWERDOWN: 0
  74. #driver_BLANK_TIME_SELECT: 1
  75. #driver_TOFF: 4
  76. #driver_HEND: 7
  77. #driver_HSTRT: 0
  78. #driver_PWM_AUTOSCALE: True
  79. #driver_PWM_FREQ: 1
  80. #driver_PWM_GRAD: 4
  81. #driver_PWM_AMPL: 128
  82. driver_SGT: 4
  83. diag1_pin: ^!P1.27
  84.  
  85. [stepper_z]
  86. step_pin: P2.2
  87. # dir_pin: !P0.20 # without TMC2130
  88. dir_pin: P0.20
  89. enable_pin: !P0.19
  90. step_distance: 0.000125 # 32 bit
  91. # step_distance: 0.000250 # 16 bit
  92. endstop_pin: ^!P1.28
  93. # endstop_pin: tmc2130_stepper_z:virtual_endstop # not an option for z yet
  94. position_endstop: 0
  95. position_min: 0
  96. position_max: 205
  97. homing_speed: 4
  98. # homing_retract_dist=0
  99.  
  100. [tmc2130 stepper_z]
  101. cs_pin: P2.12
  102. microsteps: 32
  103. interpolate: True
  104. # run_current: 0.85
  105. run_current: 0.9
  106. # hold_current: 0.133194589
  107. hold_current: 0.4
  108. #sense_resistor: 0.110
  109. stealthchop_threshold: 2
  110. #driver_IHOLDDELAY: 8
  111. #driver_TPOWERDOWN: 0
  112. #driver_BLANK_TIME_SELECT: 1
  113. #driver_TOFF: 4
  114. #driver_HEND: 7
  115. #driver_HSTRT: 0
  116. #driver_PWM_AUTOSCALE: True
  117. #driver_PWM_FREQ: 1
  118. #driver_PWM_GRAD: 4
  119. #driver_PWM_AMPL: 128
  120. driver_SGT: 2
  121. diag1_pin: ^!P1.29
  122.  
  123. [extruder]
  124. step_pin: P2.3
  125. # dir_pin: P0.22 # without TMC2130
  126. dir_pin: !P0.22
  127. enable_pin: !P0.21
  128. # step_distance: 0.003278689 # Toolson Extruder
  129. step_distance: 0.001564945
  130. nozzle_diameter: 0.4 # never forget to change that!
  131. filament_diameter: 1.750
  132. pressure_advance: 0.0
  133. #pressure_advance: 0.225
  134. pressure_advance_lookahead_time: 0.010
  135. heater_pin: P2.7
  136. sensor_type: NTC 100K beta 3950
  137. sensor_pin: P0.23
  138. control: pid
  139. pid_Kp: 21.238
  140. pid_Ki: 1.253
  141. pid_Kd: 89.994
  142. min_temp: 0
  143. max_temp: 235
  144. min_extrude_temp: 150
  145.  
  146. [tmc2130 extruder]
  147. cs_pin: P2.11
  148. microsteps: 32
  149. interpolate: True
  150. # run_current: 0.85
  151. run_current: 0.9
  152. # hold_current: 0.133194589
  153. hold_current: 0.4
  154. #sense_resistor: 0.110
  155. stealthchop_threshold: 30
  156. #driver_IHOLDDELAY: 8
  157. #driver_TPOWERDOWN: 0
  158. #driver_BLANK_TIME_SELECT: 1
  159. #driver_TOFF: 4
  160. #driver_HEND: 7
  161. #driver_HSTRT: 0
  162. #driver_PWM_AUTOSCALE: True
  163. #driver_PWM_FREQ: 1
  164. #driver_PWM_GRAD: 4
  165. #driver_PWM_AMPL: 128
  166. #driver_SGT: 0
  167. #diag1_pin:
  168.  
  169. [heater_fan hotend_fan]
  170. pin: P2.6
  171. max_power: 1.0
  172. shutdown_speed: 0.0
  173. cycle_time: 0.010
  174. hardware_pwm: False ; MKS SBase doesn't have hw pwm on this pin
  175. kick_start_time: 0.100
  176. heater: extruder
  177. heater_temp: 50.0
  178. fan_speed: 1.0
  179.  
  180. [heater_bed]
  181. heater_pin: P2.5
  182. sensor_type: NTC 100K beta 3950
  183. sensor_pin: P0.24
  184. control: pid
  185. pid_Kp: 67.973
  186. pid_Ki: 2.050
  187. pid_Kd: 563.323
  188. min_temp: 0
  189. max_temp: 120
  190.  
  191. [fan]
  192. pin: P2.4
  193. max_power: 1.0
  194. shutdown_speed: 0.0
  195. cycle_time: 0.010
  196. hardware_pwm: False ; MKS SBase doesn't have hw pwm on this pin
  197. kick_start_time: 0.100
  198.  
  199. [mcu]
  200. #serial: /dev/ttyACM0
  201. serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
  202. baud: 250000
  203. restart_method: command
  204.  
  205. [printer]
  206. kinematics: cartesian
  207. # max_velocity: 400
  208. max_velocity: 500
  209. max_accel: 1000
  210. max_accel_to_decel: 700
  211. # max_z_velocity: 8
  212. # max_z_accel: 50
  213. max_z_velocity: 12
  214. max_z_accel: 60
  215.  
  216. [static_digital_output leds]
  217. pins: P1.18, P1.19, P1.20, P1.21, P4.28
  218.  
  219. # "RepRapDiscount 128x64 Full Graphic Smart Controller" type displays
  220. [display]
  221. lcd_type: st7920
  222. cs_pin: P0.16
  223. sclk_pin: P0.2
  224. sid_pin: P0.3
  225. encoder_pins: ^P3.25, ^P3.26
  226. click_pin: ^!P1.30
  227.  
  228. [static_digital_output beeper]
  229. pins: !P1.31
  230.  
  231. #[mcp4451 stepper_digipot1]
  232. #i2c_address: 88
  233. # Scale the config so that wiper values can be specified in amps.
  234. #scale: 2.25
  235. # wiper 0 is X (aka alpha), 1 is Y, 2 is Z, 3 is E0
  236. #wiper_0: 1.2
  237. #wiper_1: 1.2
  238. #wiper_2: 1.2
  239. #wiper_3: 1.2
  240.  
  241. #[mcp4451 stepper_digipot2]
  242. #i2c_address: 90
  243. #scale: 2.25
  244. # wiper 0 is E1
  245. #wiper_0: 1.0
  246.  
  247. [gcode_macro G10]
  248. gcode:
  249. M83
  250. G1 E-0.75 F4000
  251. M82
  252.  
  253. [gcode_macro G11]
  254. gcode:
  255. M83
  256. G1 E0.75 F500
  257. M82
  258.  
  259. [gcode_macro unload_filament]
  260. gcode:
  261. M109 S205 ; heat up to 215 deg
  262. G91 ; relative positioning
  263. G1 E1
  264. G1 E-50 F300
  265. ; I wished there was a better way to do that
  266. G1 E-50 F2000
  267. G1 E-50 F2000
  268. G1 E-50 F2000
  269. G1 E-50 F2000
  270. G1 E-50 F2000
  271. G1 E-50 F2000
  272. G1 E-50 F2000
  273. G1 E-50 F300
  274. G1 E-50 F300
  275. G90 ; absolute positioning
  276. M104 S0 ; turn heater off
  277.  
  278. [gcode_macro load_filament]
  279. gcode:
  280. M109 S205 ; heat up to 215 deg
  281. G91 ; relative positioning
  282. G1 E50 F300
  283. ; I wished there was a better way to do that
  284. G1 E50 F2000
  285. G1 E50 F2000
  286. G1 E50 F2000
  287. G1 E50 F2000
  288. G1 E50 F2000
  289. G1 E50 F2000
  290. G1 E50 F2000
  291. G1 E50 F300
  292. G1 E50 F300
  293. G90 ; absolute positioning
  294. M104 S0 ; turn heater off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement