Advertisement
Guest User

Ender 3 V2 Neo w/sprite pro Printer.cfg for sonic pad

a guest
Jun 12th, 2023
2,374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.79 KB | Software | 0 0
  1. # !Ender-3 V2 Neo
  2. # printer_size: 220x220x250
  3. # version: 3.2
  4. # This file contains pin mappings for the stock 2020 Creality Ender-3 V2+CRtouch
  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. # If you prefer a direct serial connection, in "make menuconfig"
  10. # select "Enable extra low-level configuration options" and select
  11. # serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC
  12. # cable used for the LCD module as follows:
  13. # 3: Tx, 4: Rx, 9: GND, 10: VCC
  14.  
  15. # Flash this firmware by copying "out/klipper.bin" to a SD card and
  16. # turning on the printer with the card inserted. The firmware
  17. # filename must end in ".bin" and must not match the last filename
  18. # that was flashed.
  19.  
  20. # See docs/Config_Reference.md for a description of parameters.
  21.  
  22. ###fluidd set
  23. [virtual_sdcard]
  24. path: ~/gcode_files
  25.  
  26. [display_status]
  27.  
  28. [pause_resume]
  29.  
  30. [gcode_macro PAUSE]
  31. description: Pause the actual running print
  32. rename_existing: PAUSE_BASE
  33. # change this if you need more or less extrusion
  34. variable_extrude: 1.0
  35. gcode:
  36. ##### read E from pause macro #####
  37. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  38. ##### set park positon for x and y #####
  39. # default is your max posion from your printer.cfg
  40. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  41. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  42. ##### calculate save lift position #####
  43. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  44. {% set act_z = printer.toolhead.position.z|float %}
  45. {% if act_z < (max_z - 2.0) %}
  46. {% set z_safe = 2.0 %}
  47. {% else %}
  48. {% set z_safe = max_z - act_z %}
  49. {% endif %}
  50. ##### end of definitions #####
  51. PAUSE_BASE
  52. G91
  53. {% if printer.extruder.can_extrude|lower == 'true' %}
  54. G1 E-{E} F2100
  55. {% else %}
  56. {action_respond_info("Extruder not hot enough")}
  57. {% endif %}
  58. {% if "xyz" in printer.toolhead.homed_axes %}
  59. G1 Z{z_safe} F900
  60. G90
  61. G1 X{x_park} Y{y_park} F6000
  62. {% else %}
  63. {action_respond_info("Printer not homed")}
  64. {% endif %}
  65.  
  66.  
  67. [gcode_macro RESUME]
  68. description: Resume the actual running print
  69. rename_existing: RESUME_BASE
  70. gcode:
  71. ##### read E from pause macro #####
  72. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  73. #### get VELOCITY parameter if specified ####
  74. {% if 'VELOCITY' in params|upper %}
  75. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  76. {%else %}
  77. {% set get_params = "" %}
  78. {% endif %}
  79. ##### end of definitions #####
  80. {% if printer.extruder.can_extrude|lower == 'true' %}
  81. G91
  82. G1 E{E} F2100
  83. {% else %}
  84. {action_respond_info("Extruder not hot enough")}
  85. {% endif %}
  86. RESUME_BASE {get_params}
  87.  
  88. [gcode_macro CANCEL_PRINT]
  89. description: Cancel the actual running print
  90. rename_existing: CANCEL_PRINT_BASE
  91. gcode:
  92. TURN_OFF_HEATERS
  93. {% if "xyz" in printer.toolhead.homed_axes %}
  94. G91
  95. G1 Z4.5 F300
  96. G90
  97. {% else %}
  98. {action_respond_info("Printer not homed")}
  99. {% endif %}
  100. G28 X Y
  101. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  102. G1 Y{y_park} F2000
  103. M84
  104. CANCEL_PRINT_BASE
  105.  
  106. [stepper_x]
  107. step_pin: PC2
  108. dir_pin: PB9
  109. enable_pin: !PC3
  110. microsteps: 16
  111. rotation_distance: 40
  112. endstop_pin: ^PA5
  113. position_endstop: -10
  114. position_min: -10
  115. position_max: 235
  116. homing_speed: 80
  117.  
  118. [stepper_y]
  119. step_pin: PB8
  120. dir_pin: PB7
  121. enable_pin: !PC3
  122. microsteps: 16
  123. rotation_distance: 40
  124. endstop_pin: ^PA6
  125. position_endstop: -10
  126. position_min: -10
  127. homing_retract_dist:10
  128. position_max: 220
  129. homing_speed: 80
  130.  
  131. [stepper_z]
  132. step_pin: PB6
  133. dir_pin: !PB5
  134. enable_pin: !PC3
  135. microsteps: 16
  136. rotation_distance: 8
  137. endstop_pin: probe:z_virtual_endstop #enable to use bltouch
  138. # endstop_pin: ^PA7 #disable to use bltouch
  139. # position_endstop: 0.0 #disable to use bltouch
  140. position_max: 255
  141. position_min: -10
  142. homing_speed: 4
  143. second_homing_speed: 1
  144. homing_retract_dist: 2.0
  145.  
  146. [extruder]
  147. max_extrude_only_distance: 1000.0
  148. step_pin: PB4
  149. dir_pin: PB3
  150. enable_pin: !PC3
  151. microsteps: 16
  152. rotation_distance: 7.531
  153. nozzle_diameter: 0.400
  154. filament_diameter: 1.750
  155. heater_pin: PA1
  156. sensor_type: EPCOS 100K B57560G104F
  157. sensor_pin: PC5
  158. #control: pid
  159. # tuned for stock hardware with 200 degree Celsius target
  160. #pid_Kp: 29.291
  161. #pid_Ki: 1.743
  162. #pid_Kd: 123.021
  163. min_temp: 0
  164. max_temp: 300
  165. pressure_advance_smooth_time: 0.04
  166. pressure_advance: 0.03
  167.  
  168. [verify_heater extruder]
  169. check_gain_time: 200
  170. hysteresis: 5
  171.  
  172.  
  173. [heater_bed]
  174. heater_pin: PA2
  175. sensor_type: EPCOS 100K B57560G104F
  176. sensor_pin: PC4
  177. #control: pid
  178. # tuned for stock hardware with 50 degree Celsius target
  179. #pid_Kp: 67.104
  180. #pid_Ki: 0.544
  181. #pid_Kd: 2068.466
  182. min_temp: 0
  183. max_temp: 110
  184.  
  185. [fan]
  186. pin: PA0
  187.  
  188. [fan_generic extruder_partfan]
  189. # pin: PB15
  190. pin: PC6
  191. #max_power:
  192. #shutdown_speed:
  193. #cycle_time:
  194. #hardware_pwm:
  195. #kick_start_time:
  196. #off_below:
  197. #tachometer_pin:
  198. #tachometer_ppr:
  199. #tachometer_poll_interval:
  200. # See the "fan" section for a description of the above parameters.
  201. #heater: extruder
  202. # Name of the config section defining the heater that this fan is
  203. # associated with. If a comma separated list of heater names is
  204. # provided here, then the fan will be enabled when any of the given
  205. # heaters are enabled. The default is "extruder".
  206. #heater_temp: 50.0
  207. # A temperature (in Celsius) that the heater must drop below before
  208. # the fan is disabled. The default is 50 Celsius.
  209. #fan_speed: 1.0
  210. # The fan speed (expressed as a value from 0.0 to 1.0) that the fan
  211. # will be set to when its associated heater is enabled. The default
  212. # is 1.0
  213.  
  214.  
  215. [heater_fan heater_partfan]
  216. pin: PB14
  217. #max_power:
  218. #shutdown_speed:
  219. #cycle_time:
  220. #hardware_pwm:
  221. #kick_start_time:
  222. #off_below:
  223. #tachometer_pin:
  224. #tachometer_ppr:
  225. #tachometer_poll_interval:
  226. # See the "fan" section for a description of the above parameters.
  227. #heater: extruder
  228. # Name of the config section defining the heater that this fan is
  229. # associated with. If a comma separated list of heater names is
  230. # provided here, then the fan will be enabled when any of the given
  231. # heaters are enabled. The default is "extruder".
  232. #heater_temp: 50.0
  233. # A temperature (in Celsius) that the heater must drop below before
  234. # the fan is disabled. The default is 50 Celsius.
  235. #fan_speed: 1.0
  236. # The fan speed (expressed as a value from 0.0 to 1.0) that the fan
  237. # will be set to when its associated heater is enabled. The default
  238. # is 1.0
  239.  
  240. [mcu]
  241. serial: /dev/serial/by-id/usb_serial_1
  242. restart_method: command
  243.  
  244. [printer]
  245. kinematics: cartesian
  246. max_velocity: 300
  247. max_accel: 5000
  248. # max_accel_to_decel: 7000
  249. max_z_velocity: 5
  250. square_corner_velocity: 5.0
  251. max_z_accel: 100
  252.  
  253. #[mcu rpi]
  254. #serial: /tmp/klipper_host_mcu
  255.  
  256. #[adxl345]
  257. #cs_pin: rpi:None
  258. #spi_speed: 2000000
  259. #spi_bus: spidev2.0
  260.  
  261. #[resonance_tester]
  262. #accel_chip: adxl345
  263. #accel_per_hz: 70
  264. #probe_points:
  265. # 117.5,117.5,10
  266.  
  267. [bltouch]
  268. sensor_pin: ^PB1
  269. control_pin: PB0
  270. x_offset: -31.5
  271. y_offset: -41
  272. #z_offset: 0
  273. speed: 20
  274. samples: 1
  275. sample_retract_dist: 8.0
  276. stow_on_each_sample = false #high speed for bltoch
  277.  
  278. [safe_z_home]
  279. home_xy_position: 140,120 # Change coordinates to the center of your print bed
  280. speed: 150
  281. z_hop: 10 # Move up 10mm
  282. z_hop_speed: 10
  283.  
  284. [bed_mesh]
  285. probe_count = 5,5
  286. algorithm = bicubic
  287. speed: 120
  288. mesh_min: 10,10 #need to handle head distance with bl_touch
  289. mesh_max: 189,178 #max probe range
  290. # probe_count: 5,5
  291. fade_start: 1
  292. fade_end: 10
  293. fade_target: 0
  294. # algorithm: bicubic
  295.  
  296. [bed_screws]
  297. screw1:30,25
  298. screw1_name:1
  299. screw2:200,25
  300. screw2_name:2
  301. screw3:200,195
  302. screw3_name:3
  303. screw4:30,195
  304. screw4_name:4
  305.  
  306. [input_shaper]
  307. #shaper_type_x = mzv
  308. #shaper_freq_x = 83.2
  309. #shaper_type_y = 2hump_ei
  310. #shaper_freq_y = 57.6
  311.  
  312.  
  313. [include timelapse.cfg]
  314.  
  315.  
  316. [gcode_macro G29] #界面中增加G29指令
  317. gcode:
  318. G28
  319. bed_mesh_calibrate
  320. G1 X0 Y0 Z10 F4200
  321. # save_config
  322.  
  323. [gcode_macro BED_LEVEL]
  324. gcode:
  325. G28
  326. BED_MESH_CALIBRATE
  327.  
  328.  
  329. [gcode_macro Z_AXI_CALIBRATE]
  330. gcode:
  331. G28
  332. PROBE_CALIBRATE
  333.  
  334. [gcode_macro SHAPER]
  335. gcode:
  336. G28
  337. SHAPER_CALIBRATE
  338.  
  339. [gcode_macro PID]
  340. gcode:
  341. G28
  342. PID_CALIBRATE HEATER=extruder TARGET=200
  343. PID_CALIBRATE HEATER=heater_bed TARGET=60
  344.  
  345. [gcode_macro Press_Advance_short]
  346. gcode:
  347. SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500
  348. TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005
  349.  
  350. [gcode_macro Press_Advance_long]
  351. gcode:
  352. SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500
  353. TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.020
  354.  
  355.  
  356. # [output_pin my_led]
  357. # pin: PB12
  358. # The pin to configure as an output. This parameter must be
  359. # provided.
  360. #pwm: False
  361. # Set if the output pin should be capable of pulse-width-modulation.
  362. # If this is true, the value fields should be between 0 and 1; if it
  363. # is false the value fields should be either 0 or 1. The default is
  364. # False.
  365. #static_value:
  366. # If this is set, then the pin is assigned to this value at startup
  367. # and the pin can not be changed during runtime. A static pin uses
  368. # slightly less ram in the micro-controller. The default is to use
  369. # runtime configuration of pins.
  370. #value:
  371. # The value to initially set the pin to during MCU configuration.
  372. # The default is 0 (for low voltage).
  373. #shutdown_value:
  374. # The value to set the pin to on an MCU shutdown event. The default
  375. # is 0 (for low voltage).
  376. #maximum_mcu_duration:
  377. # The maximum duration a non-shutdown value may be driven by the MCU
  378. # without an acknowledge from the host.
  379. # If host can not keep up with an update, the MCU will shutdown
  380. # and set all pins to their respective shutdown values.
  381. # Default: 0 (disabled)
  382. # Usual values are around 5 seconds.
  383. #cycle_time: 0.100
  384. # The amount of time (in seconds) per PWM cycle. It is recommended
  385. # this be 10 milliseconds or greater when using software based PWM.
  386. # The default is 0.100 seconds for pwm pins.
  387. #hardware_pwm: False
  388. # Enable this to use hardware PWM instead of software PWM. When
  389. # using hardware PWM the actual cycle time is constrained by the
  390. # implementation and may be significantly different than the
  391. # requested cycle_time. The default is False.
  392. #scale:
  393. # This parameter can be used to alter how the 'value' and
  394. # 'shutdown_value' parameters are interpreted for pwm pins. If
  395. # provided, then the 'value' parameter should be between 0.0 and
  396. # 'scale'. This may be useful when configuring a PWM pin that
  397. # controls a stepper voltage reference. The 'scale' can be set to
  398. # the equivalent stepper amperage if the PWM were fully enabled, and
  399. # then the 'value' parameter can be specified using the desired
  400. # amperage for the stepper. The default is to not scale the 'value'
  401. # parameter.
  402.  
  403. #*# <---------------------- SAVE_CONFIG ---------------------->
  404. #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
  405. #*#
  406. #*# [bltouch]
  407. #*# z_offset = 2.550
  408. #*#
  409. #*# [bed_mesh default]
  410. #*# version = 1
  411. #*# points =
  412. #*# 0.170000, 0.062500, 0.075000, 0.165000, 0.147500
  413. #*# 0.082500, 0.032500, 0.010000, 0.125000, 0.122500
  414. #*# 0.082500, -0.007500, -0.005000, 0.090000, 0.117500
  415. #*# 0.030000, -0.017500, -0.010000, 0.090000, 0.097500
  416. #*# 0.140000, 0.050000, 0.017500, 0.080000, 0.050000
  417. #*# tension = 0.2
  418. #*# min_x = 10.0
  419. #*# algo = bicubic
  420. #*# y_count = 5
  421. #*# mesh_y_pps = 2
  422. #*# min_y = 10.0
  423. #*# x_count = 5
  424. #*# max_y = 178.0
  425. #*# mesh_x_pps = 2
  426. #*# max_x = 189.0
  427. #*#
  428. #*# [extruder]
  429. #*# control = pid
  430. #*# pid_kp = 21.305
  431. #*# pid_ki = 1.145
  432. #*# pid_kd = 99.070
  433. #*#
  434. #*# [heater_bed]
  435. #*# control = pid
  436. #*# pid_kp = 67.156
  437. #*# pid_ki = 0.516
  438. #*# pid_kd = 2185.933
  439. #*#
  440. #*# [input_shaper]
  441. #*# shaper_type_x = 2hump_ei
  442. #*# shaper_freq_x = 60.0
  443. #*# shaper_type_y = mzv
  444. #*# shaper_freq_y = 37.2
  445.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement