-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprinter.cfg
More file actions
512 lines (443 loc) · 14.4 KB
/
printer.cfg
File metadata and controls
512 lines (443 loc) · 14.4 KB
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
[include mainsail.cfg]
[include sensorless.cfg]
[include sb_barf.cfg]
[include macros.cfg]
[include config_backup.cfg]
[virtual_sdcard]
path: /home/robrob/printer_data/gcodes
on_error_gcode: CANCEL_PRINT
# Enable object exclusion
[exclude_object]
# Enable arcs support
[gcode_arcs]
resolution: 0.1
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_4F001A000B504B4633373520-if00
[mcu nhk]
serial: /dev/serial/by-id/usb-Klipper_rp2040_323232323619A1DD-if00
restart_method: command
[mcu cartographer]
serial: /dev/serial/by-id/usb-Cartographer_614e_260011001943303854303720-if00
restart_method: command
[printer]
kinematics: corexy
max_velocity: 350
max_accel: 5600
max_z_velocity: 50
max_z_accel: 350
square_corner_velocity: 10.0
[cartographer]
mcu: cartographer
x_offset: 0
y_offset: 20
#mesh_runs: 2
# Number of passes to make during mesh scan.
verbose: yes # For extra output
#####################################################################
# Input Shaping
#####################################################################
[adxl345]
cs_pin: cartographer:PA3
spi_bus: spi1
[resonance_tester]
accel_chip: adxl345
probe_points:
90, 90, 20
[input_shaper]
shaper_type_x = 3hump_ei
shaper_freq_x = 92.8
shaper_type_y = mzv
shaper_freq_y = 48.6
#####################################################################
# Extruder
#####################################################################
[extruder]
step_pin: nhk:gpio23
dir_pin: !nhk:gpio24
enable_pin: !nhk:gpio25
microsteps:16
gear_ratio: 9:1
rotation_distance: 48.02976
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: nhk:gpio9
sensor_pin: nhk:gpio29
sensor_type: ATC Semitec 104NT-4-R025H42G
#pullup_resistor: 2200
min_temp: 0
max_temp: 305
max_power: 1.0
min_extrude_temp: 1
max_extrude_cross_section: 5
max_extrude_only_distance: 450.0
#control = pid
#pid_kp = 26.213
#pid_ki = 1.304
#pid_kd = 131.721
## Try to keep pressure_advance below 1.0
pressure_advance: 0.045
## Default is 0.040, leave stock
pressure_advance_smooth_time: 0.040
## EXTRUDER MOTOR
[tmc2209 extruder]
sense_resistor: 0.100
uart_pin: nhk:gpio0
tx_pin: nhk:gpio1
interpolate: false
stealthchop_threshold: 0
run_current: 0.55
#####################################################################
# X/Y Stepper Settings
#####################################################################
## X Stepper on Motor1(B Motor)
# Motor1
[stepper_x]
step_pin: PE2
dir_pin: PB4
enable_pin: !PC11
microsteps: 32
rotation_distance: 32
full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
endstop_pin: tmc2209_stepper_x:virtual_endstop
position_min: 0
position_endstop: 180
position_max: 180
homing_speed: 70
homing_retract_dist: 0
homing_positive_dir: true
[tmc2209 stepper_x]
uart_pin: PC10
diag_pin: PF3
run_current: 0.800
sense_resistor: 0.110
stealthchop_threshold: 0
driver_SGTHRS: 124
## Y Stepper on Motor2 (A Motor)
# Motor2
[stepper_y]
step_pin: PF12
dir_pin: PF11
enable_pin: !PB3
microsteps: 32
rotation_distance: 32
endstop_pin: tmc2209_stepper_y:virtual_endstop
full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
position_min: 0
position_endstop: 180
position_max: 180
homing_speed: 70
homing_retract_dist: 0
homing_positive_dir: true
[tmc2209 stepper_y]
uart_pin: PF13
diag_pin: PF4
run_current: 0.800
sense_resistor: 0.110
stealthchop_threshold: 0
driver_SGTHRS: 137
#####################################################################
# Z Stepper Settings
#####################################################################
## Z0 Stepper - Front Left on MOTOR3_A
# Motor3
[stepper_z]
step_pin: PD7
dir_pin: PD6
enable_pin: !PF10
rotation_distance: 32
gear_ratio: 64:16
microsteps: 32
endstop_pin: probe:z_virtual_endstop
#position_endstop: 0
position_max: 170
position_min: -5.0
homing_speed: 8
second_homing_speed: 3
homing_retract_dist: 0
[tmc2209 stepper_z]
uart_pin: PF9
#diag_pin: PF5
interpolate: true
run_current: 0.650
sense_resistor: 0.110
stealthchop_threshold: 0
# Motor4
# The M8P only has 4 heater outputs which leaves an extra stepper
# This can be used for a second Z stepper, dual_carriage, extruder co-stepper,
# or other accesory such as an MMU
#[stepper_]
#step_pin: PD3
#dir_pin: PD2
#enable_pin: !PD5
#endstop_pin: ^PC0
#[tmc2209 stepper_]
#uart_pin: PD4
##diag_pin: PC0
#run_current: 0.650
#stealthchop_threshold: 0
## Z1 Stepper - Rear Left on Motor5
[stepper_z1]
step_pin: PC9
dir_pin: !PC8
enable_pin: !PD1
microsteps: 32
rotation_distance: 32
gear_ratio:64:16
[tmc2209 stepper_z1]
uart_pin: PD0
interpolate: true
run_current: 0.650
sense_resistor: 0.110
stealthchop_threshold: 0
# Z2 Stepper - Rear Right on Motor6
[stepper_z2]
step_pin: PA10
dir_pin: PA14
enable_pin: !PA15
rotation_distance: 32
gear_ratio: 64:16
microsteps: 32
[tmc2209 stepper_z2]
uart_pin: PF8
interpolate: true
run_current: 0.650
sense_resistor: 0.110
stealthchop_threshold: 0
## Z3 Stepper - Front Right on Motor7
[stepper_z3]
step_pin: PD11
dir_pin: !PD9
enable_pin: !PD15
rotation_distance: 32
gear_ratio: 64:16
microsteps: 32
[tmc2209 stepper_z3]
uart_pin: PD14
interpolate: true
run_current: 0.650
sense_resistor: 0.110
stealthchop_threshold: 0
#####################################################################
# Bed Heater
#####################################################################
[heater_bed]
heater_pin: PB5
sensor_pin: PA0 # TB
sensor_type: Generic 3950
max_power: 0.7
min_temp: 0
max_temp: 120
control: pid
pid_kp: 58.437
pid_ki: 2.347
pid_kd: 363.769
#####################################################################
# Homing and Gantry Adjustment Routines
#####################################################################
[idle_timeout]
timeout: 1800
[safe_z_home]
home_xy_position:90,90
speed:100
z_hop:10
z_hop_speed:10
[quad_gantry_level]
gantry_corners:
-60.2,-10.4
244.1,234.5
points:
10,10
10,150
170,150
170,10
speed: 400
horizontal_move_z: 10
retries: 5
retry_tolerance: 0.0075
#####################################################################
# Bed Mesh
#####################################################################
[bed_mesh]
zero_reference_position: 90, 90
speed: 300
horizontal_move_z: 5
# height of scanner during bed mesh scan
mesh_min: 40, 40
# start point of bed mesh [X, Y]
mesh_max: 140, 140
# end point of bed mesh [X, Y]
probe_count: 20, 20
adaptive_margin: 10
mesh_pps: 0,0 # Disable interpolation - mesh is probably dense enough
#####################################################################
# Fan Control
#####################################################################
## PART COOLING
[fan]
pin: nhk:gpio6
kick_start_time: 0.25
cycle_time: 0.15
#off_below: 0.10
## HOT END FAN
[heater_fan hotend_fan]
## Hotend Fan - FAN1
pin: nhk:gpio5
max_power: 1.0
kick_start_time: 0.5
heater: extruder
heater_temp: 50.0
# Controller fan - FAN0
[controller_fan controller_fan]
pin: PE6
max_power: 1.0
kick_start_time: 0.5
heater: heater_bed
fan_speed: 0.8
# Fan1
#[temperature_fan CM4_fan]
#pin: PE0
#sensor_type: temperature_host
#max_temp: 85.0 #Set below 85C, Pi3+ MCU can be damaged at 85C
#target_temp: 74.0 #Set this to your preferred running temperature
#min_temp: 0
#shutdown_speed: 0.0
#kick_start_time: 0.5
#off_below: 0.19
#max_speed: 1.0
#min_speed: 0.0
#control: pid
#pid_Kp: 2.0
#pid_Ki: 5.0
#pid_Kd: 0.5
#pid_deriv_time: 2.0
# Fan2 - Nevermore
[heater_fan Nevermore]
pin: PC12
max_power: 1.0
shutdown_speed: 0.0
kick_start_time: 5.0
heater: heater_bed
heater_temp: 60
fan_speed: 0.5
# Fan3
#[heater_fan fan3]
#pin: PE5
# Fan4
#[heater_fan fan4]
#pin: PE4
#tachometer_pin: PC13
# Fan5
#[heater_fan fan5]
#pin: PB8
#tachometer_pin: PC14
# Fan6
#[heater_fan fan6]
#pin: PB9
#tachometer_pin: PC15
#####################################################################
# LED Control
#####################################################################
[output_pin UV_Matchsticks]
# Chamber Lighting - Fan4 Connector - Nightlight on Sticks
pin: PE5
pwm:true
shutdown_value: 0
value:1
cycle_time: 01
#####################################################################
# Additional Sensors
#####################################################################
[temperature_sensor chamber_temp]
sensor_type: ATC Semitec 104NT-4-R025H42G
sensor_pin: PA1
min_temp: 0
max_temp: 100
gcode_id: chamber_th
[temperature_sensor BTT_Manta_8P]
sensor_type: temperature_mcu
[temperature_sensor LDO_NiteHawk_36]
sensor_type: temperature_mcu
sensor_mcu: nhk
min_temp: 0
max_temp: 100
[temperature_sensor Raspberry_Pi_CM4]
sensor_type: temperature_host
[temperature_sensor Cartographer_MCU]
sensor_type: temperature_mcu
sensor_mcu: cartographer
min_temp: 0
max_temp: 105
[board_pins]
aliases:
# EXP1 header
EXP1_1=PE9, EXP1_2=PE10,
EXP1_3=PE11, EXP1_4=PE12,
EXP1_5=PE13, EXP1_6=PE14, # Slot in the socket on this side
EXP1_7=PE15, EXP1_8=PB10,
EXP1_9=<GND>, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PB14, EXP2_2=PB13,
EXP2_3=PF7, EXP2_4=PB12,
EXP2_5=PE7, EXP2_6=PB11, # Slot in the socket on this side
EXP2_7=PE8, EXP2_8=<RST>,
EXP2_9=<GND>, EXP2_10=PC5
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [cartographer scan_model default]
#*# coefficients = 1.4233548288691857,1.8875962181838775,0.8160053528966511,0.4335299772986567,0.5663232513358246,0.49394358824656537,-0.4680835250411516,-0.5103556836626049,0.46087858300099543,0.3950213878714126
#*# domain = 3.183178674051349e-07,3.320996101517092e-07
#*# z_offset = 0
#*# reference_temperature = 31.87
#*# software_version = 1.3.3
#*# mcu_version = CARTOGRAPHER 5.1.0
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.009334, 0.014871, 0.030257, 0.012235, 0.003103, -0.003407, -0.003659, -0.011394, -0.020744, -0.024764, -0.024764, -0.027192, -0.027447, -0.027447, -0.032566, -0.027447, -0.024764, -0.030132, -0.022085, -0.019404
#*# -0.001004, 0.001519, 0.014616, 0.004169, -0.008725, -0.014061, -0.011394, -0.015522, -0.022085, -0.027192, -0.027447, -0.032693, -0.031349, -0.030132, -0.030132, -0.027192, -0.024764, -0.024510, -0.024510, -0.022085
#*# 0.006947, -0.001004, 0.009590, 0.014871, -0.006322, -0.001004, -0.001004, -0.006322, -0.008725, -0.019404, -0.018067, -0.027447, -0.032566, -0.030132, -0.027321, -0.030132, -0.035518, -0.031349, -0.029877, -0.025978
#*# -0.003407, -0.008725, 0.004173, 0.001648, -0.011647, -0.014061, -0.002331, -0.006064, -0.008725, -0.019404, -0.016731, -0.022085, -0.024764, -0.032566, -0.019404, -0.019404, -0.032566, -0.028535, -0.030132, -0.022085
#*# 0.004302, 0.001648, 0.013297, -0.002331, -0.001004, -0.006322, -0.001004, -0.001004, -0.006322, -0.011394, -0.011394, -0.014314, -0.022085, -0.032821, -0.032821, -0.019404, -0.022085, -0.016990, -0.023298, -0.019150
#*# 0.008140, 0.006947, 0.009334, -0.008725, -0.006321, -0.007395, -0.008983, -0.011394, -0.011394, -0.014187, -0.016731, -0.022085, -0.019404, -0.020744, -0.023425, -0.019404, -0.024510, -0.023425, -0.022085, -0.022085
#*# -0.003533, -0.000747, 0.011979, -0.003659, -0.006322, 0.001648, -0.006322, -0.014314, -0.014061, -0.012854, -0.016731, -0.024764, -0.016990, -0.016731, -0.014187, -0.022085, -0.016731, -0.012854, -0.022085, -0.023295
#*# -0.011394, 0.006947, 0.004302, -0.006322, -0.006322, 0.001648, -0.006322, -0.007652, -0.014061, -0.011647, -0.011394, -0.012854, -0.006322, -0.011394, -0.011394, -0.025978, -0.020615, -0.011647, -0.022085, -0.022085
#*# 0.004302, 0.014616, 0.005496, 0.001648, 0.012235, 0.009590, 0.001648, 0.009334, -0.008983, -0.011647, 0.001648, -0.001004, 0.004302, -0.011394, -0.012854, -0.019404, -0.019404, -0.014061, -0.016990, -0.014061
#*# 0.012235, 0.009334, 0.000322, 0.001648, -0.001004, -0.006322, -0.006192, 0.001648, 0.001648, -0.006322, 0.002846, -0.008983, -0.011394, -0.014314, -0.015525, -0.011394, -0.014061, -0.014061, -0.014061, -0.008725
#*# 0.012235, 0.004302, 0.002846, 0.004302, -0.002331, -0.003659, -0.006322, -0.001004, 0.008268, 0.001648, 0.001648, -0.006064, -0.012727, -0.015396, -0.016731, -0.016731, -0.019404, -0.014061, -0.014061, -0.011394
#*# 0.014616, -0.001004, 0.001519, 0.006819, 0.004302, 0.001648, -0.001004, 0.009462, 0.002975, 0.001648, 0.004302, -0.001004, -0.006064, -0.011394, -0.014061, -0.008983, -0.014187, -0.008983, -0.006322, -0.001004
#*# 0.016060, -0.001004, 0.005624, 0.009334, 0.004302, 0.004302, 0.001648, 0.011979, 0.004302, 0.001648, 0.008268, -0.003407, -0.006322, -0.014061, -0.015522, -0.008983, -0.003659, -0.003659, -0.006322, -0.001004
#*# 0.004302, -0.000747, 0.001648, 0.004302, 0.001648, 0.001648, 0.001648, 0.009334, 0.004302, 0.009590, 0.006819, -0.002331, -0.006322, -0.006064, -0.006064, -0.001004, 0.001648, 0.000322, 0.001648, 0.001648
#*# 0.004302, -0.003407, -0.001004, -0.002331, 0.006691, 0.001648, 0.004302, -0.001004, 0.002975, 0.006691, -0.003659, -0.008725, -0.014061, -0.008983, -0.011394, -0.008725, -0.008983, -0.006064, -0.007524, -0.016731
#*# 0.008140, 0.004302, 0.001648, 0.001648, 0.001648, 0.008140, 0.009590, 0.009590, 0.009590, 0.004302, -0.002205, -0.003659, -0.008725, -0.011647, -0.006322, -0.003659, -0.006322, -0.003659, -0.016731, -0.014061
#*# 0.014616, 0.006947, 0.001648, -0.003659, 0.006817, 0.016060, 0.014871, 0.009590, 0.000193, -0.003659, -0.008983, -0.006064, -0.008725, -0.008983, -0.011394, -0.014061, -0.006064, -0.008983, -0.008725, -0.008725
#*# 0.022513, 0.020013, 0.013425, 0.009590, 0.030130, 0.017504, 0.014616, 0.010784, -0.001004, -0.003659, -0.001004, -0.003659, -0.010189, -0.008725, -0.006064, -0.008983, -0.003659, -0.001004, -0.001004, -0.001004
#*# 0.017377, 0.025138, 0.018567, 0.017249, 0.019885, 0.013425, 0.010784, 0.011979, 0.004302, -0.003659, 0.001648, 0.001904, -0.006322, -0.006322, -0.004736, -0.008725, -0.006064, 0.001648, 0.009590, 0.013425
#*# 0.025138, 0.027505, 0.027765, 0.022513, 0.022513, 0.027765, 0.026451, 0.027765, 0.014871, 0.006691, 0.006947, 0.011979, 0.011979, 0.006947, 0.009334, 0.006819, 0.006691, 0.008268, 0.019885, 0.022386
#*# min_x = 40.0
#*# min_y = 40.0
#*# max_x = 140.0
#*# max_y = 140.0
#*# x_count = 20
#*# y_count = 20
#*# mesh_x_pps = 0
#*# mesh_y_pps = 0
#*# algo = bicubic
#*# tension = 0.2
#*#
#*# [extruder]
#*# pid_version = 1
#*# pid_target = 245.00
#*# pid_tolerance = 0.0200
#*# control = pid
#*# pid_kp = 53.651
#*# pid_ki = 9.623
#*# pid_kd = 74.778
#*#
#*# [cartographer touch_model default]
#*# threshold = 2182
#*# speed = 2
#*# z_offset = -0.05
#*# software_version = 1.3.3
#*# mcu_version = CARTOGRAPHER 5.1.0