-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter.cfg
1467 lines (1328 loc) · 32.9 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
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
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[include scripts/splash.cfg]
[include scripts/lcd.cfg]
[include scripts/lcd_tweak.cfg]
# [include klicky.cfg]
# [include z_calibration.cfg]
[include macro.cfg]
# [include scripts/vibrations.cfg]
# [include trad_rack_ercf_easybrd.cfg]
[include scripts/shell_command.cfg]
[include beacon.cfg]
# [include ptc.cfg]
# [include scripts/auto_speed.cfg]
# [include chopper_tune.cfg]
[include chopper_tune_beta.cfg]
# [include motors_sync.cfg]
[duplicate_pin_override]
pins: hv:PB11, hv:PG9, EXP1_2
[homing_override]
axes: xyz
gcode: SET_KINEMATIC_POSITION Z=0
{% set config = printer.configfile.config %}
{% set center = (printer.toolhead.axis_maximum.x/2 - config['idm']['x_offset']|float),
(printer.toolhead.axis_maximum.y/2 - config['idm']['y_offset']|float) %}
G0 F{config.printer.max_velocity|float * 60}
# SET_VELOCITY_LIMIT ACCEL=10000
# SET_VELOCITY_LIMIT ACCEL_TO_DECEL=10000
# FORCE_MOVE STEPPER=stepper_z1 DISTANCE=10 VELOCITY=10 ACCEL=200
# FORCE_MOVE STEPPER=stepper_z2 DISTANCE=10 VELOCITY=10 ACCEL=200
# SET_VELOCITY_LIMIT ACCEL=10000
M118 params{params}
{% if ('X' not in params and 'Y' not in params and 'Z' not in params) or
('X' in params and 'Y' in params and 'Z' in params) %}
{% set x,y,z = True, True, True %}
{% endif %}
G0 Z5
{% if 'X' in params or x %}
# SET_STEPPER_ENABLE STEPPER=stepper_x ENABLE=1
# SET_STEPPER_ENABLE STEPPER=stepper_y ENABLE=1
# G4 P500
# SENSORLESS_HOME_X
G28 X{config.stepper_x.position_endstop}
G0 X265
{% endif %}
{% if 'Y' in params or y %}
# SENSORLESS_HOME_Y
G28 Y{config.stepper_y.position_endstop}
{% endif %}
{% if 'Z' in params or z %}
{% if 'Z' in params and not z %}
{% if 'xy' not in printer.toolhead.homed_axes %}
{action_raise_error('WARNING!!! XY axes not homed')}
{% endif %}
{% endif %}
G0 X{center[0]} Y{center[1]}
G28 Z
{% endif %}
# {% else %}
# {action_raise_error('WARNING!!! Homing directions is invalid')}
# {% endif %}
#[safe_z_home]
#home_xy_position: 227.9, 357.9
#speed: 550
#z_hop: 5
#z_hop_speed: 30
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_3E001D001650344D30353320-if00
restart_method: command
# canbus_uuid: 1abc06566d3a
# canbus_interface: can0
[mcu hv]
serial: /dev/serial/by-id/usb-Klipper_stm32h723xx_240030001651303531313638-if00
restart_method: command
# [mcu adxl]
# serial: /dev/serial/by-id/usb-Klipper_rp2040_E660C0D1C7454A2B-if00
# restart_method: command
# [adxl345]
# cs_pin: adxl:gpio1
# spi_bus: spi0a
# axes_map: x,y,z
# [output_pin power_mode]
# pin: adxl:gpio23
[mcu rpi]
serial: /tmp/klipper_host_mcu
[adxl345 rpi]
cs_pin: rpi:None
axes_map: z,x,y
[resonance_tester]
probe_points:
175,175,20
accel_chip: mpu9250
move_speed: 500
min_freq: 1
max_freq: 140
accel_per_hz: 100
hz_per_sec: 1
sweeping_period: 0
# sweeping_accel: 400
# sweeping_period: 1.2
[resonance_analyser]
accel_chip: mpu9250
[input_shaper]
shaper_freq_x: 97
shaper_freq_y: 80
shaper_type_x: mzv
shaper_type_y: mzv
damping_ratio_x: 0.05
damping_ratio_y: 0.05
[printer]
# kinematics: extended_corexy
kinematics: corexy
max_velocity: 1000
max_accel: 50000
minimum_cruise_ratio: 0
max_z_velocity: 30
max_z_accel: 1500
square_corner_velocity: 30
# buffer_time_low: 2
# buffer_time_high: 4
# buffer_low_time: 0.200
# buffer_time_start: 0.250
# move_flush_time: 0.050
# home_y_axis_with_b_rail : True
# scv_angle_threshold: 90
# scv_boost_coeff: 1.1
#####################################################################
# X/Y Stepper Settings
#####################################################################
[motors_sync]
# axes: x,y,u,u1
axes: x,y
accel_chip: mpu9250
microsteps: 16
# model: linear
# model_coeffs: 5000, 0
model: power
model_coeffs:
961.5226672727,
1.6919745670
max_step_size: 8
retry_tolerance: 1000
retries: 10
# [motor_constants moons-ms17hd6p4200X]
# resistance: 1.3
# inductance: 0.0029
# holding_torque: 0.63
# max_current: 2
# steps_per_revolution: 200
# [autotune_tmc stepper_x]
# motor: moons-ms17hd6p4200X
# voltage: 24
# tuning_goal: performance
## A Stepper - Rear Right
## Connected to MOTOR_7
[stepper_x]
step_pin: hv:PE6
dir_pin: !hv:PA14
enable_pin: !hv:PE0
rotation_distance: 40
microsteps: 64
# step_pulse_duration: 0.000005
# endstop_pin: tmc5160_stepper_a:virtual_endstop
endstop_pin: hv:PG6
position_min: 0
position_endstop: 355
position_max: 355
homing_speed: 80
# second_homing_speed: 20
homing_retract_dist: 0
homing_positive_dir: True
# [tmc2209 stepper_x]
# uart_pin: hv:PD3
# interpolate: False
# run_current: 2
# sense_resistor: 0.110
# stealthchop_threshold: 0
# diag_pin: hv:PG15
# driver_SGTHRS: 150
[tmc5160 stepper_x]
cs_pin: hv:PD3
spi_software_miso_pin: hv:EXP2_1
spi_software_mosi_pin: hv:EXP2_6
spi_software_sclk_pin: hv:EXP2_2
#spi_bus: spi1
interpolate: False
run_current: 2.4
# hold_current: 1.5
sense_resistor: 0.075
stealthchop_threshold: 0
diag1_pin: !hv:PG15
driver_MULTISTEP_FILT: 0 # 1 Enable step input filtering for StealthChop optimization with external step source 0/1
driver_IHOLDDELAY: 0 # 6 Delay time power down after stst=1 and TPOWERDOWN time expired 0…15
driver_TPOWERDOWN: 0 # 10 Delay time after stand still (stst), power down 0…255 (~0…4 sec)
driver_FD3: 0 # 0 Fast decay time setting with CHM=1 0…15
driver_TPFD: 0 # 4 Passive fast decay time & dampening of motor mid-range resonances 0…15
driver_CHM: 0 # 0 SpreadCycle / Constant off time with fast decay time 0/1
driver_VHIGHFS: 0 # 0 Switch to fullstep at high velocities 0/1
driver_VHIGHCHM: 0 # 0 TOFF * 2 at high velocities 0/1
driver_DISS2G: 1 # 0 Disable short to VS protection 0/1
driver_DISS2VS: 1 # 0 Disable short to GND protection 0/1
driver_SGT: 4 # 0 StallGuard2 threshold -64…63 least sensitive
driver_SFILT: 0 # 0 StallGuard2 signal updates four fullsteps for motor pole tolerances 0/1
driver_DRVSTRENGTH: 0 # 0 Adapts the gate driver current to the gate charge of the external MOSFETs 0…3
driver_BBMTIME: 0 # 0 Break-before-make time, switching of high-side and low-side MOS 0…24
driver_BBMCLKS: 4 # 4 Like BBMTIME, but in multiple of a clock cycle, the longer setting rules 0…15
driver_FILT_ISENSE: 0 # 0 Filter time of sense amplifier to suppress ringing from second coil 0…3
# driver_TPWMTHRS: 0 # 0 stealthchop_threshold
driver_SEMIN: 1 # 1…15
driver_SEMAX: 0 # (SEMIN + SEMAX + 1)*32 0…15
driver_SEUP: 1 # 0 Sets the current increment step 0…3 >> 1, 2, 4, 8
driver_SEDN: 1 # 0 Sets the number of StallGuard2 readings above the upper threshold 0…3 >> 32, 8, 2, 1
driver_SEIMIN: 1 # 0 Sets the lower current 0:1/2, 1:1/4 of current setting (IRUN) 0/1
driver_TCOOLTHRS: 999999 # 0 Coolstep lower threshold velocity
# driver_TSTEP: 0 #
driver_THIGH: 10000 # 0 Hight speed threshold
## SpreadCycle Settings
## Chopper Defaults
# driver_TBL: 2
# driver_TOFF: 3
# driver_HSTRT: 5
# driver_HEND: 2
## SpreadCycle Settings trinamic 24v 2rms
## Chopper frequency limit [kHz] 32.6
# driver_TBL: 0
# driver_TOFF: 4
# driver_HSTRT: 7
# driver_HEND: 9
## SpreadCycle Settings trinamic 36v 2.2rms
## Chopper frequency limit [kHz] 21.1
# driver_TBL: 0
# driver_TOFF: 8
# driver_HSTRT: 5
# driver_HEND: 11
## SpreadCycle Settings trinamic 36v 2.2rms
## Chopper frequency limit [kHz] 38.5
## Chopper lowest magnitude at nice noise
driver_TBL: 0
driver_TOFF: 4
driver_HSTRT: 1
driver_HEND: 15
## SpreadCycle Settings moons 56v 1.5rms
## Chopper frequency limit [kHz] 48.4
# driver_TBL: 0
# driver_TOFF: 3
# driver_HSTRT: 1
# driver_HEND: 3
# SpreadCycle Settings moons 24v 1.1rms
# Chopper frequency limit [kHz] 32.6
# driver_TBL: 2
# driver_TOFF: 4
# driver_HSTRT: 0
# driver_HEND: 3
# SpreadCycle Settings leadshine 56v 2.5rms
# Chopper frequency limit [kHz] 34.1
# driver_TBL: 2
# driver_TOFF: 4
# driver_HEND: 9
# driver_HSTRT: 7
## A Stepper - Front Left
# Connected to MOTOR_6
[stepper_x1]
step_pin: hv:PE2
dir_pin: !hv:PE3
enable_pin: !hv:PD4
rotation_distance: 40
microsteps: 64
# [tmc2209 stepper_x1]
# uart_pin: hv:PE1
# interpolate: False
# run_current: 1.7
# sense_resistor: 0.110
# stealthchop_threshold: 0
# diag_pin: hv:PG14
# driver_SGTHRS: 150
[tmc5160 stepper_x1]
cs_pin: hv:PE1
spi_software_miso_pin: hv:EXP2_1
spi_software_mosi_pin: hv:EXP2_6
spi_software_sclk_pin: hv:EXP2_2
#spi_bus: spi1
interpolate: False
run_current: 2.4
# hold_current: 1.5
sense_resistor: 0.075
stealthchop_threshold: 0
diag1_pin: !hv:PG14
driver_MULTISTEP_FILT: 0
driver_IHOLDDELAY: 0
driver_TPOWERDOWN: 0
driver_FD3: 0
driver_TPFD: 0
driver_CHM: 0
driver_VHIGHFS: 0
driver_VHIGHCHM: 0
driver_DISS2G: 1
driver_DISS2VS: 1
driver_SGT: 4
driver_SFILT: 0
driver_DRVSTRENGTH: 0
driver_BBMTIME: 0
driver_BBMCLKS: 4
driver_FILT_ISENSE: 0
# driver_TPWMTHRS: 0
driver_SEMIN: 1
driver_SEMAX: 0
driver_SEUP: 1
driver_SEDN: 1
driver_SEIMIN: 1
driver_TCOOLTHRS: 999999
# driver_TSTEP: 0
driver_THIGH: 10000
## SpreadCycle Settings trinamic 36v 2.2rms
## Chopper frequency limit [kHz] 21.1
# driver_TBL: 0
# driver_TOFF: 8
# driver_HSTRT: 5
# driver_HEND: 11
## SpreadCycle Settings trinamic 36v 2.2rms
## Chopper frequency limit [kHz] 38.5
## Chopper lowest magnitude at nice noise
driver_TBL: 0
driver_TOFF: 4
driver_HSTRT: 1
driver_HEND: 15
## B Stepper - Rear Left
## Connected to MOTOR_5
[stepper_y]
step_pin: hv:PC13
dir_pin: !hv:PF0
enable_pin: !hv:PF1
rotation_distance: 40
microsteps: 64
# step_pulse_duration: 0.000005
endstop_pin: hv:PG9
position_min: 0
position_endstop: 363
position_max: 363
homing_speed: 80
# second_homing_speed: 20
homing_retract_dist: 0
homing_positive_dir: True
# [tmc2209 stepper_y]
# uart_pin: hv:PE4
# interpolate: False
# run_current: 2
# sense_resistor: 0.110
# stealthchop_threshold: 0
# diag_pin: hv:PG11
# driver_SGTHRS: 150
[tmc5160 stepper_y]
cs_pin: hv:PE4
spi_software_miso_pin: hv:EXP2_1
spi_software_mosi_pin: hv:EXP2_6
spi_software_sclk_pin: hv:EXP2_2
#spi_bus: spi1
interpolate: False
run_current: 2.4
# hold_current: 1.5
sense_resistor: 0.075
stealthchop_threshold: 0
diag1_pin: !hv:PG13
driver_MULTISTEP_FILT: 0 # 1 Enable step input filtering for StealthChop optimization with external step source 0/1
driver_IHOLDDELAY: 0 # 6 Delay time power down after stst=1 and TPOWERDOWN time expired 0…15
driver_TPOWERDOWN: 0 # 10 Delay time after stand still (stst), power down 0…255 (~0…4 sec)
driver_FD3: 0 # 0 Fast decay time setting with CHM=1 0…15
driver_TPFD: 0 # 4 Passive fast decay time & dampening of motor mid-range resonances 0…15
driver_CHM: 0 # 0 SpreadCycle / Constant off time with fast decay time 0/1
driver_VHIGHFS: 0 # 0 Switch to fullstep at high velocities 0/1
driver_VHIGHCHM: 0 # 0 TOFF * 2 at high velocities 0/1
driver_DISS2G: 1 # 0 Disable short to VS protection 0/1
driver_DISS2VS: 1 # 0 Disable short to GND protection 0/1
driver_SGT: 4 # 0 StallGuard2 threshold -64…63 least sensitive
driver_SFILT: 0 # 0 StallGuard2 signal updates four fullsteps for motor pole tolerances 0/1
driver_DRVSTRENGTH: 0 # 0 Adapts the gate driver current to the gate charge of the external MOSFETs 0…3
driver_BBMTIME: 0 # 0 Break-before-make time, switching of high-side and low-side MOS 0…24
driver_BBMCLKS: 4 # 4 Like BBMTIME, but in multiple of a clock cycle, the longer setting rules 0…15
driver_FILT_ISENSE: 0 # 0 Filter time of sense amplifier to suppress ringing from second coil 0…3
# driver_TPWMTHRS: 0 # 0 stealthchop_threshold
driver_SEMIN: 1 # 1…15
driver_SEMAX: 0 # (SEMIN + SEMAX + 1)*32 0…15
driver_SEUP: 1 # 0 Sets the current increment step 0…3 >> 1, 2, 4, 8
driver_SEDN: 1 # 0 Sets the number of StallGuard2 readings above the upper threshold 0…3 >> 32, 8, 2, 1
driver_SEIMIN: 1 # 0 Sets the lower current 0:1/2, 1:1/4 of current setting (IRUN) 0/1
driver_TCOOLTHRS: 999999 # 0 Coolstep lower threshold velocity
# driver_TSTEP: 0 #
driver_THIGH: 10000 # 0 Hight speed threshold
## SpreadCycle Settings
## Chopper Defaults
# driver_TBL: 2
# driver_TOFF: 3
# driver_HSTRT: 5
# driver_HEND: 2
## SpreadCycle Settings trinamic 24v 2rms
## Chopper frequency limit [kHz] 32.6
#driver_TBL: 0
#driver_TOFF: 4
#driver_HSTRT: 7
#driver_HEND: 9
## SpreadCycle Settings trinamic 36v 2.2rms
## Chopper frequency limit [kHz] 21.1
# driver_TBL: 0
# driver_TOFF: 8
# driver_HSTRT: 5
# driver_HEND: 11
## SpreadCycle Settings trinamic 36v 2.2rms
## Chopper frequency limit [kHz] 38.5
## Chopper lowest magnitude at nice noise
driver_TBL: 0
driver_TOFF: 4
driver_HSTRT: 1
driver_HEND: 15
## SpreadCycle Settings moons 56v 1.5rms
## Chopper frequency limit [kHz] 48.4
# driver_TBL: 0
# driver_TOFF: 3
# driver_HSTRT: 1
# driver_HEND: 3
# SpreadCycle Settings moons 24v 1.1rms
# Chopper frequency limit [kHz] 32.6
# driver_TBL: 2
# driver_TOFF: 4
# driver_HSTRT: 0
# driver_HEND: 3
# SpreadCycle Settings leadshine 56v 2.5rms
# Chopper frequency limit [kHz] 34.1
# driver_TBL: 2
# driver_TOFF: 4
# driver_HEND: 9
# driver_HSTRT: 7
## Run_current to hold_current settings
## driver_IHOLDDELAY: 8
## driver_TPOWERDOWN: 20
## B Stepper - Front Right
# Connected to MOTOR_4
[stepper_y1]
step_pin: hv:PF9
dir_pin: !hv:PF10
enable_pin: !hv:PG2
rotation_distance: 40
microsteps: 64
# [tmc2209 stepper_y1]
# uart_pin: PF2
# interpolate: False
# run_current: 1.7
# sense_resistor: 0.110
# stealthchop_threshold: 0
# diag_pin: PG12
# driver_SGTHRS: 150
[tmc5160 stepper_y1]
cs_pin: hv:PF2
spi_software_miso_pin: hv:EXP2_1
spi_software_mosi_pin: hv:EXP2_6
spi_software_sclk_pin: hv:EXP2_2
#spi_bus: spi1
interpolate: False
run_current: 2.4
# hold_current: 1.5
sense_resistor: 0.075
stealthchop_threshold: 0
diag1_pin: !hv:PG12
driver_MULTISTEP_FILT: 0
driver_IHOLDDELAY: 0
driver_TPOWERDOWN: 0
driver_FD3: 0
driver_TPFD: 0
driver_CHM: 0
driver_VHIGHFS: 0
driver_VHIGHCHM: 0
driver_DISS2G: 1
driver_DISS2VS: 1
driver_SGT: 4
driver_SFILT: 0
driver_DRVSTRENGTH: 0
driver_BBMTIME: 0
driver_BBMCLKS: 4
driver_FILT_ISENSE: 0
# driver_TPWMTHRS: 0
driver_SEMIN: 1
driver_SEMAX: 0
driver_SEUP: 1
driver_SEDN: 1
driver_SEIMIN: 1
driver_TCOOLTHRS: 999999
# driver_TSTEP: 0
driver_THIGH: 10000
## SpreadCycle Settings trinamic 36v 2.2rms
## Chopper frequency limit [kHz] 21.1
# driver_TBL: 0
# driver_TOFF: 8
# driver_HSTRT: 5
# driver_HEND: 11
## SpreadCycle Settings trinamic 36v 2.2rms
## Chopper frequency limit [kHz] 38.5
## Chopper lowest magnitude at nice noise
driver_TBL: 0
driver_TOFF: 4
driver_HSTRT: 1
driver_HEND: 15
# ## Y Stepper - Front Left
# # Connected to MOTOR_0
# [stepper_u]
# step_pin: hv:PF13
# dir_pin: !hv:PF12
# enable_pin: !hv:PF14
# rotation_distance: 40
# microsteps: 64
# endstop_pin: hv:PG9
# position_min: 0
# position_endstop: 363
# position_max: 363
# # homing_speed: 80
# # second_homing_speed: 20
# # homing_retract_dist: 0
# # homing_positive_dir: True
# [tmc5160 stepper_u]
# cs_pin: hv:PC4
# spi_software_miso_pin: hv:EXP2_1
# spi_software_mosi_pin: hv:EXP2_6
# spi_software_sclk_pin: hv:EXP2_2
# #spi_bus: spi1
# interpolate: False
# run_current: 2.2
# # hold_current: 1.5
# sense_resistor: 0.075
# stealthchop_threshold: 0
# diag1_pin: !hv:PG6
# driver_MULTISTEP_FILT: 0
# driver_IHOLDDELAY: 0
# driver_TPOWERDOWN: 0
# driver_FD3: 0
# driver_TPFD: 0
# driver_CHM: 0
# driver_VHIGHFS: 0
# driver_VHIGHCHM: 0
# driver_DISS2G: 1
# driver_DISS2VS: 1
# driver_SGT: 4
# driver_SFILT: 0
# driver_DRVSTRENGTH: 0
# driver_BBMTIME: 0
# driver_BBMCLKS: 4
# driver_FILT_ISENSE: 0
# # driver_TPWMTHRS: 0
# driver_SEMIN: 1
# driver_SEMAX: 0
# driver_SEUP: 1
# driver_SEDN: 1
# driver_SEIMIN: 1
# driver_TCOOLTHRS: 999999
# # driver_TSTEP: 0
# driver_THIGH: 10000
# ## SpreadCycle Settings leadshine 48v 2.0rms
# ## Chopper frequency limit [kHz] ?
# ## Chopper lowest magnitude at nice noise by con.
# # driver_TBL: 0
# # driver_TOFF: 4
# # driver_HSTRT: 0
# # driver_HEND: 6
# ## SpreadCycle Settings trinamic 36v 2.2rms
# ## Chopper frequency limit [kHz] 21.1
# # driver_TBL: 0
# # driver_TOFF: 8
# # driver_HSTRT: 5
# # driver_HEND: 11
# ## SpreadCycle Settings trinamic 36v 2.2rms
# ## Chopper frequency limit [kHz] 38.5
# ## Chopper lowest magnitude at nice noise
# driver_TBL: 0
# driver_TOFF: 4
# driver_HSTRT: 6
# driver_HEND: 10
# ## Y1 Stepper - Rear Left
# # Connected to MOTOR_3
# [stepper_u1]
# step_pin: hv:PG4
# dir_pin: !hv:PC1
# enable_pin: !hv:PA0
# rotation_distance: 40
# microsteps: 64
# [tmc5160 stepper_u1]
# cs_pin: hv:PC7
# spi_software_miso_pin: hv:EXP2_1
# spi_software_mosi_pin: hv:EXP2_6
# spi_software_sclk_pin: hv:EXP2_2
# #spi_bus: spi1
# interpolate: False
# run_current: 2.2
# # hold_current: 1.5
# sense_resistor: 0.075
# stealthchop_threshold: 0
# diag1_pin: !hv:PG11
# driver_MULTISTEP_FILT: 0
# driver_IHOLDDELAY: 0
# driver_TPOWERDOWN: 0
# driver_FD3: 0
# driver_TPFD: 0
# driver_CHM: 0
# driver_VHIGHFS: 0
# driver_VHIGHCHM: 0
# driver_DISS2G: 1
# driver_DISS2VS: 1
# driver_SGT: 4
# driver_SFILT: 0
# driver_DRVSTRENGTH: 0
# driver_BBMTIME: 0
# driver_BBMCLKS: 4
# driver_FILT_ISENSE: 0
# # driver_TPWMTHRS: 0
# driver_SEMIN: 1
# driver_SEMAX: 0
# driver_SEUP: 1
# driver_SEDN: 1
# driver_SEIMIN: 1
# driver_TCOOLTHRS: 999999
# # driver_TSTEP: 0
# driver_THIGH: 10000
# ## SpreadCycle Settings leadshine 48v 2.0rms
# ## Chopper frequency limit [kHz] ?
# ## Chopper lowest magnitude at nice noise by con.
# # driver_TBL: 0
# # driver_TOFF: 4
# # driver_HSTRT: 0
# # driver_HEND: 6
# ## SpreadCycle Settings trinamic 36v 2.2rms
# ## Chopper frequency limit [kHz] 21.1
# # driver_TBL: 0
# # driver_TOFF: 8
# # driver_HSTRT: 5
# # driver_HEND: 11
# ## SpreadCycle Settings trinamic 36v 2.2rms
# ## Chopper frequency limit [kHz] 38.5
# ## Chopper lowest magnitude at nice noise
# driver_TBL: 0
# driver_TOFF: 4
# driver_HSTRT: 6
# driver_HEND: 10
# ## Y2 Stepper - Rear Right
# # Connected to MOTOR_2
# [stepper_u2]
# step_pin: hv:PF11
# dir_pin: hv:PG3
# enable_pin: !hv:PG5
# rotation_distance: 40
# microsteps: 64
# [tmc5160 stepper_u2]
# cs_pin: hv:PC6
# spi_software_miso_pin: hv:EXP2_1
# spi_software_mosi_pin: hv:EXP2_6
# spi_software_sclk_pin: hv:EXP2_2
# #spi_bus: spi1
# interpolate: False
# run_current: 2.2
# # hold_current: 1.5
# sense_resistor: 0.075
# stealthchop_threshold: 0
# diag1_pin: !hv:PG10
# driver_MULTISTEP_FILT: 0
# driver_IHOLDDELAY: 0
# driver_TPOWERDOWN: 0
# driver_FD3: 0
# driver_TPFD: 0
# driver_CHM: 0
# driver_VHIGHFS: 0
# driver_VHIGHCHM: 0
# driver_DISS2G: 1
# driver_DISS2VS: 1
# driver_SGT: 4
# driver_SFILT: 0
# driver_DRVSTRENGTH: 0
# driver_BBMTIME: 0
# driver_BBMCLKS: 4
# driver_FILT_ISENSE: 0
# # driver_TPWMTHRS: 0
# driver_SEMIN: 1
# driver_SEMAX: 0
# driver_SEUP: 1
# driver_SEDN: 1
# driver_SEIMIN: 1
# driver_TCOOLTHRS: 999999
# # driver_TSTEP: 0
# driver_THIGH: 10000
# ## SpreadCycle Settings leadshine 48v 2.0rms
# ## Chopper frequency limit [kHz] ?
# ## Chopper lowest magnitude at nice noise by con.
# # driver_TBL: 0
# # driver_TOFF: 4
# # driver_HSTRT: 0
# # driver_HEND: 6
# ## SpreadCycle Settings trinamic 36v 2.2rms
# ## Chopper frequency limit [kHz] 21.1
# # driver_TBL: 0
# # driver_TOFF: 8
# # driver_HSTRT: 5
# # driver_HEND: 11
# ## SpreadCycle Settings trinamic 36v 2.2rms
# ## Chopper frequency limit [kHz] 38.5
# ## Chopper lowest magnitude at nice noise
# driver_TBL: 0
# driver_TOFF: 4
# driver_HSTRT: 6
# driver_HEND: 10
# ## Y3 Stepper - Front Right
# # Connected to MOTOR_1
# [stepper_u3]
# step_pin: hv:PG0
# dir_pin: hv:PG1
# enable_pin: !hv:PF15
# rotation_distance: 40
# microsteps: 64
# [tmc5160 stepper_u3]
# cs_pin: hv:PD11
# spi_software_miso_pin: hv:EXP2_1
# spi_software_mosi_pin: hv:EXP2_6
# spi_software_sclk_pin: hv:EXP2_2
# #spi_bus: spi1
# interpolate: False
# run_current: 2.2
# # hold_current: 1.5
# sense_resistor: 0.075
# stealthchop_threshold: 0
# diag1_pin: !hv:PG9
# driver_MULTISTEP_FILT: 0
# driver_IHOLDDELAY: 0
# driver_TPOWERDOWN: 0
# driver_FD3: 0
# driver_TPFD: 0
# driver_CHM: 0
# driver_VHIGHFS: 0
# driver_VHIGHCHM: 0
# driver_DISS2G: 1
# driver_DISS2VS: 1
# driver_SGT: 4
# driver_SFILT: 0
# driver_DRVSTRENGTH: 0
# driver_BBMTIME: 0
# driver_BBMCLKS: 4
# driver_FILT_ISENSE: 0
# # driver_TPWMTHRS: 0
# driver_SEMIN: 1
# driver_SEMAX: 0
# driver_SEUP: 1
# driver_SEDN: 1
# driver_SEIMIN: 1
# driver_TCOOLTHRS: 999999
# # driver_TSTEP: 0
# driver_THIGH: 10000
# ## SpreadCycle Settings leadshine 48v 2.0rms
# ## Chopper frequency limit [kHz] ?
# ## Chopper lowest magnitude at nice noise by con.
# # driver_TBL: 0
# # driver_TOFF: 4
# # driver_HSTRT: 0
# # driver_HEND: 6
# ## SpreadCycle Settings trinamic 36v 2.2rms
# ## Chopper frequency limit [kHz] 21.1
# # driver_TBL: 0
# # driver_TOFF: 8
# # driver_HSTRT: 5
# # driver_HEND: 11
# ## SpreadCycle Settings trinamic 36v 2.2rms
# ## Chopper frequency limit [kHz] 38.5
# ## Chopper lowest magnitude at nice noise
# driver_TBL: 0
# driver_TOFF: 4
# driver_HSTRT: 6
# driver_HEND: 10
#####################################################################
# Z Stepper Settings
#####################################################################
## Z0 Stepper - Front Left
## Connected to MOTOR_2
[stepper_z]
step_pin: PF11
dir_pin: PG3
enable_pin: !PG5
rotation_distance: 40
gear_ratio: 80:16
microsteps: 64
endstop_pin: probe:z_virtual_endstop
# endstop_pin: PG13
# position_endstop = 0.5
position_max: 340
position_min: -10
homing_speed: 15
second_homing_speed: 15
homing_retract_dist: 2
[tmc2208 stepper_z]
uart_pin: PC6
interpolate: False
run_current: 0.5
sense_resistor: 0.110
stealthchop_threshold: 31
## SpreadCycle Settings moons
## Chopper frequency limit [kHz] 24.2
#driver_TBL: 2
#driver_TOFF: 6
#driver_HSTRT: 7
#driver_HEND: 3
## Z1 Stepper - Rear Left
## Connected to MOTOR_6
[stepper_z1]
step_pin: PE2
dir_pin: !PE3
enable_pin: !PD4
rotation_distance: 40
gear_ratio: 80:16
microsteps: 64
[tmc2208 stepper_z1]
uart_pin: PE1
interpolate: False
run_current: 0.3
sense_resistor: 0.110
stealthchop_threshold: 31
## SpreadCycle Settings moons
## Chopper frequency limit [kHz] 24.2
#driver_TBL: 2
#driver_TOFF: 6
#driver_HSTRT: 7
#driver_HEND: 3
## Z2 Stepper - Rear Right
## Connected to MOTOR_1
[stepper_z2]
step_pin: PG0
dir_pin: PG1
enable_pin: !PF15
rotation_distance: 40
gear_ratio: 80:16
microsteps: 64
[tmc2208 stepper_z2]
uart_pin: PD11
interpolate: False
run_current: 0.3
sense_resistor: 0.110
stealthchop_threshold: 31
## SpreadCycle Settings moons
## Chopper frequency limit [kHz] 24.2
#driver_TBL: 2
#driver_TOFF: 6
#driver_HSTRT: 7
#driver_HEND: 3
## Z3 Stepper - Front Right
## Connected to MOTOR_7
[stepper_z3]
step_pin: PE6
dir_pin: !PA14
enable_pin: !PE0
rotation_distance: 40
gear_ratio: 80:16
microsteps: 64
[tmc2208 stepper_z3]
uart_pin: PD3
interpolate: False
run_current: 0.5
sense_resistor: 0.110
stealthchop_threshold: 31
## SpreadCycle Settings moons
## Chopper frequency limit [kHz] 24.2
#driver_TBL: 2
#driver_TOFF: 6
#driver_HSTRT: 7
#driver_HEND: 3
#####################################################################
# Extruder
#####################################################################
## Connected to MOTOR_0
## Connected to BED
[extruder]
step_pin: PF13
dir_pin: PF12
enable_pin: !PF14
rotation_distance: 4.6 #5.693950177935943
microsteps: 64
nozzle_diameter: 0.5
pressure_advance: 0.025
pressure_advance_smooth_time: 0.02
filament_diameter: 1.75
heater_pin: PA1
sensor_pin: PC0
sensor_type: AD8495
adc_voltage: 3.3
voltage_offset: 0
# sensor_pin = PF4
# sensor_type = Generic 3950
# sensor_pin = PF7
# sensor_type = PT1000
# sensor_pin = PF8
# sensor_type = MAX31865
# spi_software_miso_pin: EXP2_1
# spi_software_mosi_pin: EXP2_6
# spi_software_sclk_pin: EXP2_2
# spi_speed = 4000000
# rtd_nominal_r = 1000
# rtd_reference_r = 4300
# rtd_num_of_wires = 2
# rtd_use_50Hz_filter = True
# pullup_resistor: 4700
smooth_time: 0.1
min_temp: 10
max_temp: 700
min_extrude_temp: 10
max_power: 1.0
pwm_cycle_time: 0.1
fan: fan
fan_power_loss: 0.15
instantaneous_corner_velocity: 1.0
max_extrude_only_distance: 999999
max_extrude_cross_section: 10
max_extrude_only_velocity: 150
max_extrude_only_accel: 10000
control = pid
# pid_Kp=10.113
# pid_Ki=0.777
# pid_Kd=32.899
# pid_Kp=11.516 #140w goliath
# pid_Ki=1.616