-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGear Green Purple 26DEC2024-Printer.cfg
435 lines (389 loc) · 13.2 KB
/
Gear Green Purple 26DEC2024-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
##### ZYLTech Gear v3 with MKS Nano Robin v1.2, eZ Direct Drive v6.5, eZ ABL, and TMC2226 on XYZ #####
[include fluidd.cfg]
[include kiauh_macros.cfg]
[include PA_Tuner.cfg]
[include D3_Macros.cfg]
[exclude_object]
#Klipper-Adaptive-Meshing--Purging
#https://github.com/kyleisah/Klipper-Adaptive-Meshing-Purging
# This file contains all settings for KAMP, and must be included in printer.cfg with:
[include KAMP_Settings.cfg]
### The following [includes] can be uncommented from within KAMP_Settings.cfg. ###
# This file enables the use of adaptive meshing.
[include ./KAMP/Adaptive_Meshing.cfg]
# This file enables the use of adaptive line purging.
#[include ./KAMP/Line_Purge.cfg]
# This file enables the use of the adaptive Voron logo purge.
#[include ./KAMP/Voron_Purge.cfg]
# This file enables the use of KAMP's Smart Park feature.
[include ./KAMP/Smart_Park.cfg]
#[include adxl.cfg]
# Green 192.168.6.221:7125
# This file contains common pin mappings for MKS Robin Nano (v1.2.004)
# boards. To use this config, the firmware should be compiled for the
# STM32F103. When running "make menuconfig", enable "extra low-level
# configuration setup", select the 28KiB bootloader, disable "USB for
# communication", and select USART3 for the "Serial Port".
# Note that the "make flash" command does not work with MKS Robin
# boards. After running "make", run the following command:
# ./scripts/update_mks_robin.py out/klipper.bin out/Robin_nano.bin
# Copy the file out/Robin_nano.bin to an SD card and then restart the
# printer with that SD card.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x] #TMC2208
step_pin: PE3
dir_pin: PE2 #use !PE2 if it go the wrong directions
enable_pin: !PE4
microsteps: 64
rotation_distance: 40.09
full_steps_per_rotation = 400
endstop_pin: !PA15
#endstop_pin: tmc2209_stepper_x:virtual_endstop
position_endstop: 0
position_max: 305 # adjust bed size as needed
homing_speed: 100
homing_retract_dist: 0
# D3 11JUN2022 CHANGED added TMC2226 to the printer
[tmc2209 stepper_x]
#spreadCycle
uart_pin:PA10
interpolate: False
run_current: 0.900
hold_current: 0.500
diag_pin: ^PA1 # Set to MCU pin connected to TMC DIAG pin
#driver_SGTHRS: 105 # 255 is most sensitive value, 0 is least sensitive
[stepper_y] #TMC2208
step_pin: PE0
dir_pin: PB9 #use !PB9 if it go the wrong directions
enable_pin: !PE1
microsteps: 64
rotation_distance: 40.09
full_steps_per_rotation: 400
endstop_pin: !PA12
#endstop_pin: tmc2209_stepper_y:virtual_endstop
position_endstop: -10
position_min: -10
position_max: 305 # adjust bed size as needed
homing_speed: 100
homing_retract_dist: 0
# D3 11JUN2022 CHANGED added TMC2226 to the printer
[tmc2209 stepper_y]
#spreadCycle
uart_pin:PA9
interpolate: False
run_current: 0.900
hold_current: 0.500
diag_pin: ^PA1 # Set to MCU pin connected to TMC DIAG pin
#driver_SGTHRS: 105 # 255 is most sensitive value, 0 is least sensitive
[stepper_z] #TMC2208 Customer Driver
step_pin: PB5
dir_pin: PB4 #use !PB4 if it go the wrong directions
enable_pin: !PB8
microsteps: 64
rotation_distance: 8
full_steps_per_rotation: 200
#16.0 = 15mm
#16.4 = 20mm
# D3 09FEB2021 CHANGED for BLTouch
#endstop_pin: !PA11
endstop_pin: probe:z_virtual_endstop
# D3 09FEB2021 DISABLED for BLTouch
#position_endstop: 0
position_min: -15
position_max: 400
homing_speed: 20
second_homing_speed: 2
# D3 11JUN2022 CHANGED added TMC2226 to the printer
[tmc2209 stepper_z]
#spreadCycle
uart_pin:PC7
interpolate: False
run_current: 0.400
hold_current: 0.200
diag_pin: ^PA1 # Set to MCU pin connected to TMC DIAG pin
#driver_SGTHRS: 105 # 255 is most sensitive value, 0 is least sensitive
[extruder]
step_pin: PD6
dir_pin: !PD3
enable_pin: !PB3
microsteps: 16
#rotation_distance: 31.5
rotation_distance: 33.5
nozzle_diameter: 0.600 # Nozzle Size typically 0.400
filament_diameter: 1.750
max_extrude_only_distance: 150.0
heater_pin: PC3
sensor_type: ATC Semitec 104GT-2
sensor_pin: PC1
#control: pid
#pid_Kp=32.006 pid_Ki=1.680 pid_Kd=152.426
#pid_Kp=32.006
#pid_Ki=1.680
#pid_Kd=152.426
min_temp: 0
max_temp: 275
##### CUSTOM SETTING - Pressure_Advance #####
#https://www.klipper3d.org/Pressure_Advance.html#tuning-pressure-advance
#Formula: Pressure Advance Value = Measured_Z_Height x 0.0138888888889 - 0.00833333333333
# 6mm 0.0138888888889 0.00833333333333 0.07500000000007
# 5mm 0.0138888888889 0.00833333333333 0.06111111111117
# 4mm 0.0138888888889 0.00833333333333 0.04722222222227
# 2.5mm 0.0138888888889 0.00833333333333 0.02638888888892
#pressure_advance: 0.02638888888892
##### CUSTOM SETTING - Input_Shaper #####
[input_shaper]
#https://www.klipper3d.org/Resonance_Compensation.html
#X
# Wait for calculations..
# Calculating the best input shaper parameters for x axis
# Fitted shaper 'zv' frequency = 64.8 Hz (vibrations = 34.1%, smoothing ~= 0.043)
# To avoid too much smoothing with 'zv', suggested max_accel <= 16400 mm/sec^2
# Fitted shaper 'mzv' frequency = 60.8 Hz (vibrations = 4.7%, smoothing ~= 0.055)
# To avoid too much smoothing with 'mzv', suggested max_accel <= 10900 mm/sec^2
# Fitted shaper 'ei' frequency = 82.8 Hz (vibrations = 9.3%, smoothing ~= 0.047)
# To avoid too much smoothing with 'ei', suggested max_accel <= 12800 mm/sec^2
# Fitted shaper '2hump_ei' frequency = 76.8 Hz (vibrations = 0.0%, smoothing ~= 0.091)
# To avoid too much smoothing with '2hump_ei', suggested max_accel <= 6600 mm/sec^2
# Fitted shaper '3hump_ei' frequency = 93.6 Hz (vibrations = 0.0%, smoothing ~= 0.094)
# To avoid too much smoothing with '3hump_ei', suggested max_accel <= 6400 mm/sec^2
# Recommended shaper_type_x = 2hump_ei, shaper_freq_x = 76.8 Hz
#Y
# Wait for calculations..
# Calculating the best input shaper parameters for y axis
# Fitted shaper 'zv' frequency = 32.8 Hz (vibrations = 14.5%, smoothing ~= 0.143)
# To avoid too much smoothing with 'zv', suggested max_accel <= 4000 mm/sec^2
# Fitted shaper 'mzv' frequency = 24.8 Hz (vibrations = 1.9%, smoothing ~= 0.331)
# To avoid too much smoothing with 'mzv', suggested max_accel <= 1700 mm/sec^2
# Fitted shaper 'ei' frequency = 29.6 Hz (vibrations = 0.0%, smoothing ~= 0.368)
# To avoid too much smoothing with 'ei', suggested max_accel <= 1600 mm/sec^2
# Fitted shaper '2hump_ei' frequency = 39.0 Hz (vibrations = 0.5%, smoothing ~= 0.355)
# To avoid too much smoothing with '2hump_ei', suggested max_accel <= 1500 mm/sec^2
# Fitted shaper '3hump_ei' frequency = 48.0 Hz (vibrations = 0.7%, smoothing ~= 0.356)
# To avoid too much smoothing with '3hump_ei', suggested max_accel <= 1500 mm/sec^2
# Recommended shaper_type_y = ei, shaper_freq_y = 29.6 Hz
#shaper_type_x = ei
#shaper_freq_x = 82.8
#shaper_type_y = zv
#shaper_freq_y = 32.8
[heater_bed]
heater_pin: PA0
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC0
#// PID parameters: pid_Kp=70.592 pid_Ki=0.845 pid_Kd=1474.484
#control: pid
#pid_Kp=67.782
#pid_Ki=0.924
#pid_Kd=1242.961
min_temp: 0
max_temp: 150
[fan]
pin: PB1
[heater_fan extruder_fan]
#turns on hotend fan
pin: PB0
heater: extruder
# Name of the config section defining the heater that this fan is
# associated with. If a comma separated list of heater names is
# provided here, then the fan will be enabled when any of the given
# heaters are enabled. The default is "extruder".
heater_temp: 50.0
# A temperature (in Celsius) that the heater must drop below before
# the fan is disabled. The default is 50 Celsius.
fan_speed: 1.0
# The fan speed (expressed as a value from 0.0 to 1.0) that the fan
# will be set to when its associated heater is enabled. The default
# is 1.0
[mcu]
# D3 Changed 26JUL2021
#white
#serial: /dev/serial/by-path/platform-3f980000.usb-usb-0:1.3:1.0-port0
#blue
#serial: /dev/serial/by-path/platform-3f980000.usb-usb-0:1.1.2:1.0-port0
#white pi4
#serial: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-port0
#blue pi4
#serial: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0-port0
#Raspberry Pi 3
#serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
#Raspberry Pi 4
serial: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0-port0
restart_method: command
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 50
max_z_accel: 100
square_corner_velocity: 5.0
##### CUSTOM FEATURES #####
[virtual_sdcard]
#path: ~/gcode_files
path: /home/pi/printer_1_data/gcodes
##### AUTOMATIC BED LEVELING #####
[probe] # enable for FreeZ ABL - fast-mode
pin: !PA11 # for MKS Robin Nano v1.2 on ZYLTech Gear
# modify as needed for bltouch or run PROBE_CALIBRATE
x_offset: +25.0
y_offset: -30.0
#z_offset: 0.0
speed:10
samples:1
sample_retract_dist: 8.0
samples_result:median
[safe_z_home]
home_xy_position: 115,190 # Change coordinates to the center of your print bed
speed: 50
z_hop: 20 # Move up 10mm
z_hop_speed: 20
[bed_mesh] # enable for FreeZ ABL
#22JUL2021 D3 speed up movement while G29
#speed: 300
speed: 300
mesh_min: 30, 30 # front left of the bed
mesh_max: 275, 260
algorithm: bicubic
probe_count: 4,4
#05JUN2022 D3 Increased so it was not so close to bed
#horizontal_move_z: 5
horizontal_move_z: 20
mesh_pps: 0 ;disable mesh interpolation (fixes issues with Bed Visualizer plug-in)
######################################################################
# #05JUN2022 D3 Better bed leveling for SCREWS_TILT_CALCULATE
######################################################################
[screws_tilt_adjust]
horizontal_move_z: 20
screw1: 15,290
screw1_name: back left
screw2: 250,290
screw2_name: back right
screw3: 250,50
screw3_name: front left
screw4: 15,50
screw4_name: front right
screw_thread: CW-M4
[gcode_macro G29]
gcode:
BED_MESH_CLEAR
BED_MESH_CALIBRATE
BED_MESH_PROFILE SAVE=default
##### FILAMENT SENSOR #####
[filament_switch_sensor filament_sensor]
pause_on_runout: True
runout_gcode:
M300
M600
insert_gcode:
event_delay: 3.0
pause_delay: 0.5
switch_pin:PA4
######################################################################
# Beeper
######################################################################
# M300 : Play tone. Beeper support, as commonly found on usual LCD
# displays (i.e. RepRapDiscount 2004 Smart Controller, RepRapDiscount
# 12864 Full Graphic). This defines a custom I/O pin and a custom
# GCODE macro. Usage:
# M300 [P<ms>] [S<Hz>]
# P is the tone duration, S the tone frequency.
# The frequency won't be pitch perfect.
[output_pin BEEPER_pin]
pin: PC5
# Beeper pin. This parameter must be provided.
# ar37 is the default RAMPS/MKS pin.
pwm: True
# A piezo beeper needs a PWM signal, a DC buzzer doesn't.
value: 0
# Silent at power on, set to 1 if active low.
shutdown_value: 0
# Disable at emergency shutdown (no PWM would be available anyway).
cycle_time: 0.001
# Default PWM frequency : 0.001 = 1ms will give a tone of 1kHz
# Although not pitch perfect.
[gcode_macro M300]
gcode:
# Use a default 1kHz tone if S is omitted.
{% set S = params.S|default(1000)|int %}
# Use a 10ms duration is P is omitted.
{% set P = params.P|default(1000)|int %}
SET_PIN PIN=BEEPER_pin VALUE=0.5 CYCLE_TIME={ 1.0/S if S > 0 else 1 }
G4 P{P}
SET_PIN PIN=BEEPER_pin VALUE=0
######################################################################
# Filament Change
######################################################################
# M600: Filament Change. This macro will pause the printer, move the
# tool to the change position, and retract the filament 50mm. Adjust
# the retraction settings for your own extruder. After filament has
# been changed, the print can be resumed from its previous position
# with the "RESUME" gcode.
[pause_resume]
[gcode_macro M600]
gcode:
{% set X = params.X|default(50)|float %}
{% set Y = params.Y|default(0)|float %}
{% set Z = params.Z|default(10)|float %}
SAVE_GCODE_STATE NAME=M600_state
PAUSE
G91
G1 E-.8 F2700
G1 Z{Z}
G90
G1 X{X} Y{Y} F3000
G91
G1 E-50 F1000
RESTORE_GCODE_STATE NAME=M600_state
##### DISPLAY OFF #####
[static_digital_output display_reset]
pins: !PC6, !PD13
######################################################################
# Resonance
######################################################################
#[mcu rpi]
#serial: /tmp/klipper_host_mcu
#adxl345]
#cs_pin: rpi:None
#[resonance_tester]
#accel_chip: adxl345
#probe_points: 150,150,20
# z_offset = 2.700
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [probe]
#*# z_offset = 2.650
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 27.913
#*# pid_ki = 1.185
#*# pid_kd = 164.340
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 72.230
#*# pid_ki = 0.835
#*# pid_kd = 1562.871
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.551250, -0.101875, -0.031875, -0.477500
#*# -0.427500, -0.155625, 0.343125, -0.368750
#*# -0.471250, -0.021250, 0.055000, -0.371250
#*# -0.420000, -0.214375, -0.236875, -0.401250
#*# tension = 0.2
#*# min_x = 30.0
#*# algo = direct
#*# y_count = 4
#*# mesh_y_pps = 0
#*# min_y = 30.0
#*# x_count = 4
#*# max_y = 259.98
#*# mesh_x_pps = 0
#*# max_x = 274.98
#*#
#*# [input_shaper]
#*# shaper_type_y = ei
#*# shaper_freq_y = 30.6
#*# shaper_type_x = 2hump_ei
#*# shaper_freq_x = 79.4