-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprinter.cfg
More file actions
262 lines (228 loc) · 5.62 KB
/
Copy pathprinter.cfg
File metadata and controls
262 lines (228 loc) · 5.62 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
[include mainsail.cfg]
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_34FFD50530464E3335760643-if00
[virtual_sdcard]
path: /home/chebasic/printer_data/gcodes
on_error_gcode: CANCEL_PRINT
[stepper_x]
step_pin: PB13
dir_pin: !PB12
enable_pin: !PB14
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC0
position_endstop: 0
position_max: 165
homing_speed: 50
[tmc2209 stepper_x]
uart_pin: PC11
tx_pin: PC10
uart_address: 0
run_current: 0.580
stealthchop_threshold: 999999
[stepper_y]
step_pin: PB10
dir_pin: !PB2
enable_pin: !PB11
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC1
position_endstop: 0
position_max: 150
homing_speed: 50
[tmc2209 stepper_y]
uart_pin: PC11
tx_pin: PC10
uart_address: 2
run_current: 0.580
stealthchop_threshold: 999999
[stepper_z]
step_pin: PB0
dir_pin: PC5
enable_pin: !PB1
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop # Usa el BLTouch como endstop
position_max: 250
position_min: -6
[safe_z_home]
home_xy_position: 5, 0 # Mueve el cabezal al punto inicial correcto
speed: 50
z_hop: 10
z_hop_speed: 5
[tmc2209 stepper_z]
uart_pin: PC11
tx_pin: PC10
uart_address: 1
run_current: 0.580
stealthchop_threshold: 999999
[extruder]
step_pin: PB3
dir_pin: !PB4
enable_pin: !PD2
microsteps: 16
rotation_distance: 33.500
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PC8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA0
control: pid
pid_Kp: 21.527
pid_Ki: 1.063
pid_Kd: 108.982
min_temp: 0
max_temp: 250
[tmc2209 extruder]
uart_pin: PC11
tx_pin: PC10
uart_address: 3
run_current: 0.650
stealthchop_threshold: 999999
[heater_bed]
heater_pin: PC9
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC3
control = pid
pid_kp = 29.943
pid_ki = 0.895
pid_kd = 250.402
min_temp: 0
max_temp: 130
max_power: 0.80
[fan]
pin: PA8
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 1500
max_z_velocity: 5
max_z_accel: 50
[bltouch]
sensor_pin: ^PC2 # Pin de la señal del sensor (conectado al Z-Probe)
control_pin: PA1 # Pin de control del servo (conectado al Z-stop)
# Uncomment to use classic bltouch setup
# x_offset: -48 # Offset en X del BLTouch respecto al nozzle
# y_offset: -18 # Offset en Y del BLTouch respecto al nozzle
#z_offset: 3.18 # Offset en Z (ajusta según tu calibración)
# Frontal bltouch setup
x_offset: 0
y_offset: -46
samples: 2
samples_tolerance: 0.1
pin_up_touch_mode_reports_triggered: False # Configuración para algunos BLTouch
stow_on_each_sample: False # Evita que la sonda se guarde después de cada medición
probe_with_touch_mode: False # Usa el modo "touch" para mayor precisión
[bed_mesh]
speed: 80
horizontal_move_z: 5
mesh_min: 5, -46
mesh_max: 145, 84
probe_count: 6,6
fade_start: 1.0
fade_end: 10
mesh_pps: 2,2
algorithm: bicubic # Cambia de lagrange a bicubic si necesitas más precisión
[display]
lcd_type: uc1701
cs_pin: EXP1_7
a0_pin: EXP1_6
contrast: 40
encoder_pins: ^EXP1_3, ^EXP1_5
click_pin: ^!EXP1_2
spi_software_mosi_pin: EXP1_8
spi_software_miso_pin: PC12
spi_software_sclk_pin: EXP1_1
[heater_fan heatbreak_cooling_fan]
pin: PC7
[fan]
pin: PC6
[static_digital_output usb_pullup_enable]
pins: !PC13
[board_pins]
aliases:
# EXP1 header
EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
EXP1_2=PB6, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PB7, EXP1_10=<5V>
[gcode_macro START_PRINT]
gcode:
M117 Set temperatures
M140 60
M104 205
M106 S255
M117 Homing
G90 ; use absolute coordinates
G28 ; home printer
BED_MESH_PROFILE LOAD=ender2 ; user saved mesh
G1 X15 Y20 Z5 F6000 ; get nozzle close to bed
M117 Waiting for temperatures
M109 205
M190 60
PRIME_LINE
M117 Printing...
[gcode_macro PRIME_LINE]
gcode:
M117 Prime Line
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up
G1 X0 Y10 Z0.28 F5000.0 ; Move to start position
G1 X0 Y130.0 Z0.28 F1500.0 E15 ; Draw the first line
G1 X2 Y10.0 Z0.28 F5000.0 ; Move to side a little
G1 X2 Y130 Z0.28 F1500.0 E30 ; Draw the second line
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up
[gcode_macro END_PRINT]
gcode:
G90 ; use absolute coordinates
M104 S0 ; turn off temperature
M140 S0 ; turn off temperature
M106 S0
G28 X0 ; home X axis
G1 Y150 F1500 ; move bed forward
M84 ; disable motors
[gcode_macro SYNC_PRINTER_CONFIG]
gcode:
RUN_SHELL_COMMAND sh /home/chebasic/printer_data/config/sync_printer_confg.sh
RESPOND MSG="Syncing printer.cfg with Git..."
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bltouch]
#*# z_offset = 2.985
#*#
#*# [bed_mesh ender2-bltouch-left]
#*# version = 1
#*# points =
#*# 0.100000, -0.077500, -0.118750
#*# 0.066250, -0.131250, -0.172500
#*# 0.263750, -0.098750, -0.103750
#*# min_x = 10.0
#*# max_x = 113.0
#*# min_y = 0.0
#*# max_y = 112.0
#*# x_count = 3
#*# y_count = 3
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = lagrange
#*# tension = 0.2
#*#
#*# [bed_mesh ender2]
#*# version = 1
#*# points =
#*# 0.006250, -0.091250, -0.131250, -0.161250, -0.132500, -0.047500
#*# -0.102500, -0.148750, -0.201250, -0.190000, -0.175000, -0.093750
#*# -0.102500, -0.180000, -0.231250, -0.208750, -0.198750, -0.090000
#*# -0.011250, -0.150000, -0.200000, -0.202500, -0.173750, -0.071250
#*# 0.217500, -0.046250, -0.157500, -0.151250, -0.100000, 0.002500
#*# 0.687500, 0.191250, -0.077500, -0.116250, -0.078750, 0.005000
#*# x_count = 6
#*# y_count = 6
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 5.0
#*# max_x = 145.0
#*# min_y = -46.0
#*# max_y = 84.0