Make it not crash, and clean up

This commit is contained in:
Kyle Brown 2023-05-17 19:38:29 -07:00
parent b18edb8f2d
commit 660342d278
3 changed files with 46 additions and 30 deletions

View file

@ -15,8 +15,9 @@ gcode:
Z_TILT_ADJUST
G28 Z
G90 ; absolute positioning
BED_MESH_CALIBRATE
G1 X0 Y0 Z0.2 F20000 ; park nozzle on bed to prevent ooze
#BED_MESH_CALIBRATE
G1 X0 Y20 Z0.2 F20000 ; move to park position
G1 X0 Y20 Z0.2 F200 ; park nozzle on bed to prevent ooze
M109 S{hotendTemp} ; Set extruder to printing temperature
PURGE
@ -109,11 +110,11 @@ gcode:
gcode:
G92 E0
M117 Purging Nozzle...
G1 X1.5 Y1 Z0.2
G1 X1.5 Y20 Z0.2
G1 E10 F{10*60} ; Prepurge in place before line
G1 X1.5 Y100 E15 F{10*60}
G1 X2 Y100 F{10*60}
G1 X2 Y50 E10 F{10*60}
G1 X2 Y60 E10 F{10*60}
G92 E0
M117 Printing...
@ -166,5 +167,5 @@ gcode:
[gcode_macro CALIBRATE_PROBE]
gcode:
G90
G0 X72.4 Y38.6
G0 X76 Y43
PROBE_CALIBRATE

View file

@ -7,9 +7,6 @@
# file named "firmware.bin" on an SD card and then restart the SKR
# mini E3 with that SD card.
## *** THINGS TO CHANGE/CHECK: ***
## Fine tune E steps [extruder] section
[include mainsail.cfg]
[include timelapse.cfg]
[include sensorless.cfg]
@ -19,6 +16,7 @@
#[include screen.cfg]
[display_status]
[exclude_object]
[respond]
@ -44,7 +42,7 @@ max_z_velocity: 15
max_z_accel: 45
square_corner_velocity: 8
[temperature_sensor mcu_temp]
[temperature_sensor Skr_Mini]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
@ -179,19 +177,35 @@ heater_temp: 50.0
max_power: 0.35 # Running 24v into 12v fan. Don't blow it up please!
[fan]
# Neopixel
pin: PA8 # neopixel port
max_power: 1.0
kick_start_time: 1
off_below: 0.13
cycle_time: 0.010
[controller_fan driver_fan]
stepper: stepper_x
pin: skrPico:gpio17
max_power: .7
cycle_time: 0.05
shutdown_speed: 0
kick_start_time: 1
off_below: 0.10
[controller_fan driver_fan2]
stepper: stepper_z
pin: skrPico:gpio20
max_power: .6
cycle_time: 0.01
shutdown_speed: 0
kick_start_time: 0.1
off_below: 0.10
[idle_timeout]
timeout: 600
[dockable_probe]
pin: ^PC2
pin: skrPico:gpio25
sample_retract_dist: 4.0
samples: 3
dock_position: 0, 115.7, 10
@ -204,6 +218,7 @@ detach_speed: 15
travel_speed: 50
post_attach_gcode:
G0 X24 Y115.5
allow_delayed_detach: False
x_offset: -16
y_offset: 17

View file

@ -1,9 +1,19 @@
[mcu skrPico]
serial: /dev/serial/by-id/usb-Klipper_rp2040_455035712893EF38-if00
[temperature_sensor Skr_Pico]
sensor_type: temperature_mcu
sensor_mcu: skrPico
min_temp: 10
max_temp: 100
#####################################################################
# Z Stepper Settings
#####################################################################
[stepper_z]
step_pin: skrPico:gpio14
dir_pin: !skrPico:gpio13 # Remove the ! before gpio28 if motor direction is inverted.
dir_pin: !skrPico:gpio13
enable_pin: !skrPico:gpio15
microsteps: 64
rotation_distance: 80
@ -19,15 +29,14 @@ uart_pin: skrPico:gpio9
tx_pin: skrPico:gpio8
uart_address: 1
interpolate: False
run_current: 1
run_current: 0.3
sense_resistor: 0.110
stealthchop_threshold: 0 # Set to 999999 to turn stealthchop on, and 0 to use spreadcycle
stealthchop_threshold: 0
[stepper_z1]
step_pin: skrPico:gpio6
## Refer to https://docs.vorondesign.com/build/startup/#v0
dir_pin: skrPico:gpio5 # Check motor direction in link above. If inverted, add a ! before gpio5
dir_pin: skrPico:gpio5
enable_pin: !skrPico:gpio7
microsteps: 64
rotation_distance: 40
@ -37,19 +46,13 @@ uart_pin: skrPico:gpio9
tx_pin: skrPico:gpio8
uart_address: 2
interpolate: False
run_current: 1
run_current: 0.3
sense_resistor: 0.110
stealthchop_threshold: 0 # Set to 999999 to turn stealthchop on, and 0 to use spreadcycle
#####################################################################
# Z Stepper Settings
#####################################################################
stealthchop_threshold: 0
[stepper_z2]
step_pin: skrPico:gpio11
## Refer to https://docs.vorondesign.com/build/startup/#v0
dir_pin: skrPico:gpio10 # Check motor direction in link above. If inverted, add a ! before gpio10
dir_pin: skrPico:gpio10
enable_pin: !skrPico:gpio12
microsteps: 64
rotation_distance: 40
@ -59,15 +62,12 @@ uart_pin: skrPico:gpio9
tx_pin: skrPico:gpio8
uart_address: 0
interpolate: False
run_current: 1
run_current: 0.35
sense_resistor: 0.110
stealthchop_threshold: 0 # Set to 999999 to turn stealthchop on, and 0 to use spreadcycle
stealthchop_threshold: 0
[z_tilt]
z_positions:
#-50, 0
#60, 140
#170, 0
-47.5, 15
60, 141
167.5, 15