Skip to content

Commit a6d67f2

Browse files
authored
Merge branch 'Klipper3d:master' into master
2 parents f947992 + b7233d1 commit a6d67f2

File tree

383 files changed

+149971
-9739
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

383 files changed

+149971
-9739
lines changed

config/generic-mellow-fly-e3-v2.cfg

+232
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
# This file contains common pin mappings for the Mellow Fly-E3-v2.
2+
# To use this config, the firmware should be compiled for the
3+
# STM32F407 with a "32KiB bootloader".
4+
5+
# The "make flash" command does not work on the Fly-E3-v2. Instead,
6+
# after running "make", copy the generated "out/klipper.bin" file to a
7+
# file named "firmware.bin" or "klipper.bin" on an SD card and then restart the Fly-E3-v2
8+
# with that SD card.
9+
10+
# See docs/Config_Reference.md for a description of parameters.
11+
12+
[mcu]
13+
serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_27004A001851323333353137-if00
14+
15+
[stepper_x]
16+
step_pin: PE5
17+
dir_pin: PC0
18+
enable_pin: !PC1
19+
microsteps: 16
20+
rotation_distance: 30
21+
full_steps_per_rotation: 200
22+
endstop_pin: PE7 #X-STOP
23+
position_endstop: 0
24+
position_max: 200
25+
homing_speed: 50
26+
second_homing_speed: 10
27+
homing_retract_dist: 5.0
28+
homing_positive_dir: false
29+
step_pulse_duration: 0.000004
30+
31+
[stepper_y]
32+
step_pin: PE4
33+
dir_pin: !PC13
34+
enable_pin: !PC14
35+
microsteps: 16
36+
rotation_distance: 30
37+
full_steps_per_rotation: 200
38+
endstop_pin: PE8 #Y-STOP
39+
position_endstop: 0
40+
position_max: 200
41+
homing_speed: 50
42+
second_homing_speed: 10
43+
homing_retract_dist: 5.0
44+
homing_positive_dir: false
45+
step_pulse_duration: 0.000004
46+
47+
[stepper_z]
48+
step_pin: PE1
49+
dir_pin: !PB7
50+
enable_pin: !PE3
51+
microsteps: 16
52+
rotation_distance: 30
53+
full_steps_per_rotation: 200
54+
endstop_pin: PE9 #Z-STOP
55+
position_min: 0
56+
position_endstop: 0
57+
position_max: 200
58+
homing_speed: 5
59+
second_homing_speed: 3
60+
homing_retract_dist: 5.0
61+
homing_positive_dir: false
62+
step_pulse_duration: 0.000004
63+
64+
[extruder]
65+
step_pin: PE2
66+
dir_pin: PD5
67+
enable_pin: !PD6
68+
microsteps: 16
69+
rotation_distance: 33.500
70+
nozzle_diameter: 0.400
71+
filament_diameter: 1.750
72+
heater_pin: PC6 #E0
73+
74+
########################################
75+
# Extruder 100K thermistor configuration
76+
########################################
77+
sensor_type: ATC Semitec 104GT-2
78+
sensor_pin: PC4 #T0 TEMP
79+
control: pid
80+
pid_Kp: 22.2
81+
pid_Ki: 1.08
82+
pid_Kd: 114
83+
min_temp: 0
84+
max_temp: 275
85+
########################################
86+
# Extruder MAX31865 PT100 2 wire config
87+
########################################
88+
# sensor_type: MAX31865
89+
# sensor_pin: PD15 #PT-100
90+
# spi_speed: 4000000
91+
# spi_software_sclk_pin: PD12
92+
# spi_software_mosi_pin: PD11
93+
# spi_software_miso_pin: PD13
94+
# rtd_nominal_r: 100
95+
# rtd_reference_r: 430
96+
# rtd_num_of_wires: 2
97+
# rtd_use_50Hz_filter: True
98+
min_temp: 0
99+
max_temp: 300
100+
101+
#[extruder1]
102+
#step_pin: PE0
103+
#dir_pin: PD1
104+
#enable_pin: !PD3
105+
#microsteps: 16
106+
#heater_pin: PC7 #E1
107+
#sensor_pin: PC5 #T1 TEMP
108+
109+
########################################
110+
# TMC2209 configuration
111+
########################################
112+
113+
[tmc2209 stepper_x]
114+
uart_pin: PC15
115+
interpolate: False
116+
run_current: 0.3
117+
sense_resistor: 0.110
118+
stealthchop_threshold: 999999
119+
120+
[tmc2209 stepper_y]
121+
uart_pin: PB6
122+
interpolate: False
123+
run_current: 0.3
124+
sense_resistor: 0.110
125+
stealthchop_threshold: 999999
126+
127+
[tmc2209 stepper_z]
128+
uart_pin: PD7
129+
interpolate: False
130+
run_current: 0.4
131+
sense_resistor: 0.110
132+
stealthchop_threshold: 999999
133+
134+
[tmc2209 extruder]
135+
uart_pin: PD4
136+
interpolate: False
137+
run_current: 0.27
138+
sense_resistor: 0.075
139+
stealthchop_threshold: 999999
140+
141+
#[tmc2209 extruder1]
142+
#uart_pin: PD0
143+
#interpolate: False
144+
#run_current: 0.27
145+
#sense_resistor: 0.075
146+
#stealthchop_threshold: 999999
147+
148+
149+
#######################################
150+
# Heated Bed
151+
#######################################
152+
153+
[heater_bed]
154+
heater_pin: PB0 #BED
155+
sensor_type: Generic 3950
156+
sensor_pin: PB1 #B-TEMP
157+
max_power: 1.0
158+
min_temp: 0
159+
max_temp: 120
160+
control: pid
161+
pid_kp: 58.437
162+
pid_ki: 2.347
163+
pid_kd: 363.769
164+
165+
#######################################
166+
# LIGHTING
167+
#######################################
168+
169+
#[led Toolhead]
170+
#white_pin: PA2 #FAN2
171+
#cycle_time: 0.010
172+
#initial_white: 0
173+
174+
#######################################
175+
# COOLING
176+
#######################################
177+
178+
[heater_fan hotend_fan]
179+
pin: PA1 #FAN1
180+
max_power: 1.0
181+
kick_start_time: 0.5
182+
heater: extruder
183+
heater_temp: 50
184+
fan_speed: 1.0
185+
186+
[controller_fan controller_fan]
187+
pin: PA0 #FAN0
188+
max_power: 1.0
189+
kick_start_time: 0.5
190+
heater: extruder
191+
stepper: stepper_x, stepper_y, stepper_z
192+
fan_speed: 1.0
193+
idle_timeout: 60
194+
195+
[fan]
196+
pin: PA3 #FAN3
197+
max_power: 1.0
198+
off_below: 0.2
199+
200+
[temperature_sensor Mellow_Fly_E3_V2]
201+
sensor_type: temperature_mcu
202+
min_temp: 5
203+
max_temp: 80
204+
205+
[printer]
206+
kinematics: cartesian
207+
max_velocity: 300
208+
max_accel: 3000
209+
max_z_velocity: 50
210+
max_z_accel: 100
211+
212+
########################################
213+
# EXP1 / EXP2 (display) pins
214+
########################################
215+
[board_pins]
216+
aliases:
217+
EXP1_1=PD10, EXP1_3=PA8, EXP1_5=PE15, EXP1_7=PA14, EXP1_9=<GND>,
218+
EXP1_2=PA9, EXP1_4=PA10, EXP1_6=PE14, EXP1_8=PA13, EXP1_10=<5V>,
219+
# EXP2 header
220+
EXP2_1=PA6, EXP2_3=PB11, EXP2_5=PB10, EXP2_7=PE13, EXP2_9=<GND>,
221+
EXP2_2=PA5, EXP2_4=PA4, EXP2_6=PA7, EXP2_8=<RST>, EXP2_10=<NC>,
222+
223+
# See the sample-lcd.cfg file for definitions of common LCD displays.
224+
225+
#######################################
226+
# BL-Touch
227+
#######################################
228+
229+
#[bltouch]
230+
#sensor_pin: PC2
231+
#control_pin: PE6
232+
#z_offset: 0

config/sample-duet3-1lc.cfg

+9
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,14 @@ heater_temp: 50.0
7777
pin: toolboard:PA9
7878
z_offset: 20
7979

80+
[samd_sercom sercom_i2c]
81+
sercom: sercom1
82+
tx_pin: toolboard:PA16
83+
clk_pin: toolboard:PA17
84+
85+
[lis3dh]
86+
i2c_mcu: toolboard
87+
i2c_bus: sercom1
88+
8089
[mcu toolboard]
8190
canbus_uuid: 4b194673554e

docs/API_Server.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,10 @@ A request may look like:
375375
`{"id": 123, "method":"hx71x/dump_hx71x",
376376
"params": {"sensor": "load_cell", "response_template": {}}}`
377377
and might return:
378-
`{"id": 123,"result":{"header":["time","counts"]}}`
378+
`{"id": 123,"result":{"header":["time","counts","value"]}}`
379379
and might later produce asynchronous messages such as:
380-
`{"params":{"data":[[3292.432935, 562534], [3292.4394937, 5625322]]}}`
380+
`{"params":{"data":[[3292.432935, 562534, 0.067059278],
381+
[3292.4394937, 5625322, 0.670590639]]}}`
381382

382383
### ads1220/dump_ads1220
383384

@@ -390,9 +391,10 @@ A request may look like:
390391
`{"id": 123, "method":"ads1220/dump_ads1220",
391392
"params": {"sensor": "load_cell", "response_template": {}}}`
392393
and might return:
393-
`{"id": 123,"result":{"header":["time","counts"]}}`
394+
`{"id": 123,"result":{"header":["time","counts","value"]}}`
394395
and might later produce asynchronous messages such as:
395-
`{"params":{"data":[[3292.432935, 562534], [3292.4394937, 5625322]]}}`
396+
`{"params":{"data":[[3292.432935, 562534, 0.067059278],
397+
[3292.4394937, 5625322, 0.670590639]]}}`
396398

397399
### pause_resume/cancel
398400

docs/Axis_Twist_Compensation.md

+45-13
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,51 @@ try to probe the bed without attaching the probe if you use it.
2424
> **Tip:** Make sure the [probe X and Y offsets](Config_Reference.md#probe) are
2525
> correctly set as they greatly influence calibration.
2626
27-
1. After setting up the [axis_twist_compensation] module,
28-
perform `AXIS_TWIST_COMPENSATION_CALIBRATE`
29-
* The calibration wizard will prompt you to measure the probe Z offset at a few
30-
points along the bed
31-
* The calibration defaults to 3 points but you can use the option
32-
`SAMPLE_COUNT=` to use a different number.
33-
2. [Adjust your Z offset](Probe_Calibrate.md#calibrating-probe-z-offset)
34-
3. Perform automatic/probe-based bed tramming operations, such as
35-
[Screws Tilt Adjust](G-Codes.md#screws_tilt_adjust),
36-
[Z Tilt Adjust](G-Codes.md#z_tilt_adjust) etc
37-
4. Home all axis, then perform a [Bed Mesh](Bed_Mesh.md) if required
38-
5. Perform a test print, followed by any
39-
[fine-tuning](Axis_Twist_Compensation.md#fine-tuning) as desired
27+
### Basic Usage: X-Axis Calibration
28+
1. After setting up the ```[axis_twist_compensation]``` module, run:
29+
```
30+
AXIS_TWIST_COMPENSATION_CALIBRATE
31+
```
32+
This command will calibrate the X-axis by default.
33+
- The calibration wizard will prompt you to measure the probe Z offset at
34+
several points along the bed.
35+
- By default, the calibration uses 3 points, but you can specify a different
36+
number with the option:
37+
``
38+
SAMPLE_COUNT=<value>
39+
``
40+
41+
2. **Adjust Your Z Offset:**
42+
After completing the calibration, be sure to [adjust your Z offset]
43+
(Probe_Calibrate.md#calibrating-probe-z-offset).
44+
45+
3. **Perform Bed Leveling Operations:**
46+
Use probe-based operations as needed, such as:
47+
- [Screws Tilt Adjust](G-Codes.md#screws_tilt_adjust)
48+
- [Z Tilt Adjust](G-Codes.md#z_tilt_adjust)
49+
50+
4. **Finalize the Setup:**
51+
- Home all axes, and perform a [Bed Mesh](Bed_Mesh.md) if necessary.
52+
- Run a test print, followed by any
53+
[fine-tuning](Axis_Twist_Compensation.md#fine-tuning)
54+
if needed.
55+
56+
### For Y-Axis Calibration
57+
The calibration process for the Y-axis is similar to the X-axis. To calibrate
58+
the Y-axis, use:
59+
```
60+
AXIS_TWIST_COMPENSATION_CALIBRATE AXIS=Y
61+
```
62+
This will guide you through the same measuring process as for the X-axis.
63+
64+
### Automatic Calibration for Both Axes
65+
To perform automatic calibration for both the X and Y axes without manual
66+
intervention, use:
67+
```
68+
AXIS_TWIST_COMPENSATION_CALIBRATE AUTO=True
69+
```
70+
In this mode, the calibration process will run for both axes automatically.
71+
4072

4173
> **Tip:** Bed temperature and nozzle temperature and size do not seem to have
4274
> an influence to the calibration process.

docs/Bed_Mesh.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ printers use an endstop for homing the Z axis and a probe for calibrating the
269269
mesh. In this configuration it is possible offset the mesh so that the (X, Y)
270270
`reference position` applies zero adjustment. The `reference postion` should
271271
be the location on the bed where a
272-
[Z_ENDSTOP_CALIBRATE](./Manual_Level#calibrating-a-z-endstop)
272+
[Z_ENDSTOP_CALIBRATE](./Manual_Level.md#calibrating-a-z-endstop)
273273
paper test is performed. The bed_mesh module provides the
274274
`zero_reference_position` option for specifying this coordinate:
275275

0 commit comments

Comments
 (0)