tri-zero/printer.cfg
2023-05-16 11:23:38 -07:00

217 lines
4.4 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.
## *** THINGS TO CHANGE/CHECK: ***
## Fine tune E steps [extruder] section
[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: 1000
max_accel: 20000
max_accel_to_decel: 20000
max_z_velocity: 15
max_z_accel: 45
square_corner_velocity: 8
[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
[temperature_sensor pi]
sensor_type: temperature_host
min_temp: 0
max_temp: 100
[temperature_sensor chamber]
sensor_type: ATC Semitec 104GT-2
sensor_pin: PA2
min_temp: 0
max_temp: 100
#####################################################################
# 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: 0.9
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: 0.9
sense_resistor: 0.110
stealthchop_threshold: 0
driver_SGTHRS: 100 # 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
max_temp: 320
min_extrude_temp: 200
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]
# Neopixel
pin: PA8 # neopixel port
max_power: 1.0
kick_start_time: 1
off_below: 0.13
cycle_time: 0.010
[idle_timeout]
timeout: 600
[dockable_probe]
pin: ^PC2
sample_retract_dist: 4.0
samples: 3
dock_position: 0, 115.7, 10
approach_position: 24, 115.5
detach_position: 0, 24
check_open_attach: True
dock_fixed_z: True
attach_speed: 15
detach_speed: 15
travel_speed: 50
post_attach_gcode:
G0 X24 Y115.5
x_offset: -16
y_offset: 17
z_offset: 10.248
[bed_mesh]
speed: 120
horizontal_move_z: 12
mesh_min: 5, 17
mesh_max: 97, 97
probe_count: 6