-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbigtreetech-ebb-sb-rp2040-canbus-v1.0.cfg
124 lines (107 loc) · 3.35 KB
/
bigtreetech-ebb-sb-rp2040-canbus-v1.0.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
#####################################################################
# MCU
#####################################################################
[mcu EBBCan]
#serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
canbus_uuid: 39d16838c818
[temperature_sensor Stealthburner_NTC]
sensor_type: Generic 3950
sensor_pin: EBBCan:gpio28
[temperature_sensor Stealthburner_RP2040_(MCU)]
sensor_type: temperature_mcu
sensor_mcu: EBBCan
min_temp: 0
max_temp: 100
#####################################################################
# Input Shaper
#####################################################################
#[adxl345]
#cs_pin: EBBCan:gpio1
#spi_software_sclk_pin: EBBCan:gpio2
#spi_software_mosi_pin: EBBCan:gpio0
#spi_software_miso_pin: EBBCan:gpio3
#axes_map: z,-y,x
#[resonance_tester]
#probe_points: 100, 100, 20
#accel_chip: adxl345
#####################################################################
# Extruder
#####################################################################
[extruder]
step_pin: EBBCan:gpio18
dir_pin: EBBCan:gpio19
enable_pin: !EBBCan:gpio17
microsteps: 16
#rotation_distance: 21.4316129
rotation_distance: 21.5344846
full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
gear_ratio: 50:10
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: EBBCan:gpio7
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: EBBCan:gpio27
control: pid
pid_Kp: 18.733
pid_Ki: 0.976
pid_Kd: 89.919
max_power: 1.0
min_temp: 10
max_temp: 285
## Try to keep pressure_advance below 1.0
pressure_advance: 0.04
pressure_advance_smooth_time: 0.040
# sensor_type: MAX31865
# sensor_pin: EBBCan:gpio9
# spi_software_sclk_pin: EBBCan:gpio10
# spi_software_mosi_pin: EBBCan:gpio8
# spi_software_miso_pin: EBBCan:gpio11
# rtd_nominal_r: 100
# rtd_reference_r: 430
# rtd_num_of_wires: 2
[tmc2209 extruder]
uart_pin: EBBCan:gpio20
run_current: 0.5
stealthchop_threshold: 999999
#####################################################################
# Fan Control
#####################################################################
[fan]
pin: EBBCan:gpio13
[heater_fan hotend_fan]
pin: EBBCan:gpio14
heater: extruder
heater_temp: 50.0
#[neopixel hotend_rgb]
#pin: EBBCan:gpio16
#####################################################################
# Probe
#####################################################################
[probe]
## This probe is not used for Z height, only Quad Gantry Leveling
## In Z+ position
pin: ^EBBCan:gpio22
#x_offset: 0
#y_offset: 0
#z_offset: 0
speed: 5.0
samples: 3
samples_result: median
sample_retract_dist: 3.0
samples_tolerance: 0.006
samples_tolerance_retries: 6
activate_gcode:
{% set PROBE_TEMP = 150 %}
{% set MAX_TEMP = PROBE_TEMP + 5 %}
{% set ACTUAL_TEMP = printer.extruder.temperature %}
{% set TARGET_TEMP = printer.extruder.target %}
{% if TARGET_TEMP > PROBE_TEMP %}
{ action_respond_info('Extruder temperature target of %.1fC is too high, lowering to %.1fC' % (TARGET_TEMP, PROBE_TEMP)) }
M109 S{ PROBE_TEMP }
{% else %}
# Temperature target is already low enough, but nozzle may still be too hot.
{% if ACTUAL_TEMP > MAX_TEMP %}
{ action_respond_info('Extruder temperature %.1fC is still too high, waiting until below %.1fC' % (ACTUAL_TEMP, MAX_TEMP)) }
TEMPERATURE_WAIT SENSOR=extruder MAXIMUM={ MAX_TEMP }
{% endif %}
{% endif %}