-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathH36_combo_onekeytest.cfg
220 lines (196 loc) · 5.65 KB
/
H36_combo_onekeytest.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
[mcu H36_combo]
#serial: /dev/serial/by-path/*
#serial: /dev/serial/by-id/*
#canbus_uuid=e185794c4226
[extruder]
step_pin: H36_combo:PB9
dir_pin: H36_combo:PB8
enable_pin: !H36_combo:PB7
## Update value below when you perform extruder calibration
## If you ask for 100mm of filament, but in reality it is 98mm:
## rotation_distance = <previous_rotation_distance> * <actual_extrude_distance> / 100
## 22.6789511 is a good starting point for Bondtech 5mm gears
## 34.37086 for Bondtech 8mm gears (Galileo)
rotation_distance: 4.45 #22.6789511 #Bondtech 5mm Drive Gears
## Update Gear Ratio depending on your Extruder Type
## Use 50:17 for Afterburner/Clockwork (BMG Gear Ratio)
## Use 80:20 for M4, M3.1
## Use 7.5:1 for Galileo
## gear_ratio: 50:10 #for Stealthburner/Clockwork2 BMG Gear Ratio
microsteps: 16
full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
nozzle_diameter: 0.400
filament_diameter: 1.75
heater_pin: H36_combo: PA7
pullup_resistor: 2200
## Check what thermistor type you have. See https://www.klipper3d.org/Config_Reference.html#common-thermistors for common thermistor types.
## Use "Generic 3950" for NTC 100k 3950 thermistors
sensor_type: Generic 3950
sensor_pin: H36_combo:PA6
min_temp: -273.15 #1 #-273.15
max_temp: 360 #360
max_power: 1.0
min_extrude_temp: -273
control = pid
pid_kp = 26.213
pid_ki = 1.304
pid_kd = 131.721
## Try to keep pressure_advance below 1.0
#pressure_advance: 0.02 #0.05
## Default is 0.040, leave stock
#pressure_advance_smooth_time: 0.040
max_extrude_cross_section: 5000.0
[tmc2209 extruder]
uart_pin: H36_combo:PC14
interpolate: false
run_current: 0.7
sense_resistor: 0.110
stealthchop_threshold: 0
#diag_pin: H36_combo:PC15
[adxl345]
cs_pin: H36_combo:PB12
spi_software_sclk_pin: H36_combo:PB10
spi_software_mosi_pin: H36_combo:PB11
spi_software_miso_pin: H36_combo:PB2
axes_map: -y,z,-x
[resonance_tester]
accel_chip: adxl345
probe_points:
300,300,30 # an example
#####################################################################
# SB FANS
#####################################################################
[fan_generic fan0]
pin: H36_combo:PA9
max_power:1.0
shutdown_speed:0.0
cycle_time:0.5
hardware_pwm:false
kick_start_time:0.10
off_below:0.1
tachometer_pin: H36_combo:PC6
[fan_generic fan1]
pin: H36_combo:PB15
max_power:1.0
shutdown_speed:0.0
cycle_time:0.5
hardware_pwm:false
kick_start_time:0.10
off_below:0.1
tachometer_pin: H36_combo:PB14
[fan_generic fan2]
pin: H36_combo:PB13
max_power:1.0
shutdown_speed:0.0
cycle_time:0.5
hardware_pwm:false
kick_start_time:0.10
off_below:0.1
[fan_generic fan3]
pin: H36_combo:PA5
max_power:1.0
shutdown_speed:0.0
cycle_time:0.5
hardware_pwm:false
kick_start_time:0.10
off_below:0.1
tachometer_pin: H36_combo:PB0
#tachometer_ppr:
#tachometer_poll_interval:
#####################################################################
# Mcu & Driver Temperature
#####################################################################
[temperature_sensor can_mcu_temp]
sensor_type: temperature_mcu
sensor_mcu: H36_combo
min_temp: 0
max_temp: 150
[temperature_sensor Driver_Temp]
sensor_type: Generic 3950
sensor_pin: H36_combo: PA3
min_temp:0
max_temp:150
#####################################################################
# Voltage Monitor
#####################################################################
[adc_temperature 5V_Monitor]
temperature1: 5
voltage1: 3.0
temperature2: 4
voltage2: 2.4
temperature3: 3
voltage3: 1.8
[adc_temperature 24V_Monitor]
temperature1: 24
voltage1: 3.13
temperature2: 22
voltage2: 2.87
temperature3: 21
voltage3: 2.74
[temperature_sensor 5V_Monitor]
sensor_type: 5V_Monitor
sensor_pin: H36_combo:PA0 #5V_MON
adc_voltage: 3.3
voltage_offset: 0
[temperature_sensor 24V_Monitor]
sensor_type: 24V_Monitor
sensor_pin: H36_combo:PA4 #24V_MON
adc_voltage: 3.3
voltage_offset: 0
#####################################################################
# use LED Test IO
#####################################################################
[led my_led]
red_pin: H36_combo:PA15 #IO.0
green_pin: H36_combo:PC7 #IO.1
blue_pin: H36_combo:PA8 #IO.2
white_pin: H36_combo:PA10 #IO.3
# The pin controlling the given LED color. At least one of the above
# parameters must be provided.
#cycle_time: 0.010
# The amount of time (in seconds) per PWM cycle. It is recommended
# this be 10 milliseconds or greater when using software based PWM.
# The default is 0.010 seconds.
#hardware_pwm: False
# Enable this to use hardware PWM instead of software PWM. When
# using hardware PWM the actual cycle time is constrained by the
# implementation and may be significantly different than the
# requested cycle_time. The default is False.
#initial_RED: 0.0
#initial_GREEN: 0.0
#initial_BLUE: 0.0
#initial_WHITE: 0.0
# Sets the initial LED color. Each value should be between 0.0 and
# 1.0. The default for each color is 0.
# EXT:IO.6:PA7
# ext_fan0:pb0
# ext_io5:pb10
# ext_fan1:pb7
# IO.0:PA2
# IO.1:PA3
# IO.2:PA0
# FAN0:PB6
# FAN1:PB5
# FAN2:PA4
# SET_LED LED=sb_leds RED=0.1 GREEN=0.1 BLUE=0.1 [INDEX=1] [TRANSMIT=0] [SYNC=1]
[gcode_button IO_TEST]
pin: ^H36_combo:PB1 # use IO.4 as button
press_gcode:
SET_LED LED=my_led RED=0 GREEN=1 BLUE=1 WITHE=1
SET_FAN_SPEED FAN=fan0 SPEED=1.0
SET_FAN_SPEED FAN=fan1 SPEED=1.0
SET_FAN_SPEED FAN=fan2 SPEED=1.0
SET_FAN_SPEED FAN=fan3 SPEED=0.5
SET_HEATER_TEMPERATURE HEATER=extruder TARGET=50
G4 P1000
G91
G1 E10
G1 E-10
G90
ACCELEROMETER_QUERY CHIP=adxl345
SET_LED LED=my_led RED=1 GREEN=0 BLUE=0 WITHE=1
SET_FAN_SPEED FAN=fan0 SPEED=0
SET_FAN_SPEED FAN=fan1 SPEED=0
SET_FAN_SPEED FAN=fan2 SPEED=0
SET_FAN_SPEED FAN=fan3 SPEED=0
SET_HEATER_TEMPERATURE HEATER=extruder TARGET=0