[include mainsail.cfg] # SWX1 BLTouch # Updated 2025-03 # This file contains pin mappings for the Artillery Sidewinder X1 # with a MKS GEN L v1.0 board. To use this config, during "make menuconfig" # activate "Enable extra low-level configuration options", in Processor model select # select atmega2560 and select 16Mhz in Processor speed. [stepper_x] step_pin: ar54 dir_pin: ar55 enable_pin: !ar38 microsteps: 16 rotation_distance: 40 endstop_pin: ^!ar3 position_endstop: 0 position_min: -3 position_max: 305 homing_speed: 40.0 second_homing_speed: 10 [stepper_y] step_pin: ar60 dir_pin: ar61 enable_pin: !ar56 microsteps: 16 rotation_distance: 40 endstop_pin: ^!ar14 position_min: -4 position_endstop: -4 position_max: 304 homing_speed: 40 homing_positive_dir: false second_homing_speed: 10 [stepper_z] step_pin: ar46 dir_pin: !ar48 enable_pin: !ar62 microsteps: 16 rotation_distance: 8 #endstop_pin: ^!ar18 endstop_pin: probe:z_virtual_endstop #position_endstop: 0.13 position_min: -3 position_max: 400 homing_speed: 30 second_homing_speed: 5 [stepper_z1] step_pin: ar36 dir_pin: !ar34 enable_pin: !ar30 microsteps: 16 rotation_distance: 8 [extruder] step_pin: ar26 dir_pin: ar28 enable_pin: !ar24 microsteps: 16 rotation_distance: 6 nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: ar10 sensor_type: EPCOS 100K B57560G104F sensor_pin: analog13 #pressure_advance: 0.06 min_extrude_temp: 0 min_temp: 0 max_temp: 250 max_extrude_only_distance: 2000 max_extrude_cross_section: 0.9 # default 0.640 control: pid pid_kp: 4 pid_ki: 0.1 pid_kd: 10 [heater_bed] heater_pin: ar8 sensor_type: EPCOS 100K B57560G104F sensor_pin: analog14 min_temp: 0 max_temp: 150 control: pid pid_Kp: 22.2 pid_Ki: 1.08 pid_Kd: 114 smooth_time: 10 [fan] pin: ar9 kick_start_time: 0.500 off_below: 0.1 [heater_fan my_nozzle_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:-36 #z_offset: 1.5 # speed:10 # samples:1 #samples_result: average set_output_mode: 5V probe_with_touch_mode: false stow_on_each_sample: false #speed: 2 #samples: 6 #sample_retract_dist: 3.0 #samples_tolerance: 0.050 #samples_tolerance_retries: 20 #pin_move_time: 1.500 [safe_z_home] home_xy_position: 122,183 speed: 300 z_hop: 10 z_hop_speed: 10 [mcu] #make sure this reflects your serial port you found when flashing klipper serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 [printer] kinematics: cartesian max_velocity: 300 max_accel: 2000 # Speed value form PrusaSlicer default preset max_z_velocity: 12 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 screw5: 150,150 screw5_name: center speed: 50 [bed_mesh] speed: 120 horizontal_move_z: 10 mesh_min: 50, 35 mesh_max: 290, 260 probe_count: 8, 8 mesh_pps: 4, 4 algorithm: bicubic bicubic_tension: 0.2 [pause_resume] recover_velocity: 50. [virtual_sdcard] path: ~/printer_data/gcodes [display_status] #[filament_switch_sensor my_sensor] #Move filament runout sensor from TFT to X+ endstop pin. Umcomment all but this line if you want to use this #pause_on_runout: False #runout_gcode: PAUSE #insert_gcode: RESUME #switch_pin: ar2 [gcode_arcs] resolution: 0.5 # [filament_switch_sensor my_filament_sensor] # pause_on_runout: True # debounce_delay: 10 # switch_pin: ar2 # 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 #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# #*# [stepper_z] #*# position_endstop = -1.420 #*# #*# [bltouch] #*# z_offset = 3.180 #*# #*# [bed_mesh 60 grados] #*# version = 1 #*# points = #*# 0.067500, 0.032500, 0.065000, 0.097500, 0.152500, 0.220000, 0.310000, 0.417500 #*# 0.005000, -0.007500, 0.010000, 0.050000, 0.097500, 0.157500, 0.230000, 0.322500 #*# -0.047500, -0.060000, -0.030000, 0.010000, 0.062500, 0.102500, 0.185000, 0.282500 #*# -0.057500, -0.065000, -0.042500, -0.017500, 0.032500, 0.087500, 0.155000, 0.252500 #*# -0.070000, -0.080000, -0.057500, -0.027500, 0.025000, 0.080000, 0.150000, 0.250000 #*# -0.067500, -0.095000, -0.072500, -0.035000, 0.015000, 0.065000, 0.127500, 0.227500 #*# 0.010000, -0.025000, -0.007500, 0.015000, 0.047500, 0.092500, 0.152500, 0.235000 #*# 0.015000, -0.062500, -0.052500, -0.027500, 0.015000, 0.080000, 0.125000, 0.210000 #*# x_count = 8 #*# y_count = 8 #*# mesh_x_pps = 4 #*# mesh_y_pps = 4 #*# algo = bicubic #*# tension = 0.2 #*# min_x = 50.0 #*# max_x = 289.96000000000004 #*# min_y = 35.0 #*# max_y = 259.97999999999996