-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter-20240819_091903.cfg
532 lines (453 loc) · 15.7 KB
/
printer-20240819_091903.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
[include fluidd.cfg]
# This file contains common pin mappings for the Fysetc CATALYST V1.0
# board. To use this config, the firmware should be compiled for the
# STM32F401 with "No bootloader" and Communication interface USB
# After running "make", run the following command to flash the board:
# dfu-util -R -a 0 -s 0x08000000:leave -D out/klipper.bin
## Voron Design VORON 0.2
#
# FYSETC CATALYST V1.0 config
## *** THINGS TO CHANGE/CHECK: ***
## MCU path [mcu] section
## Z and Extruder motor currents [tmc2209 stepper_*] sections. Uncomment the stepper motor you have
## Full steps per rotation for Extruder [extruder] section
## Thermistor types [extruder] and [heater_bed] sections - See https://www.klipper3d.org/Config_Reference.html#common-thermistors for common thermistor types
## Extruder motor currents [extruder] section
## PID tune [extruder] and [heater_bed] sections
## Fine tune E steps [extruder] section
## For more info check https://docs.vorondesign.com/build/startup/#v0
# See docs/Config_Reference.md for a description of parameters.
#[include mainsail.cfg]
# [include aux_fan.cfg]
[mcu]
#####################################################################
# Obtain definition by "ls -l /dev/serial/by-id/"
#####################################################################
serial: /dev/serial/by-path/platform-fd840000.usb-usb-0:1:1.0
#serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_250039001851303531393634-if00
#restart_method: command
[printer]
kinematics: corexy
max_velocity: 300
max_accel: 4300
# max_accel_to_decel: 1500
max_z_velocity: 5 #15
max_z_accel: 50
#square_corner_velocity: 4.0
#####################################################################
# X/Y Stepper Settings X=B Y=A
#####################################################################
[stepper_x]
step_pin: PC12
## Refer to https://docs.vorondesign.com/build/startup/#v0
dir_pin: !PC10 # Check motor direction in link above. If inverted, remove ! before PC13
enable_pin: !PD2
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200 # Set to 400 for 0.9 degree stepper motor, 200 is for 1.8 degree stepper motors
#endstop_pin: ^PA3
endstop_pin: tmc2209_stepper_x:virtual_endstop
position_endstop: 120
position_max: 120
homing_speed: 40 # for sensorless homing it is recommended not to go above 40mm/s
homing_retract_dist: 0
homing_positive_dir: true
[tmc2209 stepper_x]
uart_pin: PC11
interpolate: False
run_current: 0.7
hold_current: 0.4
sense_resistor: 0.110
stealthchop_threshold: 0 # Set to 999999 to turn stealthchop on, and 0 to use spreadcycle
diag_pin: PB3 # YOU NEED TO JUMP THIS DIAG PIN ON YOUR BOARD FOR SENSORLESS HOMING TO WORK
driver_SGTHRS: 100 # this is set to 255 which is the MAX sensitivity for sensorless homing, you will need to tune this later
[stepper_y]
step_pin: PC15
## Refer to https://docs.vorondesign.com/build/startup/#v0
dir_pin: !PC13 # Check motor direction in link above. If inverted, remove ! before PC1
enable_pin: !PA10
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200 # Set to 400 for 0.9�?degree stepper motor, 200 is for 1.8�?stepper motors
#endstop_pin: ^PA2
endstop_pin: tmc2209_stepper_y:virtual_endstop
position_endstop: 120
position_max: 120
homing_speed: 40 # for sensorless homing it is recommended not to go above 40mm/s
homing_retract_dist: 0
homing_positive_dir: true
[tmc2209 stepper_y]
uart_pin: PC14
interpolate: False
run_current: 0.7
hold_current: 0.4
sense_resistor: 0.110
stealthchop_threshold: 0 # Set to 999999 to turn stealthchop on, and 0 to use spreadcycle
diag_pin: ^PA9 # YOU NEED TO JUMP THIS DIAG PIN ON YOUR BOARD FOR SENSORLESS HOMING TO WORK
driver_SGTHRS: 100 # this is set to 255 which is the MAX sensitivity for sensorless homing, you will need to tune this later
#####################################################################
# Z Stepper Settings
#####################################################################
[stepper_z]
step_pin: PB2
dir_pin: PC5 # Remove the ! before PB8 if motor direction is inverted.
enable_pin: !PB10
rotation_distance: 8 # For T8x8 lead screw
#rotation_distance: 2 # For T8x2 lead screw
#rotation_distance: 6.5734355867758
microsteps: 32
#endstop_pin: ^PA3
#position_endstop: 120
endstop_pin: probe:z_virtual_endstop
position_max: 120
position_min: -10.5
homing_speed: 20
second_homing_speed: 5.0
homing_retract_dist: 5.0
[tmc2209 stepper_z]
uart_pin: PC4
#tx_pin: PA2
#uart_address: 2
interpolate: False
# For FYSETC 42HSC1404B-200N8
run_current: 0.3
hold_current: 0.05
sense_resistor: 0.110
stealthchop_threshold: 0 # Set to 999999 to turn stealthchop on, and 0 to use spreadcycle
#####################################################################
# Extruder
#####################################################################
#[include head.cfg]
#####################################################################
# Bed Heater
#####################################################################
[heater_bed]
heater_pin: PC8
## Check what thermistor type you have. See https://www.klipper3d.org/Config_Reference.html#common-thermistors for common thermistor types.
## Use "Generic 3950" for Keenovo heaters
sensor_type: Generic 3950
sensor_pin: PB0
smooth_time: 3.0
#max_power: 0.6 # Only needed for 100w pads
min_temp: 0
max_temp: 120
control: pid # Do PID calibration after initial checks
pid_Kp=18.460
pid_Ki=1.256
pid_Kd=67.834
#####################################################################
# Fan Control
#####################################################################
#[temperature_fan CM68_Fan]
#pin: PA13
#sensor_type: temperature_host
#min_temp: 0
#max_temp: 150
#control: watermark
#target_temp: 20
#####################################################################
# Temperature Sensor
#####################################################################
[temperature_sensor Catalyst]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
[temperature_sensor ebb]
sensor_mcu: head
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
[temperature_sensor Raspberry]
sensor_type: temperature_host
min_temp: 10
max_temp: 100
#####################################################################
# Homing and Gantry Adjustment Routines
#####################################################################
[idle_timeout]
timeout: 1800
#[safe_z_home]
#home_xy_position: 120,120 # these coordinates must NOT be greater than the values specified in "position_max:" for the X and Y steppers
#speed: 50.0
#z_hop: 5
# Tool to help adjust bed leveling screws. One may define a
# [bed_screws] config section to enable a BED_SCREWS_ADJUST g-code
# command.
#[bed_screws]
[screws_tilt_adjust]
screw1: 35,5
screw1_name: front screw
screw2: 5,115
screw2_name: back left
screw3: 85,115
screw3_name: back right
horizontal_move_z: 15
speed: 50
screw_thread: CW-M3
#####################################################################
# Neopixel
#####################################################################
#[neopixel board_rgb]
#pin: PC9
#chain_count: 35
#color_order: GRB
#initial_RED: 0.2
#initial_GREEN: 0.2
#initial_BLUE: 0.2
#####################################################################
# Simple V0 Display
#####################################################################
#[display]
#lcd_type: sh1106
#click_pin: ^!PA15
#i2c_bus: i2c1a
#i2c_mcu: mcu
#encoder_pins: ^PC1, ^PC2
#kill_pin: ^!PB12
#vcomh: 60
#x_offset: 2
#sda: pb9
#scl: pb8
#[neopixel display_led]
#pin: PC6
#color_order: GRB
#initial_RED: 0
#initial_GREEN: 0.1
#initial_BLUE: 0.4
#####################################################################
# Macros
#####################################################################
#[gcode_macro PRINT_START]
# Use PRINT_START for the slicer starting script - please customize for your slicer of choice
#gcode:
# G28 ; home all axes
# G90 ; absolute positioning
# G1 Z20 F3000 ; move nozzle away from bed
[gcode_macro PRINT_END]
# Use PRINT_END for the slicer ending script - please customize for your slicer of choice
gcode:
M400 ; wait for buffer to clear
G92 E0 ; zero the extruder
G1 E-2.0 F3600 ; retract filament
G91 ; relative positioning
# Get Boundaries
{% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
{% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
{% set max_z = printer.configfile.config["stepper_z"]["position_max"]|float %}
# Check end position to determine safe direction to move
{% if printer.toolhead.position.x < (max_x - 20) %}
{% set x_safe = 20.0 %}
{% else %}
{% set x_safe = -20.0 %}
{% endif %}
{% if printer.toolhead.position.y < (max_y - 20) %}
{% set y_safe = 20.0 %}
{% else %}
{% set y_safe = -20.0 %}
{% endif %}
{% if printer.toolhead.position.z < (max_z - 2) %}
{% set z_safe = 2.0 %}
{% else %}
{% set z_safe = max_z - printer.toolhead.position.z %}
{% endif %}
G0 Z{z_safe} F3600 ; move nozzle up
G0 X{x_safe} Y{y_safe} F20000 ; move nozzle to remove stringing
TURN_OFF_HEATERS
M107 ; turn off fan
G90 ; absolute positioning
G0 X0 F3600 ; park nozzle at rear
M84
[gcode_macro LOAD_FILAMENT]
gcode:
M109 T0 S210 ; set extruder temp and wait
M83 ; set extruder to relative
G1 E30 F300 ; load
G1 E15 F150 ; prime nozzle with filament
M82 ; set extruder to absolute
[gcode_macro UNLOAD_FILAMENT]
gcode:
M83 ; set extruder to relative
G1 E10 F300 ; extrude a little to soften tip
G1 E-40 F1800 ; retract some, but not too much or it will jam
M82 ; set extruder to absolute
[virtual_sdcard]
path: /home/linaro/printer_data/gcodes/
# The path of the local directory on the host machine to look for
# g-code files. This is a read-only directory (sdcard file writes
# are not supported). One may point this to OctoPrint's upload
# directory (generally ~/.octoprint/uploads/ ). This parameter must
# be provided.
#on_error_gcode:
# A list of G-Code commands to execute when an error is reported.
#[menu __main __octoprint]
#type: disabled
[mcu head]
canbus_uuid: 90898417c97f
#####################################################################
# Extruder
#####################################################################
[extruder]
step_pin: head:PD0
dir_pin: !head:PD1
enable_pin: !head:PD2
full_steps_per_rotation: 200 # Set to 200 for 1.8 degree motor, set to 400 for 0.9 degree stepper motor
rotation_distance: 21.7782 # See calibrating rotation_distance on extruders doc
gear_ratio: 50:10 # For Mini Afterburner
microsteps: 16
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: head:PB13
## Check what thermistor type you have. See https://www.klipper3d.org/Config_Reference.html#common-thermistors for common thermistor types.
## Use "Generic 3950" for NTC 100k 3950 thermistors
#sensor_type: Generic 3950
sensor_type: ATC Semitec 104NT-4-R025H42G
sensor_pin: head:PA3
min_temp: 0
max_temp: 300
min_extrude_temp: 220 # set 10 to test,please change to 170 for real use
max_extrude_only_distance: 150
max_extrude_cross_section: 1.5
pressure_advance: 0.035 # See tuning pressure advance doc
pressure_advance_smooth_time: 0.040
control=pid
pid_Kp=17.651
pid_Ki=1.252
pid_Kd=62.214
[tmc2209 extruder]
uart_pin: head:PA15
interpolate: False
run_current: 0.5
#diag_pin: head:PA8
#sense_resistor: 0.220
stealthchop_threshold: 0 # Set to 0 for spreadcycle, avoid using stealthchop on extruder
#[adxl345]
#cs_pin: head: PB12
#spi_software_sclk_pin: head: PB10
#spi_software_mosi_pin: head: PB11
#spi_software_miso_pin: head: PB2
#axes_map: x,y,z
[heater_fan hotend_fan]
pin: head: PA0
heater: extruder
heater_temp: 50.0
[temperature_fan raspberry]
pin: PA13
sensor_type: temperature_host
min_temp: 0
max_temp: 150
control: watermark
target_temp: 20
[fan_generic chamber_fan]
pin: PB4
[fan]
pin: head:PA1
[probe]
pin: head: PB6
x_offset: 25
y_offset: 0
#z_offset: 9.421
speed: 20.0
samples: 2
sample_retract_dist: 5.0
lift_speed: 30.0
samples_tolerance: 0.01
samples_tolerance_retries: 15
deactivate_on_each_sample: 0
[bed_mesh]
speed: 200
horizontal_move_z: 18
mesh_min: 30,10
mesh_max: 115,100
probe_count: 5,5
#algorithm: bicubic
[homing_override]
axes: z
gcode:
SET_KINEMATIC_POSITION Z=0
G1 Z5
G28 X Y
Query_Probe
SS_CONDITIONAL_TAKE_PROBE
G1 X35 Y60
G28 Z
G91
G1 Z1
G90
[fan]
pin: head:PA1
[probe]
pin: head: PB6
x_offset: 25
y_offset: 0
#z_offset: 9.421
speed: 20.0
samples: 2
sample_retract_dist: 5.0
lift_speed: 30.0
samples_tolerance: 0.01
samples_tolerance_retries: 15
deactivate_on_each_sample: 0
[bed_mesh]
speed: 200
horizontal_move_z: 18
mesh_min: 30,10
mesh_max: 115,100
probe_count: 5,5
#algorithm: bicubic
[homing_override]
axes: z
gcode:
SET_KINEMATIC_POSITION Z=0
G1 Z5
G28 X Y
Query_Probe
SS_CONDITIONAL_TAKE_PROBE
G1 X35 Y60
G28 Z
G91
G1 Z1
G90
#[neopixel matchstick]
#pin: PB5
#chain_count: 20
#color_order: GRB
#initial_RED: 1
#initial_GREEN: 0.2
#initial_BLUE: 0.2
[servo probeServo]
pin: PC3
minimum_pulse_width: 0.000544
initial_angle: 0
[force_move]
enable_force_move: True
[respond]
#[save_variables#]
#filename: "~/printer_data/config/variables.cfg"
[exclude_object]¶
[include KAMP_Settings.cfg]
#[include matchstick.cfg]
[include macros/*.cfg]
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [probe]
#*# z_offset = 14.065
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.180000, -0.090000, 0.011250, 0.083750, 0.130000
#*# -0.135000, -0.011875, 0.071875, 0.118125, 0.159375
#*# -0.123750, -0.033125, 0.032500, 0.085625, 0.138750
#*# -0.128125, -0.012500, 0.068750, 0.108750, 0.129375
#*# 0.064375, -0.009375, 0.042500, 0.095000, 0.150000
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = lagrange
#*# tension = 0.2
#*# min_x = 30.0
#*# max_x = 115.0
#*# min_y = 10.0
#*# max_y = 100.0