-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprinter.cfg
494 lines (414 loc) · 21.5 KB
/
printer.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
#####################################################################
; Voron Design VORON2.4 300mm Spider 1.1 TMC2209, SHT-36 v2 config
#####################################################################
; Pin Summary
; Hotend Fan SHT:PB10/FAN0
; Part Fan SHT:PB11/FAN1
; Component Fan MCU:PB2
; Chamber Fan MCU:PC8
; Chamber LEDS MCU:PB3
; Endstop - X SHT:PA1/LIMIT_0
; Endstop - Y MCU:PA2
; Endstop - Z MCU:PA0
; Probe - PCB Klicky SHT:PC15/PROBE_1
; Toolhead sensor SHT:PA2/LIMIT_1
; Chamber Thermistor MCU:PC1
; Bed Thermister MCU:PC3
; Print Head Neopixels MCU:PD3
; Nevermore MCU:PB7 (LED-B 24V)
; Spider 1.1 Spare Pins
; FAN0 MCU:PB0
; FAN1 MCU:PB1
; End Stop MCU:PA1
; Probe MCU:PA3
; Limit Switch/End stop MCU:PB13
; Limit Switch/End stop MCU:PB14
; Thermister MCU:PC0
; Thermister MCU:PC2
; 12864 Beeeper MCU:PC9
[mcu] ; Fysetc Spider v1.1
; RP USB device list "ls -l /dev/serial/by-id/"
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_26001F000B50563046363120-if00
[printer]
kinematics: corexy
max_velocity: 1000
max_accel: 6180
minimum_cruise_ratio: 0.30
max_z_velocity: 50
max_z_accel: 350
square_corner_velocity: 8
[mcu sht] ; Fly Sht-36 v2 toolhead
canbus_uuid: 333f11f63709
[board_pins sht]
mcu: sht
aliases:
EXT_EN=PA15, EXT_STEP=PB4, EXT_DIR=PB3, EXT_UART=PB5, EXT_DIAG=PB6, ; extruder stepper
LIMIT_0=PA1, LIMIT_1=PA2, ; end stops
PROBE_1=PC15, PROBE_2=PB1, ; probe
FAN0=PB10, FAN1=PB11, ; fans
TH0=PA3, PT1000=PB12, TC0=PA4, ; thermisters
HE0=PA8, ; HE0 heater
RGBLED=PB0, ; neopixel
ADXL=PA9 ; adxl
[mcu rpi] ; Pi instance for Resonance testing
serial: /tmp/klipper_host_mcu
;[adxl345]
;cs_pin: rpi:None
[adxl345]
cs_pin: sht:ADXL ; Fly SHT-36 adxl
spi_bus: spi2
[resonance_tester]
accel_chip: adxl345
probe_points:
150,150,20 ; centre of 300mm plate
;accel_per_hz: 100 ; generate more energy [default 60]
;sweeping_period: 0 ; revert to old klipper resonance behavour
[virtual_sdcard]
path: /home/pi/printer_data/gcodes
on_error_gcode:
CANCEL_PRINT ; fail safe - always cancel the print
[pause_resume]
recover_velocity: 800 ; rabbit recovery speed
[exclude_object]
[display_status]
[respond] ; enable M118 write to console
default_prefix:
[gcode_arcs]
resolution: 0.05
#####################################################################
[duplicate_pin_override] ; global pin overrides...only one block
#####################################################################
pins: PC3 ; bed thermister
#####################################################################
; Included configurations. Need to keep steppers and certain settings
; local as klipper expects to find and update values in printer.cfg
#####################################################################
[include mysettings.cfg] ; my variables and constants to use in macros
[include hardware/*.cfg] ; hardware related macros
[include mmu/base/*.cfg] ; Happy Hare MMU
[include mmu/optional/client_macros.cfg] ; Happy Hare MMU pause/resume/cancel
[include mmu/addons/mmu_erec_cutter.cfg] ; Happy Hare MMU EREC addon
;[include mmu/addons/blobifier.cfg] ; Happy Hare Blobbifier addon
[include macros/*.cfg] ; other macros
#####################################################################
[shaketune] ; Input shaper and belt analysis
#####################################################################
[shaketune]
# result_folder: ~/printer_data/config/ShakeTune_results
# Path where the processed results will be stored. If the folder doesn't exist,
# it will be automatically created. You can change this if you'd like to store
# results in a different location.
number_of_results_to_keep: 5
# This setting defines how many results you want to keep in the result folder.
# Once the specified number is exceeded, older results will be automatically deleted
# to free up space on the SD card and avoid cluttering the results folder.
# keep_raw_data: False
# If set to True, Shake&Tune will store both the processed graphs and the raw accelerometer
# .stdata files in the results folder. This can be useful for debugging or archiving purposes.
# Please always attach them when reporting any issues on GitHub or Discord.
# show_macros_in_webui: True
# Mainsail and Fluidd doesn't create buttons for system commands (macros that are not part
# of the printer.cfg file). This option allow Shake&Tune to inject them into the webui at runtime.
# If set to False, the macros will be hidden but still accessible from the console by typing
# their names manually, which can be useful if you prefer to encapsulate them into your own macros.
# timeout: 600
# This defines the maximum processing time (in seconds) to allows to Shake&Tune for generating
# graphs from a .stdata file. 10 minutes should be more than enough in most cases, but if you have
# slower hardware (e.g., older SD cards or low-performance devices), increase it to prevent timeouts.
# measurements_chunk_size: 2
# Each Shake&Tune command uses the accelerometer to take multiple measurements. By default,
# Shake&Tune will write a chunk of data to disk every two measurements, and at the end of the
# command will merge these chunks into the final .stdata file for processing. "2" is a very
# conservative setting to avoid Klipper Timer Too Close errors on lower end devices with little
# RAM, and should work for everyone. However, if you are using a powerful computer, you may
# wish to increase this value to keep more measurements in memory (e.g., 15-20) before writing
# the chunk and avoid stressing the filesystem too much.
# max_freq: 200
# This setting defines the maximum frequency at which the calculation of the power spectral density
# is cutoff. The default value should be fine for most machines and accelerometer combinations and
# avoid touching it unless you know what you're doing.
# dpi: 300
# Controls the resolution of the generated graphs. The default value of 300 dpi was optimized
# and strikes a balance between performance and readability, ensuring that graphs are clear
# without using too much RAM to generate them. Usually, you shouldn't need to change this value.
#####################################################################
; Stepper configurations
#####################################################################
[autotune_tmc stepper_x] ; enable TMC autotune for X stepper
motor: omc-17hs19-2504s-h
pwm_freq_target: 22e3
[autotune_tmc stepper_y] ; enable TMC autotune for Y stepper
motor: omc-17hs19-2504s-h
pwm_freq_target: 22e3
;[autotune_tmc extruder] ; enable TMC autotune for Extruder
;motor: ldo-36sth20-1004ahg-9T
;[autotune_tmc stepper_z]
;motor: omc-17hs19-2004s1
;[autotune_tmc stepper_z1]
;motor: omc-17hs19-2004s1
;[autotune_tmc stepper_z2]
;motor: omc-17hs19-2004s1
;[autotune_tmc stepper_z3]
;motor: omc-17hs19-2004s1
###########################################
[stepper_x] ; X-MOT (B Motor/Left) X-Axis
###########################################
step_pin: PE11
dir_pin: PE10
enable_pin: !PE9
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200 ; 200 for 1.8 degree stepper. set to 400 for 0.9 degree stepper
endstop_pin: ^sht:LIMIT_0
position_min: 0
position_endstop: 300 ; 300mm build
position_max: 300 ; 300mm build
homing_speed: 100 ; max 100
homing_retract_dist: 5
homing_positive_dir: true
[tmc2209 stepper_x]
uart_pin: PE7
interpolate: True ; enable for tmc autotune
sense_resistor: 0.110
stealthchop_threshold: 0
; TMC2209 tune: OMC 17HS19-2504S-H (2.5A 1.1hm 1.6mH)
run_current: 1.0 ;0.9
###########################################
[stepper_y] ; Y-MOT (A Motor/Right) Y-Axis
###########################################
step_pin: PD8
dir_pin: PB12
enable_pin: !PD9
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200 ; 200 for 1.8 degree stepper. set to 400 for 0.9 degree stepper
endstop_pin: ^PA2
position_min: 0
position_endstop: 310 ; 300mm build
position_max: 310 ; 300mm build
homing_speed: 100 ; max 100
homing_retract_dist: 5
homing_positive_dir: true
[tmc2209 stepper_y]
uart_pin: PE15
interpolate: True ; enable for tmc autotune
sense_resistor: 0.110
stealthchop_threshold: 0
; TMC2209 tune: OMC 17HS19-2504S-H (2.5A 1.1hm 1.6mH)
run_current: 1.0 ;0.9
###########################################
[stepper_z] ; Z-MOT Z0 Stepper - Front Left
###########################################
step_pin: PD14
dir_pin: PD13
enable_pin: !PD15
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
endstop_pin: ^PA0 ; Z- position
## Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0)
## (+) value = endstop above Z0, (-) value = endstop below
## Increasing position_endstop brings nozzle closer to the bed
## After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config
;endstop_pin: probe:z_virtual_endstop ; tap
position_max: 250 ; 300mm build - safe upper limit with cable chains
position_min: -5
homing_speed: 11.5
second_homing_speed: 3
homing_retract_dist: 3
[tmc2209 stepper_z]
uart_pin: PD10
interpolate: True ; default is True. TMC2209 tuning often required when set to False to reduce noise
run_current: 0.6 ; OMC 17HS19-2004S1 2A 1.4hm 3.0mH (80% = 1.4/0.8)
sense_resistor: 0.110
stealthchop_threshold: 0
############################################
[stepper_z1] ; E1-MOT Z1 stepper - Rear Left
############################################
step_pin: PE6
dir_pin: !PC13
enable_pin: !PE5
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
[tmc2209 stepper_z1]
uart_pin: PC14
interpolate: True ; default is True. TMC2209 tuning often required when set to False to reduce noise
run_current: 0.6 ; OMC 17HS19-2004S1 2A 1.4hm 3.0mH (80% = 1.4/0.8)
sense_resistor: 0.110
stealthchop_threshold: 0
#############################################
[stepper_z2] ; E2-MOT Z2 stepper - Rear Right
#############################################
step_pin: PE2
dir_pin: PE4
enable_pin: !PE3
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
[tmc2209 stepper_z2]
uart_pin: PC15
interpolate: True ; default is True. TMC2209 tuning often required when set to False to reduce noise
run_current: 0.6 ; OMC 17HS19-2004S1 2A 1.4hm 3.0mH (80% = 1.4/0.8)
sense_resistor: 0.110
stealthchop_threshold: 0
##############################################
[stepper_z3] ; E3-MOT Z3 stepper - Front Right
##############################################
step_pin: PD12
dir_pin: !PC4
enable_pin: !PE8
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
[tmc2209 stepper_z3]
uart_pin: PA15
interpolate: True ; default is True. TMC2209 tuning often required when set to False to reduce noise
run_current: 0.6 ; OMC 17HS19-2004S1 2A 1.4hm 3.0mH (80% = 1.4/0.8)
sense_resistor: 0.110
stealthchop_threshold: 0
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[extruder] ; Yaroth with Rapido,
; PT1000 & Galileo 2.0 Wristwatch extruder
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
step_pin: sht:EXT_STEP
dir_pin: sht:EXT_DIR
enable_pin: !sht:EXT_EN
microsteps: 16 ; Galileo 2.0
full_steps_per_rotation: 200 ; Galileo 2.0
rotation_distance: 47.088 ; Galileo 2.0
gear_ratio: 9:1 ; Galileo 2.0
max_extrude_only_velocity: 125
max_extrude_only_distance: 500 ; increase to allow filament load & unload operations
max_extrude_cross_section: 15 ; override to support fat purge lines and blobs
nozzle_diameter: 0.600
filament_diameter: 1.750
heater_pin: sht:HE0
sensor_pin: sht:TH0
sensor_type: PT1000
pullup_resistor: 1100
min_temp: 0
max_temp: 302
min_extrude_temp: 190
control: pid ; 110w Rapido - maintain instream rather than in override section at end
pid_Kp: 20.645
pid_Ki: 1.787
pid_Kd: 59.612
smooth_time: 0.5 ; default is 1.0
; Try to keep pressure_advance below 1.0
pressure_advance: 0.039 ; Rapido
pressure_advance_smooth_time: 0.025 ; Andrew Ellis
[tmc2209 extruder]
uart_pin: sht:EXT_UART
diag_pin: sht:EXT_DIAG
interpolate: True ; enable for tnmc autotune
stealthchop_threshold: 0
sense_resistor: 0.11 ; BTT 2209 Fly-SHT v2.0
; TMC2209 tune: WWG2 with LDO 36STH20-1004AHG (1A 2.4hm 1.2mH)
run_current: 0.65
hold_current: 0.3
#####################################################################
[heater_bed] ; SSR BED OUT position
#####################################################################
heater_pin: PB4
sensor_type: Generic 3950
sensor_pin: PC3
max_power: 0.90 ; 600W/240v 15A SSR fitted with Heat sink
min_temp: 0
max_temp: 120
control: pid ; maintain instream rather than in override section at end
pid_Kp: 52.560
pid_Ki: 2.190
pid_Kd: 315.361
#####################################################################
[firmware_retraction] ; Enable firmware retraction - A Ellis Guide
#####################################################################
retract_length: 0.50
retract_speed: 35
unretract_extra_length: 0
unretract_speed: 35
#####################################################################
[probe] ; Probe setup Z+ position - PCB Klicky
#####################################################################
; This probe is not used for Z height, only Quad Gantry Leveling
; If your probe is NO instead of NC, change pin to ^!PA3
pin: ^sht:PROBE_1
x_offset: 0
y_offset: 30.5 ; klicky PCB with Dragon Burner
z_offset: 0
speed: 8 ; up to 20mm/s tested but can result in over activation and premature microswitch failure
lift_speed: 20 ; faster tends to be less reliable
samples: 3 ; number of probes
samples_result: median ; more reliable - klipper default: average
sample_retract_dist: 3.0 ; speedy but reliable
samples_tolerance: 0.00875 ; improve reliability (0.0075 default)
samples_tolerance_retries: 6 ; improve reliability
#####################################################################
[idle_timeout]
#####################################################################
timeout: 2700
gcode:
M84 ; disable motors
TURN_OFF_HEATERS ; heaters off
SET_PIN PIN=caselight VALUE=0 ; turn case lights off
SET_NOZZLE_LEDS_OFF ; turn nozzle leds off
#####################################################################
[quad_gantry_level]
#####################################################################
; Gantry Corners for 300mm Build
gantry_corners:
-60,-10
360,370
; Adjusted 300mm probe points - Note these are absolute and arent relative to the probe position and offset (klicky)
points:
40, 18
40, 238
260,238
260,18
speed: 1000 ; speed up QGL
horizontal_move_z: 12 ; keep reasonably high incase gantry is really skewed
retries: 6
retry_tolerance: 0.00875 ; improve reliability, default 0.0075
max_adjust: 10
#####################################################################
[bed_mesh]
#####################################################################
speed: 800 ; speed up mesh
horizontal_move_z: 7 ; flying lower is OK as QGL "should" always run beforehand
; Note these are relative to the probe position and print head offset
mesh_min: 40, 40
mesh_max: 260,260
probe_count: 5,5
zero_reference_position: 150,150 ; hardwire to centre of bed as we can no longer probe the centre of the print :-(
algorithm: bicubic
#####################################################################
[input_shaper]
#####################################################################
;shaper_type_x = mzv ; cold
;shaper_freq_x = 64.4 ; 12150 accels
;damping_ratio_x = 0.057
;shaper_type_y = mzv
;shaper_freq_y = 43.4 ; 5520 accels
;damping_ratio_y = 0.110
shaper_type_x = mzv ; hot
shaper_freq_x = 67.6 ; 13390 accels
damping_ratio_x = 0.052
shaper_type_y = mzv
shaper_freq_y = 46.0 ; 6180 accels
damping_ratio_y = 0.048
#--------------------------------------------------------------------
## Common Temperature Sensors
## "EPCOS 100K B57560G104F"
## "ATC Semitec 104GT-2"
## "Generic 3950"
## "NTC 100K beta 3950" - Deprecated
## "Honeywell 100K 135-104LAG-J01"
## "NTC 100K MGB18-104F39050L32" (Keenovo Heater Pad)
## "AD595"
## "PT100 INA826"
## "PT1000"
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [stepper_z]
#*# position_endstop = -0.149