-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprinter.cfg
More file actions
685 lines (598 loc) · 21 KB
/
printer.cfg
File metadata and controls
685 lines (598 loc) · 21 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
675
676
677
678
679
680
681
682
683
684
685
#----------------------------------------------------------------------------
# ____ _ __ __ ____
# / __ \___ ___ ___ / |/ /__ ___ / /_/ / /__ _____ ___
# / /_/ / _ \/ -_) _ \/ / -_) _ \/ __/_ _/ // / _ \/ -_)
# \____/ .__/\__/_//_/_/|_/\__/ .__/\__/ /_/ \_,_/_//_/\__/
# /_/ /_/
#----------------------------------------------------------------------------
; Neptune 4 Series Custom Image by (OpenNeptune3D/OpenNept4une):
#----------------------------------------------------------------------------
; Wiki : https://github.com/OpenNeptune3D/OpenNept4une/wiki
; Discord : https://discord.com/invite/X6kwchT6WM
#############################################################################
# External Config Includes
#############################################################################
[include mainsail.cfg] ; mainsail runs on port 81 (http://IP_ADDRESS:81)
[include fluidd.cfg]
[include KAMP_Settings.cfg]
[include ./KAMP/Smart_Park.cfg]
[include ./KAMP/Line_Purge.cfg]
#[include klipper_debug.cfg]
#[include adxl.cfg] ; Comment this out when you disconnect the Pico/MellowFly
#############################################################################
# Base Config
#############################################################################
[mcu]
serial: /dev/ttyS0 ; The hardware use USART1 PA10/PA9 connect to RK3328
baud: 250000
restart_method: command
[printer]
kinematics:cartesian
max_velocity: 250
max_accel: 3000
max_z_velocity: 8
max_z_accel: 120
square_corner_velocity: 5.0
minimum_cruise_ratio: 0.0
[respond]
[gcode_arcs]
[pause_resume]
[display_status]
[exclude_object]
[firmware_retraction]
retract_length: 1.7
retract_speed: 40
unretract_extra_length: 0
unretract_speed: 40
[virtual_sdcard]
path: ~/printer_data/gcodes
[force_move]
enable_force_move : True
[idle_timeout]
timeout: 2100 ; 35min idle timeout (when not paused or printing)
#############################################################################
# Print Start & End Macros
#############################################################################
[gcode_macro PRINT_START]
gcode:
Frame_Light_ON
Part_Light_ON
G92 E0
G90 ; Use absolute coordinates
BED_MESH_CLEAR
{% set BED_TEMP = params.BED_TEMP|default(60)|float %}
{% set BED_HEAT_SOAK_MINUTES = params.BED_HEAT_SOAK_MINUTES|default(0)|float %}
{% set BED_MESH = params.BED_MESH|default('adaptive')|string %} ; One of: adaptive (default), full, default (or any other value as the bed mesh profile name), none
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(200)|float %}
SET_BED_TEMPERATURE TARGET={BED_TEMP} ; Heat Bed to target temp
BED_TEMPERATURE_WAIT MINIMUM={BED_TEMP-2} MAXIMUM={BED_TEMP+4} ; Waits until the bed reaches close to target
{% if BED_HEAT_SOAK_MINUTES > 0 %}
RESPOND MSG="Waiting {BED_HEAT_SOAK_MINUTES} minutes for the bed to settle."
G4 P{BED_HEAT_SOAK_MINUTES * 60000}
{% endif %}
CG28
{% if BED_MESH == 'full' %}
BED_MESH_CALIBRATE
{% elif BED_MESH == 'adaptive' %}
BED_MESH_CALIBRATE ADAPTIVE=1
{% elif BED_MESH != 'none' %}
BED_MESH_PROFILE LOAD={BED_MESH}
{% endif %}
Smart_Park
SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE=1
SET_HEATER_TEMPERATURE HEATER=extruder TARGET={EXTRUDER_TEMP} ; Set and heat the final extruder temperature
TEMPERATURE_WAIT SENSOR=extruder MINIMUM={EXTRUDER_TEMP-4} MAXIMUM={EXTRUDER_TEMP+10} ; Wait for extruder to reach near target temperature
LINE_PURGE ; KAMP Line Purge near print
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up
M117 Printing
[gcode_macro PRINT_END]
gcode:
Frame_Light_OFF
Part_Light_OFF
M400 ; wait for buffer to clear
TURN_OFF_HEATERS
G92 E0 ; zero the extruder
G91 ; Relative positioning
G1 E-2 F2700 ; Retract a bit
G1 X5 Y5 F3000 ; Wipe out
G1 E-2 Z0.2 F1600 ; Retract and raise Z
G1 Z4 F3000 ; Raise Z more
G90 ; Absolute positioning
G1 X0 Y315 ; Present print
M107 ; turn off fan
M84 ; turn off steppers
SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE=0
M117
END_TUNE ; Print End Beeper Jingle
#############################################################################
# Pause, Resume & Cancel Macros
#############################################################################
[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
gcode:
PAUSE_TUNE
{% set z = params.Z|default(30)|int %}
{% if printer['pause_resume'].is_paused|int == 0 %}
SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=etemp VALUE={printer['extruder'].target|default(220)}
# Store current extruder temperature before cooling
SET_GCODE_VARIABLE MACRO=LOAD_FILAMENT VARIABLE=prev_temp VALUE={printer['extruder'].target|default(220)}
SET_GCODE_VARIABLE MACRO=UNLOAD_FILAMENT VARIABLE=prev_temp VALUE={printer['extruder'].target|default(220)}
# Store Z-hop value for RESUME
SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=zhop VALUE={z}
SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE=0
SAVE_GCODE_STATE NAME=PAUSE
BASE_PAUSE
G91
{% if (printer.gcode_move.position.z + z) < printer.toolhead.axis_maximum.z %}
G1 E-2 F2700
G1 X3 Y3 F3000
G1 E-2 Z{z} F1600
SAVE_GCODE_STATE NAME=ZLIFT
{% else %}
{ action_respond_info("Pause zhop exceeds maximum Z height.") }
SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=zhop VALUE=0
G1 E-2 F2700
G1 X3 Y3 F3000
G1 E-2 F1600
SAVE_GCODE_STATE NAME=ZLIFT
{% endif %}
G90
G1 X{printer.toolhead.axis_minimum.x+5} Y{printer.toolhead.axis_maximum.y-5} F6000
SAVE_GCODE_STATE NAME=PAUSEPARK
SET_HEATER_TEMPERATURE HEATER=extruder TARGET=175
SET_IDLE_TIMEOUT TIMEOUT=43200
{% endif %}
[gcode_macro RESUME]
rename_existing: BASE_RESUME
variable_zhop: 0
variable_etemp: 0
gcode:
{% if printer['pause_resume'].is_paused|int == 1 %}
SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE=1 ; enable filament sensor
SET_IDLE_TIMEOUT TIMEOUT={printer.configfile.settings.idle_timeout.timeout} ; set timeout back to configured value
{% if etemp > 0 %}
SET_HEATER_TEMPERATURE HEATER=extruder TARGET={etemp|int}
TEMPERATURE_WAIT SENSOR=extruder MINIMUM={etemp|int - 4} MAXIMUM={etemp|int + 10} ; wait for hotend to heat back up to print temp
{% endif %}
RESTORE_GCODE_STATE NAME=PAUSEPARK MOVE=1 MOVE_SPEED=100 ; go back to park position in case toolhead was moved during pause ; enable extruder stepper motor
G91 ; relative positioning
M83 ; set extruder to relative mode
G1 E80 F200 ; extrude 80mm of filament to prime the nozzle
G4 P2000 ; wait for 2 seconds to stabilise pressure
G1 X20 F15000 ; wiggle movement to ensure free movement of purge
G1 X-20
G1 X20
G1 X-20
G1 X20
G1 X-20
RESTORE_GCODE_STATE NAME=ZLIFT MOVE=1 MOVE_SPEED=60 ; restore to the zlift position above the print
G1 X-3 Y-3 F3000 ; Undo the pause Wipe out
G1 Z{zhop * -1} F900
RESTORE_GCODE_STATE NAME=PAUSE MOVE=1 MOVE_SPEED=60 ; restore to the paused position (lowers to final print location)
M400 ; wait for all moves to complete
BASE_RESUME ; resume print
{% endif %}
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
gcode:
SET_IDLE_TIMEOUT TIMEOUT={printer.configfile.settings.idle_timeout.timeout} ; set timeout back to configured value
CLEAR_PAUSE
SDCARD_RESET_FILE
PRINT_END
BASE_CANCEL_PRINT
#############################################################################
# Filament Sensor & Change Macros
#############################################################################
[filament_switch_sensor filament_sensor]
pause_on_runout: True
insert_gcode:
M117 Insert Detected
runout_gcode:
M117 Runout Detected
UNLOAD_FILAMENT
event_delay: 3.0
pause_delay: 1.0
switch_pin: PA12
[delayed_gcode DISABLE_FILAMENT_SENSOR]
initial_duration: 1
gcode:
SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE=0
[gcode_macro M600]
description: Pause for colour change
gcode:
PAUSE
UNLOAD_FILAMENT
[gcode_macro LOAD_FILAMENT]
variable_prev_temp: 220
variable_load_distance: 25
variable_purge_distance: 30
gcode:
{% set target_temp = prev_temp|int if prev_temp >= 200 else 220 %}
SET_HEATER_TEMPERATURE HEATER=extruder TARGET={target_temp}
TEMPERATURE_WAIT SENSOR=extruder MINIMUM={target_temp - 4} MAXIMUM={target_temp + 40}
{% set speed = params.SPEED|default(300) %}
{% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity * 30 %}
SAVE_GCODE_STATE NAME=load_state
G91
G92 E0
G1 E{load_distance} F{max_velocity}
G1 E{purge_distance} F{speed}
RESTORE_GCODE_STATE NAME=load_state
[gcode_macro UNLOAD_FILAMENT]
variable_prev_temp: 220
variable_unload_distance: 55
variable_purge_distance: 15
gcode:
{% set target_temp = prev_temp|int if prev_temp >= 200 else 220 %}
SET_HEATER_TEMPERATURE HEATER=extruder TARGET={target_temp}
TEMPERATURE_WAIT SENSOR=extruder MINIMUM={target_temp - 4} MAXIMUM={target_temp + 40}
{% set speed = params.SPEED|default(300) %}
{% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity * 30 %}
SAVE_GCODE_STATE NAME=unload_state
G91
G92 E0
G1 E{purge_distance} F{speed}
G1 E-{unload_distance} F{max_velocity}
RESTORE_GCODE_STATE NAME=unload_state
#############################################################################
# X/Y/Z Stepper Config
#############################################################################
[stepper_x]
step_pin: PC14
dir_pin: PC13
enable_pin: !PC15
microsteps: 16
rotation_distance: 40
full_steps_per_rotation:200 ; set to 400 for 0.9 degree stepper
endstop_pin: tmc2209_stepper_x:virtual_endstop
position_min: -12
position_endstop: -10
position_max: 330
homing_speed: 50
homing_retract_dist: 0
homing_positive_dir: false
[stepper_y]
step_pin: PB4
dir_pin: !PB3
enable_pin: !PC15
microsteps: 16
rotation_distance: 40
full_steps_per_rotation:200 ; set to 400 for 0.9 degree stepper
endstop_pin: tmc2209_stepper_y:virtual_endstop
position_min: -2
position_endstop: 0
position_max: 330
homing_speed:50
homing_retract_dist: 0
homing_positive_dir:false
[stepper_z]
step_pin: PC10
dir_pin: !PA13
enable_pin: !PC11
microsteps: 16
rotation_distance: 8
full_steps_per_rotation: 200
endstop_pin:probe:z_virtual_endstop
position_max: 405
position_min: -5
homing_speed: 8
second_homing_speed: 3
homing_retract_dist: 5
#############################################################################
# TMC Stepper-driver UART Config
#############################################################################
[tmc2209 stepper_x]
uart_pin: PB9
run_current: 1.0
interpolate: True
stealthchop_threshold: 999999
driver_SGTHRS: 90
diag_pin: ^PC0
[tmc2209 stepper_y]
uart_pin: PD2
run_current: 1.1
interpolate: True
stealthchop_threshold: 999999
driver_SGTHRS: 80
diag_pin: ^PB8
[tmc2209 stepper_z]
uart_pin: PC5
run_current: 0.8
interpolate: True
[tmc2209 extruder]
uart_pin: PC4
run_current: 0.8
interpolate: false
#############################################################################
# Extruder Config
#############################################################################
[extruder]
step_pin:PA5
dir_pin:!PA6
enable_pin:!PA4
microsteps: 16
rotation_distance: 28.888 ; 31.4 Bondtech 5mm Drive Gears
gear_ratio: 52:10
full_steps_per_rotation: 200 ; 200 for 1.8 degree, 400 for 0.9 degree
nozzle_diameter: 0.400
filament_diameter: 1.750
min_temp: 0
max_temp: 330
heater_pin: PA7
sensor_type:NTC 100K MGB18-104F39050L32
sensor_pin: PA1
max_power: 1
#control = pid
#pid_kp = 35.144
#pid_ki = 9.762
#pid_kd = 31.630
pressure_advance: 0.02725
pressure_advance_smooth_time: 0.02
max_extrude_cross_section: 5 ; standard klipper default 4* (NozzleDiam^2)
instantaneous_corner_velocity: 5.0
max_extrude_only_distance: 100
max_extrude_only_velocity:45
max_extrude_only_accel:2000
step_pulse_duration:0.000002
[verify_heater extruder]
max_error: 30
check_gain_time: 10
hysteresis: 10
heating_gain: 2
#############################################################################
# Bed Heater Config
#############################################################################
[heater_bed]
heater_pin:PB10
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: PA0
max_power: 1.0
control = pid
pid_kp = 75.397
pid_ki = 0.823
pid_kd = 1727.531
min_temp: 0
max_temp: 120
pwm_cycle_time: 0.3
[verify_heater heater_bed]
max_error: 120
check_gain_time: 120
hysteresis: 10
heating_gain: 2
[gcode_macro SET_BED_TEMPERATURE]
gcode:
SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET={params.TARGET}
[gcode_macro BED_TEMPERATURE_WAIT]
gcode:
{% if params.MINIMUM is defined and params.MAXIMUM is defined %}
TEMPERATURE_WAIT SENSOR=heater_bed MINIMUM={params.MINIMUM} MAXIMUM={params.MAXIMUM}
{% elif params.MINIMUM is defined %}
TEMPERATURE_WAIT SENSOR=heater_bed MINIMUM={params.MINIMUM}
{% elif params.MAXIMUM is defined %}
TEMPERATURE_WAIT SENSOR=heater_bed MAXIMUM={params.MAXIMUM}
{% else %}
RESPOND TYPE=error MSG="Error on 'BED_TEMPERATURE_WAIT': missing MINIMUM or MAXIMUM."
{% endif %}
#############################################################################
# Probe Config
#############################################################################
[probe]
pin:^PA11
x_offset: -24.25
y_offset: 20.45
#z_offset = 0.0
speed: 6.0
samples: 3
samples_result: median
sample_retract_dist: 3.0
samples_tolerance: 0.025
samples_tolerance_retries: 3
[bed_mesh]
speed:150
horizontal_move_z:5
mesh_min: 10,21
mesh_max: 300.75,315.45
probe_count:11,11
algorithm:bicubic
bicubic_tension:0.2
mesh_pps: 4, 4
fade_start: 1.0
fade_end: 10.0
#############################################################################
# LED Config
#############################################################################
[output_pin Frame_Light]
pin: rpi:gpiochip2/gpio2
[output_pin Part_Light]
pin: rpi:gpiochip2/gpio15
[gcode_macro Frame_Light_ON]
gcode:
SET_PIN PIN=Frame_Light VALUE=1
[gcode_macro Frame_Light_OFF]
gcode:
SET_PIN PIN=Frame_Light VALUE=0
[gcode_macro Part_Light_ON]
gcode:
SET_PIN PIN=Part_Light VALUE=1
[gcode_macro Part_Light_OFF]
gcode:
SET_PIN PIN=Part_Light VALUE=0
#############################################################################
# Beeper Config
#############################################################################
[pwm_cycle_time beeper]
pin: PA2
value: 0
shutdown_value: 0
cycle_time: 0.0005 ; Default PWM frequency: 2 kHz
[gcode_macro M300]
gcode:
{% set S = params.S|default(2000)|int %} ; Set frequency (S), default to 2 kHz if omitted or invalid
{% set P = params.P|default(100)|int %} ; Set duration (P), default to 100ms if omitted or invalid
SET_PIN PIN=beeper VALUE=0.8 CYCLE_TIME={ 1.0/S if S > 0 else 1 } ; Activate the beeper at a 80% duty cycle
G4 P{P} ; Hold the beep for the specified duration
SET_PIN PIN=beeper VALUE=0 ; Turn off the beeper
[gcode_macro PAUSE_TUNE]
gcode:
M300 S784 P300
M300 S587 P600
[gcode_macro END_TUNE]
gcode:
M300 S392 P250
M300 S494 P250
M300 S587 P250
M300 S523 P300
#############################################################################
# Fan & Temp Monitoring Config
#############################################################################
[controller_fan heatbreak+mainboard_fan]
pin: PC7
fan_speed: 1.0
idle_speed: 0.5
idle_timeout: 43200 ; 50% speed for 12h then OFF
shutdown_speed: 1
heater: extruder, heater_bed
stepper: stepper_x, stepper_y, stepper_z, extruder
[fan]
pin: PB7
[fan_generic fan3]
pin: PC9
[fan_generic fan4]
pin: PA8
[fan_generic fan5]
pin: PA15
[delayed_gcode start_fan_at_idle_speed]
initial_duration: 5. ; 5s wait after boot
gcode:
# Gcode Hack to trigger the mainboard fan from printer boot
SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=1 ; bed heat to 1degC
G4 P2000 ; wait 2s
SET_HEATER_TEMPERATURE HEATER=heater_bed TARGET=0 ; bed heat off
[temperature_sensor RockchipHost]
sensor_type: temperature_host
min_temp: 10
max_temp: 80
[temperature_sensor STM32MCU]
sensor_type: temperature_mcu
min_temp: 10
max_temp: 85
#############################################################################
# Homing & Levelling Config/Macros
#############################################################################
[gcode_macro CG28]
gcode:
{% if "xyz" not in printer.toolhead.homed_axes %}
G28
{% else %}
{% endif %}
[safe_z_home]
home_xy_position: 189.25,86.55
speed: 100
z_hop: 10
z_hop_speed: 5
[axis_twist_compensation]
calibrate_start_x: 25
calibrate_end_x: 295
calibrate_y: 160
[gcode_macro Axis_Twist_Comp_Tune]
gcode:
CG28
AXIS_TWIST_COMPENSATION_CALIBRATE
[screws_tilt_adjust]
screw1: 189.25,204.55
screw1_name: middle-rear bed mount (shim adjust)
screw2: 189.25,86.55
screw2_name: middle-front bed mount (shim adjust)
screw3: 59.75,277.05
screw3_name: rear left screw
screw4: 59.75,144.55
screw4_name: center left screw
screw5: 59.75,12.05
screw5_name: front left screw
screw6: 315.75,12.05
screw6_name: front right screw
screw7: 315.75,144.55
screw7_name: center right screw
screw8: 315.75,277.05
screw8_name: rear right screw
horizontal_move_z: 5
speed: 150
screw_thread: CW-M4
[gcode_macro Bed_Level_Screws_Tune]
gcode:
BED_MESH_CLEAR
SET_BED_TEMPERATURE TARGET=60
BED_TEMPERATURE_WAIT MINIMUM=58 MAXIMUM=65
CG28
SCREWS_TILT_CALCULATE
[gcode_macro Calibrate_Probe_Z_Offset]
gcode:
CG28
PROBE_CALIBRATE
[gcode_macro Auto_Full_Bed_Level]
gcode:
RESPOND PREFIX="info" MSG="Running Custom Bed Leveling Macro"
BED_MESH_CLEAR
SET_BED_TEMPERATURE TARGET=60
BED_TEMPERATURE_WAIT MINIMUM=58 MAXIMUM=65
CG28
BED_MESH_CALIBRATE
#############################################################################
# PID Tuning Macros
#############################################################################
[gcode_macro PID_Tune_EXTRUDER]
gcode:
{% set temperature = params.TEMPERATURE|default(210) %}
CG28
M106 S255
PID_CALIBRATE HEATER=extruder TARGET={temperature}
SAVE_CONFIG
[gcode_macro PID_Tune_BED]
gcode:
{% set temperature = params.TEMPERATURE|default(60) %}
CG28
M106 S255 ;Sets Print Fans to 100%
PID_CALIBRATE HEATER=heater_bed TARGET={temperature}
SAVE_CONFIG
#############################################################################
# SPI Accelerometer Config
#############################################################################
[mcu rpi]
serial: /tmp/klipper_host_mcu
[adxl345 x]
cs_pin: rpi:None
spi_bus: spidev0.0
axes_map: x,z,-y
[adxl345 y]
cs_pin: rpi:None
spi_bus: spidev0.1
axes_map: -x,-y,-z
[resonance_tester]
accel_chip_x: adxl345 x
accel_chip_y: adxl345 y
max_smoothing: 0.15
probe_points:
162.5, 162.5, 20
#############################################################################
# Input Shaper Config
#############################################################################
[input_shaper]
shaper_type_x: mzv
shaper_freq_x: 62.2
shaper_type_y: ei
shaper_freq_y: 30.0
#############################################################################
[include user_settings.cfg] ; Users custom macros
#############################################################################
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 31.418
#*# pid_ki = 6.982
#*# pid_kd = 35.346
#*#
#*# [probe]
#*# z_offset = 1.180