-
Notifications
You must be signed in to change notification settings - Fork 0
/
printer-20231001_132100.cfg
586 lines (521 loc) · 14.5 KB
/
printer-20231001_132100.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
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
[include mainsail_local.cfg]
#[include toolhead_btt_ebbcan_G0B1_v1.2.cfg]
#[include Voron2_Octopus_Config.cfg]
[include sb_leds.cfg]
[include KAMP/*cfg]
[include macros.cfg]
[include flexplate.cfg]
[include config_backup.cfg]
[include reshelper.cfg]
[save_variables]
filename: /home/patrez/printer_data/.variables.stb
[exclude_object]
[gcode_arcs]
[mcu]
## Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
##--------------------------------------------------------------------
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_250030001750344D30353320-if00
restart_method: command
##--------------------------------------------------------------------
#[temperature_fan MCU_fan]
#sensor_type: temperature_mcu
#sensor_mcu: mcu
#pin: PA8
#max_temp: 50.0
#target_temp: 40.0
#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
[temperature_fan MCU_FAN]
sensor_type: temperature_mcu
sensor_mcu: mcu
pin: PA8
max_temp: 50.0
target_temp: 45.0
min_temp: 20.0
shutdown_speed: 0.0
kick_start_time: 0.5
off_below: 0.1
max_speed: 0.8
min_speed: 0.0
control: pid
pid_Kp: 100
pid_Ki: 5
pid_Kd: 0.2
#[fan_generic MCU_FAN]
#pin: PA8
#[temperature_sensor Octopus]
#sensor_type: temperature_mcu
#sensor_mcu: mcu
[printer]
kinematics: corexy
max_velocity: 720
max_accel: 9000 #Max 4000
max_accel_to_decel: 7200
max_z_velocity: 20 #Max 15 for 12V TMC Drivers, can increase for 24V
max_z_accel: 350
square_corner_velocity: 10.0
#####################################################################
# Toolhead section
#####################################################################
## BOARD PINS
[board_pins EBB36_G0B1_v1.2]
mcu: can0
aliases:
aliases_step:
EXT_EN=PD2,EXT_STEP=PD0,EXT_DIR=PD1,EXT_UART=PA15
aliases_limitsw: # these are preferred for endstops (including klicky)
LIMIT_1=PB7,LIMIT_2=PB5,LIMIT_3=PB6
aliases_bltouch: # these are the dupont connectors for bltouch
PROBE_1=PB9,PROBE_2=PB8
aliases_fans:
FAN0=PA1,FAN1=PA0
aliases_thermistors:
TH0=PA3,PT100_CS=PA4,PT100_SCLK=PA5,PT100_MISO=PA6,PT100_MOSI=PA7
aliases_heaters:
HE0=PB13
aliases_rgb:
RGBLED=PD3
aliases_adxl:
ADXL_CS=PB12,ADXL_SCLK=PB10,ADXL_MISO=PB2,ADXL_MOSI=PB11
aliases_i2c:
AUX0=PB3,AUX1=PB4
## can0
[mcu can0]
canbus_uuid: 1052fcf48790 # run the following command to locate the uuid > ~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0
## can0
[temperature_sensor CANBOARD]
sensor_type: temperature_mcu
sensor_mcu: can0
## HOT END FAN
[heater_fan hotend_fan]
## Hotend Fan - FAN1
pin: can0:FAN1
max_power: 1.0
kick_start_time: 0.5
heater: extruder
heater_temp: 50.0
## PART COOLING
[fan]
pin: can0:FAN0
kick_start_time: 0.25
cycle_time: 0.15
off_below: 0.10
## EXTRUDER
[extruder]
step_pin: can0:EXT_STEP
dir_pin: can0:EXT_DIR
enable_pin: !can0:EXT_EN
rotation_distance: 22.275
#rotation_distance: 22.11197625 #22.67895 #for 5mm Shaft Driven Bondtech gearsets
#rotation_distance: 24.36568 #26.07128 #26.72306036
gear_ratio: 50:10 #BMG Gear Ratio
microsteps: 16
full_steps_per_rotation: 200 #1.8deg Motor
max_extrude_only_distance: 1400.0
max_extrude_only_velocity: 75.0
max_extrude_only_accel: 1500
max_extrude_cross_section: 5
pressure_advance: 0.025
pressure_advance_smooth_time: 0.040
nozzle_diameter: 0.4
filament_diameter: 1.750
heater_pin: can0:HE0
sensor_pin: can0:TH0
sensor_type: ATC Semitec 104GT-2 # this is the default for the Revo heater
#pullup_resistor: 2200 # 4700 is default and does not need defining, 2200 is used for the PT1000
control: pid
pid_Kp: 32.751
pid_Ki: 2.022
pid_Kd: 132.642
min_temp: -50
max_temp: 350
## EXTRUDER MOTOR
[tmc2209 extruder]
uart_pin: can0:EXT_UART
stealthchop_threshold: 0
run_current: 0.5
sense_resistor: 0.110
interpolate: false
[autotune_tmc extruder]
motor: moons-cse14hra1l410a
## ADXL345
[adxl345]
cs_pin: can0:ADXL_CS
spi_software_sclk_pin: can0:ADXL_SCLK
spi_software_mosi_pin: can0:ADXL_MOSI
spi_software_miso_pin: can0:ADXL_MISO
axes_map: x,y,z
[resonance_tester]
accel_chip: adxl345
probe_points:
175,175,20 # an example for a 350mm printer
[input_shaper]
shaper_freq_x: 48.2
shaper_type_x: mzv
damping_ratio_x: 0.1227
shaper_freq_y: 35.4
shaper_type_y: mzv
damping_ratio_y: 0.0789
#####################################################################
# Probe and mesh
#####################################################################
[probe]
pin: ^can0:LIMIT_2
x_offset: 0
y_offset: 0
#z_offset: 0
speed: 10
samples: 2
#sample_retract_dist: 2
lift_speed: 20.0
samples_result: median
samples_tolerance: 0.02
samples_tolerance_retries: 5
activate_gcode:
{% set PROBE_TEMP = 140 %}
{% set MAX_TEMP = PROBE_TEMP + 5 %}
{% set ACTUAL_TEMP = printer.extruder.temperature %}
{% set TARGET_TEMP = printer.extruder.target %}
{% if TARGET_TEMP > PROBE_TEMP %}
{ action_respond_info('Extruder temperature target of %.1fC is too high, lowering to %.1fC' % (TARGET_TEMP, PROBE_TEMP)) }
M109 S{ PROBE_TEMP }
{% else %}
# Temperature target is already low enough, but nozzle may still be too hot.
{% if ACTUAL_TEMP > MAX_TEMP %}
{ action_respond_info('Extruder temperature %.1fC is still too high, waiting until below %.1fC' % (ACTUAL_TEMP, MAX_TEMP)) }
TEMPERATURE_WAIT SENSOR=extruder MAXIMUM={ MAX_TEMP }
{% endif %}
{% endif %}
[settling_probe]
settling_sample: True
[filament_motion_sensor SFS_T0]
detection_length: 15.00 ; This can be adjusted to your desired level of sensitivity. 10 is a recomended value to prevent flow dropoff false triggers.
extruder: extruder
switch_pin: ^PG9
pause_on_runout: True ; This can be set to false to debug false positives putting the sensor in "monitor mode". The printer will not pause but it will run the runout_gcode below.
event_delay: 3.0
pause_delay: 0.5
runout_gcode:
M117 Runout Detected!
[delayed_gcode DISABLEFILAMENTSENSOR] ; This will disable the SFS 1 second after klipper starts
initial_duration: 1
gcode:
SET_FILAMENT_SENSOR SENSOR=SFS_T0 ENABLE=0 ; Put your filament sensor's name after SENSOR=
[bed_mesh]
speed: 400
horizontal_move_z: 15
mesh_min: 40, 40
mesh_max: 310,310
fade_start: 0.6
fade_end: 10.0
probe_count: 9,9 # Values should be odd, so one point is directly at bed center
algorithm: bicubic
relative_reference_index: 40 # Update when changing probe_count, to ((x points * y points) - 1) / 2. (the center point)
#;zero_reference_position: 175, 175
#####################################################################
# X/Y Stepper Settings
#####################################################################
## B Stepper - Left
## Connected to MOTOR_0
## Endstop connected to DIAG_0
[stepper_x]
step_pin: PF13
dir_pin: PF12
enable_pin: !PF14
rotation_distance: 40
microsteps: 32
full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
endstop_pin: can0:LIMIT_3
position_min: 0
position_endstop: 350
position_max: 350
homing_speed: 100 #Max 100
homing_retract_dist: 5
homing_positive_dir: true
[tmc2209 stepper_x]
uart_pin: PC4
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
[autotune_tmc stepper_x]
motor: moons-ms17hd6p420I-05
## A Stepper - Right
## Connected to MOTOR_1
## Endstop connected to DIAG_1
[stepper_y]
step_pin: PG0
dir_pin: PG1
enable_pin: !PF15
rotation_distance: 40
microsteps: 32
full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
endstop_pin: PG6
position_min: 0
position_endstop: 350
position_max: 350
homing_speed: 100 #Max 100
homing_retract_dist: 5
homing_positive_dir: true
[tmc2209 stepper_y]
uart_pin: PD11
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
[autotune_tmc stepper_y]
motor: moons-ms17hd6p420I-05
#####################################################################
# Z Stepper Settings
#####################################################################
## Z0 Stepper - Front Left
## Connected to MOTOR_2
## Endstop connected to DIAG_2
[stepper_z]
step_pin: PF11
dir_pin: PG3
enable_pin: !PG5
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
endstop_pin: probe:z_virtual_endstop
position_max: 310
position_min: -5
homing_speed: 8
second_homing_speed: 3
homing_retract_dist: 3
[tmc2209 stepper_z]
uart_pin: PC6
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
[autotune_tmc stepper_z]
motor: moons-ms17hd6p420I-05
## Z1 Stepper - Rear Left
## Connected to MOTOR_3
[stepper_z1]
step_pin: PG4
dir_pin: !PC1
enable_pin: !PA0
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
[tmc2209 stepper_z1]
uart_pin: PC7
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
[autotune_tmc stepper_z1]
motor: moons-ms17hd6p420I-05
## Z2 Stepper - Rear Right
## Connected to MOTOR_4
[stepper_z2]
step_pin: PF9
dir_pin: PF10
enable_pin: !PG2
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
[tmc2209 stepper_z2]
uart_pin: PF2
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
[autotune_tmc stepper_z2]
motor: moons-ms17hd6p420I-05
## Z3 Stepper - Front Right
## Connected to MOTOR_5
[stepper_z3]
step_pin: PC13
dir_pin: !PF0
enable_pin: !PF1
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
[tmc2209 stepper_z3]
uart_pin: PE4
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 0
[autotune_tmc stepper_z3]
motor: moons-ms17hd6p420I-05
#####################################################################
# Bed Heater
#####################################################################
## SSR Pin - HE1
## Thermistor - TB
[heater_bed]
heater_pin: PA3
sensor_type: Generic 3950
sensor_pin: PF3
max_power: 0.6
min_temp: 0
max_temp: 120
control: pid
pid_kp: 39.535
pid_ki: 1.757
pid_kd: 222.387
[heater_fan controller_fan1]
pin: PE6
kick_start_time: 0.5
heater: heater_bed
heater_temp: 50.0
fan_speed: 0.6
#####################################################################
# Homing and Gantry Adjustment Routines
#####################################################################
[idle_timeout]
timeout: 1800
[safe_z_home]
home_xy_position: 175,175
speed: 350
z_hop: 10
[quad_gantry_level]
gantry_corners:
-60,-10
410,420
points:
50,25
50,275
300,275
300,25
speed: 350
horizontal_move_z: 10
retries: 5
retry_tolerance: 0.0055
max_adjust: 10
########################################
# EXP1 / EXP2 (display) pins
########################################
[board_pins]
aliases:
# EXP1 header
EXP1_1=PE8, EXP1_2=PE7,
EXP1_3=PE9, EXP1_4=PE10,
EXP1_5=PE12, EXP1_6=PE13, # Slot in the socket on this side
EXP1_7=PE14, EXP1_8=PE15,
EXP1_9=<GND>, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PA6, EXP2_2=PA5,
EXP2_3=PB1, EXP2_4=PA4,
EXP2_5=PB2, EXP2_6=PA7, # Slot in the socket on this side
EXP2_7=PC15, EXP2_8=<RST>,
EXP2_9=<GND>, EXP2_10=<5V>
#####################################################################
# Displays
#####################################################################
## mini12864 LCD Display
[display]
lcd_type: uc1701
cs_pin: EXP1_3
a0_pin: EXP1_4
rst_pin: EXP1_5
encoder_pins: ^EXP2_5, ^EXP2_3
click_pin: ^!EXP1_2
contrast: 63
spi_software_miso_pin: EXP2_1
spi_software_mosi_pin: EXP2_6
spi_software_sclk_pin: EXP2_2
## To control Neopixel RGB in mini12864 display
[neopixel btt_mini12864]
pin: EXP1_6
chain_count: 3
initial_RED: 0.1
initial_GREEN: 0.5
initial_BLUE: 0.0
color_order: RGB
## Set RGB values on boot up for each Neopixel.
## Index 1 = display, Index 2 and 3 = Knob
[delayed_gcode setdisplayneopixel]
initial_duration: 1
gcode:
SET_LED LED=btt_mini12864 RED=1 GREEN=1 BLUE=1 INDEX=1 TRANSMIT=0
SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0
SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_mesh cold_pei_rough]
#*# version = 1
#*# points =
#*# -0.040000, -0.011250, -0.005000, -0.011250, -0.055000
#*# -0.023750, 0.020000, 0.006250, 0.016250, -0.035000
#*# -0.020000, -0.005000, 0.000000, -0.012500, -0.062500
#*# -0.040000, -0.032500, -0.025000, -0.038750, -0.060000
#*# -0.016250, 0.005000, 0.007500, -0.010000, -0.033750
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 40.0
#*# max_x = 310.0
#*# min_y = 40.0
#*# max_y = 310.0
#*#
#*# [bed_mesh pei_rough_cold_tight]
#*# version = 1
#*# points =
#*# -0.036250, 0.008750, -0.001250, -0.003750, -0.003750, -0.005000, -0.032500
#*# -0.033750, -0.001250, 0.003750, 0.016250, -0.017500, -0.022500, -0.038750
#*# -0.000000, 0.016250, 0.020000, -0.011250, 0.006250, -0.001250, -0.031250
#*# -0.037500, -0.032500, -0.010000, 0.000000, -0.032500, -0.048750, -0.063750
#*# -0.053750, -0.052500, -0.031250, -0.015000, -0.023750, -0.042500, -0.063750
#*# -0.032500, -0.008750, 0.011250, 0.025000, 0.027500, -0.012500, -0.036250
#*# 0.043750, 0.070000, 0.091250, 0.087500, 0.082500, 0.071250, 0.058750
#*# x_count = 7
#*# y_count = 7
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 40.0
#*# max_x = 310.0
#*# min_y = 40.0
#*# max_y = 310.0
#*#
#*# [probe]
#*# z_offset = -0.425
#*#
#*# [input_shaper]
#*# shaper_type_x = mzv
#*# shaper_freq_x = 55.6
#*# shaper_type_y = mzv
#*# shaper_freq_y = 36.8
#*#
#*# [bed_mesh pei_rough_PLA]
#*# version = 1
#*# points =
#*# -0.036250, -0.032500, 0.000000, -0.015000, -0.016250, -0.021250, -0.013750, -0.021250, -0.048750
#*# -0.025000, -0.020000, -0.016250, -0.016250, -0.016250, -0.025000, -0.015000, -0.040000, -0.042500
#*# 0.000000, 0.006250, 0.013750, 0.008750, 0.005000, -0.011250, -0.011250, -0.030000, -0.046250
#*# 0.013750, 0.022500, 0.022500, 0.040000, 0.027500, -0.001250, 0.012500, -0.018750, -0.042500
#*# -0.001250, 0.000000, 0.018750, 0.017500, 0.000000, -0.022500, -0.008750, -0.040000, -0.058750
#*# -0.011250, -0.006250, 0.001250, 0.001250, 0.003750, -0.013750, -0.032500, -0.055000, -0.060000
#*# 0.006250, 0.021250, 0.018750, -0.001250, -0.010000, -0.012500, -0.030000, -0.038750, -0.061250
#*# 0.022500, 0.018750, 0.027500, 0.028750, 0.025000, 0.010000, 0.006250, -0.011250, -0.025000
#*# 0.071250, 0.081250, 0.107500, 0.086250, 0.067500, 0.062500, 0.050000, 0.051250, 0.015000
#*# x_count = 9
#*# y_count = 9
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 40.2
#*# max_x = 307.96
#*# min_y = 40.76
#*# max_y = 307.88