Last active
April 18, 2024 22:10
-
-
Save vMeph/cf2ef4af7409e39b406d4385f10caed4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains common pin mappings for the BigTreeTech SKR 2. | |
# To use this config, the firmware should be compiled for the | |
# STM32F407 with a "32KiB bootloader". | |
# The "make flash" command does not work on the SKR 2. 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 2 | |
# with that SD card. | |
# See docs/Config_Reference.md for a description of parameters. | |
# Note: The initial revision of this board has a flaw that can cause | |
# damage to itself and other boards. Be sure to verify the board is | |
# not impacted by this flaw before using it. | |
[include macros.cfg] | |
[include timelapse.cfg] | |
[firmware_retraction] | |
[respond] | |
[save_variables] | |
filename: ~/variables.cfg | |
[virtual_sdcard] | |
path: /home/klipper/printer_data/gcodes | |
[pause_resume] | |
[display_status] | |
[gcode_arcs] | |
[mcu] | |
serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_2C0027001047393437303337-if00 | |
############################################################## | |
################# STEPPERS ################################## | |
############################################################## | |
[stepper_x] | |
step_pin: PE2 | |
dir_pin: !PE1 | |
enable_pin: !PE3 | |
microsteps: 32 | |
rotation_distance: 40 | |
endstop_pin: ^PC1 | |
position_endstop: 340 | |
position_min: 0 | |
position_max: 340 | |
homing_speed: 100 | |
homing_retract_dist: 5 | |
#homing_positive_dir: true | |
[stepper_y] | |
step_pin: PD5 | |
dir_pin: !PD4 | |
enable_pin: !PD6 | |
microsteps: 32 | |
rotation_distance: 40 | |
endstop_pin: ^PC3 | |
position_endstop: 350 | |
position_max: 350 | |
homing_speed: 100 | |
homing_retract_dist: 5 | |
[stepper_z] | |
step_pin: PA15 | |
dir_pin: !PA8 | |
enable_pin: !PD1 | |
microsteps: 32 | |
rotation_distance: 4 | |
endstop_pin: probe:z_virtual_endstop | |
position_max: 400 | |
position_min: -5 | |
#[stepper_z1] | |
#step_pin: PD11 | |
#dir_pin: !PD10 | |
#enable_pin: !PD13 | |
#microsteps: 16 | |
#rotation_distance: 4 | |
[safe_z_home] | |
home_xy_position: 180, 180 | |
speed: 100 | |
z_hop: 10 | |
z_hop_speed: 5 | |
[extruder] | |
step_pin: PD15 | |
dir_pin: PD14 | |
enable_pin: !PC7 | |
microsteps: 32 | |
rotation_distance: 22.95 # Calculated distance | |
gear_ratio: 3:1 # BMG gear ratio | |
nozzle_diameter: 0.400 | |
filament_diameter: 1.750 | |
heater_pin: PB3 | |
sensor_type: EPCOS 100K B57560G104F | |
sensor_pin: PA2 | |
min_extrude_temp: 170 | |
min_temp: 5 | |
max_temp: 270 | |
max_extrude_only_distance: 150.0 | |
#[extruder1] | |
#step_pin: PD11 | |
#dir_pin: PD10 | |
#enable_pin: !PD13 | |
#microsteps: 16 | |
#heater_pin: PB4 | |
#sensor_pin: PA3 | |
#... | |
[heater_bed] | |
heater_pin: PD7 | |
sensor_type: Generic 3950 | |
#sensor_type: NTC 100K beta 3950 | |
sensor_pin: PA1 | |
min_temp: 5 | |
max_temp: 140 | |
[fan] #PartsFan | |
pin: PB7 | |
[heater_fan fan_hotend] #Hotend fan | |
pin: PB6 | |
Heater_temp: 50 | |
Heater: extruder | |
[output_pin motor_power] | |
pin: PC13 | |
value: 1 | |
[printer] | |
kinematics: cartesian | |
max_velocity: 300 | |
max_accel: 1500 | |
max_z_velocity: 20 | |
max_z_accel: 100 | |
square_corner_velocity: 5.0 | |
[filament_switch_sensor filament_sensor] | |
runout_gcode: FILAMENT_RUNOUT | |
pause_on_runout: True | |
runout_gcode: M600 | |
event_delay: 10.0 | |
switch_pin: PC2 | |
######################################## | |
# EXP1 / EXP2 (display) pins | |
######################################## | |
[board_pins] | |
aliases: | |
# EXP1 header | |
EXP1_1=PC5, EXP1_3=PB1, EXP1_5=PE10, EXP1_7=PE12, EXP1_9=<GND>, | |
EXP1_2=PB0, EXP1_4=PE9, EXP1_6=PE11, EXP1_8=PE13, EXP1_10=<5V>, | |
# EXP2 header | |
EXP2_1=PA6, EXP2_3=PE7, EXP2_5=PB2, EXP2_7=PC4, EXP2_9=<GND>, | |
EXP2_2=PA5, EXP2_4=PA4, EXP2_6=PA7, EXP2_8=<RST>, EXP2_10=<NC> | |
[display] | |
lcd_type: emulated_st7920 | |
spi_software_miso_pin: EXP2_1 | |
spi_software_mosi_pin: EXP1_3 | |
spi_software_sclk_pin: EXP1_5 | |
en_pin: EXP1_4 | |
encoder_pins: ^EXP2_3, ^EXP2_5 | |
click_pin: ^!EXP1_2 | |
######################################## | |
# TMC2209 configuration | |
######################################## | |
[tmc2209 stepper_x] | |
uart_pin: PE0 | |
run_current: 0.700 | |
hold_current: 0.550 | |
diag_pin: | |
stealthchop_threshold: 999999 | |
[tmc2209 stepper_y] | |
uart_pin: PD3 | |
run_current: 0.700 | |
hold_current: 0.550 | |
diag_pin: | |
stealthchop_threshold: 999999 | |
[tmc2209 stepper_z] | |
uart_pin: PD0 | |
run_current: 0.700 | |
hold_current: 0.550 | |
diag_pin: | |
stealthchop_threshold: 999999 | |
[tmc2209 extruder] | |
uart_pin: PC6 | |
run_current: 0.700 | |
diag_pin: | |
stealthchop_threshold: 999999 | |
#[tmc2209 stepper_z1] | |
#uart_pin: PD12 | |
#run_current: 0.800 | |
#hold_current: 0.800 | |
#diag_pin: | |
#stealthchop_threshold: 999999 | |
#[tmc2209 extruder1] | |
#uart_pin: PD12 | |
#run_current: 0.600 | |
#diag_pin: | |
#stealthchop_threshold: 1 | |
#==================================================================== | |
# BLTOUCH | |
#==================================================================== | |
[bltouch] | |
sensor_pin: ^PE4 | |
control_pin: PE5 | |
set_output_mode: 5V | |
pin_move_time: 0.675 | |
stow_on_each_sample: True | |
probe_with_touch_mode: True | |
pin_up_touch_mode_reports_triggered: False | |
x_offset: -44 | |
y_offset: -7 | |
speed: 10 | |
lift_speed: 20 | |
samples: 2 | |
sample_retract_dist:5 | |
samples_tolerance_retries: 3 | |
[bed_mesh] | |
algorithm: bicubic | |
bicubic_tension: 0.2 | |
speed: 150 | |
horizontal_move_z: 10 | |
mesh_min: 20,20 | |
mesh_max: 290,290 | |
probe_count: 5,5 | |
fade_end: 10 | |
mesh_pps: 2,2 | |
fade_start: 1 | |
fade_target: 0 | |
#[z_tilt] | |
#z_positions: 318, 168 | |
# 59,168 | |
#points: 318, 168 | |
#59,168 | |
#z_positions: 382, 145 | |
# -22,145 | |
#points: 335, 145 | |
# 32,145 | |
#speed: 200 | |
#horizontal_move_z: 10 | |
#retries: 20 | |
#retry_tolerance:0.010 | |
[bed_screws] | |
screw1: 65,39 | |
screw2: 325,39 | |
screw3: 325,300 | |
screw4: 65,300 | |
[screws_tilt_adjust] | |
screw1: 65,39 | |
screw1_name: esquerda_frente | |
screw2: 325,39 | |
screw2_name: direita_frente | |
screw3: 325,300 | |
screw3_name: direita_traz | |
screw4: 65,300 | |
screw4_name: esquerda_traz | |
speed: 200 | |
horizontal_move_z: 10 | |
screw_thread: CCW-M4 | |
[temperature_sensor TX3_Box] | |
sensor_type: temperature_host | |
min_temp: 10 | |
max_temp: 100 | |
[temperature_sensor SKR2_mcu] | |
sensor_type: temperature_mcu | |
min_temp: 0 | |
max_temp: 100 | |
#*# <---------------------- SAVE_CONFIG ----------------------> | |
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. | |
#*# | |
#*# [bltouch] | |
#*# z_offset = 5.290 | |
#*# | |
#*# [heater_bed] | |
#*# control = pid | |
#*# pid_kp = 69.776 | |
#*# pid_ki = 0.850 | |
#*# pid_kd = 1431.278 | |
#*# | |
#*# [extruder] | |
#*# control = pid | |
#*# pid_kp = 25.980 | |
#*# pid_ki = 1.228 | |
#*# pid_kd = 137.368 | |
#*# | |
#*# [bed_mesh default] | |
#*# version = 1 | |
#*# points = | |
#*# 0.231250, 0.081562, -0.019375, -0.158750, -0.261875 | |
#*# 0.179687, 0.057812, -0.041875, -0.174375, -0.297500 | |
#*# 0.196875, 0.068125, -0.024688, -0.160000, -0.306250 | |
#*# 0.196562, 0.065625, -0.034688, -0.164063, -0.300625 | |
#*# 0.193437, 0.057812, -0.037813, -0.174375, -0.312188 | |
#*# tension = 0.2 | |
#*# min_x = 20.0 | |
#*# algo = bicubic | |
#*# y_count = 5 | |
#*# mesh_y_pps = 2 | |
#*# min_y = 20.0 | |
#*# x_count = 5 | |
#*# max_y = 290.0 | |
#*# mesh_x_pps = 2 | |
#*# max_x = 290.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment