Last active
September 3, 2023 13:37
-
-
Save Gerqus/8128661ebd283eb9a2e22367c22254f1 to your computer and use it in GitHub Desktop.
Klipper setup Sidewinder X1 + BL touch to Z-max pin + volcano hotend
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
# MKS Gen l V1 | |
# Artillery Sidewinder X1 | |
# Bl-touch (Z-max pin, servo 1) | |
# Volcano hotend | |
[stepper_x] | |
step_pin: ar54 | |
dir_pin: ar55 | |
enable_pin: !ar38 | |
microsteps: 16 | |
rotation_distance: 40 | |
endstop_pin: ^!ar3 | |
position_endstop: 0 | |
position_max: 310 | |
homing_speed: 40.0 | |
second_homing_speed: 20 | |
homing_positive_dir: false | |
[stepper_y] | |
step_pin: ar60 | |
dir_pin: ar61 | |
enable_pin: !ar56 | |
microsteps: 16 | |
rotation_distance: 40 | |
endstop_pin: ^!ar14 | |
position_endstop: 0 | |
position_max: 310 | |
homing_speed: 40 | |
second_homing_speed: 20 | |
homing_positive_dir: false | |
[stepper_z] | |
step_pin: ar46 | |
dir_pin: !ar48 | |
enable_pin: !ar62 | |
microsteps: 16 | |
rotation_distance: 8 | |
# endstop_pin: ^!ar18 | |
# position_endstop: 0 | |
endstop_pin:probe:z_virtual_endstop | |
position_max: 400 | |
position_min: -3 | |
homing_speed: 30 | |
second_homing_speed: 1 | |
[stepper_z1] | |
step_pin: ar36 | |
dir_pin: !ar34 | |
enable_pin: !ar30 | |
microsteps: 16 | |
rotation_distance: 8 | |
[z_tilt] | |
z_positions: -25, 150 | |
325, 150 | |
points: 40, 150 | |
260, 150 | |
retries: 20 | |
retry_tolerance: 0.01 | |
[extruder] | |
step_pin: ar26 | |
dir_pin: ar28 | |
enable_pin: !ar24 | |
microsteps: 16 | |
rotation_distance: 7 | |
nozzle_diameter: 0.400 | |
filament_diameter: 1.750 | |
heater_pin: ar10 | |
sensor_type: ATC Semitec 104GT-2 | |
sensor_pin: analog13 | |
min_temp: 5 | |
max_temp: 280 | |
control: pid | |
pid_Kp: 35.91 | |
pid_Ki: 3.85 | |
pid_Kd: 83.85 | |
smooth_time: 3 | |
max_extrude_only_distance: 500 | |
max_extrude_cross_section: 2.0 | |
rotation_distance: 400 | |
[heater_bed] | |
heater_pin: ar8 | |
sensor_type: EPCOS 100K B57560G104F | |
sensor_pin: analog14 | |
min_temp: 5 | |
max_temp: 150 | |
control: pid | |
pid_Kp: 55.71 | |
pid_Ki: 5.76 | |
pid_Kd: 359.00 | |
smooth_time: 10 | |
[fan] | |
pin: ar9 | |
kick_start_time: 0.500 | |
[heater_fan heatbreak_cooling_fan] | |
pin:ar7 | |
heater: extruder | |
heater_temp: 50.0 | |
fan_speed: 1.0 | |
[bltouch] | |
sensor_pin: ar19 | |
control_pin: ar11 | |
x_offset: 30 | |
y_offset: -32 | |
#z_offset: 0 | |
pin_move_time: 0.200 | |
speed: 5 | |
samples: 3 | |
[safe_z_home] | |
home_xy_position: 150, 150 | |
speed: 50 | |
z_hop: 10 | |
z_hop_speed: 5 | |
[bed_mesh] | |
speed: 120 | |
horizontal_move_z: 5 | |
mesh_min: 35, 35 | |
mesh_max: 290, 290 | |
probe_count: 11, 11 | |
algorithm: bicubic | |
[mcu] | |
serial:/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 | |
[printer] | |
kinematics: cartesian | |
max_velocity: 200 | |
max_accel: 3000 | |
max_z_velocity: 50 | |
max_z_accel: 100 | |
square_corner_velocity: 5 | |
[bed_screws] | |
screw1: 55,55 | |
screw1_name: front left | |
screw2: 255,55 | |
screw2_name: front right | |
screw3: 255,255 | |
screw3_name: back right | |
screw4: 55,255 | |
screw4_name: back left | |
speed: 100.0 | |
[screws_tilt_adjust] | |
screw1: 22,83 | |
screw1_name: front left | |
screw2: 222,83 | |
screw2_name: front right | |
screw3: 22,283 | |
screw3_name: back left | |
screw4: 222,283 | |
screw4_name: back right | |
speed: 100.0 | |
screw_thread: CW-M5 | |
[virtual_sdcard] | |
path: ~/gcode_files | |
[gcode_macro CANCEL_PRINT] | |
description: Cancel the actual running print | |
rename_existing: CANCEL_PRINT_BASE | |
gcode: | |
TURN_OFF_HEATERS | |
CANCEL_PRINT_BASE | |
[gcode_macro G29] | |
gcode: | |
BED_MESH_CLEAR | |
G28 | |
BED_MESH_CALIBRATE | |
BED_MESH_PROFILE SAVE=name | |
SAVE_CONFIG | |
BED_MESH_PROFILE LOAD=name | |
[gcode_macro MOTOR_OFF] | |
gcode: | |
M84 | |
[pause_resume] | |
recover_velocity: 50. | |
[gcode_macro PAUSE] | |
description: Pause the actual running print | |
rename_existing: PAUSE_BASE | |
gcode: | |
##### set defaults ##### | |
{% set x = params.X|default(230) %} #edit to your park position | |
{% set y = params.Y|default(230) %} #edit to your park position | |
{% set z = params.Z|default(10)|float %} #edit to your park position | |
{% set e = params.E|default(1) %} #edit to your retract length | |
##### calculate save lift position ##### | |
{% set max_z = printer.toolhead.axis_maximum.z|float %} | |
{% set act_z = printer.toolhead.position.z|float %} | |
{% set lift_z = z|abs %} | |
{% if act_z < (max_z - lift_z) %} | |
{% set z_safe = lift_z %} | |
{% else %} | |
{% set z_safe = max_z - act_z %} | |
{% endif %} | |
##### end of definitions ##### | |
PAUSE_BASE | |
G91 | |
{% if printer.extruder.can_extrude|lower == 'true' %} | |
G1 E-{e} F2100 | |
{% else %} | |
{action_respond_info("Extruder not hot enough")} | |
{% endif %} | |
{% if "xyz" in printer.toolhead.homed_axes %} | |
G1 Z{z_safe} | |
G90 | |
G1 X{x} Y{y} F6000 | |
{% else %} | |
{action_respond_info("Printer not homed")} | |
{% endif %} | |
[gcode_macro RESUME] | |
description: Resume the actual running print | |
rename_existing: RESUME_BASE | |
gcode: | |
##### set defaults ##### | |
{% set e = params.E|default(1) %} #edit to your retract length | |
#### get VELOCITY parameter if specified #### | |
{% if 'VELOCITY' in params|upper %} | |
{% set get_params = ('VELOCITY=' + params.VELOCITY) %} | |
{%else %} | |
{% set get_params = "" %} | |
{% endif %} | |
##### end of definitions ##### | |
G91 | |
{% if printer.extruder.can_extrude|lower == 'true' %} | |
G1 E{e} F2100 | |
{% else %} | |
{action_respond_info("Extruder not hot enough")} | |
{% endif %} | |
RESUME_BASE {get_params} | |
[gcode_macro CANCEL_PRINT] | |
description: Cancel the actual running print | |
rename_existing: CANCEL_PRINT_BASE | |
gcode: | |
TURN_OFF_HEATERS | |
CANCEL_PRINT_BASE | |
# Arduino aliases for atmega2560/1280 (Arduino mega) boards | |
[board_pins arduino-mega] | |
aliases: | |
ar0=PE0, ar1=PE1, ar2=PE4, ar3=PE5, ar4=PG5, | |
ar5=PE3, ar6=PH3, ar7=PH4, ar8=PH5, ar9=PH6, | |
ar10=PB4, ar11=PB5, ar12=PB6, ar13=PB7, ar14=PJ1, | |
ar15=PJ0, ar16=PH1, ar17=PH0, ar18=PD3, ar19=PD2, | |
ar20=PD1, ar21=PD0, ar22=PA0, ar23=PA1, ar24=PA2, | |
ar25=PA3, ar26=PA4, ar27=PA5, ar28=PA6, ar29=PA7, | |
ar30=PC7, ar31=PC6, ar32=PC5, ar33=PC4, ar34=PC3, | |
ar35=PC2, ar36=PC1, ar37=PC0, ar38=PD7, ar39=PG2, | |
ar40=PG1, ar41=PG0, ar42=PL7, ar43=PL6, ar44=PL5, | |
ar45=PL4, ar46=PL3, ar47=PL2, ar48=PL1, ar49=PL0, | |
ar50=PB3, ar51=PB2, ar52=PB1, ar53=PB0, ar54=PF0, | |
ar55=PF1, ar56=PF2, ar57=PF3, ar58=PF4, ar59=PF5, | |
ar60=PF6, ar61=PF7, ar62=PK0, ar63=PK1, ar64=PK2, | |
ar65=PK3, ar66=PK4, ar67=PK5, ar68=PK6, ar69=PK7, | |
analog0=PF0, analog1=PF1, analog2=PF2, analog3=PF3, analog4=PF4, | |
analog5=PF5, analog6=PF6, analog7=PF7, analog8=PK0, analog9=PK1, | |
analog10=PK2, analog11=PK3, analog12=PK4, analog13=PK5, analog14=PK6, | |
analog15=PK7, | |
# Marlin adds these additional aliases | |
ml70=PG4, ml71=PG3, ml72=PJ2, ml73=PJ3, ml74=PJ7, | |
ml75=PJ4, ml76=PJ5, ml77=PJ6, ml78=PE2, ml79=PE6, | |
ml80=PE7, ml81=PD4, ml82=PD5, ml83=PD6, ml84=PH2, | |
ml85=PH7 | |
[include mainsail.cfg] | |
#*# <---------------------- SAVE_CONFIG ----------------------> | |
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. | |
#*# | |
#*# [bltouch] | |
#*# z_offset = 2.702 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment