Skip to content

Instantly share code, notes, and snippets.

@elliotboney
Created July 17, 2023 13:50
Show Gist options
  • Save elliotboney/9a99b0ae499d67eb3d40d2ff317ab062 to your computer and use it in GitHub Desktop.
Save elliotboney/9a99b0ae499d67eb3d40d2ff317ab062 to your computer and use it in GitHub Desktop.
My Ender3 Klipper config
# _____ _
# / ____| |
# | (___ | |_ ___ _ __ _ __ ___ _ __ ___
# \___ \| __/ _ \ '_ \| '_ \ / _ \ '__/ __|
# ____) | || __/ |_) | |_) | __/ | \__ \
# |_____/ \__\___| .__/| .__/ \___|_| |___/
# | | | |
# |_| |_|
[stepper_x]
step_pin: PB13
dir_pin: !PB12
enable_pin: !PB14
microsteps: 16
rotation_distance: 40.025
endstop_pin: ^PC0
position_endstop: 0
position_max: 231
homing_speed: 50
position_endstop: 0
position_min: 0
[tmc2209 stepper_x]
uart_pin: PB15
run_current: 0.580
hold_current: 0.500
stealthchop_threshold: 250
[stepper_y]
step_pin: PB10
dir_pin: !PB2
enable_pin: !PB11
microsteps: 16
rotation_distance: 40.001
endstop_pin: ^PC1
position_endstop: -14
position_min: -14
position_max: 215
homing_speed: 50
[tmc2209 stepper_y]
uart_pin: PC6
run_current: 0.580
hold_current: 0.500
stealthchop_threshold: 250
[stepper_z]
step_pin: PB0
dir_pin: PC5
enable_pin: !PB1
endstop_pin:probe:z_virtual_endstop
position_max: 300
microsteps: 16
rotation_distance: 7.899
position_min: -10
[tmc2209 stepper_z]
uart_pin: PC10
run_current: 0.580
stealthchop_threshold: 999999
[extruder]
step_pin: PB3
dir_pin: !PB4
enable_pin: !PD2
microsteps: 16
rotation_distance: 30.755
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PC8
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA0
control = pid
pid_kp = 28.523
pid_ki = 1.828
pid_kd = 111.238
min_temp: 0
max_temp: 260
pressure_advance: 0.232050
[tmc2209 extruder]
uart_pin: PC11
run_current: 0.650
hold_current: 0.500
stealthchop_threshold: 5
# ____ _ _______ _
# | _ \| | |__ __| | |
# | |_) | | ______| | ___ _ _ ___| |__
# | _ <| | |______| |/ _ \| | | |/ __| '_ \
# | |_) | |____ | | (_) | |_| | (__| | | |
# |____/|______| |_|\___/ \__,_|\___|_| |_|
#
#
[bltouch]
sensor_pin: ^PC2 ;mine uses the Z pin for sensor
control_pin: PA1
pin_up_reports_not_triggered: False
pin_up_touch_mode_reports_triggered: False
x_offset: -43
y_offset: -10
z_offset: 2.70
pin_move_time: 1.0
probe_with_touch_mode: True ; added this for those damn blinkin errors
[bed_mesh]
speed: 125
horizontal_move_z: 6.5
probe_count: 6,6 ; 5,5
;
; X X X X X
;
; X X X X X
;
; 10 11 12 13 14
;
; 5 6 7 8 9
;
; 0 1 2 3 4
;
; X X X X X
;
; X X X X X
;
; 12 13 14 15 16
;
; 6 7 8 9 10 11
;
; 0 1 2 3 4 5
relative_reference_index = 15 ; use 12 for 5x5 points, 15 for 6x6
mesh_pps: 2,2
mesh_min: 15,15
mesh_max: 188,205
fade_start: 1.0 ; Height to start fading out the Z adjustments
fade_end: 60 ; The Z height in which fade should complete
algorithm: bicubic
bicubic_tension: 0.2 ; Default Value: 0.2, The higher the tension the more slope is interpolated
move_check_distance: 5 ; Default Value: 5, The minimum distance to check for the desired change in Z before performing a split
split_delta_z: .025 ; Default Value: .025, Minimum deviation required to trigger a move split
[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
[safe_z_home]
home_xy_position: 135,115
speed: 80.0
z_hop: 10.0
z_hop_speed: 10.0
# __ __ _ _
# | \/ | | | (_)
# | \ / | __ _ ___| |__ _ _ __ ___
# | |\/| |/ _` |/ __| '_ \| | '_ \ / _ \
# | | | | (_| | (__| | | | | | | | __/
# |_| |_|\__,_|\___|_| |_|_|_| |_|\___|
#
#
[fan]
pin: PA8
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_34FFD4054246303716562357-if00
[mcu rpi]
serial: /tmp/klipper_host_mcu
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
[static_digital_output usb_pullup_enable]
pins: !PC13
[board_pins]
aliases:
EXP1_1=PB5, EXP1_3=PA9, EXP1_5=PA10, EXP1_7=PB8, EXP1_9=<GND>,
EXP1_2=PB6, EXP1_4=<RST>, EXP1_6=PB9, EXP1_8=PB7, EXP1_10=<5V>
[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
#kill_pin: ^!EXP2_8
[output_pin beeper]
pin: EXP1_1
pwm: True
value: 0
shutdown_value: 0
cycle_time: 0.001
scale: 1
# _ _
# /\ | | | |
# / \ __| |_ ____ _ _ __ ___ ___ __| |
# / /\ \ / _` \ \ / / _` | '_ \ / __/ _ \/ _` |
# / ____ \ (_| |\ V / (_| | | | | (_| __/ (_| |
# /_/ \_\__,_| \_/ \__,_|_| |_|\___\___|\__,_|
#
#
[input_shaper]
shaper_freq_x: 60.36217304 # frequency for the X mark of the test model
shaper_freq_y: 60 # frequency for the Y mark of the test model
shaper_type: mzv ; either mzv or ei
# [adxl345]
# cs_pin: PC7
# spi_bus: spi1
# [resonance_tester]
# accel_chip: adxl345
# probe_points:
# 117, 117, 20 # an example
# __ __
# | \/ |
# | \ / | __ _ ___ _ __ ___ ___
# | |\/| |/ _` |/ __| '__/ _ \/ __|
# | | | | (_| | (__| | | (_) \__ \
# |_| |_|\__,_|\___|_| \___/|___/
#
#
[gcode_macro G29]
gcode:
BED_MESH_CALIBRATE
[gcode_macro M300]
gcode:
# {% set tones = [1000, 1500, 2000, 2500, 3000, 2500, 2000, 1500, 1000] %} ; S sets the tone frequency
{% set tones = [2200, 2330, 2470, 2610] %} ; S sets the tone frequency
{% for count in tones %}
{% set cytime = 1 / count %}
SET_PIN PIN=beeper VALUE={0.5} CYCLE_TIME={cytime} ;Play tone
G4 P250 ;tone duration
SET_PIN PIN=beeper VALUE=0
{% endfor %}
[gcode_macro CANCEL_PRINT]
description: Cancel the actual running print
gcode:
TURN_OFF_HEATERS
G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
#G1 X5 Y5 F3000 ;Wipe out
G1 Z50 ;Raise Z more
G90 ;Absolute positionning
G1 X10 Y185 ;Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
M140 S0 ;Turn-off bed
M84 X Y E ;Disable all steppers but Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment