-
Notifications
You must be signed in to change notification settings - Fork 0
/
printer-20231001_173929.cfg
404 lines (377 loc) · 16.9 KB
/
printer-20231001_173929.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
[include emulator_other_features.cfg]
[include ebb36.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/gcode_files
[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: 300
max_accel: 13000 #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:6500 #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
#[adxl345] #TURN ME OFN BY REMOVING THE #. IF YOU HAVE ONE. EXAMPLE [ADXL345] IS NOW ON REMOVE# TO ENABLE OR ADD # TO ENABLE FEATURES. DO NOT CONFUSE THIS WITH MARLIN.
#cs_pin: rpi:None
#axes_map: x, z, y
#rate: 3200
[resonance_tester] # ENABLE THIS IF YOU HAVE ADXL ACCELEROMETER . USE MANUAL METHOD IF YOU DONT INSTEAD. https://www.klipper3d.org/Resonance_Compensation.html
accel_chip: adxl345
#max_smoothing: 0.20 # an example
min_freq: 5
max_freq: 120
accel_per_hz: 25
hz_per_sec: 2
probe_points:
0,0,30
[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: 128 # 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: 1.138 #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.110
driver_PWM_REG: 7
driver_PWM_OFS: 36
stealthchop_threshold: 99999 #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: 128
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: 1.138 #
driver_TBL: 2
driver_TOFF: 2
driver_HSTRT: 1
driver_HEND: 3
sense_resistor: 0.110
driver_PWM_REG: 7
driver_PWM_OFS: 36
stealthchop_threshold: 99999
############################################################################################################################################################
# C (Z-Stepper) Configuration
############################################################################################################################################################
[stepper_c] # Z
step_pin: PA15
dir_pin: PF8
enable_pin: !PC9
microsteps: 128
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: 1.138
driver_TBL: 2
driver_TOFF: 2
driver_HSTRT: 1
driver_HEND: 3
sense_resistor: 0.110
driver_PWM_REG: 7
driver_PWM_OFS: 36
stealthchop_threshold: 99999
############################################################################################################################################################
# Extruder Configuration
############################################################################################################################################################
#[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: 127.5 #alternate option tehcnically more correct square in circle =195.086. /2 =97.543
horizontal_move_z: 30
speed: 50
[bed_mesh]
speed: 150
horizontal_move_z: 5 #5
mesh_radius: 127.5
mesh_origin: 0,0
round_probe_count: 7 #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
[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: 2 #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: average
sample_retract_dist: 10
samples_tolerance: 0.02 #or #0.05 #This will depend how accurate probe is try for 0.02.
samples_tolerance_retries: 15
############################################################################################################################################################
[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
# Reset the G-Code Z offset (adjust Z offset if needed)
SET_GCODE_OFFSET Z=0.0
# Home the printer
G28
# 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
G1 E3.0 F200 # Extrude filament
G92 E0 # Reset extrusion distance
G1 Z150 F3000 # Move the nozzle
G1 Z0.15 F300 # Move the nozzle very close to the bed
[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/saved_variables.cfg
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 70.185
#*# pid_ki = 2.089
#*# pid_kd = 589.550
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 25.171
#*# pid_ki = 1.712
#*# pid_kd = 92.503
#*#
#*# [printer]
#*# delta_radius = 156.491275
#*#
#*# [input_shaper]
#*# shaper_type_x = zv
#*# shaper_freq_x = 60.6
#*# shaper_type_y = zv
#*# shaper_freq_y = 58.4
#*#
#*# [probe]
#*# z_offset = -0.023
#*#
#*# [stepper_a]
#*# angle = 209.500247
#*# arm_length = 319.128023
#*# position_endstop = 353.509725
#*#
#*# [stepper_b]
#*# angle = 329.586911
#*# arm_length = 322.289622
#*# position_endstop = 352.132002
#*#
#*# [stepper_c]
#*# angle = 90.000000
#*# arm_length = 322.232773
#*# position_endstop = 351.269860
#*#
#*# [endstop_phase stepper_a]
#*# trigger_phase = 207/512
#*#
#*# [endstop_phase stepper_b]
#*# trigger_phase = 79/512
#*#
#*# [endstop_phase stepper_c]
#*# trigger_phase = 203/512
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.346356, 0.346356, 0.346356, 0.346356, 0.346356, 0.346356, 0.346356
#*# 0.121465, 0.121465, 0.134160, 0.114481, 0.069700, -0.006543, -0.006543
#*# 0.012259, 0.012259, 0.038767, 0.081228, 0.060533, 0.024901, 0.024901
#*# 0.153781, 0.069528, 0.032987, 0.055247, 0.067766, 0.039973, 0.023565
#*# 0.057154, 0.057154, 0.043982, 0.064715, 0.115877, 0.161204, 0.161204
#*# 0.185547, 0.185547, 0.053671, 0.016782, 0.139546, 0.194999, 0.194999
#*# 0.099962, 0.099962, 0.099962, 0.099962, 0.099962, 0.099962, 0.099962
#*# tension = 0.1
#*# min_x = -127.5
#*# algo = bicubic
#*# y_count = 7
#*# mesh_y_pps = 3
#*# min_y = -127.5
#*# x_count = 7
#*# max_y = 127.5
#*# mesh_x_pps = 3
#*# max_x = 127.5
#*#
#*# [delta_calibrate]
#*# height0 = 0.077
#*# height0_pos = 225933.000,225222.500,225159.500
#*# height1 = 0.077
#*# height1_pos = 269422.500,268512.000,200156.500
#*# height2 = 0.077
#*# height2_pos = 220170.000,293423.500,219506.500
#*# height3 = 0.077
#*# height3_pos = 202319.500,261078.500,261434.500
#*# height4 = 0.077
#*# height4_pos = 219462.000,218541.500,272031.500
#*# height5 = 0.077
#*# height5_pos = 256247.500,203173.000,254971.500
#*# height6 = 0.077
#*# height6_pos = 283520.500,219028.500,218666.000