Advertisement
Guest User

Untitled

a guest
Mar 6th, 2025
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.09 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] #comment out for Sonic pad
  15. [virtual_sdcard]
  16. path: ~/printer_data/gcodes
  17.  
  18. [pause_resume]
  19.  
  20. [display_status]
  21.  
  22. [gcode_macro CANCEL_PRINT]
  23. description: Cancel the actual running print
  24. rename_existing: CANCEL_PRINT_BASE
  25. gcode:
  26. TURN_OFF_HEATERS
  27. CANCEL_PRINT_BASE
  28.  
  29. [gcode_macro PAUSE]
  30. description: Pause the actual running print
  31. rename_existing: PAUSE_BASE
  32. # change this if you need more or less extrusion
  33. variable_extrude: 1.0
  34. gcode:
  35. ##### read E from pause macro #####
  36. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  37. ##### set park positon for x and y #####
  38. # default is your max posion from your printer.cfg
  39. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  40. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  41. ##### calculate save lift position #####
  42. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  43. {% set act_z = printer.toolhead.position.z|float %}
  44. {% if act_z < (max_z - 2.0) %}
  45. {% set z_safe = 2.0 %}
  46. {% else %}
  47. {% set z_safe = max_z - act_z %}
  48. {% endif %}
  49. ##### end of definitions #####
  50. PAUSE_BASE
  51. G91
  52. {% if printer.extruder.can_extrude|lower == 'true' %}
  53. G1 E-{E} F2100
  54. {% else %}
  55. {action_respond_info("Extruder not hot enough")}
  56. {% endif %}
  57. {% if "xyz" in printer.toolhead.homed_axes %}
  58. G1 Z{z_safe} F900
  59. G90
  60. G1 X{x_park} Y{y_park} F6000
  61. {% else %}
  62. {action_respond_info("Printer not homed")}
  63. {% endif %}
  64.  
  65. [gcode_macro RESUME]
  66. description: Resume the actual running print
  67. rename_existing: RESUME_BASE
  68. gcode:
  69. ##### read E from pause macro #####
  70. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  71. #### get VELOCITY parameter if specified ####
  72. {% if 'VELOCITY' in params|upper %}
  73. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  74. {%else %}
  75. {% set get_params = "" %}
  76. {% endif %}
  77. ##### end of definitions #####
  78. {% if printer.extruder.can_extrude|lower == 'true' %}
  79. G91
  80. G1 E{E} F2100
  81. {% else %}
  82. {action_respond_info("Extruder not hot enough")}
  83. {% endif %}
  84. RESUME_BASE {get_params}
  85.  
  86. [gcode_macro MANUAL_LEVEL]
  87. description: Home and measure for maunual leveling adjustments
  88. gcode:
  89. G28
  90. SCREWS_TILT_CALCULATE
  91. G90
  92. G1 F3000 X213 Y213 Z25
  93.  
  94. [mcu]
  95. serial: /dev/ttyUSB0
  96. restart_method: command
  97.  
  98. [led LED_Light]
  99. white_pin: PB9
  100. initial_white: 1.0
  101.  
  102. #[output_pin LED_Light] #toggle for LED Light - use this instead of [LED] for sonic pad
  103. #Pin: PB9
  104. #cycle_time: 0.01
  105. #pwm: true
  106. #value: 1
  107.  
  108. [printer]
  109. kinematics: cartesian
  110. max_velocity: 300
  111. max_accel: 3700
  112. max_z_velocity: 15
  113. max_z_accel: 100
  114. square_corner_velocity: 5
  115. # Use those higher values just to configure Input Shaper
  116. #max_accel: 10000
  117. #max_accel_to_decel: 10000
  118.  
  119. [stepper_x]
  120. step_pin: !PC12
  121. dir_pin: PB3
  122. enable_pin: !PD2
  123. microsteps: 16
  124. rotation_distance: 40
  125. endstop_pin: PA13
  126. position_endstop: 0
  127. position_min: 0
  128. position_max: 430
  129. homing_speed: 100
  130.  
  131. [stepper_y]
  132. step_pin: PC11
  133. dir_pin: PA15
  134. enable_pin: !PC10
  135. microsteps: 16
  136. rotation_distance: 40
  137. endstop_pin: PB8
  138. position_endstop: -6
  139. position_min: -6
  140. position_max: 430
  141. homing_speed: 50
  142.  
  143. [stepper_z]
  144. step_pin: PC7
  145. dir_pin: !PC9
  146. enable_pin: !PC8
  147. rotation_distance: 8
  148. microsteps: 16
  149. position_min: 0
  150. position_max: 506
  151. endstop_pin: probe:z_virtual_endstop # Use Z- as endstop
  152. homing_speed: 10
  153. homing_retract_speed: 15
  154.  
  155.  
  156. [extruder]
  157. max_extrude_only_distance: 100.0
  158. step_pin: PB10
  159. dir_pin: PB1
  160. enable_pin: !PC6
  161. microsteps: 16
  162. nozzle_diameter: 0.400
  163. filament_diameter: 1.750
  164. heater_pin: PA6
  165. sensor_type: EPCOS 100K B57560G104F
  166. sensor_pin: PC1
  167. min_temp: 0
  168. max_temp: 250
  169. # Calibrate E-Steps https://www.klipper3d.org/Rotation_Distance.html#calibrating-rotation_distance-on-extruders
  170. rotation_distance: 7.65
  171. # Calibrate PID: https://www.klipper3d.org/Config_checks.html#calibrate-pid-settings
  172. # - Example: PID_CALIBRATE HEATER=extruder TARGET=200
  173. control = pid
  174. pid_kp = 23.847
  175. pid_ki = 1.325
  176. pid_kd = 107.311
  177. # Calibrate PA: https://www.klipper3d.org/Pressure_Advance.html
  178. #pressure_advance = 0.600
  179.  
  180. [heater_bed]
  181. heater_pin: PA5
  182. sensor_type: EPCOS 100K B57560G104F
  183. sensor_pin: PC0
  184. pwm_cycle_time: 0.020 # set to 0.0166 if your grid runs on 60Hz to fix lights flickering
  185. max_temp: 110
  186. min_temp: 0
  187. # Calibrate PID: https://www.klipper3d.org/Config_checks.html#calibrate-pid-settings
  188. # - Example: PID_CALIBRATE HEATER=heater_bed TARGET=60
  189. control = pid
  190. pid_kp = 71.562
  191. pid_ki = 0.778
  192. pid_kd = 1645.031
  193.  
  194. [heater_fan hotend_fan]
  195. pin: PB0
  196. heater: extruder
  197. heater_temp: 50.0
  198.  
  199. [fan]
  200. pin: PA7
  201.  
  202. [force_move]
  203. enable_force_move: True
  204.  
  205. [safe_z_home]
  206. speed: 100.0
  207. home_xy_position: 241, 193
  208. z_hop: 10
  209.  
  210. [probe]
  211. pin: ^PA8
  212. speed: 5
  213. lift_speed: 15
  214. samples: 3
  215. x_offset: -28.5
  216. y_offset: 22
  217. # Calibrate probe: https://www.klipper3d.org/Bed_Level.html
  218. # - Example: PROBE_CALIBRATE, then adjust with TESTZ Z=+/-X
  219. z_offset = 1.75
  220.  
  221. [filament_switch_sensor filament_sensor]
  222. pause_on_runout: true
  223. switch_pin: PB4
  224.  
  225. [bed_mesh]
  226. probe_count = 9,7
  227. algorithm = bicubic
  228. speed: 200
  229. horizontal_move_z: 10
  230. mesh_min: 33, 16
  231. mesh_max: 397, 415
  232. fade_start: 1.0
  233. fade_end: 10.0
  234.  
  235. [input_shaper]
  236. # Calibrate IS: https://www.klipper3d.org/Resonance_Compensation.html
  237. shaper_type_x = ei
  238. shaper_freq_x = 62.0
  239. shaper_type_y = zv
  240. shaper_freq_y = 31.6
  241. #Slower but slightly less vibration option (change max accel to 2800)
  242. #shaper_type_y = mzv
  243. #shaper_freq_y = 31.0
  244.  
  245. [temperature_sensor raspberry_pi]
  246. sensor_type: temperature_host
  247. #min_temp: 10
  248. #max_temp: 105
  249.  
  250. [temperature_sensor mcu_temp]
  251. sensor_type: temperature_mcu
  252. sensor_temperature1: 25
  253. sensor_adc1: 0.210317
  254. #min_temp: 0
  255. #max_temp: 105
  256.  
  257. [gcode_macro M420]
  258. description: Load the current mesh
  259. gcode:
  260. BED_MESH_PROFILE LOAD=default
  261.  
  262. [gcode_macro G29]
  263. description: creates automated homing and bed mesh
  264. gcode:
  265. G28
  266. BED_MESH_CALIBRATE
  267. DATA_SAVE
  268.  
  269. [screws_tilt_adjust]
  270. screw_thread: CW-M3
  271. speed: 200
  272. screw1: 243.5, 193
  273. screw1_name: center
  274. screw2: 421, 370.5
  275. screw2_name: right back screw
  276. screw3: 421, 193
  277. screw3_name: right middle screw
  278. screw4: 421, 15.5
  279. screw4_name: right front screw
  280. screw5: 66, 15.5
  281. screw5_name: left front screw
  282. screw6: 66, 193
  283. screw6_name: left middle screw
  284. screw7: 66, 370.5
  285. screw7_name: left back screw
  286.  
  287. #*# <---------------------- SAVE_CONFIG ---------------------->
  288. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  289. #*#
  290. #*# [probe]
  291. #*#
  292. #*# [bed_mesh default]
  293. #*# version = 1
  294. #*# points =
  295. #*# -0.346667, -0.298333, -0.241667, -0.115833, 0.062500, 0.264167, 0.564167, 0.893333, 1.205833
  296. #*# -0.505833, -0.420000, -0.351667, -0.234167, -0.085000, 0.066667, 0.301667, 0.567500, 0.765833
  297. #*# -0.540833, -0.437500, -0.315833, -0.181667, -0.028333, 0.047500, 0.190833, 0.336667, 0.434167
  298. #*# -0.534167, -0.382500, -0.250000, -0.107500, 0.001667, 0.040000, 0.105000, 0.159167, 0.143333
  299. #*# -0.327500, -0.271667, -0.206667, -0.130833, -0.060000, -0.067500, -0.036667, -0.007500, -0.045833
  300. #*# 0.002500, 0.017500, -0.000833, 0.028333, 0.045833, 0.020833, 0.078333, 0.085000, 0.058333
  301. #*# 0.600833, 0.470000, 0.345833, 0.266667, 0.207500, 0.135000, 0.119167, 0.123333, 0.083333
  302. #*# tension = 0.2
  303. #*# min_x = 33.0
  304. #*# algo = bicubic
  305. #*# y_count = 7
  306. #*# mesh_y_pps = 2
  307. #*# min_y = 16.0
  308. #*# x_count = 9
  309. #*# max_y = 415.0
  310. #*# mesh_x_pps = 2
  311. #*# max_x = 397.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement