Guest User

Klipper ender7 sonic pad

a guest
Jan 10th, 2024
977
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.94 KB | None | 0 0
  1. # !Ender-7
  2. # printer_size: 250x250x300
  3. # version: 3.4
  4. # This file contains pin mappings for the stock 2021 Creality Ender 7.
  5. # To use this config, during "make menuconfig" select the
  6. # STM32F103 with a "28KiB bootloader" and serial (on USART1 PA10/PA9)
  7. # communication.
  8.  
  9. # Flash this firmware by copying "out/klipper.bin" to a SD card and
  10. # turning on the printer with the card inserted. The firmware
  11. # filename must end in ".bin" and must not match the last filename
  12. # that was flashed.
  13.  
  14. # See docs/Config_Reference.md for a description of parameters.
  15.  
  16. ###fluidd set
  17. [virtual_sdcard]
  18. path: ~/gcode_files
  19.  
  20. [display_status]
  21.  
  22. [pause_resume]
  23.  
  24. [gcode_macro PAUSE]
  25. description: Pause the actual running print
  26. rename_existing: PAUSE_BASE
  27. # change this if you need more or less extrusion
  28. variable_extrude: 1.0
  29. gcode:
  30. ##### read E from pause macro #####
  31. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  32. ##### set park positon for x and y #####
  33. # default is your max posion from your printer.cfg
  34. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  35. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  36. ##### calculate save lift position #####
  37. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  38. {% set act_z = printer.toolhead.position.z|float %}
  39. {% if act_z < (max_z - 2.0) %}
  40. {% set z_safe = 2.0 %}
  41. {% else %}
  42. {% set z_safe = max_z - act_z %}
  43. {% endif %}
  44. ##### end of definitions #####
  45. PAUSE_BASE
  46. G91
  47. {% if printer.extruder.can_extrude|lower == 'true' %}
  48. G1 E-{E} F2100
  49. {% else %}
  50. {action_respond_info("Extruder not hot enough")}
  51. {% endif %}
  52. {% if "xyz" in printer.toolhead.homed_axes %}
  53. G1 Z{z_safe} F900
  54. G90
  55. G1 X{x_park} Y{y_park} F6000
  56. {% else %}
  57. {action_respond_info("Printer not homed")}
  58. {% endif %}
  59.  
  60. [gcode_macro RESUME]
  61. description: Resume the actual running print
  62. rename_existing: RESUME_BASE
  63. gcode:
  64. ##### read E from pause macro #####
  65. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  66. #### get VELOCITY parameter if specified ####
  67. {% if 'VELOCITY' in params|upper %}
  68. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  69. {%else %}
  70. {% set get_params = "" %}
  71. {% endif %}
  72. ##### end of definitions #####
  73. {% if printer.extruder.can_extrude|lower == 'true' %}
  74. G91
  75. G1 E{E} F2100
  76. {% else %}
  77. {action_respond_info("Extruder not hot enough")}
  78. {% endif %}
  79. RESUME_BASE {get_params}
  80.  
  81. [gcode_macro CANCEL_PRINT]
  82. description: Cancel the actual running print
  83. rename_existing: CANCEL_PRINT_BASE
  84. gcode:
  85. TURN_OFF_HEATERS
  86. {% if "xyz" in printer.toolhead.homed_axes %}
  87. G91
  88. G1 Z4.5 F300
  89. G90
  90. {% else %}
  91. {action_respond_info("Printer not homed")}
  92. {% endif %}
  93. G28 X Y
  94. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  95. G1 Y{y_park} F2000
  96. M84
  97. CANCEL_PRINT_BASE
  98.  
  99. [stepper_x]
  100. step_pin: PC2
  101. dir_pin: PB9
  102. enable_pin: !PC3
  103. microsteps: 32
  104. rotation_distance: 32
  105. endstop_pin: ^PA5
  106. position_endstop: 0
  107. position_max: 260
  108. homing_speed: 80
  109.  
  110. [stepper_y]
  111. step_pin: PB8
  112. dir_pin: !PB7
  113. enable_pin: !PC3
  114. microsteps: 32
  115. rotation_distance: 32
  116. endstop_pin: ^PA6
  117. position_endstop: 260
  118. position_max: 260
  119. homing_speed: 80
  120.  
  121. [stepper_z]
  122. step_pin: PB6
  123. dir_pin: PB5
  124. enable_pin: !PC3
  125. microsteps: 16
  126. rotation_distance: 8
  127. endstop_pin: ^PA7
  128. position_endstop: 0.0
  129. position_max: 300
  130.  
  131. [extruder]
  132. pressure_advance : 0.520
  133. max_extrude_only_distance: 1000.0
  134. step_pin: PB4
  135. dir_pin: !PB3
  136. enable_pin: !PC3
  137. microsteps: 16
  138. rotation_distance: 22.84
  139. nozzle_diameter: 0.400
  140. filament_diameter: 1.750
  141. heater_pin: PA1
  142. sensor_type: EPCOS 100K B57560G104F
  143. sensor_pin: PC5
  144. control: pid
  145. # tuned for stock hardware with 200 degree Celsius target
  146. pid_kp: 19.028
  147. pid_ki: 0.919
  148. pid_kd: 98.472
  149. min_temp: 0
  150. max_temp: 265
  151.  
  152. [heater_bed]
  153. heater_pin: PA15
  154. sensor_type: EPCOS 100K B57560G104F
  155. sensor_pin: PC4
  156. control: pid
  157. # tuned for stock hardware with 50 degree Celsius target
  158. pid_kp: 74.146
  159. pid_ki: 1.521
  160. pid_kd: 903.658
  161. min_temp: 0
  162. max_temp: 130
  163.  
  164. [bed_screws]
  165. screw1: 25, 33
  166. screw2: 230, 33
  167. screw3: 230, 230
  168. screw4: 25, 230
  169.  
  170. [fan]
  171. pin: PA0
  172.  
  173. [fan_generic extruder_partfan]
  174. pin: PC6
  175.  
  176. [mcu]
  177. serial:/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  178. restart_method: command
  179.  
  180. [mcu rpi]
  181. serial: /tmp/klipper_host_mcu
  182.  
  183. [adxl345]
  184. cs_pin: rpi:None
  185. spi_speed: 2000000
  186. spi_bus: spidev2.0
  187.  
  188. [resonance_tester]
  189. accel_chip: adxl345
  190. accel_per_hz: 70
  191. probe_points:
  192. 125,125,10
  193.  
  194. [input_shaper]
  195. shaper_type_x = 2hump_ei
  196. shaper_freq_x = 118.8
  197. shaper_type_y = mzv
  198. shaper_freq_y = 59.4
  199.  
  200. [filament_switch_sensor filament_sensor]
  201. pause_on_runout: true
  202. switch_pin: !PA4
  203.  
  204. [printer]
  205. kinematics: corexy
  206. max_velocity: 500
  207. max_accel: 5000
  208. max_z_velocity: 10
  209. max_z_accel: 1000
  210. square_corner_velocity: 5.0
  211.  
  212. [include timelapse.cfg]
  213.  
  214. [gcode_arcs]
  215. #resolution: 1.0
  216.  
  217. [gcode_macro G29]
  218. gcode:
  219. G28
  220. bed_mesh_calibrate
  221. G1 X0 Y0 Z10 F4200
Advertisement
Add Comment
Please, Sign In to add comment