Created
January 7, 2020 14:01
-
-
Save nickknissen/86f4aef51d2d8c15b8499320de1e63d3 to your computer and use it in GitHub Desktop.
Klipper ender 5
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
#### custom Ender 5 build | |
## | |
## - SKR V1.3 board | |
## - stock steppers on XY | |
## - 0.9 steppers on Z | |
## - TMC2208 drivers in UART mode | |
## - WhamBam Bed | |
## - BLTouch V3 | |
## - Ender5 stock display | |
## - E3D V6 Clone | |
## - BMG Clone w/pancake stepper | |
## | |
## To convert Marlin eSteps just divide by 1. | |
## example: extruder 415 steps/mm. 1/415 = 0.0024096386 mm's/step | |
## | |
######################################## | |
######################################## | |
# TMC2208 configuration | |
######################################## | |
[tmc2208 stepper_x] | |
uart_pin: P1.17 | |
microsteps: 16 | |
run_current: 0.720 | |
hold_current: 0.520 | |
stealthchop_threshold: 250 | |
[tmc2208 stepper_y] | |
uart_pin: P1.15 | |
microsteps: 16 | |
run_current: 0.720 | |
hold_current: 0.520 | |
stealthchop_threshold: 250 | |
[tmc2208 stepper_z] | |
uart_pin: P1.10 | |
microsteps: 16 | |
run_current: 0.800 | |
hold_current: 0.520 | |
stealthchop_threshold: 3 | |
[tmc2208 stepper_z1] | |
uart_pin: P1.1 | |
microsteps: 16 | |
run_current: 0.800 | |
hold_current: 0.520 | |
stealthchop_threshold: 3 | |
[tmc2208 extruder] | |
uart_pin: P1.8 | |
microsteps: 16 | |
run_current: 0.721 | |
hold_current: 0.520 | |
stealthchop_threshold: 0 | |
######################################## | |
# Stepper configuration | |
######################################## | |
[stepper_x] | |
step_pin: P2.2 | |
dir_pin: !P2.6 | |
enable_pin: !P2.1 | |
step_distance: .0125 | |
endstop_pin: P1.28 # P1.28 for X-max | |
position_endstop: 220 | |
position_max: 220 | |
homing_speed: 100 | |
homing_positive_dir: True | |
[stepper_y] | |
step_pin: P0.19 | |
dir_pin: !P0.20 | |
enable_pin: !P2.8 | |
step_distance: .0125 | |
endstop_pin: P1.26 # P1.26 for Y-max | |
position_endstop: 220 | |
position_max: 220 | |
homing_speed: 100 | |
homing_positive_dir: True | |
[stepper_z] | |
step_pin: P0.22 | |
dir_pin: P2.11 | |
enable_pin: !P0.21 | |
step_distance: 0.0003125 | |
endstop_pin: probe:z_virtual_endstop | |
position_max: 300 | |
position_min: -10 | |
homing_speed: 75 | |
[stepper_z1] | |
step_pin: P0.1 | |
dir_pin: P0.0 | |
enable_pin: !P0.10 | |
step_distance: 0.0003125 | |
[extruder] | |
step_pin: P2.13 | |
dir_pin: !P0.11 | |
enable_pin: !P2.12 | |
step_distance: 0.0024096386 | |
nozzle_diameter: 0.400 | |
filament_diameter: 1.750 | |
pressure_advance: 0.145 | |
heater_pin: P2.7 | |
sensor_type: ATC Semitec 104GT-2 | |
sensor_pin: P0.24 | |
#control: pid | |
#pid_Kp: 23.65 | |
#pid_Ki: 2.13 | |
#pid_Kd: 65.51 | |
min_temp: 0 | |
max_temp: 300 | |
max_extrude_only_distance: 150 | |
max_extrude_cross_section: 8.0 | |
min_extrude_temp: 180 | |
######################################## | |
# Hot End/Bed | |
######################################## | |
[heater_bed] | |
heater_pin: P2.5 | |
sensor_type: NTC 100K beta 3950 | |
sensor_pin: P0.23 | |
#control: pid | |
#pid_Kp: 34.84 | |
#pid_Ki: 6.32 | |
#pid_Kd: 128.10 | |
min_temp: 0 | |
max_temp: 130 | |
# Hot end fan and control box fan off of buck converter. Turn on when temp hits 50c | |
[heater_fan hotend_fan] | |
pin: P2.4 | |
heater: extruder | |
heater_temp: 50.0 | |
fan_speed: 1.0 | |
# This is the part cooling fan that plugs right in to the fan output marked 'FAN' | |
[fan] | |
pin: P2.3 | |
######################################## | |
# MCU configuration | |
######################################## | |
[mcu] | |
serial: /dev/serial/by-id/usb-Klipper_lpc1768_17100107C5901EAF95A9AB5AC62000F5-if00 | |
[printer] | |
kinematics: cartesian | |
max_velocity: 300 | |
max_accel: 3000 | |
max_z_velocity: 10 | |
max_z_accel: 100 | |
[virtual_sdcard] | |
path: /home/pi/sdcard | |
[web_dwc2] | |
## optional - defaulting to Klipper | |
printer_name: Ender5 | |
# optional - defaulting to 0.0.0.0 | |
listen_adress: 0.0.0.0 | |
# needed - use above 1024 as nonroot | |
listen_port: 4750 | |
# optional defaulting to dwc2/web. Its a folder relative to your virtual sdcard. | |
web_path: dwc2/web | |
############################################### | |
## Probing/Mesh | |
############################################### | |
[bltouch] | |
sensor_pin: P1.25 # Pull-up (^ symbol) needed in open drain mode | |
control_pin: P2.0 | |
pin_move_time: 0.7 # set high to reduce pin up bug | |
pin_up_reports_not_triggered: True | |
pin_up_touch_mode_reports_triggered: True | |
x_offset: -40 | |
y_offset: -2 | |
#z_offset: 0 | |
speed: 20 | |
samples: 1 | |
sample_retract_dist: 5 | |
[safe_z_home] | |
home_xy_position: 150,122 | |
# A X,Y coordinate (e.g. 100,100) where the Z homing should be | |
# performed. This parameter must be provided. | |
speed: 200 | |
z_hop: 10.0 | |
z_hop_speed: 20 | |
move_to_previous: False | |
# This adds a bed mesh calibrate GCode | |
[bed_mesh] | |
speed: 200 | |
horizontal_move_z: 5 | |
min_point: 45,40 | |
max_point: 220,205 | |
probe_count: 3,3 | |
algorithm: lagrange | |
[filament_switch_sensor filament_runout] | |
pause_on_runout: True | |
switch_pin: P1.29 | |
[pause_resume] | |
recover_velocity: 50 | |
# This adds the 'respond' G-Code that you can use to send commands back to OctoPrint | |
[respond] | |
default_type: echo | |
[force_move] | |
enable_force_move: True | |
######################################## | |
# EXP1 / EXP2 (display) pins | |
######################################## | |
[board_pins] | |
aliases: | |
# EXP1 header | |
EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>, | |
EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>, | |
# EXP2 header | |
EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>, | |
EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC> | |
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0" | |
[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 | |
menu_timeout: 90 | |
######################################## | |
# MENU Modifications | |
######################################## | |
[include ./my_menu.cfg] | |
###################################################################### | |
# Beeper | |
###################################################################### | |
# M300 : Play tone. Beeper support, as commonly found on usual LCD | |
# displays (i.e. RepRapDiscount 2004 Smart Controller, RepRapDiscount | |
# 12864 Full Graphic). This defines a custom I/O pin and a custom | |
# GCODE macro. Usage: | |
# M300 [P<ms>] [S<Hz>] | |
# P is the tone duration, S the tone frequency. | |
# The frequency won't be pitch perfect. | |
[output_pin BEEPER_pin] | |
pin: EXP1_1 | |
# Beeper pin. This parameter must be provided. | |
# ar37 is the default RAMPS/MKS pin. | |
pwm: True | |
# A piezo beeper needs a PWM signal, a DC buzzer doesn't. | |
value: 0 | |
# Silent at power on, set to 1 if active low. | |
shutdown_value: 0 | |
# Disable at emergency shutdown (no PWM would be available anyway). | |
cycle_time: 0.001 | |
# PWM frequency : 0.001 = 1ms will give a base tone of 1kHz | |
scale: 1000 | |
# PWM parameter will be in the range of (0-1000 Hz). | |
# Although not pitch perfect. | |
###################################################################### | |
# G-Code macros and events | |
###################################################################### | |
[gcode_macro G29] | |
gcode: | |
G28 | |
BED_MESH_CALIBRATE | |
[gcode_macro M300] | |
default_parameter_S: 1000 | |
# Use a default 1kHz tone if S is omitted. | |
default_parameter_P: 100 | |
# Use a 10ms duration is P is omitted. | |
gcode: | |
SET_PIN PIN=BEEPER_pin VALUE={S} | |
G4 P{P} | |
SET_PIN PIN=BEEPER_pin VALUE=0 | |
# M600: Filament Change. This macro will pause the printer, move the | |
# tool to the change position, and retract the filament 50mm. Adjust | |
# the retraction settings for your own extruder. After filament has | |
# been changed, the print can be resumed from its previous position | |
# with the "RESUME" gcode. | |
[pause_resume] | |
[gcode_macro M600] | |
default_parameter_X: 50 | |
default_parameter_Y: 210 | |
default_parameter_Z: 10 | |
gcode: | |
SAVE_GCODE_STATE NAME=M600_state | |
PAUSE | |
G91 | |
G1 E-.8 F2700 | |
G1 Z{Z} | |
G90 | |
G1 X{X} Y{Y} F3000 | |
G91 | |
G1 E-50 F1000 | |
RESTORE_GCODE_STATE NAME=M600_state | |
#*# <---------------------- SAVE_CONFIG ----------------------> | |
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. | |
#*# | |
#*# [bltouch] | |
#*# z_offset = 1.825 | |
#*# | |
#*# [extruder] | |
#*# control = pid | |
#*# pid_kp = 30.929 | |
#*# pid_ki = 1.778 | |
#*# pid_kd = 134.541 | |
#*# | |
#*# [bed_mesh default] | |
#*# points = | |
#*# 0.021250, 0.065625, 0.033125 | |
#*# -0.076875, 0.003750, -0.011250 | |
#*# -0.041875, 0.016250, -0.039063 | |
#*# x_count = 3 | |
#*# y_count = 3 | |
#*# min_x = 45.0 | |
#*# max_x = 220.0 | |
#*# min_y = 40.0 | |
#*# max_y = 205.0 | |
#*# x_offset = -40.0 | |
#*# y_offset = -2.0 | |
#*# mesh_x_pps = 2 | |
#*# mesh_y_pps = 2 | |
#*# algo = lagrange | |
#*# tension = 0.2 | |
#*# | |
#*# [heater_bed] | |
#*# control = pid | |
#*# pid_kp = 49.124 | |
#*# pid_ki = 2.426 | |
#*# pid_kd = 248.691 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment