# This file contains common pin mappings for the BigTreeTech SKR 3. # To use this config, the firmware should be compiled for the # STM32H743 with a "128KiB bootloader". # See docs/Config_Reference.md for a description of parameters. [include mainsail.cfg] [exclude_object] [pause_resume] [gcode_arcs] [include macros.cfg] [display_status] [temperature_sensor mcu_temperature] sensor_type = temperature_mcu [temperature_sensor rpi_temperature] sensor_type = temperature_host [virtual_sdcard] path: /home/pi/printer_data/gcodes [mcu] serial:/dev/serial/by-id/usb-Klipper use yours restart_method: command [printer] kinematics: cartesian max_velocity: 200 max_accel: 2000 max_z_velocity: 10 max_z_accel: 100 [input_shaper] shaper_type_y = 2hump_ei shaper_freq_y = 44.8 shaper_type_x = mzv shaper_freq_x = 49.8 ##################################################################### # X/Y/Z Stepper Settings ##################################################################### [stepper_x] step_pin: PD4 dir_pin: PD3 enable_pin: !PD6 microsteps: 128 rotation_distance: 40 endstop_pin: tmc2209_stepper_x:virtual_endstop position_endstop: 0 position_max: 300 homing_speed: 40 homing_retract_dist: 0 [tmc2209 stepper_x] uart_pin: PD5 run_current: 0.750 #stealthchop_threshold: 0 interpolate: False sense_resistor: 0.150 driver_SGTHRS: 90 # NOTE Bump sensitivity; increase to make more sensitive diag_pin: ^PC1 [stepper_y] step_pin: PA15 dir_pin: !PA8 enable_pin: !PD1 microsteps: 128 rotation_distance: 40 endstop_pin: tmc2209_stepper_y:virtual_endstop position_endstop: 0 position_max: 300 homing_speed: 40 homing_retract_dist: 0 [tmc2209 stepper_y] uart_pin: PD0 run_current: 0.700 #stealthchop_threshold: 0 interpolate: False sense_resistor: 0.150 driver_SGTHRS: 115 # NOTE Bump sensitivity; increase to make more sensitive diag_pin: ^PC3 [stepper_z] step_pin: PE2 dir_pin: PE3 enable_pin: !PE0 microsteps: 128 rotation_distance: 4 endstop_pin: probe:z_virtual_endstop position_min: -4 position_max: 340 # NOTE You can adjust this if you have more room homing_speed: 5 [tmc2209 stepper_z] uart_pin: PE1 run_current: 0.8 #stealthchop_threshold: 0 interpolate: False sense_resistor: 0.150 diag_pin: PC0 #[tmc2209 extruder1] #uart_pin: PD12 #run_current: 0.600 #diag_pin: ##################################################################### # Extruder ##################################################################### [extruder] max_extrude_only_distance: 100.0 step_pin: PD15 dir_pin: PD14 enable_pin: !PC7 microsteps: 16 rotation_distance: 4.46 nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: PB3 sensor_type: EPCOS 100K B57560G104F sensor_pin: PA2 #control: pid #pid_Kp: 22.2 #pid_Ki: 1.08 #pid_Kd: 114 min_temp: 0 max_temp: 300 [tmc2209 extruder] uart_pin: PC6 run_current: 0.550 stealthchop_threshold: 0 interpolate: False sense_resistor: 0.150 ##################################################################### # Bed Heater ##################################################################### [heater_bed] heater_pin: PD7 sensor_type: EPCOS 100K B57560G104F sensor_pin: PA1 #control: pid #pid_kp: 186.38 #pid_ki: 36.12 #pid_kd: 637.30 min_temp: 0 max_temp: 100 ##################################################################### # Fans ##################################################################### [fan] pin: PB6 [heater_fan fan1] pin: PB7 #[controller_fan my_controller_fan] #pin: PB5 ##################################################################### # Probe Related ##################################################################### [probe] pin: PC13 x_offset: 27 y_offset: -20 #z_offset: 0 samples: 3 samples_result: median samples_tolerance: 0.01 samples_tolerance_retries: 5 [safe_z_home] home_xy_position: 123, 170 speed: 100.0 z_hop: 35 z_hop_speed: 15 [bed_mesh] speed: 120 mesh_min: 28, 15 # probe as close to origin as possible while remaining fully on the bed mesh_max: 295, 280 # (x.position_max - 1), (y.position_max - abs(y_offset)) ; probe as far as possible from the origin while remaining fully on the bed probe_count: 7, 7 algorithm: bicubic fade_start: 1 fade_end: 10 fade_target: 0 [axis_twist_compensation] calibrate_start_x: 27 # probe x coor at furthest left ; abs(x_offset) calibrate_end_x: 272 # probe x coor at furthest right ; (x.position_max - abs(x_offset) - 1) calibrate_y: 154 ######################################## # EXP1 / EXP2 (display) pins ######################################## [board_pins] aliases: # EXP1 header EXP1_1=PC5, EXP1_3=PB1, EXP1_5=PE9, EXP1_7=PE11, EXP1_9=, EXP1_2=PB0, EXP1_4=PE8, EXP1_6=PE10, EXP1_8=PE12, EXP1_10=<5V>, # EXP2 header EXP2_1=PA6, EXP2_3=PE7, EXP2_5=PB2, EXP2_7=PC4, EXP2_9=, EXP2_2=PA5, EXP2_4=PA4, EXP2_6=PA7, EXP2_8=, EXP2_10= # See the sample-lcd.cfg file for definitions of common LCD displays. ##################################################################### # Misc ##################################################################### [screws_tilt_adjust] screw1_name: center front left base screw1: 84, 136 screw2_name: front left screw2: 5, 55 screw3_name: front right screw3: 244, 55 screw4_name: center front right screw4: 164, 136 screw5_name: center back left screw5: 84, 216 screw6_name: center back right screw6: 164, 216 screw7_name: back left screw7: 5, 295 screw8_name: back right screw8: 244, 295 horizontal_move_z: 10 screw_thread: CCW-M4 [gcode_macro _globals] variable_filament_sensor_enabled: 1 # NOTE Enable(1) or disable(0) the filament sensor, if one is connected variable_beeping_enabled: 0 # NOTE Enable(1) or disable(0) beeping everywhere except during gantry calibration variable_bed_temp_over: 5 # NOTE Start print if bed temperature is over by this amount, otherwise wait for temperature drop variable_kamp_enable: 0 # NOTE Enable(1) or disable(0) KAMP (adaptive mesh) variable_pre_purge_prime_length: 1.40 gcode: [filament_switch_sensor filament_sensor] switch_pin: PC2 pause_on_runout: True ######################################## # TMC2209 configuration ######################################## #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# #*# [heater_bed] #*# control = pid #*# pid_kp = 73.002 #*# pid_ki = 0.818 #*# pid_kd = 1628.862 #*# #*# [probe] #*# z_offset = 2.080 #*# #*# [bed_mesh default] #*# version = 1 #*# points = #*# -0.062031, -0.094375, -0.148281, -0.196563, -0.277969, -0.363906, -0.439375 #*# -0.009219, -0.045469, -0.077969, -0.137188, -0.213594, -0.306875, -0.388438 #*# 0.011094, -0.007813, -0.061406, -0.092813, -0.159844, -0.241406, -0.312344 #*# -0.007344, -0.017344, -0.039063, -0.060938, -0.108750, -0.179844, -0.258438 #*# -0.031406, -0.030469, -0.033125, -0.059063, -0.103594, -0.173906, -0.236875 #*# -0.075938, -0.053906, -0.045000, -0.058125, -0.099531, -0.181094, -0.245156 #*# -0.120469, -0.096094, -0.094375, -0.081406, -0.136406, -0.210156, -0.265938 #*# x_count = 7 #*# y_count = 7 #*# mesh_x_pps = 2 #*# mesh_y_pps = 2 #*# algo = bicubic #*# tension = 0.2 #*# min_x = 28.0 #*# max_x = 295.0 #*# min_y = 15.0 #*# max_y = 279.96 #*# #*# [extruder] #*# control = pid #*# pid_kp = 24.499 #*# pid_ki = 1.815 #*# pid_kd = 82.684