-
Notifications
You must be signed in to change notification settings - Fork 1
/
printer.cfg
486 lines (427 loc) · 14.3 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
# __ ______ ___ ____ _____
# \ \ / / ___/ _ \| _ \| ____|
# \ \ / / | | | | | |_) | _|
# \ V /| |__| |_| | _ <| |___
# \_/ \____\___/|_| \_\_____| 3.1
# Standalone 300 Setup.
#
# [Hardware] :
# > MotherBoard : BTT Octopus Pro 446
# > Toolboard : BTT EBB36 v1.2 (USB)
# > Hotend : Phaetus Rapido PT1000 (non pt1000 wiring).
# > Extruder : LDO Orbiter 2.0 (DD, EVA3)
# > Stepper : Standard Ratrig LDO Steppers.
# > Probe : Ratrig SuperPinda.
# > Temp Sensor (Extra) : DS18B20 on Chamber (Raspberry wiring).
# > Fan 1 (Extra) : Raspberry cooling (BTT Octopus wiring).
# > Fan 2 (Extra) : TMC cooling (BTT Octopus wiring).
# > Enclosure LED (Extra) : wled on extra ESP32-DevKit (Over wifi).
# > Power Supply : Meanwell LRS-200 + LRS-50-5 for Raspberry (Extra).
# > Power Control (Extra) : Shelly Plus 1PM (Over wifi).
#
# [Notes] :
# > XY stepper direction are reversed compare to official wiring.
# > PAM module for Bed-Mesh.
# > Belt at ~52Hz(Y) and ~77Hz(X) (~97Hz@Spectroid).
[include macros/*.cfg]
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
# BOARDS : PIN #
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
[board_pins octopus_pro_446]
aliases:
# steppers
x_step_pin=PF13, x_dir_pin=PF12, x_enable_pin=PF14, x_uart_pin=PC4, x_diag_pin=PG6, x_endstop_pin=PG6,
y_step_pin=PG0, y_dir_pin=PG1, y_enable_pin=PF15, y_uart_pin=PD11, y_diag_pin=PG9, y_endstop_pin=PG9,
z0_step_pin=PC13, z0_dir_pin=PF0, z0_enable_pin=PF1, z0_uart_pin=PE4, z0_diag_pin=null,
z1_step_pin=PE2, z1_dir_pin=PE3, z1_enable_pin=PD4, z1_uart_pin=PE1, z1_diag_pin=null,
z2_step_pin=PE6, z2_dir_pin=PA14, z2_enable_pin=PE0, z2_uart_pin=PD3, z2_diag_pin=null,
z3_step_pin=PF9, z3_dir_pin=PF10, z3_enable_pin=PG2, z3_uart_pin=PF2, z3_diag_pin=null, # Voron 2.4 support
e_step_pin=PF11, e_dir_pin=PG3, e_enable_pin=PG5, e_uart_pin=PC6, e_diag_pin=null, e_heater_pin=PA2, e_sensor_pin=PF4,
stepper_spi_mosi_pin=PA7, stepper_spi_miso_pin=PA6, stepper_spi_sclk_pin=PA5,
# accel
adxl345_cs_pin=PA15,
# auto leveling
bltouch_sensor_pin=PB7, bltouch_control_pin=PB6,
probe_pin=PB7,
# fans
fan_part_cooling_pin=PA8,
fan_toolhead_cooling_pin=PE5,
fan_controller_board_pin=PD12,
# Bed heater
heater_bed_heating_pin=PA1,
heater_bed_sensor_pin=PF3,
## Expansion ports
# EXP1 header
EXP1_1=PE8, EXP1_3=PE9, EXP1_5=PE12, EXP1_7=PE14, EXP1_9=<GND>,
EXP1_2=PE7, EXP1_4=PE10, EXP1_6=PE13, EXP1_8=PE15, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PA6, EXP2_3=PB1, EXP2_5=PB2, EXP2_7=PC15, EXP2_9=<GND>,
EXP2_2=PA5, EXP2_4=PA4, EXP2_6=PA7, EXP2_8=<RST>, EXP2_10=PC5,
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi2"
[board_pins btt-ebb36-12]
mcu: toolboard
aliases:
x_endstop_pin=PB6,
e_step_pin=PD0, e_dir_pin=PD1, e_enable_pin=PD2, e_uart_pin=PA15, e_diag_pin=null, e_heater_pin=PB13, e_sensor_pin=PA3,
thermocouple_cs=PA4, thermocouple_miso=PA6, thermocouple_mosi=PA7, thermocouple_clk=PA5,
# accel
adxl345_cs_pin=PB12, adxl345_miso=PB2, adxl345_mosi=PB11, adxl345_clk=PB10,
# leveling
bltouch_sensor_pin=PB8, bltouch_control_pin=PB9,
probe_pin=PB9,
# fans
fan_part_cooling_pin=PA0,
fan_toolhead_cooling_pin=PA1
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
# BOARDS : SETUP #
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
#=========
# SERIAL
#=========
# > lsusb
# > dmesg | grep usb
# > journalctl | grep -i usb
# > ls /dev/serial/by-id/*
# > udevadm info --name=btt-ebb36-12 --attribute-walk
# > udevadm info --name=btt-octopus-pro-446 --attribute-walk
[mcu rpi]
serial: /tmp/klipper_host_mcu
[mcu]
baud: 250000
serial: /dev/btt-octopus-pro-446
[mcu toolboard]
baud: 250000
serial: /dev/btt-ebb36-12
#=========
# TEMPERATURE SENSORS
#=========
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
[temperature_sensor Octopus_Pro_446]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
[temperature_sensor toolboard]
sensor_type: temperature_mcu
sensor_mcu: toolboard
[temperature_sensor chamber]
sensor_type: DS18B20
sensor_mcu: rpi
serial_no: 28-3c01f09543b8
ds18_report_time: 3
#=========
# FANS
#=========
[fan]
pin: toolboard:fan_part_cooling_pin
##shutdown_speed: 1.0
[heater_fan toolhead_cooling_fan] ## FAN0
pin: toolboard:fan_toolhead_cooling_pin
fan_speed: 0.6 # Less noise (max 1)
[controller_fan Electro_RPI]
pin: PD13
max_power: 1.0
heater: extruder
[controller_fan Electro_TMC]
pin: PD14
max_power: 1.0
heater: extruder
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
# STEPPERS #
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
# > Z=Left, Z1=Back, Z2=Right
# > STEPPER_BUZZ STEPPER=stepper_z
# > DUMP_TMC stepper=stepper_x
[stepper_x]
step_pin: x_step_pin
dir_pin: !x_dir_pin # Add/Remove ! in front of pin name to reverse direction.
enable_pin: !x_enable_pin
endstop_pin: toolboard:x_endstop_pin
rotation_distance: 40
microsteps: 64
homing_speed: 50
homing_retract_dist: 5.0
position_max: 300
position_endstop: 0
[stepper_y]
step_pin: y_step_pin
dir_pin: !y_dir_pin # Add/Remove ! in front of pin name to reverse direction.
enable_pin: !y_enable_pin
endstop_pin: ^y_endstop_pin
rotation_distance: 40
microsteps: 64
homing_speed: 50
homing_retract_dist: 5.0
position_max: 300
position_endstop: 300
homing_positive_dir: true
# -----------
[stepper_z] #> LEFT
endstop_pin: probe:z_virtual_endstop
step_pin: z0_step_pin
dir_pin: !z0_dir_pin
enable_pin: !z0_enable_pin
rotation_distance: 4 # 4 for TR8*4 lead screws.
microsteps: 64
position_min: -5 # Needed for z-offset calibration and tilt_adjust.
homing_speed: 20 # Default: 10
position_max: 290
[stepper_z1] #> BACK
step_pin: z1_step_pin
dir_pin: !z1_dir_pin
enable_pin: !z1_enable_pin
rotation_distance: 4 # 4 for TR8*4 lead screws.
microsteps: 64
[stepper_z2] #> RIGHT
step_pin: z2_step_pin
dir_pin: !z2_dir_pin
enable_pin: !z2_enable_pin
rotation_distance: 4 # 4 for TR8*4 lead screws.
microsteps: 64
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
# TMC #
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
[tmc2209 stepper_x]
uart_pin: x_uart_pin
run_current: 1.6
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 0
driver_HSTRT: 6
stealthchop_threshold: 1 # Default: 0
interpolate: True # Default: False
[tmc2209 stepper_y]
uart_pin: y_uart_pin
run_current: 1.6
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 0
driver_HSTRT: 6
stealthchop_threshold: 1 # Default: 0
interpolate: True # Default: False
# -----------
[tmc2209 stepper_z]
uart_pin: z0_uart_pin
run_current: 1.6
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 0
driver_HSTRT: 6
stealthchop_threshold: 1 # Default: 0
interpolate: False
[tmc2209 stepper_z1]
uart_pin: z1_uart_pin
run_current: 1.6
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 0
driver_HSTRT: 6
stealthchop_threshold: 1 # Default: 0
interpolate: False
[tmc2209 stepper_z2]
uart_pin: z2_uart_pin
run_current: 1.6
driver_TBL: 2
driver_TOFF: 3
driver_HEND: 0
driver_HSTRT: 6
stealthchop_threshold: 1 # Default: 0
interpolate: False
# -----------
# LDO-36STH20-1004AHG(XH)
[tmc2209 extruder] #[Ratrig settings]
uart_pin: toolboard:e_uart_pin
run_current: 0.707
stealthchop_threshold: 0
interpolate: False
driver_TBL: 1
driver_TOFF: 3
driver_HEND: 9
driver_HSTRT: 7
#[tmc2209 extruder] #[Orbiter 2.0 settings]
#uart_pin: toolboard:e_uart_pin
#run_current: 0.85 #**
#hold_current: 0.100
#sense_resistor: 0.11 #**
#driver_TBL: 0
#driver_HEND: 6
#driver_HSTRT: 7
#driver_TOFF: 4
#stealthchop_threshold: 0
#interpolate: True
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
# PROBE #
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
[probe]
pin: ^toolboard:probe_pin # For NPN NC probes such as the SuperPinda / Vinda / SupCR / Decoprobe probes.
x_offset: -27.8
y_offset: -12
speed: 20 # Default: 5
samples: 3
sample_retract_dist: 2
lift_speed: 20.0 # Default: 5.0
samples_result: median
samples_tolerance: 0.01 # Default: 0.02
samples_tolerance_retries: 5
# Note : Plus la valeur z_offset sera élevée, plus la tête sera proche du bed.
#z_offset: 1.487 # PETG - Textured surface (cold)
#z_offset: # PLA - Textured surface (cold)
#z_offset: # PLA - Smooth surface (cold)
z_offset: 1.487
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
# ADXL #
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
[adxl345]
cs_pin: toolboard:adxl345_cs_pin
spi_software_sclk_pin: toolboard:PB10
spi_software_mosi_pin: toolboard:PB11
spi_software_miso_pin: toolboard:PB2
# https://www.klipper3d.org/Measuring_Resonances.html
[resonance_tester]
accel_chip: adxl345
probe_points: 150,150,20
min_freq: 20
max_freq: 100
# accel_per_hz: 75
# hz_per_sec: 1
# [linear_movement_vibrations]
# accel_chip: adxl345
# x_min: 10
# x_max: 280
# y_min: 10
# y_max: 280
# output_directory: /home/pi/klipper_config/adxl_results/linear_vibrations/
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
# HEATER BED #
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
[heater_bed]
heater_pin: heater_bed_heating_pin
sensor_pin: heater_bed_sensor_pin
sensor_type: Generic 3950
min_temp: 0
max_temp: 120
pwm_cycle_time: 0.02 # 50hz for european AC, to avoid flickering lights.
control: pid
pid_kp: 60.173
pid_ki: 1.832
pid_kd: 494.172
# smooth_time: 2
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
# EXTRUDER #
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
[extruder]
step_pin: toolboard:e_step_pin
dir_pin: toolboard:e_dir_pin
enable_pin: !toolboard:e_enable_pin
heater_pin: toolboard:e_heater_pin
sensor_pin: toolboard:e_sensor_pin
sensor_type: PT1000
microsteps: 64
full_steps_per_rotation: 200
max_extrude_only_velocity: 120
max_extrude_only_distance: 250
min_extrude_temp: 170
min_temp: 0
max_temp: 300
smooth_time: 0.5 #temperature sensor
control: pid
pid_Kp: 21.420
pid_Ki: 1.808
pid_Kd: 63.457
filament_diameter: 1.750
nozzle_diameter: 0.4
rotation_distance: 4.713944
#pressure_advance: 0.07 #PLA
pressure_advance: 0.06 #PETG
# -----------
[firmware_retraction]
retract_speed: 60
unretract_speed: 60
retract_length: 0.4
unretract_extra_length: 0
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
# PRINTER #
#▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬#
[printer]
kinematics: corexy
max_velocity: 500 # 1000
max_accel: 9000 # 15000
max_accel_to_decel: 4500 # 7500
max_z_velocity: 50
max_z_accel: 300
square_corner_velocity: 5
# -----------
[bed_mesh]
horizontal_move_z: 5
mesh_min: 20,20
mesh_max:265,260
probe_count: 7,7
fade_start: 1.0
fade_end: 10.0
mesh_pps: 2,2
algorithm: bicubic
bicubic_tension: .2
speed: 300
[pam]
[z_tilt]
z_positions:
0,0
150,300
300,0
points:
60,60
185,270
260,60
horizontal_move_z: 5
retries: 10
retry_tolerance: 0.02
speed: 300
[input_shaper]
shaper_freq_x: 75.2 # 18000 (97Hz@Spectroid)
shaper_type_x: mzv
shaper_freq_y: 51 # 8000 (97Hz@Spectroid)
shaper_type_y: mzv
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_mesh cold]
#*# version = 1
#*# points =
#*# 0.021562, 0.000312, 0.004062, 0.001875, 0.018125, 0.025937, 0.056250
#*# 0.047500, 0.018125, 0.016875, 0.028750, 0.017187, 0.029375, 0.071875
#*# 0.071250, 0.029375, 0.028437, 0.045937, 0.029375, 0.028437, 0.046875
#*# 0.062187, 0.019687, 0.014375, 0.027812, 0.013125, 0.012812, 0.039687
#*# 0.059062, 0.028125, 0.032812, 0.039062, 0.021250, 0.019375, 0.048125
#*# 0.049375, 0.020000, 0.025000, 0.038750, 0.025000, 0.035000, 0.061250
#*# 0.032500, 0.023125, 0.026562, 0.001250, 0.001250, 0.005312, 0.024687
#*# x_count = 7
#*# y_count = 7
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 19.999999999999996
#*# max_x = 264.97999999999996
#*# min_y = 20.0
#*# max_y = 260.0
#*#
#*# [bed_mesh hot]
#*# version = 1
#*# points =
#*# -0.000000, -0.014063, -0.002813, -0.001250, 0.013750, 0.011250, 0.029375
#*# 0.033750, 0.017187, 0.021250, 0.035625, 0.021250, 0.023437, 0.051250
#*# 0.060312, 0.027500, 0.032812, 0.051562, 0.028750, 0.021562, 0.025625
#*# 0.049062, 0.015312, 0.018750, 0.032187, 0.015625, 0.003125, 0.015000
#*# 0.040000, 0.018125, 0.026250, 0.037500, 0.015312, 0.007812, 0.017500
#*# 0.014687, -0.004063, 0.007812, 0.024375, 0.009062, 0.009375, 0.019062
#*# -0.013125, -0.009375, 0.000937, -0.021250, -0.026875, -0.033438, -0.023438
#*# x_count = 7
#*# y_count = 7
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 19.999999999999996
#*# max_x = 264.97999999999996
#*# min_y = 20.0
#*# max_y = 260.0