-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprinter.cfg
More file actions
674 lines (536 loc) · 14.2 KB
/
Copy pathprinter.cfg
File metadata and controls
674 lines (536 loc) · 14.2 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
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
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
# This file contains common pin mappings for the BigTreeTech Octopus.
# To use this config, the firmware should be compiled for the
# STM32F446 with a "32KiB bootloader" and a "12MHz crystal" clock reference.
# See docs/Config_Reference.md for a description of parameters.
[print_stats]
###################################################################################
[include smart_filament_sensor.cfg]
###################################################################################
[include global.cfg]
###################################################################################
[include timelapse.cfg]
[include printer_macros.cfg]
[include G28.cfg]
[include shell_command.cfg]
[include input_shaper.cfg]
[include pa_cal.cfg]
[include TEST_SPEED.cfg]
[include spegnistampante.cfg]
[include plr.cfg]
###[include printer_menus.cfg]
###[include led_progress.cfg]
############################################
###################################################################################
###################################################################################
###################################################################################
### to enable M117
[display_status]
### to enable M118
[respond]
default_type: command
###default_type: echo
###default_prefix:
###########################################
[save_variables]
filename: ~/printer_data/config/saved_variables.cfg
### to exclude object on printing
[exclude_object]
# Driver0
[stepper_x]
step_pin: PF13
dir_pin: !PF12
enable_pin: !PF14
microsteps: 16
rotation_distance: 40
endstop_pin: tmc2209_stepper_x:virtual_endstop
position_endstop: 0
position_min: 0
position_max: 305
homing_speed: 50
second_homing_speed: 15
homing_retract_dist: 0
[tmc2209 stepper_x]
uart_pin: PC4
stealthchop_threshold: 99999
run_current: 1.1 ### 0.8
interpolate: False
diag_pin: PG6
sense_resistor: 0.110
driver_SGTHRS: 75
##driver_IHOLDDELAY: 1
##driver_TPOWERDOWN: 12
##driver_pwm_freq: 2
# Driver1
[stepper_y]
step_pin: PG0
dir_pin: !PG1
enable_pin: !PF15
microsteps: 16
rotation_distance: 40
endstop_pin: tmc2209_stepper_y:virtual_endstop
position_endstop: 300
position_min: 0
position_max: 305
homing_speed: 50
second_homing_speed: 15
homing_retract_dist: 0
[tmc2209 stepper_y]
uart_pin: PD11
stealthchop_threshold: 99999
diag_pin: PG9
interpolate: False
run_current: 1.1 ###0.8
sense_resistor: 0.110
driver_SGTHRS: 75
##driver_IHOLDDELAY: 1
##driver_TPOWERDOWN: 12
##driver_pwm_freq: 2
# Driver2
[stepper_z]
step_pin: PF11
dir_pin: !PG3
enable_pin: !PG5
microsteps: 16 #####16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
###position_endstop: 0
position_max: 340
position_min: -7
###homing_speed: 5
###second_homing_speed: 5
###homing_retract_dist: 5
[tmc2209 stepper_z]
uart_pin: PC6
##diag_pin: PG10
run_current: 1.0 ###0.750
stealthchop_threshold: 99999
interpolate: False
# Driver3
[stepper_z1]
step_pin: PG4
dir_pin: !PC1
enable_pin: !PA0
microsteps: 16 #####16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
###position_endstop: 0
###position_max: 340
###position_min: -7
[tmc2209 stepper_z1]
uart_pin: PC7
##diag_pin: PG10
run_current: 1.0
stealthchop_threshold: 99999
interpolate: False
# Driver4
[extruder]
max_extrude_only_distance: 100.0
step_pin: PF9
#dir_pin: !PF10 #extrudort
dir_pin: PF10 #HGX extruder
enable_pin: !PG2
###pullup_resistor: 3600
microsteps: 16 #####16
full_steps_per_rotation: 200
gear_ratio: 44:10 #HGX
#gear_ratio: 50:10 #extrudort
#for HGX LITE!
rotation_distance: 25 #24.3
#for sherpa mini/extrudort
#rotation_distance: 22.678 ###23.56 ###23.20
###################
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA2 # HE0
sensor_type: EPCOS 100K B57560G104F # Stock
###sensor_type: ATC Semitec 104GT-2
sensor_pin: PF4 # T0
###########
pressure_advance: 0.11 ###0.095 ###0.115 ###0.10 ###0.11
pressure_advance_smooth_time: 0.040
###########
control = pid
pid_kp = 32.148
pid_ki = 2.187
pid_kd = 118.144
#control = pid
#pid_kp = 17.541
#pid_ki = 0.907
#pid_kd = 84.854
min_temp: 0
max_temp: 275
min_extrude_temp: 185
[tmc2209 extruder]
uart_pin: PF2
run_current: 0.650 ###0.290 ##### 0.350 ##### 0.500
stealthchop_threshold: 0
interpolate: True
[bltouch]
sensor_pin: ^PB7
control_pin: PB6
x_offset: 0
y_offset: -39.5 ###26.5
### piu grande il numero e piu schaccia contro il piatto.... 0.01 -> 2.905 >> 2.925
z_offset = 3.000 ###3.000
###speed: 2 oppure 3
speed: 1
#velocita di abbassamento z dopo ogni probe
lift_speed: 10 ###5
#1 test per point, if you want 2, change 1 with 2
samples: 3 #####1
###distanza di Z tra un probe e l'altro sullo stesso punto
sample_retract_dist: 1.5 ### 4.0 #importante se tocca sul piatto durante probe calibrate....
###probe_with_touch_mode: true
########################################################################################
[safe_z_home]
home_xy_position: 151, 180 ### 151-5, 180-5 delle retract_distances #coordinate g28 prima y poi x
speed: 150
##distanza Z sul G28
z_hop: 4 ###3.5 #####7
z_hop_speed: 1.0
[heater_bed]
heater_pin: PA1
sensor_pin: PF3 # TB
sensor_type: EPCOS 100K B57560G104F # Stock
control = pid
pid_kp = 50.875
pid_ki = 1.437
pid_kd = 450.241
min_temp: 0
max_temp: 130
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_3E0044000A51373330333137-if00
###baud: 250000
###restart_method:command
[mcu rpi]
serial: /tmp/klipper_host_mcu
[adxl345]
cs_pin: rpi:None
##cs_pin: PC8
##spi_software_miso_pin: PC9
##spi_software_sclk_pin: PC10
##spi_software_mosi_pin: PC11
[resonance_tester]
accel_chip: adxl345
probe_points:
###152, 152, 20
147, 152, 20
#min_freq: 40
#max_freq: 125
###accel_per_hz: 75
###hz_per_sec: 1
##[adxl345 hotend]
##cs_pin: rpi:None
##spi_bus: spidev0.0
##[adxl345 bed]
##cs_pin: rpi:None
##spi_bus: spidev0.1
##[resonance_tester]
##accel_chip_x: adxl345 hotend
##accel_chip_y: adxl345 bed
##probe_points:
## 115, 111, 20
###[output_pin caselight]
###pin: rpi:gpio20
[virtual_sdcard]
path: /home/pi/printer_data/gcodes
on_error_gcode: CANCEL_PRINT
[firmware_retraction]
retract_speed: 50
retract_length: 1.2
###unretract_extra_length: 0.1
unretract_speed: 50
[pause_resume]
recover_velocity: 70 #allows pause resume functionality.
############################################
[output_pin protezione_ventola]
pin: PG12
value:1
###static_value: 1
#[delayed_gcode verificafan]
#initial_duration: 0.1
#gcode:
# {% if printer.extruder.target > 0 %}
# SET_PIN PIN=Ventola_hotend value=1
# {% else %}
# {% if printer.extruder.temperature > 35 %}
# SET_PIN PIN=Ventola_hotend value=1
# {% else %}
# SET_PIN PIN=Ventola_hotend value=0
# {% endif %}
# {% endif %}
# UPDATE_DELAYED_GCODE ID=verificafan DURATION=1
##########################################
[heater_fan Ventola_nozzle]
pin: PD12 #AL POSTO DI HEATER 1!!!
kick_start_time: 0.350
heater: extruder
heater_temp: 50.0
max_power: 1.0
shutdown_speed: 0.0
cycle_time: 0.0001 #0.0005 #2 kHz PWM signal
hardware_pwm: False
fan_speed: 1.0
[fan]
pin: PE5
###################################################################################
###[gcode_arcs]
###resolution: 1.0
###################################################################################
[printer]
kinematics: corexy
max_velocity: 750 #350
max_accel: 8500 ###10000
###max_accel_to_decel: 5000 ###1/2 di max_accel
max_z_velocity: 25
max_z_accel: 100
square_corner_velocity: 10.0
########################################################################################################
[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=PC5
# See the sample-lcd.cfg file for definitions of common LCD displays.
# A [probe] section can be defined instead with a pin: setting identical
# to the sensor_pin: for a bltouch
[neopixel neopixel]
pin: PB0
chain_count: 45
color_order: GRB
initial_RED: 1.0
initial_GREEN: 1.0
initial_BLUE: 1.0
[input_shaper]
shaper_type_x = mzv
shaper_freq_x = 81.4
shaper_type_y = mzv
shaper_freq_y = 54.4
### BEDLEVEL
[bed_mesh]
speed: 250
###horizontal_move_z: 8
horizontal_move_z: 5 ###aumentare se tocca a terra il bltouch durante il G29
###x_offset: 7.2
###y_offset: 30.2
###screw1: 31,63
###screw2: 271,63
###screw3: 271,302
###impostazioni per calibrare G29
mesh_min: 30,35 #####30, 21
mesh_max: 270, 255 #####269,260
algorithm: bicubic
###algorithm: lagrange
#4x4 grid for 4x4 grid for auto leveling with bltouch
probe_count: 6,6 ###4,4
###fade_start: 1.0
mesh_pps: 3,3 ###1,1
[force_move]
enable_force_move: True
###[z_tilt]
###z_positions:
### -15,155
### 325,155
###points:
### 10,180
### 290,180
###speed: 160
###horizontal_move_z: 4.5
###retries: 3
###retry_tolerance: 0.009
[screws_tilt_adjust]
screw1: 30,76
screw1_name: front left screw
screw2: 270,75
screw2_name: front right screw
screw3: 269,295
screw3_name: rear right screw
screw4: 30,295
screw4_name: rear left screw
horizontal_move_z: 5 ######5.0
speed: 160.0
screw_thread: CW-M3
[bed_screws]
screw1: 10,10
screw2: 300,10
screw3: 300,300
screw4: 10,300
###################################################################################
###[gcode_arcs]
###resolution: 1.0
###################################################################################
[display_status]
##################################[static_digital_output reset_display]
##################################pins: !PC6, !PD13
[output_pin BEEPER]
pin: PD13
pwm: False ###True
value: 0
shutdown_value: 0
###cycle_time: 0.001
###scale: 1000
# In addition to the above glyphs, 16x4 displays also have the
# following hard-coded single character glyphs: right_arrow, degrees.
[temperature_sensor Raspberry_temp]
sensor_type: temperature_host
[temperature_sensor Octopus_temp]
sensor_type: temperature_mcu
sensor_mcu: mcu
[idle_timeout]
timeout: 600
gcode:
SET_GCODE_VARIABLE MACRO=global VARIABLE=extruder_temp VALUE=0
{% if printer.pause_resume.is_paused %}
SET_GCODE_VARIABLE MACRO=global VARIABLE=extruder_temp VALUE={printer[printer.toolhead.extruder].target}
M104 S0 ; turn off extruder to not bake filament
{% else %}
TURN_OFF_HEATERS
M84
{% endif %}
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_mesh sp-40]
#*# version = 1
#*# points =
#*# 0.143021, 0.159375, 0.102708, 0.096250, 0.135625
#*# 0.073750, 0.087708, 0.020208, 0.014167, 0.030937
#*# 0.055521, 0.057292, -0.008021, -0.023229, -0.010208
#*# 0.104583, 0.115625, 0.057292, 0.044271, 0.056250
#*# 0.124792, 0.147812, 0.109792, 0.112187, 0.143333
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 30.0
#*# max_x = 270.0
#*# min_y = 35.0
#*# max_y = 255.0
#*#
#*# [bed_mesh sp-50]
#*# version = 1
#*# points =
#*# 0.182083, 0.187917, 0.130417, 0.141562, 0.174792
#*# 0.125208, 0.129583, 0.062812, 0.048437, 0.068854
#*# 0.093229, 0.093958, 0.039479, 0.021250, 0.042812
#*# 0.169896, 0.164687, 0.109375, 0.092187, 0.105417
#*# 0.179583, 0.204479, 0.165833, 0.164896, 0.197396
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 30.0
#*# max_x = 270.0
#*# min_y = 35.0
#*# max_y = 255.0
#*#
#*# [bed_mesh sp]
#*# version = 1
#*# points =
#*# 0.149375, 0.168437, 0.107083, 0.107083, 0.147187
#*# 0.083333, 0.091250, 0.029792, 0.021562, 0.033125
#*# 0.056562, 0.058750, 0.003021, -0.011458, -0.001771
#*# 0.107812, 0.122604, 0.060312, 0.047917, 0.061354
#*# 0.124062, 0.149583, 0.111250, 0.116875, 0.150729
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 30.0
#*# max_x = 270.0
#*# min_y = 35.0
#*# max_y = 255.0
#*#
#*# [bed_mesh sp-60]
#*# version = 1
#*# points =
#*# 0.041667, 0.100937, 0.071042, 0.047083, 0.038333
#*# -0.005208, 0.044687, 0.003021, -0.014792, -0.046250
#*# -0.021458, 0.022292, -0.019792, -0.053750, -0.073438
#*# 0.023333, 0.080000, 0.020104, -0.007292, -0.045000
#*# 0.050000, 0.111146, 0.080521, 0.052604, 0.028750
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 30.0
#*# max_x = 270.0
#*# min_y = 35.0
#*# max_y = 255.0
#*#
#*# [bed_mesh sp-80]
#*# version = 1
#*# points =
#*# 0.091875, 0.133750, 0.109375, 0.145937, 0.142187
#*# 0.104375, 0.110312, 0.067396, 0.031146, 0.039583
#*# 0.070208, 0.139896, 0.064375, 0.104167, 0.099583
#*# 0.183021, 0.231875, 0.183750, 0.128021, 0.182812
#*# 0.157187, 0.228229, 0.260833, 0.279687, 0.302083
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 30.0
#*# max_x = 270.0
#*# min_y = 35.0
#*# max_y = 255.0
#*#
#*# [bed_mesh sp-90]
#*# version = 1
#*# points =
#*# 0.228646, 0.208750, 0.166562, 0.157604, 0.178542, 0.198229
#*# 0.199479, 0.150625, 0.096562, 0.069271, 0.061667, 0.049271
#*# 0.169896, 0.119271, 0.089167, 0.025521, 0.028854, 0.031042
#*# 0.191042, 0.168958, 0.101458, 0.060104, 0.058750, 0.019792
#*# 0.244479, 0.210729, 0.156875, 0.148021, 0.093958, 0.092396
#*# 0.290000, 0.308854, 0.229271, 0.203021, 0.197396, 0.209167
#*# x_count = 6
#*# y_count = 6
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 30.0
#*# max_x = 270.0
#*# min_y = 35.0
#*# max_y = 255.0
#*#
#*# [bed_mesh sp-70]
#*# version = 1
#*# points =
#*# 0.172917, 0.172917, 0.122917, 0.127083, 0.125000, 0.181667
#*# 0.138333, 0.144167, 0.080833, 0.057917, 0.038333, 0.073333
#*# 0.125833, 0.092500, 0.045000, -0.002917, 0.006250, -0.001250
#*# 0.130000, 0.119583, 0.051250, -0.004583, -0.019167, -0.009583
#*# 0.152500, 0.166250, 0.115000, 0.056667, 0.052917, 0.066667
#*# 0.168750, 0.185000, 0.164583, 0.122500, 0.149167, 0.197083
#*# x_count = 6
#*# y_count = 6
#*# mesh_x_pps = 3
#*# mesh_y_pps = 3
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 30.0
#*# max_x = 270.0
#*# min_y = 35.0
#*# max_y = 255.0
#*#