-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter.cfg
587 lines (519 loc) · 16.2 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
#This CFG is Set for H2 offsets
#added BTT H2 500c Hotend and MAX31865 module
#added BTT EXP-MOT expansion module for dual Z
#Deleted MOT-EXP, then adding u2c and ebb42
#adding cfg for EBB42
# This file contains common pin mappings for the BigTreeTech SKR 3.
# To use this config, the firmware should be compiled for the
# STM32H743 with a "128KiB bootloader".
################# DOUBLE TAP MOBO RESET BUTTON TO ENTER KATAPULT MODE
################# RUN ls /dev/serial/by-id/ TO CHECK IN KATAPULT
################# RUN ~/update_klipper.sh TO UPDATE ALL MCU
# MOBO Klipper Firmware Configuration
# [*] Enable extra low-level configuration options
# Micro-controller Architecture (STMicroelectronics STM32) --->
# Processor model (STM32H723) --->
# Bootloader offset (128KiB bootloader) --->
# Clock Reference (25 MHz crystal) --->
# Communication interface (USB (on PA11/PA12)) --->
# USB ids --->
# () GPIO pins to set at micro-controller startup
# This file contains common pin mappings for the BIGTREETECH EBBCan
# Canbus board. To use this config, the firmware should be compiled for the
# STM32G0B1 with "8 MHz crystal" and "USB (on PA11/PA12)" or "CAN bus (on PB0/PB1)".
# The "EBB Can" micro-controller will be used to control the components on the nozzle.
# EBB42 Klipper Firmware Configuration
# [*] Enable extra low-level configuration options
# Micro-controller Architecture (STMicroelectronics STM32) --->
# Processor model (STM32G0B1) --->
# Bootloader offset (8KiB bootloader) --->
# Clock Reference (8 MHz crystal) --->
# Communication interface (CAN bus (on PB0/PB1)) --->
# (1000000) CAN bus speed
# () GPIO pins to set at micro-controller startup
# RPi Klipper Firmware Configuration
# [*] Enable extra low-level configuration options
# Micro-controller Architecture (Linux process) --->
# () GPIO pins to set at micro-controller startup (NEW)
#to flash mainboard via usb
#double tap reset button to enter katapult
#check /id by serial/ should be katapult
#sudo service klipper stop
#python3 ~/katapult/scripts/flashtool.py -f ~/klipper/out/klipper.bin -d /dev/serial/by-id/usb-katapult_your_board_id
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32h723xx_35003D001851313238353730-if00
#serial: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0
#serial: /dev/ttyAMA0
restart_method: command
[mcu EBBCan] #canbus_uuid: a4d80585bfb5 good ebb
#canbus_uuid: a732400db788 #faulty ebb
canbus_uuid: 04690d648b91 #new ebb
[mcu host]
serial: /tmp/klipper_host_mcu
[adxl345]
cs_pin: EBBCan: PB12
spi_software_sclk_pin: EBBCan: PB10
spi_software_mosi_pin: EBBCan: PB11
spi_software_miso_pin: EBBCan: PB2
axes_map: x,y,z
[resonance_tester]
probe_points: 220, 178, 5
accel_chip: adxl345
[printer]
kinematics: cartesian
max_velocity: 500
max_accel: 1000
max_z_velocity: 5
max_z_accel: 500
square_corner_velocity: 5.0
[include essentials.cfg]
[temperature_sensor BTT_SKR3]
sensor_type: temperature_mcu
min_temp: 10
max_temp: 100
[temperature_sensor BTT_EBBCan]
sensor_type: temperature_mcu
sensor_mcu: EBBCan
min_temp: 0
max_temp: 100
[temperature_sensor RPi]
sensor_type: temperature_host
min_temp: 10
max_temp: 100
[neopixel my_led]
pin: PE6
chain_count: 16
color_order: GRB
# # initial_RED: 0.0
# # initial_GREEN: 0.0
# # initial_BLUE: 0.0
# # initial_WHITE: 0.0
#[neopixel hotend_rgb]
#pin: EBBCan:PD3
[filament_switch_sensor filament_sensor]
switch_pin: PA0
pause_on_runout: true
runout_gcode:
G1 E10 F5000
G1 E-100 F5000
event_delay: 3.0
pause_delay: 0.5
#[filament_switch_sensor switch_sensor]
#switch_pin: EBBCan:PB4
#[filament_motion_sensor motion_sensor]
#switch_pin: ^EBBCan:PB3
############################################################################################################################################################################################
################################################################################ BED MESH ##########################################################################################
##########################################################################################################################################################################################3
[bltouch]
sensor_pin: ^EBBCan:PB8 #^PC13
control_pin: EBBCan:PB9 #PE5
x_offset: -36
y_offset: -2
samples: 2
#z_offset = 2.720
speed: 100
pin_up_touch_mode_reports_triggered: False
probe_with_touch_mode: true
stow_on_each_sample: false
[safe_z_home]
home_xy_position: 220, 178 #H2 Sp3 202,185
speed: 100
z_hop: 5
z_hop_speed: 10
[bed_mesh]
speed: 100
horizontal_move_z: 5
mesh_min: 0, 0
mesh_max: 320,320 #H2 Sp3 350, 283
algorithm: bicubic
probe_count: 7, 7
[bed_screws]
screw1:30, 38 # H2 Sp3 65, 42
screw1_name:1
screw2:330, 38 # H2 Sp3 360, 42
screw2_name:2
screw3:330, 303 # H2 Sp3 360,310
screw3_name:3
screw4:30,303 # H2 Sp3 65, 310
screw4_name:4
[screws_tilt_adjust]
screw1:65, 35
Screw1_name:1
screw2:360,35
screw2_name:2
screw3:360,303
screw3_name:3
screw4:65, 303
screw4_name:4
horizontal_move_z: 5
speed: 250
screw_thread: CW-M4 # Use CW for
#Clockwise and CCW for Counter Clockwise
[gcode_macro INSPECT_NOZZLE]
gcode:
G28
Z_TILT_ADJUST
G1 x200 y10 z150
M84
[gcode_macro park]
gcode:
G28
G1 X0 Y340 Z50
###########################################################################################################################
####################################### STEPPERS ##########################################
###########################################################################################################################
[stepper_x]
step_pin: PD15
dir_pin: !PD14
enable_pin: !PC7
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC1
position_endstop: 360
position_max: 360
homing_speed: 50
[tmc2209 stepper_x]
uart_pin: PC6
run_current: 0.680
diag_pin:
interpolate: false #For best positional accuracy consider using spreadCycle mode and disable interpolation (set interpolate: False
stealthchop_threshold: 200 #In general, spreadCycle mode provides greater torque and greater positional accuracy than stealthChop mode:0
#stealthchop_threshold: 999999 for quieter operatiON
[stepper_y]
step_pin: PA15
dir_pin: !PA8
enable_pin: !PD1
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC3
position_endstop: 330
position_max: 330
homing_speed: 50
[tmc2209 stepper_y]
uart_pin: PD0
run_current: 0.750
diag_pin:
interpolate: false
stealthchop_threshold: 200
[stepper_z]
step_pin: PD4
dir_pin: !PD3
enable_pin: !PD6
rotation_distance: 4 #TR8x8 = 8, TR8x4 = 4, TR8x2 = 2
microsteps: 16
#full_steps_per_rotation: 400
# endstop_pin: ^PC2
# position_endstop: 0.0
endstop_pin: probe:z_virtual_endstop
position_max: 420
position_min: -2
[tmc2209 stepper_z]
uart_pin: PD5
run_current: 0.6
#diag_pin: PE9
interpolate: false
stealthchop_threshold: 0
[stepper_z1]
step_pin: !PD11
dir_pin: PD10
enable_pin: !PD13
rotation_distance: 4 #TR8x8 = 8, TR8x4 = 4, TR8x2 = 2
microsteps: 16
#full_steps_per_rotation: 400
[tmc2209 stepper_z1]
uart_pin: PD12
run_current: 0.60
#diag_pin: PB1
interpolate: false
stealthchop_threshold: 0
# [tmc2209 extruder]
# uart_pin: EBBCan: PA15
# #tx_pin: EBBCan: PB1
# run_current: 0.700
# #interpolate: false
# stealthchop_threshold: 0
# uart_address: 00
# sense_resistor: 0.11
[tmc2209 extruder]
uart_pin: PE1
run_current: 0.800
#interpolate: false
stealthchop_threshold: 0
[extruder]
step_pin: EBBCan: PD0 # PE2 #EBBCan: PD0
dir_pin: !EBBCan: PD1 #!PE3 #!EBBCan: PD1
enable_pin: !EBBCan: PD2 #!PE0 #!EBBCan: PD2
microsteps: 16
rotation_distance: 3.45165552
nozzle_diameter: 0.400
filament_diameter: 1.750
max_extrude_cross_section: 5
instantaneous_corner_velocity: 1.000
max_extrude_only_distance: 100.0
pressure_advance_smooth_time: 0.04
pressure_advance: 0.055 # H2500 0.04 # spider 3 PT100
######################################################################################################################
##################### HEATERS AND FANS #############################################
######################################################################################################################
heater_pin: EBBCan: PB13
sensor_type:MAX31865
sensor_pin: EBBCan: PA4
spi_bus: spi1
rtd_nominal_r: 100
rtd_reference_r: 430
rtd_num_of_wires: 2
rtd_use_50hz_filter: True
min_temp: 0
max_temp: 530
# control: pid
# pid_Kp: 21.527
# pid_Ki: 1.063
# pid_Kd: 108.982
[heater_bed]
heater_pin: PD7
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA1
#control = pid
#pid_kp = 72.785
#pid_ki = 1.121
#pid_kd = 1181.849
min_temp: 0
max_temp: 130
[fan]
pin: EBBCan: PA1
[heater_fan hotend_fan]
pin: EBBCan: PA0
heater: extruder
heater_temp: 60.0
[heater_fan MCU_cooling_fan_1]
pin: PB5
heater: extruder
heater_temp: 60.0
fan_speed: 0.6
[heater_fan MCU_cooling_fan_2]
pin: PB6
heater: extruder
heater_temp: 60.0
fan_speed: 0.6
# [heater_fan RPi] # fan 3
# pin: PB7
# heater: extruder
# heater_temp: 80
# fan_speed: 1.0
# [temperature_fan MCU_fan] # fan 2
# pin: PB6
# max_power: 1.0
# shutdown_speed: 0
# kick_start_time: 0.5
# off_below: 0.2
# sensor_type: temperature_combined
# control: watermark
# min_temp:0
# max_temp:75
# target_temp: 60.0
# max_speed: 1.0
# min_speed: 0.2
# sensor_list: temperature_sensor BTT_SKR3EZ
# combination_method: max
# maximum_deviation:0.1
# [temperature_fan MCU_fan_2] # fan 1
# pin: PB5
# max_power: 1.0
# shutdown_speed: 0
# kick_start_time: 0.5
# off_below: 0.2
# sensor_type: temperature_combined
# control: watermark
# min_temp:0
# max_temp:75
# target_temp: 62.0
# max_speed: 1.0
# min_speed: 0.2
# sensor_list: temperature_sensor BTT_SKR3EZ
# combination_method: max
# maximum_deviation:0.1
# [temperature_fan RPi_fan] # fan 0
# pin: PB7
# max_power: 1.0
# shutdown_speed: 0
# kick_start_time: 0.5
# off_below: 0.2
# sensor_type: temperature_combined
# control: watermark
# min_temp:0
# max_temp:75
# target_temp: 62.0
# max_speed: 0.5
# min_speed: 0.2
# sensor_list: temperature_sensor RPi
# combination_method: max
# maximum_deviation:0.1
########################################
# EXP1 / EXP2 (display) pins
########################################
[display]
lcd_type: st7920
cs_pin: PE11 #EXP1_7
sclk_pin: PE10 #EXP1_6
sid_pin: PE12 #EXP1_8
encoder_pins: ^PE9, ^PB1 #^EXP1_5, ^EXP1_3
click_pin: ^!PB0 #^!EXP1_2
[board_pins]
aliases:
# EXP1 header
EXP1_1=PC5, EXP1_3=PB1, EXP1_5=PE9, EXP1_7=PE11, EXP1_9=<GND>,
EXP1_2=PB0, EXP1_4=PE8, EXP1_6=PE10, EXP1_8=PE12, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PA6, EXP2_3=PE7, EXP2_5=PB2, EXP2_7=PC4, EXP2_9=<GND>,
EXP2_2=PA5, EXP2_4=PA4, EXP2_6=PA7, EXP2_8=<RST>, EXP2_10=<NC>
[input_shaper]
#shaper_type_x = mzv
#shaper_freq_x = 65.6
#shaper_type_y = mzv
#shaper_freq_y = 48.2
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 13.860
#*# pid_ki = 0.388
#*# pid_kd = 123.702
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 68.855
#*# pid_ki = 0.783
#*# pid_kd = 1513.098
#*#
#*# [bltouch]
#*# z_offset = 1.714
#*#
#*# [bed_mesh current]
#*# version = 1
#*# points =
#*# 0.096355, 0.169480, 0.197605, 0.200105, 0.170105, 0.008230
#*# 0.093230, 0.165730, 0.197605, 0.211980, 0.185730, 0.019480
#*# 0.082605, 0.138855, 0.162605, 0.169480, 0.155105, 0.000730
#*# x_count = 6
#*# y_count = 3
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = lagrange
#*# tension = 0.2
#*# min_x = 66.46199999999999
#*# max_x = 316.662
#*# min_y = 169.212
#*# max_y = 233.61199999999997
#*#
#*# [bed_mesh glass cold]
#*# version = 1
#*# points =
#*# -0.451250, -0.360625, -0.333125, -0.325000, -0.272500, -0.243125, -0.224375
#*# -0.257500, -0.179375, -0.132500, -0.108125, -0.086875, -0.107500, -0.162500
#*# -0.167500, -0.082500, -0.048750, -0.040000, -0.001250, -0.051875, -0.129375
#*# -0.113750, -0.033750, 0.026250, 0.043750, 0.080000, 0.007500, -0.105625
#*# -0.143750, -0.091250, -0.026250, -0.002500, 0.023125, -0.034375, -0.183125
#*# -0.176875, -0.093125, -0.035000, -0.016250, 0.003125, -0.050000, -0.241875
#*# -0.250625, -0.181250, -0.118750, -0.090625, -0.073750, -0.111250, -0.290625
#*# x_count = 7
#*# y_count = 7
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 0.0
#*# max_x = 349.98
#*# min_y = 0.0
#*# max_y = 289.98
#*#
#*# [bed_mesh smooth cold]
#*# version = 1
#*# points =
#*# -0.325270, -0.298395, -0.295895, -0.277145, -0.225895, -0.205895, -0.147770
#*# -0.157145, -0.175895, -0.187770, -0.175895, -0.150270, -0.111520, -0.071520
#*# -0.135270, -0.164645, -0.202770, -0.177145, -0.143395, -0.087770, -0.084020
#*# -0.091520, -0.125270, -0.157770, -0.132145, -0.084020, -0.039645, -0.064020
#*# -0.104645, -0.177770, -0.213395, -0.170895, -0.122145, -0.077145, -0.111520
#*# -0.092145, -0.174020, -0.196520, -0.158395, -0.126520, -0.091520, -0.124645
#*# -0.100895, -0.225895, -0.216520, -0.200270, -0.154020, -0.125895, -0.139020
#*# x_count = 7
#*# y_count = 7
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 0.0
#*# max_x = 349.98
#*# min_y = 0.0
#*# max_y = 289.98
#*#
#*# [input_shaper]
#*# shaper_type_x = 2hump_ei
#*# shaper_freq_x = 72.4
#*# shaper_type_y = ei
#*# shaper_freq_y = 59.6
#*#
#*# [bed_mesh GLASS NORM]
#*# version = 1
#*# points =
#*# -0.185936, -0.085311, -0.071561, -0.050311, -0.061561, -0.079686, 0.013439
#*# -0.052811, 0.062814, 0.101564, 0.124064, 0.129689, 0.081564, 0.079689
#*# 0.041564, 0.145939, 0.202189, 0.190939, 0.178439, 0.120939, 0.090314
#*# 0.067814, 0.189689, 0.260314, 0.261564, 0.248439, 0.151564, 0.085939
#*# 0.053439, 0.187189, 0.259689, 0.260939, 0.248439, 0.168439, 0.052814
#*# -0.000936, 0.157189, 0.232189, 0.223439, 0.219064, 0.166564, 0.025939
#*# -0.070936, 0.073439, 0.154689, 0.160939, 0.140939, 0.130314, -0.024061
#*# x_count = 7
#*# y_count = 7
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 0.0
#*# max_x = 349.98
#*# min_y = 0.0
#*# max_y = 289.98
#*#
#*# [bed_mesh unclamped]
#*# version = 1
#*# points =
#*# -0.161293, -0.048793, -0.026293, -0.014418, -0.016293, 0.010582, 0.121832
#*# -0.043793, 0.071207, 0.134332, 0.152457, 0.168707, 0.142457, 0.133082
#*# 0.041207, 0.141832, 0.198707, 0.183707, 0.227457, 0.206832, 0.097457
#*# 0.056207, 0.175582, 0.243082, 0.233707, 0.230582, 0.148707, 0.055582
#*# 0.033082, 0.139332, 0.209332, 0.211832, 0.200582, 0.112457, -0.005043
#*# -0.036293, 0.098082, 0.169957, 0.174332, 0.155582, 0.103707, -0.048168
#*# -0.101918, 0.014957, 0.082457, 0.070582, 0.056832, 0.054957, -0.125043
#*# x_count = 7
#*# y_count = 7
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 0.0
#*# max_x = 349.98
#*# min_y = 0.0
#*# max_y = 289.98
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.150443, -0.063568, -0.060443, -0.024193, -0.036693, -0.039818, -0.111068
#*# -0.064818, 0.019557, 0.065807, 0.118307, 0.118307, 0.083932, -0.027943
#*# 0.014557, 0.097682, 0.155182, 0.187682, 0.183307, 0.145807, 0.019557
#*# 0.003307, 0.092057, 0.167057, 0.205807, 0.217682, 0.183307, 0.027682
#*# -0.032943, 0.057057, 0.125182, 0.175182, 0.181432, 0.162682, 0.006432
#*# -0.072943, 0.007057, 0.063932, 0.103932, 0.120807, 0.122682, -0.027943
#*# -0.129193, -0.064818, -0.032318, -0.000443, -0.023568, -0.046068, -0.107318
#*# x_count = 7
#*# y_count = 7
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 0.0
#*# max_x = 319.98
#*# min_y = 0.0
#*# max_y = 319.97999999999996