tri-zero/printer.cfg
2024-11-05 10:06:43 -08:00

252 lines
5 KiB
INI

# This file contains common pin mappings for the BIGTREETECH SKR mini
# E3 v3.0. To use this config, the firmware should be compiled for the
# STM32G0B1 with a "8KiB bootloader" and USB communication.
# The "make flash" command does not work on the SKR mini E3. Instead,
# after running "make", copy the generated "out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the SKR
# mini E3 with that SD card.
[include mainsail.cfg]
[include timelapse.cfg]
[include sensorless.cfg]
[include basic_macros.cfg]
[include calibration_macros.cfg]
[include tri_zero.cfg]
#[include screen.cfg]
[display_status]
[exclude_object]
[respond]
[virtual_sdcard]
path: ~/sdcard
[firmware_retraction]
retract_length: 0.4
retract_speed: 100
unretract_speed: 100
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_32002C000750414235363020-if00
[printer]
kinematics: corexy
max_velocity: 800
max_accel: 20000
minimum_cruise_ratio: 0.5
max_z_velocity: 15
max_z_accel: 45
square_corner_velocity: 8
[temperature_sensor Skr_Mini]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
[temperature_sensor pi]
sensor_type: temperature_host
min_temp: 0
max_temp: 100
[temperature_combined]
[temperature_sensor _chamber1]
sensor_type: Generic 3950
sensor_pin: skrPico:gpio27
min_temp: 0
max_temp: 100
[temperature_sensor _chamber2]
sensor_type: ATC Semitec 104GT-2
sensor_pin: skrPico:gpio26
min_temp: 0
max_temp: 100
[temperature_sensor chamber]
sensor_type: temperature_combined
sensor_list: temperature_sensor _chamber1, temperature_sensor _chamber2
combination_method:mean
maximum_deviation: 999.9
#####################################################################
# X/Y Stepper Settings
#####################################################################
[stepper_x]
step_pin: PB13
dir_pin: PB12
enable_pin: !PB14
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200
endstop_pin: tmc2209_stepper_x:virtual_endstop
position_endstop: 0
position_max: 120
homing_speed: 50
homing_retract_dist: 0
[tmc2209 stepper_x]
uart_pin: PC11
tx_pin: PC10
uart_address: 0
interpolate: False
run_current: 1.1
sense_resistor: 0.110
stealthchop_threshold: 0
driver_SGTHRS: 90 # 255 is most sensitive value, 0 is least sensitive
diag_pin: ^PC0
[stepper_y]
step_pin: PB10
dir_pin: PB2
enable_pin: !PB11
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 200
endstop_pin: tmc2209_stepper_y:virtual_endstop
position_endstop: 116
position_max: 116
homing_speed: 50
homing_retract_dist: 0
[tmc2209 stepper_y]
uart_pin: PC11
tx_pin: PC10
uart_address: 2
interpolate: False
run_current: 1.1
sense_resistor: 0.110
stealthchop_threshold: 0
driver_SGTHRS: 80 # 255 is most sensitive value, 0 is least sensitive
diag_pin: ^PC1
#####################################################################
# Extruder
#####################################################################
[extruder]
step_pin: PB3
dir_pin: PB4
enable_pin: !PD1
full_steps_per_rotation: 200
rotation_distance: 22.23
gear_ratio: 50:10
microsteps: 32
nozzle_diameter: 0.5
filament_diameter: 1.750
heater_pin: PC8
sensor_type: Generic 3950
sensor_pin: PA0
control = pid
pid_kp = 27.030
pid_ki = 1.540
pid_kd = 118.596
min_temp: 0
min_extrude_temp: 200
max_temp: 350
max_extrude_only_distance: 300
max_extrude_cross_section: 300
[tmc2209 extruder]
uart_pin: PC11
tx_pin: PC10
uart_address: 3
interpolate: False
run_current: 0.4
sense_resistor: 0.110
stealthchop_threshold: 0
#####################################################################
# Bed Heater
#####################################################################
[heater_bed]
heater_pin: PC9
sensor_type: Generic 3950
sensor_pin: PC4
smooth_time: 3.0
min_temp: 0
max_temp: 120
control: pid
pid_kp: 59.958
pid_ki: 2.042
pid_kd: 393.064
#####################################################################
# Fan Control
#####################################################################
[heater_fan hotend_fan]
# PS-ON
pin: PC13
shutdown_speed: 0
kick_start_time: 0.1
heater: extruder
heater_temp: 50.0
max_power: 0.35 # Running 24v into 12v fan. Don't blow it up please!
[fan]
pin: PA8 # neopixel port
max_power: 1.0
kick_start_time: 1
off_below: 0.13
cycle_time: 0.010
[controller_fan primary_driver_fan]
stepper: stepper_x
pin: skrPico:gpio17
max_power: .5
cycle_time: 0.05
shutdown_speed: 0
kick_start_time: 1
off_below: 0.10
[controller_fan bottom_driver_fan]
stepper: stepper_z
pin: skrPico:gpio20
max_power: .4
cycle_time: 0.01
shutdown_speed: 0
kick_start_time: 0.1
off_below: 0.10
[idle_timeout]
timeout: 1800
[dockable_probe]
pin: skrPico:gpio25
dock_position: 120, 115.9
approach_position: 90, 115.9
detach_position: 120, 80
z_hop: 20.0
dock_retries: 3
attach_speed: 100
detach_speed: 15
travel_speed: 500
auto_attach_detach: True
check_open_attach: True
sample_retract_dist: 1
samples: 3
speed: 3 # z speed
x_offset: 13.7
y_offset: -2.4
z_offset = 15
[bed_mesh]
speed: 300
horizontal_move_z: 16
zero_reference_position: 60, 60
mesh_min: 15, 28
mesh_max: 95, 95
probe_count: 3,3
algorithm: bicubic
bicubic_tension: 0.1
[gcode_arcs]
resolution: 0.1