# MKS Gen l V1 [include mainsail.cfg] [include macro.cfg] [include timelapse.cfg] [mcu rpi] serial: /tmp/klipper_host_mcu [adxl345] cs_pin: rpi:None [resonance_tester] accel_chip: adxl345 probe_points: 100, 100, 20 # an example [temperature_sensor raspberry_pi] sensor_type: temperature_host min_temp: 10 max_temp: 100 [stepper_x] step_pin: PF0 dir_pin: PF1 enable_pin: !PD7 microsteps: 16 rotation_distance: 40 endstop_pin: ^!PE5 #endstop_pin: ^PE4 position_endstop: 0 position_max: 235 homing_speed: 50 [stepper_y] step_pin: PF6 dir_pin: !PF7 enable_pin: !PF2 microsteps: 16 rotation_distance: 40 endstop_pin: ^!PJ1 #endstop_pin: ^PJ0 position_endstop: 0 position_max: 235 homing_speed: 50 [stepper_z] step_pin: PL3 dir_pin: PL1 enable_pin: !PK0 microsteps: 16 rotation_distance: 8 endstop_pin:probe:z_virtual_endstop position_max: 250 position_min: -3 [extruder] step_pin: PA4 dir_pin: !PA6 enable_pin: !PA2 microsteps: 16 rotation_distance: 22.146 gear_ratio: 50:17 # BMG Clone ratio per klipper docs nozzle_diameter: 0.4 filament_diameter: 1.750 heater_pin: PB4 sensor_type: ATC Semitec 104GT-2 sensor_pin: PK5 min_temp: 0 max_temp: 250 control: pid pid_Kp: 22.2 pid_Ki: 1.08 pid_Kd: 114 max_extrude_only_distance: 350 min_extrude_temp: 180 # dangerous, but bowden loading is much easier without it pressure_advance = 0.137 #[extruder1] #step_pin: PC1 #dir_pin: !PC3 #enable_pin: !PC7 #heater_pin: PH4 #sensor_pin: PK7 #... [heater_bed] heater_pin: PH5 sensor_type: ATC Semitec 104GT-2 sensor_pin: PK6 min_temp: 0 max_temp: 130 control: pid pid_Kp: 325.10 pid_Ki: 63.35 pid_Kd: 417.10 [fan] pin: PH6 [mcu] serial:/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 ######################################## # TMC UART configuration ######################################## #[tmc2209 stepper_x] #uart_pin: PK1 #interpolate: True #run_current: 0.8 #hold_current: 0.5 #sense_resistor: 0.110 #stealthchop_threshold: 999999 #diag_pin: ^PE5 # Set to MCU pin connected to TMC DIAG pin #driver_SGTHRS: 60 # 255 is most sensitive value, 0 is least sensitiv # Set to MCU pin connected to TMC DIAG pin #[tmc2209 stepper_y] #uart_pin: PK2 #interpolate: True #run_current: 0.8 #hold_current: 0.5 #sense_resistor: 0.110 #stealthchop_threshold: 999999 #diag_pin: ^PJ1 # Set to MCU pin connected to TMC DIAG pin #driver_SGTHRS: 60 # 255 is most sensitive value, 0 is least sensitiv #[tmc2209 stepper_z] #uart_pin: PK3 #interpolate: True #run_current: 0.8 #hold_current: 0.5 #sense_resistor: 0.110 #stealthchop_threshold: 999999 #diag_pin: ^PD2 # Set to MCU pin connected to TMC DIAG pin #driver_SGTHRS: 255 # 255 is most sensitive value, 0 is least sensitiv #[tmc2209 extruder] #uart_pin: PK4 #interpolate: True #run_current: 0.8 #hold_current: 0.5 #sense_resistor: 0.110 #stealthchop_threshold: 999999 #[tmc2209 stepper_e1] #uart_pin: PB6 ##interpolate: True #run_current: 0.8 #hold_current: 0.5 #sense_resistor: 0.110 #stealthchop_threshold: 0 [printer] kinematics: cartesian max_velocity: 200 max_accel: 3500 max_z_velocity: 10 max_z_accel: 500 square_corner_velocity: 10.0 ######################################## # EXP1 / EXP2 (display) pins ######################################## [board_pins] aliases: # EXP1 header EXP1_1=PC0, EXP1_3=PH0, EXP1_5=PA1, EXP1_7=PA5, EXP1_9=, EXP1_2=PC2, EXP1_4=PH1, EXP1_6=PA3, EXP1_8=PA7, EXP1_10=<5V>, # EXP2 header EXP2_1=PB3, EXP2_3=PC6, EXP2_5=PC4, EXP2_7=PL0, EXP2_9=, EXP2_2=PB1, EXP2_4=PB0, EXP2_6=PB2, EXP2_8=PG0, EXP2_10= # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp1" # See the MKS Lcd Config path file for definitions of common LCD displays. [virtual_sdcard] path: /home/pi/printer_data/gcodes [pause_resume] [display_status] [bltouch] sensor_pin : ^PD3 control_pin : PB5 x_offset: -35 y_offset: -5.5 #z_offset: 3.099 speed: 20 samples: 2 samples_result: median sample_retract_dist: 3.0 samples_tolerance: 0.1 samples_tolerance_retries: 1 [safe_z_home] home_xy_position: 117,117 # Change coordinates to the center of your print bed speed: 100 z_hop: 10 # Move up 10mm z_hop_speed: 5 [bed_mesh] speed: 50 horizontal_move_z: 10 mesh_min:20,50 mesh_max:170,200 probe_count: 5,5 #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# #*# [bltouch] #*# z_offset = 1.890 #*# #*# [input_shaper] #*# shaper_type_y = ei #*# shaper_freq_y = 47.2 #*# shaper_type_x = ei #*# shaper_freq_x = 69.8 #*# #*# [bed_mesh U30] #*# version = 1 #*# points = #*# 0.313750, 0.161250, 0.032500, -0.037500, -0.073750 #*# 0.243750, 0.058750, -0.111250, -0.163750, -0.250000 #*# 0.233750, -0.005000, -0.178750, -0.337500, -0.460000 #*# 0.252500, -0.046250, -0.267500, -0.427500, -0.542500 #*# 0.321250, 0.028750, -0.223750, -0.470000, -0.663750 #*# min_x = 20.0 #*# max_x = 170.0 #*# min_y = 50.0 #*# max_y = 200.0 #*# x_count = 5 #*# y_count = 5 #*# mesh_x_pps = 2 #*# mesh_y_pps = 2 #*# algo = lagrange #*# tension = 0.2