-
Notifications
You must be signed in to change notification settings - Fork 0
/
printer-20231104_170539.cfg
465 lines (436 loc) · 19.5 KB
/
printer-20231104_170539.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
[include emulator_other_features.cfg]
[include ebb36.cfg]
[include accelerometer.cfg]
[exclude_object]
[gcode_arcs]
resolution: 0.1
[delayed_gcode LOAD_GCODE_OFFSET]
initial_duration: 2
gcode:
SET_GCODE_OFFSET Z_ADJUST=0.0 # Use fludd/mainsail value
[virtual_sdcard]
path: /home/pi/printer_data/gcodes
[temperature_sensor EBBCan]
sensor_type: temperature_mcu
sensor_mcu: EBBCan
min_temp: 0
max_temp: 100
# This file contains common pin mappings for MKS Robin Nano V3
# boards. To use this config, the firmware should be compiled for the
# stm32f407. When running "make menuconfig", select the 48KiB
# bootloader, and enable "USB for communication".
# The "make flash" command does not work on the MKS Robin. Instead,
# after running "make", copy the generated "out/klipper.bin" file to a
# file named "Robin_nano_v3.bin" on an SD card and then restart the
# MKS Robin with that SD card.
############################################################################################################################################################
##MACHINE ABSOLUTE LIMITS / MOTION CONTROL / CONNECTED MCUS#/ ADD A # TO DISABLE MCU IF YOU DON'T HAVE ADXL OR PACKAGES INSTALLED
############################################################################################################################################################
[printer]
kinematics: delta
max_velocity: 500
max_accel: 150000 #3000-9000-20000 after tuning with adxl / inputshaper stay to lower values otherwise starting out. eg 6000 note marlin default is 2800 this may work better on some printers or filament types
#max_accel_to_decel:7500 #I AM HALF MAX SET ACC BY DEFAULT. I CONTROL ZIG ZAG MOVEMENTS AND ADJUST VELOCITY BASED ON DIMENSIONS AND SMOOTH THINGS OUT. SET TO MAX WOULD BE SIMILAR TO MARLIN BEHAVIOR ADXL WIL COVER ROUGH MOVEMENTS. INCREASING MAX ACC IS USUALLY THE BETTER SOLUTION.
max_z_accel: 1000 # this default should be fine / max acceration for z moves. (It may help to bump this up or down a bit depending on desired noise / zhop height.
minimum_z_position: -25 #Once you find your z offset it is suggested to return this to 0 to avoid potentially crashing a nozzle for whatever reason. z offset shouldn't change unless the hotend has been adjusted. most things are flow related.
#square_corner_velocity: 5 # This can depend on desired speed to quality. higher values 15 -20 generally work fine. Left as a safe default. acc / corner velcoity can be adjusted with slicer controls macros handle this. i use a default of 15-30 or dynamic values.
#delta_radius: 130 #151.62 ish should show up after delta caibrate in the save section.
print_radius: 130 #
[firmware_retraction] # make sure to enable this in slicer. cura printer settings addon is required to hit the check box. every other slicer should have it in settings tab. this allows live adjustments or ability to fix a mistake without canceling.
retract_length: 0.8
retract_speed: 50
unretract_extra_length: 0
unretract_speed: 50
[idle_timeout]
gcode:
timeout: 1800 #TIME BEFORE PRINTER TURNS OFF HEATERS AND STEPPERS MAX IDLE TIME 5MINS
############################################################################################################################################################
#MAINBOARD / ACCELEROMETER SECTION.
############################################################################################################################################################
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_2500050009504B4633373520-if00 # Run ls /dev/serial/by-id/* on your Raspberry Pi to get YOUR serial or it wont connect
[mcu rpi] #https://www.klipper3d.org/Measuring_Resonances.html GO HERE TO INSTALL ACCELEROMETERS DO NOT TRUST THE PICTURE FOR WIRING THE GPIO LABEL ISN'T IN THE RIGHT SPOT.
serial: /tmp/klipper_host_mcu
[input_shaper] #PLACE HOLDER VALUES
#shaper_type_x = zv
#shaper_freq_x = 34.6
#shaper_type_y = zv
#shaper_freq_y = 39.0
damping_ratio_x: 0.02
damping_ratio_y: 0.02
############################################################################################################################################################
# A (X-Stepper) Configuration ENABLE ARM LENGTH , ANGLE , POSITION ENDSTOP. FOR THE FIRST TIME EVER. DELTA CALIBRATE WILL ADJUST THIS AND SAVE AT THE BOTTOM.
############################################################################################################################################################
[stepper_a] # X
step_pin: PF9
dir_pin: PD7
enable_pin: !PD6
microsteps: 32 # TMC ARE MENT TO BE SET TO THE HIGHEST VALUE THE MCU CAN SUPPORT THIS DOES NOT WORK THE SAME AS OLDER DRIVERS. DON'T TOUCH ROTATION DISTANCE JUST THIS IF YOU WANT TO CHANGE IT (KLIPPER WILL CALCULATE STEPPING AUTOMATICALLY)
rotation_distance: 40 #NEVER ADJUST THESE VALUES. ADJUSTING THIS WILL NOT SOLVE DIMENSION ISSUES. HORIZONTAL OFFSET / FLOW. OTHERWISE BELTS, OR RAILS MAY NOT BE MOVING RIGHT FOR THIS TO HAPPEN.
full_steps_per_rotation: 200 #CHANGE THIS TO 400 FOR 0.9 DEGREE STEPPERS AGAIN KLIIPPER WILL CALCULATE THE NEW VALUES AUTOMATICALLY
endstop_pin: ^PB5
homing_speed: 60 # This is left a bit slow for initial start up safty once everything is setup up 70-90 are reasonable. (note the sr has optical endstops it can home fast This value needs to be changed on a,b,c steppers)
homing_retract_dist: 5.0
homing_retract_speed:10
#arm_length: 315 #note turning this one applys for b and c as well.
#position_endstop: 336.5 #note turning this one applys for b and c as well.
[tmc2209 stepper_a]
uart_pin: PF10
interpolate: false
run_current: 0.75 #THIS IS RMS CURRENT NOT VREF FOR TMC. tmc spreadsheet tuned.
#driver_TBL: 2
#driver_TOFF: 2
#driver_HSTRT: 1
#driver_HEND: 3
sense_resistor: 0.150
#driver_PWM_REG: 7
#driver_PWM_OFS: 36
stealthchop_threshold: 999999 #this forces always silent. due to the stepper location turning this off will result in amplifed noise due to the case acoustics.
############################################################################################################################################################
# B (Y-Stepper) Configuration
############################################################################################################################################################
[stepper_b] # Y
step_pin: PD3
dir_pin: PD2
enable_pin: !PD5
microsteps: 32
rotation_distance: 40
full_steps_per_rotation: 200
endstop_pin: ^PC1
homing_speed: 60
homing_retract_dist: 5.0
homing_retract_speed: 10
[tmc2209 stepper_b]
uart_pin: PD4
interpolate: false
run_current: 0.75 #THIS IS RMS CURRENT NOT VREF FOR TMC. tmc spreadsheet tuned.
#driver_TBL: 2
#driver_TOFF: 2
#driver_HSTRT: 1
#driver_HEND: 3
sense_resistor: 0.150
#driver_PWM_REG: 7
#driver_PWM_OFS: 36
stealthchop_threshold: 999999 #this forces always silent. due to the stepper location turning this off will result in amplifed noise due to the case acoustics.
############################################################################################################################################################
# C (Z-Stepper) Configuration
############################################################################################################################################################
[stepper_c] # Z
step_pin: PA15
dir_pin: PF8
enable_pin: !PC9
microsteps: 32
rotation_distance: 40
full_steps_per_rotation: 200
endstop_pin: ^PC0
homing_speed: 60
homing_retract_dist: 5.0
homing_retract_speed: 10
[tmc2209 stepper_c]
uart_pin: PC8
interpolate: false
run_current: 0.75 #THIS IS RMS CURRENT NOT VREF FOR TMC. tmc spreadsheet tuned.
#driver_TBL: 2
#driver_TOFF: 2
#driver_HSTRT: 1
#driver_HEND: 3
sense_resistor: 0.150
#driver_PWM_REG: 7
#driver_PWM_OFS: 36
stealthchop_threshold: 999999 #this forces always silent. due to the stepper location turning this off will result in amplifed noise due to the case acoustics.
############################################################################################################################################################
# Extruder Configuration
############################################################################################################################################################
[extruder]
step_pin: EBBCan: PD0
dir_pin: !EBBCan: PD1
enable_pin: !EBBCan: PD2
microsteps: 16
rotation_distance: 21.37395
gear_ratio: 50:10
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: EBBCan: PB13
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: EBBCan: PA3
#control: pid
#pid_Kp: 21.527
#pid_Ki: 1.063
#pid_Kd: 108.982
min_temp: 0
max_temp: 275
min_extrude_temp: 180
max_extrude_only_distance: 2000
max_extrude_cross_section: 9999
max_extrude_only_velocity: 120
max_extrude_only_accel: 10000
pressure_advance: 0.1305
pressure_advance_smooth_time: 0.040
[tmc2209 extruder]
uart_pin: EBBCan: PA15
run_current: 0.450
stealthchop_threshold: 999999
sense_resistor: 0.150
#driver_TBL: 1
#driver_TOFF: 3
#driver_HSTRT: 0
#driver_HEND: 3
interpolate: false
#[extruder]
#step_pin: PD6
#dir_pin: PD3
#enable_pin: !PB3
#microsteps: 16
#gear_ratio: 50:17 # CHANGE THIS TO WHAT APPLIES TO CUSTOM EXTRUDER THIS IS FOR BONDTECH / BMG CLONE
#rotation_distance: 5.7 #DEFAULT VALUE GET THIS FROM THE BONDTECH HOB GEAR. MEASURE THE HOB ON THE LEVER THAT VALUE x 3.14 = ROTATION DISTANCE. FLOW IN SLICER SHOULD BE WITHIN 10 PERCENT UP OR DOWN. FILAMENT TOLERANCE AND DENSITY WILL AFFECT FLOW ACTUAL FLOW.
#full_steps_per_rotation: 200 #CHANGE ME TO 400 FOR 0.9 DEGREE Steppers ROTATION DISTANCE WILL AUTOMATICALLY BE CALIBRATED THIS APPLYS TO STEPPING AS WELL NO CHANGES REQUIRED.
#nozzle_diameter: 0.400
#filament_diameter: 1.750
#heater_pin: PE5
#sensor_type: ATC Semitec 104NT-4-R025H42G #NTC 100K beta 3950 #reently fixed in latest klipper beta 3950 is dead. don't try to use a older version since the temp table is wrong by 15c.
#sensor_pin: PC1
#control: pid
#pid_kp = 20.580
#pid_ki = 1.039
#pid_kd = 101.871
#min_temp: 0
#max_temp: 300 #this value is set high for the purpose of hot tightening the hotend. stock hotends / tubes will degrade rappidly past 245. burning ptfe is also a neurotoxin.
#pressure_advance: 0.065 #set this from the slicer / fluidd / Mainsail. or start gcode its easier to do this in slicers with material specic gcode functions. 0.1-1.5 layer hight isn't usally benificial.
#pressure_advance_smooth_time: 0.040
#max_extrude_only_distance: 800.0
#instantaneous_corner_velocity: 2.5 # The equivalent of extruder jerk. this does not speed up pressue advance like linear adance in marlin. higher values may improve bowden retract. eg 15 left slow as a safe default.
#max_extrude_only_accel: 8300 # 3:1 = /3 = 2800 (stock xyz acc) The rough gear ratio of bondtech.
#[tmc2209 extruder]
#uart_pin: PD9
#interpolate: false #This can usually be enabled without causing issues to reduce noise.
#run_current: 0.55
#stealthchop_threshold:0 #optional depends on setup and how much noise from the case is considered acceptable. simply printing a stepper mount and hanging e off a cable eliminates the case noise.
############################################################################################################################################################
# Bed Configuration
############################################################################################################################################################
[heater_bed]
heater_pin: PB3
sensor_type: Generic 3950 #NTC 100K beta 3950
sensor_pin: PB2
min_temp: 0
max_temp: 115
#control: pid
#pid_Kp: 72.204 #same as the extruder enable remember to pid tune bed
#pid_Ki: 1.957
#pid_Kd: 666.07
############################################################################################################################################################
#COOLING SECTION
############################################################################################################################################################
#CPAP on Neopixel Port
[fan]
pin: PE4 # NEOPIXEL PORT
max_power: 0.8
cycle_time: 0.00005
hardware_pwm: true
#[heater_fan heatsink_fan] # Heatsink
#pin: PB0 #PB1
#max_power: 1.0
#heater: extruder
#heater_temp: 50.0
#fan_speed: 1.0
#max_power: 1.0
#cycle_time: 0.02817 #35.5hrz
#kick_start_time: 0.0
############################################################################################################################################################
#AUTO BED LEVELING / DELTA CALIBRATE / MESH SETTINGS / OFFSETS. Note bed tilt and bed mesh are not compatible enabled at the same time. tilt reccomended.
############################################################################################################################################################
[delta_calibrate]
radius: 125 #alternate option tehcnically more correct square in circle =195.086. /2 =97.543
horizontal_move_z: 5
speed: 50
[bed_mesh]
speed: 100
horizontal_move_z: 2 #5
mesh_radius: 120
mesh_origin: 0,0
round_probe_count: 5 #9 for extreme conditions most likely over kill 9/10. first layer height should be min 0.3 for volcanos or above max "deviation"
mesh_pps: 3,3
algorithm: bicubic
#bicubic_tension: 0.1
#move_check_distance: 3
#split_delta_z: 0.025
#fade_start: 1
#fade_end: 30
#relative_reference_index: 6 # Mesh values: 6=5 points 24 = 9 point Its better to use less points in most cases unless dealing with extreamly uneven surfaces eg bubbled stickers , chunky powercoat etc
zero_reference_position: 0,0
[probe]
pin: !EBBCan: PB6 #Z_MIN
x_offset: 0
y_offset: 0
#z_offset: 19.369 # THIS WILL ONLY BE APPLIED AFTER A DELTA CALIBRATE HAS BEEN RUN SINCE DELTA DOESN'T CONSIDER A PROBE AS A ENDSTOP. IT USES THE 3 OPTICAL FOR THIS AND APPLYS THIS VALUES AFTER DELTACALIBRATES RUN.
lift_speed: 50 #The speed the probe raises before traveling or pobeing again.
speed: 10 #zprobing speed
samples: 3 #depending on the machine /probe this may work with only 1 the calibrate macro already adds redundency. INCREASE THIS IF DELTA CALIBRATE SEEMS UNRELIABLE.
samples_result: median
sample_retract_dist: 10
samples_tolerance: 0.01 #0.02 #or #0.05 #This will depend how accurate probe is try for 0.02.
samples_tolerance_retries: 10
############################################################################################################################################################
[gcode_macro PRINT_START]
gcode:
{% set BED_TEMP = params.BED|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER|float %}
# Clear pasue state
CLEAR_PAUSE
# Start bed heating
M190 S{BED_TEMP} ; set and wait for bed to reach temp
G28
# BED_MESH_PROFILE LOAD=default
bed_mesh_calibrate
g28
# Reset the G-Code Z offset (adjust Z offset if needed)
#SET_GCODE_OFFSET Z=0.0
# Set and wait for nozzle to reach temperature
M109 S{EXTRUDER_TEMP} ; set and wait for hot end to reach temp
G92 E0 # Reset extrusion distance
PURGE_LINE
G91 ; relative coordinates
G0 Z0.5 ; raise nozzle up
G90 ; absolute coordinates
M82 ; absolute extruder
G92 E0 ; initialize extruder value to 0
M117 Printing...
[gcode_macro PURGE_LINE]
gcode:
SAVE_GCODE_STATE NAME=PURGE_LINE_STATE
M117 Priming
G90 ; Absolute coordinates.
M82 ; absolute extruder
G92 E0 ; initialize extruder value to 0
G1 X-125 Y0 Z0.4 F3000 ; set nozzle to start position (5mm towards center of bed at 9 o'clock)
G3 X0 Y-125 I125 J0 Z0.3 E35 F2700 ; move from current position counterclockwise (G3) to X=0,Y=-125 along a 125mm radius arc oriented about X+125,Y+0 (0,0, where I=X-offset,J=Y-offset) ~196mm
G91 ; Relative coordinates.
G1 Y0.4 F1000 ; Move 0.4mm towards center of bed (X=0,Y=-124.6)
G90 ; Absolute coordinates.
G92 E0 ; initialize extruder value to 0
G2 X-124.6 Y0 I0 J124.6 Z0.3 E35 F2700 ; move from current position clockwise (G2) to X=-124.6,Y=0 along a 124.6mm radius arc oriented about X+0,Y+124.6 (0,0, where I=X-offset,J=Y-offset) ~196mm
G92 E0 ; initialize extruder value to 0
G1 E-0.5 F3000 ; Retract to avoid stringing.
G91 ; Relative coordinates.
G1 X-2 F1000 ; Wipe left to break string.
G1 X6 F3000 ; Wipe right to break string.
G1 E-0.5 F3000 ; Retract to avoid stringing.
G90 ; absolute coordinates
M82 ; absolute extruder
G92 E0 ; initialize extruder value to 0
RESTORE_GCODE_STATE NAME=PURGE_LINE_STATE
[gcode_macro PRINT_END]
gcode:
# Turn off bed, extruder, and fan
M140 S0
M104 S0
M106 S0
# Move nozzle away from print while retracting
G91
G1 X-2 Y-2 E-1 F1300
# Raise nozzle by 10mm
G1 Z30 F3000
G90
G28
[gcode_macro CANCEL_PRINT]
description: Cancel the actual running print
rename_existing: CANCEL_PRINT_BASE
gcode:
G28
TURN_OFF_HEATERS
CANCEL_PRINT_BASE
[save_variables]
filename: ~/printer_data/config/saved_variables.cfg
## RGB
[neopixel hotend_rgb]
pin: EBBCan: PD3
chain_count: 10
color_order: GRB
initial_RED: 1.0
initial_GREEN: 1.0
initial_BLUE: 1.0
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 69.122
#*# pid_ki = 2.845
#*# pid_kd = 419.918
#*#
#*# [printer]
#*# delta_radius = 153.922117
#*#
#*# [input_shaper]
#*# shaper_type_x = mzv
#*# shaper_freq_x = 23.0
#*# shaper_type_y = ei
#*# shaper_freq_y = 29.0
#*#
#*# [probe]
#*# z_offset = -0.131
#*#
#*# [stepper_a]
#*# angle = 209.728084
#*# arm_length = 319.128023
#*# position_endstop = 330.526210
#*#
#*# [stepper_b]
#*# angle = 329.289588
#*# arm_length = 322.289622
#*# position_endstop = 329.707914
#*#
#*# [stepper_c]
#*# angle = 90.000000
#*# arm_length = 322.232773
#*# position_endstop = 327.965778
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.003800, 0.003800, 0.003800, 0.003800, 0.003800
#*# -0.037439, -0.037439, -0.063006, -0.035810, -0.035810
#*# 0.134497, -0.068414, 0.000000, 0.025444, 0.046995
#*# -0.022130, -0.022130, -0.031871, -0.022864, -0.022864
#*# 0.010635, 0.010635, 0.010635, 0.010635, 0.010635
#*# tension = 0.2
#*# min_x = -120.0
#*# algo = bicubic
#*# y_count = 5
#*# mesh_y_pps = 3
#*# min_y = -120.0
#*# x_count = 5
#*# max_y = 120.0
#*# mesh_x_pps = 3
#*# max_x = 120.0
#*#
#*# [endstop_phase stepper_a]
#*# trigger_phase = 201/512
#*#
#*# [endstop_phase stepper_b]
#*# trigger_phase = 66/512
#*#
#*# [endstop_phase stepper_c]
#*# trigger_phase = 202/512
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 22.608
#*# pid_ki = 1.816
#*# pid_kd = 70.367
#*#
#*# [delta_calibrate]
#*# height0 = -0.172
#*# height0_pos = 211662.000,211109.000,210007.000
#*# height1 = -0.172
#*# height1_pos = 253422.000,253033.000,186188.000
#*# height2 = -0.172
#*# height2_pos = 206232.000,276291.000,204819.000
#*# height3 = -0.172
#*# height3_pos = 188614.000,245127.000,244553.000
#*# height4 = -0.172
#*# height4_pos = 205268.000,204327.000,254618.000
#*# height5 = -0.172
#*# height5_pos = 240778.000,189698.000,238512.000
#*# height6 = -0.172
#*# height6_pos = 266886.000,205498.000,204012.000