# Copyright (C) 2025 Hardkernel Co., Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see # This file contains common pin mappings for the m1s with board_stepper # To use this config, the firmware should be compiled for the # Linux process. [mcu] serial: /tmp/klipper_host_mcu [mcu EBBCan] # based on EBB42 CAN V1.0 canbus_uuid: 1e8ea3b32c8a [printer] kinematics: cartesian max_velocity: 500 max_accel: 5000 #max_accel: 7000 #max_accel_to_decel: 3500 max_z_velocity: 25 max_z_accel: 100 [stepper_x] step_pin: gpiochip0/gpio31 dir_pin: gpiochip0/gpio30 enable_pin: !gpiochip0/gpio50 endstop_pin: gpiochip0/gpio51 homing_retract_dist: 2 microsteps: 16 rotation_distance: 40 position_endstop: 0 position_max: 200 homing_speed: 50 [stepper_y] step_pin: gpiochip0/gpio28 dir_pin: gpiochip0/gpio41 enable_pin: !gpiochip0/gpio66 endstop_pin: gpiochip0/gpio49 homing_retract_dist: 2 microsteps: 16 rotation_distance: 40 position_endstop: 0 position_max: 200 homing_speed: 50 [stepper_z] step_pin: gpiochip0/gpio55 dir_pin: !gpiochip0/gpio62 enable_pin: !gpiochip0/gpio26 microsteps: 16 rotation_distance: 8 endstop_pin: probe: z_virtual_endstop position_min: -4.0 position_max: 300 [stepper_z1] step_pin: gpiochip0/gpio54 dir_pin: !gpiochip0/gpio40 enable_pin: !gpiochip0/gpio27 microsteps: 16 rotation_distance: 8 [extruder] step_pin: EBBCan: PA9 dir_pin: EBBCan: PA8 enable_pin: !EBBCan: PA10 microsteps: 16 rotation_distance: 7.703694208 nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: EBBCan:PB1 sensor_type: EPCOS 100K B57560G104F sensor_pin: EBBCan:PA0 control: pid pid_Kp: 21.527 pid_Ki: 1.063 pid_Kd: 108.982 min_temp: 0 max_temp: 240 min_extrude_temp: 0 [heater_fan nozzle_fan] pin: EBBCan:PA2 heater: extruder heater_temp: 50.0 [heater_bed] heater_pin: gpiochip0/gpio65 sensor_type: ATC Semitec 104GT-2 sensor_pin: analog0 control: pid pid_Kp: 21.527 pid_Ki: 1.063 pid_Kd: 108.982 min_temp: 0 max_temp: 85 [z_tilt] z_positions: 260, 130# -55,-7 -30, 130# -55,320 points: 20,130 180,130 retries: 5 retry_tolerance: 0.002 [fan] pin: EBBCan:PA1 [verify_heater extruder] max_error: 200 check_gain_time: 60 heating_gain: 1 [tmc2209 stepper_x] uart_pin: gpiochip0/gpio61 tx_pin: gpiochip0/gpio60 uart_address: 1 run_current: 0.800 hold_current: 0.500 stealthchop_threshold: 250 [tmc2209 stepper_y] uart_pin: gpiochip0/gpio61 tx_pin: gpiochip0/gpio60 uart_address: 2 run_current: 0.800 hold_current: 0.500 stealthchop_threshold: 250 [tmc2209 stepper_z] uart_pin: gpiochip0/gpio61 tx_pin: gpiochip0/gpio60 uart_address: 3 run_current: 1.000 hold_current: 0.500 stealthchop_threshold: 30 [tmc2209 stepper_z1] uart_pin: gpiochip0/gpio61 tx_pin: gpiochip0/gpio60 uart_address: 0 run_current: 1.000 hold_current: 0.500 stealthchop_threshold: 30 [tmc2209 extruder] uart_pin: EBBCan:PA13 run_current: 0.800 hold_current: 0.500 stealthchop_threshold: 250 [probe] pin: !EBBCan:PA5 x_offset: -42.0 y_offset: -4.0 speed: 5.0 [bed_mesh] speed: 80 mesh_min: 0,0 mesh_max: 150,150 probe_count: 5,5 [bed_screws] screw1: 30,25 screw2: 200,25 screw3: 200,200 screw4: 30, 200 [input_shaper] shaper_freq_x: 39.4 shaper_type_x: mzv shaper_freq_y: 25.0 shaper_type_y: mzv [virtual_sdcard] path: /var/printer_data/gcodes [pause_resume] [display_status] [homing_override] set_position_z: 0 axes: z gcode: G1 Z10 F600 G28 X Y G1 X142 Y150 F3000 # (100 + 42, 150 + 4) G28 Z [gcode_macro PRINT_END] gcode: # Move Z +25 SAVE_GCODE_STATE NAME=_ui_movement G91 G1 Z+25 F1500 RESTORE_GCODE_STATE NAME=_ui_movement # Retract filament SAVE_GCODE_STATE NAME=_ui_extrude M83 G1 E-5 F300 RESTORE_GCODE_STATE NAME=_ui_extrude # Move X and Y to 0 G28 X G28 Y [gcode_macro START_PRINT] gcode: G28 [gcode_macro PAUSE] rename_existing: BASE_PAUSE gcode: SAVE_GCODE_STATE NAME=PAUSE_state BASE_PAUSE G91 G1 E-{E} F2100 G1 Z{Z} G90 G1 X{X} Y{Y} F6000 [gcode_macro RESUME] rename_existing: BASE_RESUME gcode: G91 G1 E{E} F2100 G90 RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1 BASE_RESUME [gcode_macro CANCEL_PRINT] rename_existing: BASE_CANCEL_PRINT gcode: TURN_OFF_HEATERS CLEAR_PAUSE SDCARD_RESET_FILE BASE_CANCEL_PRINT #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# #*# [probe] #*# z_offset = 0.34