cigarginger

Untitled

Jan 26th, 2025
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.07 KB | None | 0 0
  1. # For the ZNP Robin Nano DW v2.2 board:
  2. # - Compile with the processor model STM32F401.
  3. # - Select the 32KiB bootloader,
  4. # - Select (Serial (on # USART1 PA10/PA9) for the communication interface.
  5. # - Select (Serial (on # USART2 PA3/PA2) if you want to use the serial UART pins on J17 (wifi section)
  6. # Note that the "make flash" command does not work with ZNP Robin boards. After running "make", run the following command:
  7. # cp out/klipper.bin out/ZNP_ROBIN_NANO.bin
  8. #
  9. # Copy the file out/ZNP_ROBIN_NANO.bin to an SD card and then restart the printer with that SD card.
  10. # See docs/Config_Reference.md for a description of parameters.
  11.  
  12. #[include timelapse.cfg]
  13.  
  14. [exclude_object]
  15. [virtual_sdcard]
  16. path: /home/biqu/printer_data/gcodes
  17.  
  18. # [include KAMP_Settings.cfg]
  19.  
  20. [include accessibility.cfg]
  21.  
  22. [include main_macro.cfg]
  23.  
  24. [include testing.cfg]
  25.  
  26. [include pause_resume_cancel.cfg]
  27.  
  28. [pause_resume]
  29.  
  30. [display_status]
  31.  
  32.  
  33. [gcode_macro CANCEL_PRINT]
  34. description: Cancel the actual running print
  35. rename_existing: CANCEL_PRINT_BASE
  36. gcode:
  37. TURN_OFF_HEATERS
  38. CANCEL_PRINT_BASE
  39.  
  40. [gcode_macro PAUSE]
  41. description: Pause the actual running print
  42. rename_existing: PAUSE_BASE
  43. # change this if you need more or less extrusion
  44. variable_extrude: 1.0
  45. gcode:
  46. ##### read E from pause macro #####
  47. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  48. ##### set park positon for x and y #####
  49. # default is your max posion from your printer.cfg
  50. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  51. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  52. ##### calculate save lift position #####
  53. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  54. {% set act_z = printer.toolhead.position.z|float %}
  55. {% if act_z < (max_z - 2.0) %}
  56. {% set z_safe = 2.0 %}
  57. {% else %}
  58. {% set z_safe = max_z - act_z %}
  59. {% endif %}
  60. ##### end of definitions #####
  61. PAUSE_BASE
  62. G91
  63. {% if printer.extruder.can_extrude|lower == 'true' %}
  64. G1 E-{E} F2100
  65. {% else %}
  66. {action_respond_info("Extruder not hot enough")}
  67. {% endif %}
  68. {% if "xyz" in printer.toolhead.homed_axes %}
  69. G1 Z{z_safe} F900
  70. G90
  71. G1 X{x_park} Y{y_park} F6000
  72. {% else %}
  73. {action_respond_info("Printer not homed")}
  74. {% endif %}
  75.  
  76. [gcode_macro RESUME]
  77. description: Resume the actual running print
  78. rename_existing: RESUME_BASE
  79. gcode:
  80. ##### read E from pause macro #####
  81. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  82. #### get VELOCITY parameter if specified ####
  83. {% if 'VELOCITY' in params|upper %}
  84. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  85. {%else %}
  86. {% set get_params = "" %}
  87. {% endif %}
  88. ##### end of definitions #####
  89. {% if printer.extruder.can_extrude|lower == 'true' %}
  90. G91
  91. G1 E{E} F2100
  92. {% else %}
  93. {action_respond_info("Extruder not hot enough")}
  94. {% endif %}
  95. RESUME_BASE {get_params}
  96.  
  97. [mcu]
  98. serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  99. restart_method: command
  100.  
  101. [led LED_Light]
  102. white_pin: PB9
  103. initial_white: 1.0
  104.  
  105. #[output_pin LED_Light] #toggle for LED Light - use this instead of [LED] for sonic pad
  106. #Pin: PB9
  107. #cycle_time: 0.01
  108. #pwm: true
  109. #value: 1
  110.  
  111. [printer]
  112. kinematics: cartesian
  113. max_velocity: 500
  114. max_accel: 3000
  115. max_z_velocity: 15
  116. max_z_accel: 100
  117. square_corner_velocity: 5
  118. # Use those higher values just to configure Input Shaper
  119. #max_accel: 10000
  120. #max_accel_to_decel: 10000
  121.  
  122. [stepper_x]
  123. step_pin: !PC12
  124. dir_pin: PB3
  125. enable_pin: !PD2
  126. microsteps: 16
  127. rotation_distance: 40
  128. endstop_pin: PA13
  129. position_endstop: -6.0
  130. position_min: -6
  131. position_max: 235
  132. homing_speed: 50
  133.  
  134. [stepper_y]
  135. step_pin: PC11
  136. dir_pin: PA15
  137. enable_pin: !PC10
  138. microsteps: 16
  139. rotation_distance: 40
  140. endstop_pin: PB8
  141. position_endstop: 0
  142. position_max: 235
  143. homing_speed: 50
  144.  
  145. [stepper_z]
  146. step_pin: PC7
  147. dir_pin: !PC9
  148. enable_pin: !PC8
  149. rotation_distance: 8
  150. microsteps: 16
  151. position_min: -2
  152. position_max: 280
  153. endstop_pin: probe:z_virtual_endstop # Use Z- as endstop
  154. homing_speed: 5.0
  155.  
  156.  
  157. [extruder]
  158. max_extrude_only_distance: 100.0
  159. step_pin: PB10
  160. dir_pin: PB1
  161. enable_pin: !PC6
  162. microsteps: 16
  163. nozzle_diameter: 0.400
  164. filament_diameter: 1.750
  165. heater_pin: PA6
  166. sensor_type: EPCOS 100K B57560G104F
  167. sensor_pin: PC1
  168. min_temp: 0
  169. max_temp: 250
  170. # Calibrate E-Steps https://www.klipper3d.org/Rotation_Distance.html#calibrating-rotation_distance-on-extruders
  171. rotation_distance: 6.9
  172. # Calibrate PID: https://www.klipper3d.org/Config_checks.html#calibrate-pid-settings
  173. # - Example: PID_CALIBRATE HEATER=extruder TARGET=200
  174. control = pid
  175. pid_kp = 30.356
  176. pid_ki = 1.857
  177. pid_kd = 124.081
  178. # Calibrate PA: https://www.klipper3d.org/Pressure_Advance.html
  179. #pressure_advance = 0.600
  180.  
  181. [heater_bed]
  182. heater_pin: PA5
  183. sensor_type: EPCOS 100K B57560G104F
  184. sensor_pin: PC0
  185. pwm_cycle_time: 0.020 # set to 0.0166 if your grid runs on 60Hz to fix lights flickering
  186. max_temp: 110
  187. min_temp: 0
  188. # Calibrate PID: https://www.klipper3d.org/Config_checks.html#calibrate-pid-settings
  189. # - Example: PID_CALIBRATE HEATER=heater_bed TARGET=60
  190. control = pid
  191. pid_kp = 64.230
  192. pid_ki = 0.723
  193. pid_kd = 1425.905
  194.  
  195. [heater_fan hotend_fan]
  196. pin: PB0
  197. heater: extruder
  198. heater_temp: 50.0
  199.  
  200. [fan]
  201. pin: PA7
  202.  
  203. [force_move]
  204. enable_force_move: True
  205.  
  206. #[safe_z_home]
  207. #home_xy_position: 117.5, 117.5
  208. #z_hop: 10
  209.  
  210. [probe]
  211. pin: ^PA8
  212. speed: 5
  213. lift_speed: 15
  214. samples: 1
  215. x_offset: -28
  216. y_offset: 20
  217. # Calibrate probe: https://www.klipper3d.org/Bed_Level.html
  218. # - Example: PROBE_CALIBRATE, then adjust with TESTZ Z=+/-X
  219. #z_offset = -0.100
  220.  
  221. [filament_switch_sensor filament_sensor]
  222. pause_on_runout: true
  223. switch_pin: PB4
  224.  
  225. [bed_mesh]
  226. speed: 300
  227. horizontal_move_z: 5.0
  228. mesh_min: 30,30
  229. mesh_max: 205,205
  230. probe_count: 6,6
  231. algorithm: bicubic
  232. fade_start: 1
  233. fade_end: 10
  234. fade_target: 0
  235.  
  236. [input_shaper]
  237. # Calibrate IS: https://www.klipper3d.org/Resonance_Compensation.html
  238. shaper_type_y = mzv
  239. shaper_freq_y = 38.2
  240. shaper_type_x = ei
  241. shaper_freq_x = 79.6
  242.  
  243. [temperature_sensor raspberry_pi]
  244. sensor_type: temperature_host
  245. #min_temp: 10
  246. #max_temp: 105
  247.  
  248. [temperature_sensor mcu_temp]
  249. sensor_type: temperature_mcu
  250. sensor_temperature1: 25
  251. sensor_adc1: 0.210317
  252. #min_temp: 0
  253. #max_temp: 105
  254.  
  255. [gcode_macro M420]
  256. description: Load the current mesh
  257. gcode:
  258. BED_MESH_PROFILE LOAD=default
  259.  
  260. [gcode_macro G29]
  261. description: creates automated homing and bed mesh
  262. gcode:
  263. G28
  264. BED_MESH_CALIBRATE
  265. DATA_SAVE
  266.  
  267. #*# <---------------------- SAVE_CONFIG ---------------------->
  268. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  269. #*#
  270. #*# [probe]
  271. #*# z_offset = 1.075
  272. #*#
  273. #*# [bed_mesh default]
  274. #*# version = 1
  275. #*# points =
  276. #*# 0.020000, 0.105000, 0.127500, 0.070000
  277. #*# -0.067500, 0.025000, 0.077500, 0.037500
  278. #*# -0.117500, -0.020000, 0.042500, 0.005000
  279. #*# -0.195000, -0.072500, 0.007500, -0.002500
  280. #*# tension = 0.2
  281. #*# min_x = 45.0
  282. #*# algo = bicubic
  283. #*# y_count = 4
  284. #*# mesh_y_pps = 2
  285. #*# min_y = 20.0
  286. #*# x_count = 4
  287. #*# max_y = 200.0
  288. #*# mesh_x_pps = 2
  289. #*# max_x = 199.97
Advertisement
Add Comment
Please, Sign In to add comment