小黑屋|Klipper玩客 ( 桂ICP备13004039号-7 )

GMT+8, 2024-12-22 16:14

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

flsun sr (speed racer) klipper 配置参考

167
1
0
0
铜牌杰瑞 LV8
正文
发布时间:2024-06-26
  1. # This file contains common pin mappings for MKS Robin Nano V3
  2. # boards. To use this config, the firmware should be compiled for the
  3. # stm32f407. When running "make menuconfig", select the 48KiB
  4. # bootloader, and enable "USB for communication".

  5. # The "make flash" command does not work on the MKS Robin. Instead,
  6. # after running "make", copy the generated "out/klipper.bin" file to a
  7. # file named "Robin_nano_v3.bin" on an SD card and then restart the
  8. # MKS Robin with that SD card.

  9. # See docs/Config_Reference.md for a description of parameters.
  10. [include fluidd.cfg]

  11. [exclude_object]


  12. ########################################
  13. # A (X-Stepper) Configuration
  14. ########################################
  15. [stepper_a] # X
  16. step_pin: PE3
  17. dir_pin: PE2
  18. enable_pin: !PE4
  19. microsteps: 16
  20. rotation_distance: 40
  21. full_steps_per_rotation: 200
  22. endstop_pin: ^PA15 #X_MAX
  23. #position_endstop: 336.5
  24. homing_speed: 60
  25. #arm_length: 315

  26. [tmc2209 stepper_a]
  27. uart_pin: PD5
  28. interpolate: true
  29. run_current: 0.90
  30. hold_current: 0.5
  31. sense_resistor: 0.110
  32. stealthchop_threshold: 100

  33. ########################################
  34. # B (Y-Stepper)  Configuration
  35. ########################################
  36. [stepper_b] # Y
  37. step_pin: PE0
  38. dir_pin: PB9
  39. enable_pin: !PE1
  40. microsteps: 16
  41. rotation_distance: 40
  42. full_steps_per_rotation: 200
  43. endstop_pin: ^PD2 #Y_MAX
  44. #position_endstop: 336.5
  45. homing_speed: 60
  46. #arm_length: 315

  47. [tmc2209 stepper_b]
  48. uart_pin: PD7
  49. interpolate: true
  50. run_current: 0.90
  51. hold_current: 0.5
  52. sense_resistor: 0.110
  53. stealthchop_threshold: 100

  54. ########################################
  55. # C (Z-Stepper)  Configuration
  56. ########################################
  57. [stepper_c] # Z
  58. step_pin: PB5
  59. dir_pin: PB4
  60. enable_pin: !PB8
  61. microsteps: 16
  62. rotation_distance: 40
  63. full_steps_per_rotation: 200
  64. endstop_pin: ^PC4 #Z_MAX
  65. #position_endstop: 336.5
  66. homing_speed: 60
  67. #arm_length: 315

  68. [tmc2209 stepper_c]
  69. uart_pin: PD4
  70. interpolate: true
  71. run_current: 0.90
  72. hold_current: 0.5
  73. sense_resistor: 0.110
  74. stealthchop_threshold: 100


  75. [extruder]
  76. step_pin: PD6
  77. dir_pin: !PD3
  78. enable_pin: !PB3
  79. rotation_distance: 7.68
  80. microsteps: 16
  81. nozzle_diameter: 0.400
  82. filament_diameter: 1.750
  83. heater_pin: PE5
  84. sensor_type: Generic 3950
  85. sensor_pin: PC1
  86. #control: pid
  87. #pid_Kp: 14.529
  88. #pid_Ki: 0.557
  89. #pid_Kd: 94.802
  90. min_temp: 0
  91. max_temp: 260

  92. [tmc2209 extruder]
  93. uart_pin: PD9
  94. interpolate: true
  95. run_current: 0.847
  96. hold_current: 0.5
  97. sense_resistor: 0.110
  98. stealthchop_threshold: 100

  99. #[extruder1]
  100. #step_pin: PD15
  101. #dir_pin: !PA1
  102. #enable_pin: !PA3
  103. #heater_pin: PB0
  104. #sensor_pin: PA2
  105. #...

  106. [heater_bed]
  107. heater_pin: PA0
  108. sensor_type: Generic 3950
  109. sensor_pin: PC0
  110. #control: pid
  111. #pid_Kp: 325.10
  112. #pid_Ki: 63.35
  113. #pid_Kd: 417.10
  114. min_temp: 0
  115. max_temp: 120

  116. [fan]
  117. pin: PC14   # fan1
  118. #pin: PB1 # fan2

  119. [heater_fan heatsink_fan] # Heatsink
  120. pin: PB0 #PB1
  121. max_power: 1.0
  122. heater: extruder
  123. heater_temp: 50.0
  124. fan_speed: 1.0

  125. [bed_mesh]
  126. speed: 100
  127. horizontal_move_z: 50
  128. mesh_radius: 125
  129. mesh_origin: 0,0
  130. round_probe_count: 5

  131. [probe]
  132. pin: ^!PC8 #Z_MIN
  133. x_offset: 0
  134. y_offset: 0
  135. #z_offset: 16.705
  136. speed: 20
  137. samples: 5
  138. samples_result: average
  139. sample_retract_dist: 10
  140. samples_tolerance: 0.03
  141. samples_tolerance_retries: 5

  142. [mcu]
  143. serial: /dev/serial/by-id/usb-Klipper_stm32f407 your info here
  144. baud: 250000
  145. restart_method: command

  146. [printer]
  147. kinematics: delta
  148. max_velocity: 2000
  149. max_accel: 2000
  150. max_z_velocity: 2000
  151. minimum_z_position: -1
  152. square_corner_velocity: 15.0
  153. #delta_radius: 130
  154. print_radius: 130
  155. square_corner_velocity: 15.0
  156. #delta_radius: 130
  157. print_radius: 130

  158. [delta_calibrate]
  159. radius: 130
  160. horizontal_move_z: 50
  161. speed: 20

  162. ########################################
  163. # Filament Runout
  164. ########################################

  165. #[filament_switch_sensor my_sensor]
  166. #switch_pin: PA4
  167. #pause_on_runout: true
  168. #   The pin on which the switch is connected. This parameter must be
  169. #   provided.

  170. #runout_gcode:
  171. #   A list of G-Code commands to execute after a filament runout is
  172. #   detected. See docs/Command_Templates.md for G-Code format. If
  173. #   pause_on_runout is set to True this G-Code will run after the
  174. #   PAUSE is complete. The default is not to run any G-Code commands.
  175. #insert_gcode:
  176. #   A list of G-Code commands to execute after a filament insert is
  177. #   detected. See docs/Command_Templates.md for G-Code format. The
  178. #   default is not to run any G-Code commands, which disables insert
  179. #   detection.
  180. #event_delay: 3.0
  181. #   The minimum amount of time in seconds to delay between events.
  182. #   Events triggered during this time period will be silently
  183. #   ignored. The default is 3 seconds.
  184. #pause_delay: 0.5
  185. #   The amount of time to delay, in seconds, between the pause command
  186. #   dispatch and execution of the runout_gcode. It may be useful to
  187. #   increase this delay if OctoPrint exhibits strange pause behavior.
  188. #   Default is 0.5 seconds.

  189. ########################################
  190. # EXP1 / EXP2 (display) pins
  191. ########################################

  192. [board_pins]
  193. aliases:
  194.     # EXP1 header
  195.     EXP1_1=PC5,  EXP1_3=PD13, EXP1_5=PE14, EXP1_7=PD11, EXP1_9=<GND>,
  196.     EXP1_2=PE13, EXP1_4=PC6,  EXP1_6=PE15, EXP1_8=PD10, EXP1_10=<5V>,
  197.     # EXP2 header
  198.     EXP2_1=PA6, EXP2_3=PE8, EXP2_5=PE11, EXP2_7=PE12,  EXP2_9=<GND>,
  199.     EXP2_2=PA5, EXP2_4=PE10, EXP2_6=PA7, EXP2_8=<RST>, EXP2_10=<3.3v>
  200.     # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp1"

  201. # See the sample-lcd.cfg file for definitions of common LCD displays.

  202. [display_status]

  203. [temperature_sensor rpi_temperature]
  204. sensor_type: temperature_host

  205. [temperature_sensor mcu_temperature]
  206. sensor_type: temperature_mcu

  207. [virtual_sdcard]
  208. path:[virtual_sdcard]
  209. path: ~/printer_data/gcodes

  210. [display_status]

  211. [pause_resume]

  212. [gcode_macro PAUSE]
  213. description: Pause the actual running print
  214. rename_existing: PAUSE_BASE
  215. # change this if you need more or less extrusion
  216. variable_extrude: 1.0
  217. gcode:
  218.   ##### read E from pause macro #####
  219.   {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  220.   ##### set park positon for x and y #####
  221.   # default is your max posion from your printer.cfg
  222.   {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  223.   {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  224.   ##### calculate save lift position #####
  225.   {% set max_z = printer.toolhead.axis_maximum.z|float %}
  226.   {% set act_z = printer.toolhead.position.z|float %}
  227.   {% if act_z < (max_z - 2.0) %}
  228.       {% set z_safe = 2.0 %}
  229.   {% else %}
  230.       {% set z_safe = max_z - act_z %}
  231.   {% endif %}
  232.   ##### end of definitions #####
  233.   PAUSE_BASE
  234.   G91
  235.   {% if printer.extruder.can_extrude|lower == 'true' %}
  236.     G1 E-{E} F2100
  237.   {% else %}
  238.     {action_respond_info("Extruder not hot enough")}
  239.   {% endif %}
  240.   {% if "xyz" in printer.toolhead.homed_axes %}
  241.     G1 Z{z_safe} F900
  242.     G90
  243.     G1 X{x_park} Y{y_park} F6000
  244.   {% else %}
  245.     {action_respond_info("Printer not homed")}
  246.   {% endif %}
复制代码


回复

 

全部评论 共 1 个

jj520tss LV2

jj520tss 发表于 2024-9-10 16:52 显示全部楼层

flsun Q5 配置文件有吗?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表