Ender 3 - Klipper Firmware

This commit is contained in:
2025-01-22 17:22:32 +01:00
parent f8f4d0a4dd
commit c9ce46287c
5 changed files with 587 additions and 0 deletions

View File

@@ -0,0 +1,259 @@
# Paste here and save your klipper configuration
# This file contains common pin mappings for the BIGTREETECH SKR mini
# E3 v2.0. To use this config, the firmware should be compiled for the
# STM32F103 with a "28KiB bootloader" and USB communication. Also,
# select "Enable extra low-level configuration options" and configure
# "GPIO pins to set at micro-controller startup" to "!PA14".
# 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.
# See docs/Config_Reference.md for a description of parameters.
# Inpput shaper auto-calibration:
# accelerometer configuration
#[include adxl345.cfg]
# [include macros.cfg]
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_37FFD9054252353440740557-if00
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 50
max_z_accel: 400
square_corner_velocity: 5.0
[stepper_x]
step_pin: PB13
dir_pin: !PB12
enable_pin: !PB14
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC0
position_endstop: 0
position_max: 220
homing_retract_dist: 5.0
homing_speed: 40
homing_retract_dist: 5.0
second_homing_speed: 2
[tmc2209 stepper_x]
uart_pin: PC11
tx_pin: PC10
uart_address: 0
run_current: 0.580
stealthchop_threshold: 999999
[stepper_y]
step_pin: PB10
dir_pin: !PB2
enable_pin: !PB11
microsteps: 16
rotation_distance: 40
endstop_pin: ^PC1
position_endstop: 0
position_max: 220
homing_speed: 40
homing_retract_dist: 5.0
second_homing_speed: 2
[tmc2209 stepper_y]
uart_pin: PC11
tx_pin: PC10
uart_address: 2
run_current: 0.580
stealthchop_threshold: 999999
[stepper_z]
step_pin: PB0
dir_pin: PC5
enable_pin: !PB1
microsteps: 16
rotation_distance: 8
# endstop_pin: ^PC2
endstop_pin: probe:z_virtual_endstop
# position_endstop: 0.0
position_min: -2
position_max: 250
homing_speed: 10
homing_retract_dist: 5.0
second_homing_speed: 2
[tmc2209 stepper_z]
uart_pin: PC11
tx_pin: PC10
uart_address: 1
run_current: 0.580
stealthchop_threshold: 999999
[extruder]
step_pin: PB3
dir_pin: !PB4
enable_pin: !PD2
microsteps: 16
rotation_distance: 33.683
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PC8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA0
control: pid
pid_Kp: 21.527
pid_Ki: 1.063
pid_Kd: 108.982
min_temp: 0
max_temp: 250
[tmc2209 extruder]
uart_pin: PC11
tx_pin: PC10
uart_address: 3
run_current: 0.650
stealthchop_threshold: 999999
[heater_bed]
heater_pin: PC9
sensor_type: ATC Semitec 104GT-2
sensor_pin: PC3
control: pid
pid_Kp: 54.027
pid_Ki: 0.770
pid_Kd: 948.182
min_temp: 0
max_temp: 130
[heater_fan extruder]
# fan on hotend/extruder
pin: PC7
heater: extruder
[fan]
# filament_cooling
pin: PC6
off_below: 0.1
[bed_screws]
# Nozzle / Screws alignment
screw1_name: front left
screw1: 25,35
screw2_name: front right
screw2: 195,35
screw3_name: back right
screw3: 197,200
screw4_name: back left
screw4: 27,205
speed: 100.0
[bltouch]
sensor_pin: PC2
control_pin: PA1
x_offset:-51
y_offset:-12
z_offset = 3.0
speed:5
samples: 3
samples_result: average
samples_tolerance: 0.050
samples_tolerance_retries: 3
[safe_z_home]
home_xy_position: 161,122
z_hop: 15
[screws_tilt_adjust]
# BLTouch / Screws alignment
screw1_name: front left
screw1: 76,47
screw2_name: front right
screw2: 220,47
screw3_name: back left
screw3: 220,212
screw4_name: back right
screw4: 79,217
speed: 100.0
screw_thread: CW-M4
[bed_mesh]
speed: 100
mesh_min: 29.25, 12.8
mesh_max: 272.75, 263
algorithm: bicubic
probe_count: 5,5
mesh_pps: 3
fade_start: 1
fade_end: 10
[neopixel lightbar]
pin: PA8
chain_count: 17
initial_RED: 1.0
initial_GREEN: 1.0
initial_BLUE: 1.0
######################################################################
# 128x64 Full Graphic Creality CR10 / ENDER 3 stockdisplay
# https://github.com/Klipper3d/klipper/blob/master/config/sample-lcd.cfg
######################################################################
# This section is used for a Creality "12864" display with a single
# ribbon cable between the display's EXP3 plug and the
# micro-controller board's EXP1 connector.
# [display]
# lcd_type: st7920
# cs_pin: EXP1_7
# sclk_pin: EXP1_6
# sid_pin: EXP1_8
# encoder_pins: ^EXP1_5, ^EXP1_3
# click_pin: ^!EXP1_2
# [output_pin beeper]
# pin: EXP1_1
######################################################################
[display]
lcd_type: st7920
cs_pin: PB8
sclk_pin: PB9
sid_pin: PB15
encoder_pins: ^PA10, ^PA9
click_pin: ^!PA15
[output_pin beeper]
pin: PB5
# [filament_switch_sensor filament]
# pause_on_runout: True # Starts the PAUSE g-code script if filament runs out
# runout_gcode: M117 Filament runout # Optional
# insert_gcode: M117 Filament insert # Optional
# switch_pin: PC15 #
# Support for M117 gcode (message display)
[display_status]
[static_digital_output usb_pullup_enable]
pins: !PA14
[board_pins]
aliases:
# EXP1 header
EXP1_1=PB5, EXP1_2=PA15,
EXP1_3=PA9, EXP1_4=<RST>,
EXP1_5=PA10, EXP1_6=PB9,
EXP1_7=PB8, EXP1_8=PB15,
EXP1_9=<GND>, EXP1_10=<5V>
# See the sample-lcd.cfg file for definitions of common LCD displays.