Last active
November 10, 2023 22:58
-
-
Save SippieCup/5b7db3ce47b9bda409422b922f37bf7b to your computer and use it in GitHub Desktop.
E5P + Mercury One.1 CoreXY + Sensorless Homing + SKR2 + TFT35 + StealthBurner + Voron Tap + CAN Bus Toolhead + Voron Revo
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". | |
# In newer versions of this board shipped in late 2021 the STM32F429 | |
# is used, if this is the case compile for this with a "32KiB bootloader" | |
# You will need to check the chip on your board to identify which you have. | |
# | |
# 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 shell_command.cfg] | |
[include mainsail.cfg] | |
[include macros.cfg] | |
[mcu rpi] | |
serial: /tmp/klipper_host_mcu | |
[mcu EBBCan] | |
canbus_uuid: 823a8d531c30 | |
[temperature_sensor EBB_NTC] | |
sensor_type: Generic 3950 | |
sensor_pin: EBBCan: PA2 | |
[adxl345] | |
cs_pin: EBBCan: PB12 | |
spi_software_sclk_pin: EBBCan: PB10 | |
spi_software_mosi_pin: EBBCan: PB11 | |
spi_software_miso_pin: EBBCan: PB2 | |
axes_map: z,-y,x | |
[resonance_tester] | |
accel_chip: adxl345 | |
probe_points: | |
175, 175, 20 # an example | |
[virtual_sdcard] | |
path: /home/sid/printer_data/gcodes | |
on_error_gcode: CANCEL_PRINT | |
[mcu] | |
#serial: /dev/serial/by-id/usb-Klipper_stm32f429xx_3F0032000251303330363837-if00 | |
serial: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0 | |
############################################## | |
# X/Y Stepper Settings | |
############################################## | |
# X Stepper (Motor 1) - A Motor | |
[stepper_x] | |
step_pin: PE2 | |
dir_pin: !PE1 | |
enable_pin: !PE3 | |
microsteps: 16 | |
rotation_distance: 40 | |
endstop_pin: tmc2209_stepper_x:virtual_endstop | |
position_endstop: 395 | |
position_max: 395 | |
position_min: 5 | |
homing_speed: 50 | |
homing_retract_dist: 0 | |
# Y Stepper (Motor 2) - B Motor | |
[stepper_y] | |
step_pin: PD5 | |
dir_pin: !PD4 | |
enable_pin: !PD6 | |
microsteps: 16 | |
rotation_distance: 40 | |
endstop_pin: tmc2209_stepper_y:virtual_endstop | |
position_endstop: 365 | |
position_max: 365 | |
position_min: 5 | |
homing_speed: 50 | |
homing_retract_dist: 0 | |
[stepper_z] | |
step_pin: PA15 | |
dir_pin: !PA8 | |
enable_pin: !PD1 | |
microsteps: 16 | |
rotation_distance: 4 #was 4 | |
full_steps_per_rotation: 200 | |
endstop_pin: probe:z_virtual_endstop | |
position_min: -7 | |
position_max: 400 | |
[stepper_z1] | |
step_pin: PD11 | |
dir_pin: !PD10 | |
enable_pin: !PD13 | |
microsteps: 16 | |
rotation_distance: 4 #was 4 | |
full_steps_per_rotation: 200 | |
[extruder] | |
step_pin: EBBCan: PD0 | |
dir_pin: !EBBCan: PD1 | |
enable_pin: !EBBCan: PD2 | |
microsteps: 32 | |
full_steps_per_rotation: 200 | |
rotation_distance: 22.48094064725844 | |
gear_ratio: 50:10 | |
nozzle_diameter: 0.400 | |
filament_diameter: 1.750 | |
heater_pin: EBBCan: PB13 | |
sensor_type: ATC Semitec 104NT-4-R025H42G | |
sensor_pin: EBBCan: PA3 | |
pressure_advance: .110 | |
pressure_advance_smooth_time: 0.040 | |
min_extrude_temp: 180 | |
min_temp: -70 | |
max_temp: 275 | |
max_extrude_only_distance: 150.0 | |
[heater_bed] | |
heater_pin: PD7 | |
sensor_type: EPCOS 100K B57560G104F | |
sensor_pin: PA1 | |
min_temp: 5 | |
max_temp: 130 | |
#control: pid | |
#pid_Kp: 67.913 | |
#pid_Ki: 110.961 | |
#pid_Kd: 1199.520 | |
[fan] #PartsFan | |
pin: EBBCan: PA1 | |
[heater_fan fan1] #Hotend fan | |
pin: EBBCan: PA0 | |
Heater_temp: 50 | |
Heater: extruder | |
#[heater_fan fan2] | |
#pin: PB5 | |
[output_pin motor_power] | |
pin: PC13 | |
value: 1 | |
[neopixel hotend_rgb] | |
pin: EBBCan:PD3 | |
[printer] | |
kinematics: corexy | |
max_velocity: 300 | |
max_accel: 2000 | |
max_z_velocity: 10 | |
max_z_accel: 100 | |
######################################## | |
# 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>, | |
E0DET_1=<5V>, E0DET_2=<GND>, EODET_3=PC2 | |
[display] | |
lcd_type: emulated_st7920 | |
en_pin: EXP1_4 | |
spi_software_sclk_pin: EXP1_5 | |
spi_software_mosi_pin: EXP1_3 | |
spi_software_miso_pin: EXP1_6 | |
encoder_pins: ^EXP2_5, ^EXP2_3 | |
click_pin: ^!EXP1_2 | |
# See the sample-lcd.cfg file for definitions of common LCD displays. | |
######################################## | |
# TMC2209 configuration | |
######################################## | |
[tmc2209 stepper_x] | |
uart_pin: PE0 | |
run_current: 1.35 | |
diag_pin: PC1 | |
driver_SGTHRS: 60 | |
#stealthchop_threshold: 1 | |
[tmc2209 stepper_y] | |
uart_pin: PD3 | |
run_current: 1.35 | |
diag_pin: PC3 | |
driver_SGTHRS: 60 | |
#stealthchop_threshold: 1 | |
[tmc2209 stepper_z] | |
uart_pin: PD0 | |
run_current: 0.680 | |
hold_current: 0.800 | |
diag_pin:PC0 | |
#stealthchop_threshold: 1 | |
[tmc2209 stepper_z1] | |
uart_pin: PD12 | |
run_current: 0.680 | |
hold_current: 0.800 | |
diag_pin: PA0 | |
#stealthchop_threshold: 1 | |
[tmc2209 extruder] | |
uart_pin: EBBCan: PA15 | |
run_current: 0.650 | |
interpolate: false | |
sense_resistor: 0.110 | |
diag_pin: PC2 | |
#stealthchop_threshold: 1 | |
[filament_switch_sensor runout_sensor] | |
pause_on_runout: True | |
switch_pin: EODET_3 | |
#==================================================================== | |
# Tap | |
#==================================================================== | |
[probe] | |
pin: ^EBBCan: PB5 | |
x_offset: 0 | |
y_offset: 0 | |
speed: 5.0 | |
samples: 3 | |
samples_result: average | |
sample_retract_dist: 2.0 | |
samples_tolerance: 0.05 | |
samples_tolerance_retries: 3 | |
activate_gcode: | |
{% set PROBE_TEMP = 200 %} | |
{% set MAX_TEMP = PROBE_TEMP + 5 %} | |
{% set ACTUAL_TEMP = printer.extruder.temperature %} | |
{% set TARGET_TEMP = printer.extruder.target %} | |
{% if TARGET_TEMP > PROBE_TEMP %} | |
{ action_respond_info('Extruder temperature target of %.1fC is too high, lowering to %.1fC' % (TARGET_TEMP, PROBE_TEMP)) } | |
M109 S{ PROBE_TEMP } | |
{% else %} | |
# Temperature target is already low enough, but nozzle may still be too hot. | |
{% if ACTUAL_TEMP > MAX_TEMP %} | |
{ action_respond_info('Extruder temperature %.1fC is still too high, waiting until below %.1fC' % (ACTUAL_TEMP, MAX_TEMP)) } | |
TEMPERATURE_WAIT SENSOR=extruder MAXIMUM={ MAX_TEMP } | |
{% endif %} | |
{% endif %} | |
[safe_z_home] | |
home_xy_position: 175, 175 | |
speed: 150 | |
z_hop: 5 | |
z_hop_speed: 20 | |
[bed_mesh] | |
algorithm: bicubic | |
speed: 300 | |
horizontal_move_z: 1 | |
mesh_min: 5,5 | |
mesh_max: 350, 350 | |
probe_count: 5,5 | |
fade_end: 10 | |
mesh_pps: 2,2 | |
fade_start: 1 | |
fade_target: 0 | |
[z_tilt] | |
z_positions: 382, 145 | |
-22,145 | |
points: 348, 175 | |
60,175 | |
speed: 200 | |
horizontal_move_z: 1 | |
retries: 20 | |
retry_tolerance:0.010 | |
[bed_screws] | |
screw1: 16,60 | |
screw2: 16,318 | |
screw3: 316,318 | |
screw4: 316,60 | |
#*# <---------------------- SAVE_CONFIG ----------------------> | |
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. | |
#*# | |
#*# [probe] | |
#*# z_offset = -0.800 | |
#*# | |
#*# [input_shaper] | |
#*# shaper_type_x = ei | |
#*# shaper_freq_x = 53.2 | |
#*# shaper_type_y = ei | |
#*# shaper_freq_y = 35.4 | |
#*# | |
#*# [heater_bed] | |
#*# control = pid | |
#*# pid_kp = 67.333 | |
#*# pid_ki = 0.998 | |
#*# pid_kd = 1136.240 | |
#*# | |
#*# [extruder] | |
#*# control = pid | |
#*# pid_kp = 39.534 | |
#*# pid_ki = 5.608 | |
#*# pid_kd = 69.678 | |
#*# | |
#*# [bed_mesh default] | |
#*# version = 1 | |
#*# points = | |
#*# 0.250003, 0.265419, 0.278753 | |
#*# 0.304586, 0.325003, 0.308336 | |
#*# 0.329169, 0.365836, 0.338753 | |
#*# x_count = 3 | |
#*# y_count = 3 | |
#*# mesh_x_pps = 2 | |
#*# mesh_y_pps = 2 | |
#*# algo = lagrange | |
#*# tension = 0.2 | |
#*# min_x = 127.5 | |
#*# max_x = 222.5 | |
#*# min_y = 143.5 | |
#*# max_y = 206.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment