-
Notifications
You must be signed in to change notification settings - Fork 0
/
printer.cfg
264 lines (244 loc) · 6.7 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
# Please use this as reference , Not to be used directly and i am not responsible for your 3d printer catching fire :P
######################################################################
# Author : Chandan M
# Printer configuration file of Klipper
# email : tochandan@icloud.com
# Ender 3 pro
# + BLTOUCH
# + Octoprint
# + Ditect Drive 3d printed
# + BTT SKR 1.4 Turbo TMC 2209
# + Stock Ender 3 pro LCD
######################################################################
# Version 1. ; Octopi - Installed Klipper plugin and setup connection
# Version 1.1 ; Push to Raspberry test VS CODE
# Version 1.1.3 : Reformat to basic
# Version 2 : Adjust bed size to accomodate 3d printed direct drive unit in x
# Version 2.1 : set and perform Assisted Bed leveling in Octo print using Klipper plugin
# Version 2.1.2 : update Github , and Raspberry with comments
#
#
#
#
######################################################################
# OCTOPI SETTINGS
# Klipper assisted bed leveling setting in octopi
# probe points : Left front = 60 , 60
# Right front = 190, 60
# Left rear = 60 , 190
# Right rear = 190 ,190
# Probe height = 0.4 # unique number
# BED visualiser plugin setting : STRICTLY ON OCTOPI .
## G28
## M115 S30
## M190 S60
## @BEDLEVELVISUALIZER
## G29 T
## BED_MESH_OUTPUT
# type SAVE_CONFIG in terminal to save the measured setting (See Printer.cfg)
######################################################################
######################################## FAN PIN
[fan]
pin: P2.3
######################################## Connection with My SKR 1.4 turbo
[mcu] # Unique
serial: /dev/serial/by-id/usb-Klipper_lpc1769_01C00014871C4AAF9A537C5DC52000F5-if00
########################################
################# Related to BL touch Start #######################
[gcode_macro G29]
gcode:
BED_MESH_CALIBRATE
########################################
# BL-Touch, Mesh and Homing Configuration does not pull the pin complete
########################################
[bltouch]
sensor_pin: P0.10 #Probe
control_pin: P2.0 #SERVOS
stow_on_each_sample: False # this is not retract the pin
probe_with_touch_mode: True
set_output_mode: 5V
x_offset: -41 # got from Thinkgiverse
y_offset: -10
z_offset: 1.48
speed: 5 # slow is better
samples: 1
sample_retract_dist: 5.0 # previous value 4
[bed_mesh]
speed: 80
horizontal_move_z: 5
mesh_min: 18,20
mesh_max: 150,200 # very imp to give rough estimate consider x_offset
probe_count: 5,5
#fade_start: 1
#fade_end: 10
algorithm: bicubic
[safe_z_home]
home_xy_position: 138.5 ,117.5 #155,120 ; set by using assisted bed leveling klipper
speed: 25.0 #80 ; # think ignored
z_hop: 10.0
z_hop_speed: 10
################# Related to BL touch END #######################
[printer]
kinematics: cartesian
max_velocity: 400
max_accel: 500
max_z_velocity: 10
max_z_accel: 100
########################################
[stepper_x]
step_pin: P2.2
dir_pin: !P2.6 # x home to left
enable_pin: !P2.1
microsteps: 16
rotation_distance: 40
endstop_pin: P1.29
position_endstop: 0
position_max: 195 # Becoz of 3d Printed Direct drive i lost 20mm roughly
homing_speed: 25
#homing_retract_dist: 0
[tmc2209 stepper_x]
uart_pin: P1.10
interpolate: True
run_current: 0.580
hold_current: 0.290
stealthchop_threshold: 250
diag_pin: ^P1.29
driver_SGTHRS: 53
[stepper_y]
step_pin: P0.19
dir_pin: !P0.20 # y home to back
enable_pin: !P2.8
microsteps: 16
rotation_distance: 40
endstop_pin: P1.28
position_endstop: 0
position_max: 220
homing_speed: 25
[tmc2209 stepper_y]
uart_pin: P1.9
interpolate: True
run_current: 0.580
hold_current: 0.290
stealthchop_threshold: 250
diag_pin: ^P1.28
driver_SGTHRS: 50
[stepper_z]
step_pin: P0.22
dir_pin: P2.11
enable_pin: !P0.21
microsteps: 16
rotation_distance: 8
#endstop_pin: !P1.27 # commented becuase using BL Touch
endstop_pin: probe:z_virtual_endstop
position_max: 180
position_min: -1
[tmc2209 stepper_z]
uart_pin: P1.8
interpolate: True
run_current: 0.580
hold_current: 0.290
stealthchop_threshold: 250
[extruder]
step_pin: P2.13
dir_pin: !P0.11
enable_pin: !P2.12
microsteps: 16
rotation_distance: 33.500
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: P2.7
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.24
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 260
[tmc2209 extruder]
uart_pin: P1.4
interpolate: True
run_current: 0.660
hold_current: 0.5 #0.330
[heater_bed]
heater_pin: P2.5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: P0.25
control: pid
pid_Kp: 54.027
pid_Ki: 0.770
pid_Kd: 948.182
min_temp: 0
max_temp: 130
######################################## PIN CONFIG for display not used
#[board_pins]
#aliases:
# EXP1 header
# EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
# EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
# EXP2 header
# EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
# EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
# See the sample-lcd.cfg file for definitions of common LCD displays.
[display]
lcd_type: st7920
cs_pin: P1.19
sclk_pin: P1.21
sid_pin: P1.23
encoder_pins: ^P1.18, ^P1.20
click_pin: !P0.28
########################################
########################################
# TMC2209 configuration( Default)
########################################
#[tmc2209 stepper_x]
#uart_pin: P1.10
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
#
#[tmc2209 stepper_y]
#uart_pin: P1.9
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
#
#[tmc2209 stepper_z]
#uart_pin: P1.8
#run_current: 0.650
#hold_current: 0.450
#stealthchop_threshold: 999999
#
#[tmc2209 extruder]
#uart_pin: P1.4
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
#
#[tmc2209 extruder1]
#uart_pin: P1.1
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.080000, 0.102500, 0.062500, 0.052500, 0.050000
#*# 0.047500, 0.007500, -0.012500, -0.017500, 0.015000
#*# 0.052500, 0.062500, -0.005000, -0.010000, -0.002500
#*# 0.090000, 0.057500, 0.005000, -0.012500, 0.002500
#*# 0.125000, 0.102500, 0.055000, 0.015000, -0.007500
#*# tension = 0.2
#*# min_x = 18.0
#*# algo = bicubic
#*# y_count = 5
#*# mesh_y_pps = 2
#*# min_y = 20.0
#*# x_count = 5
#*# max_y = 200.0
#*# mesh_x_pps = 2
#*# max_x = 150.0