[stepper_x] step_pin: P2.2 dir_pin: !P2.6 enable_pin: !P2.1 microsteps: 16 rotation_distance: 40 #endstop_pin: P1.29 # P1.28 for X-max endstop_pin: tmc2130_stepper_x:virtual_endstop position_endstop: 0 position_max: 200 homing_speed: 20 homing_retract_dist: 0 [stepper_y] step_pin: P0.19 dir_pin: !P0.20 enable_pin: !P2.8 microsteps: 16 rotation_distance: 40 #endstop_pin: P1.27 # P1.26 for Y-max endstop_pin: tmc2130_stepper_y:virtual_endstop position_endstop: 0 position_max: 200 homing_speed: 20 homing_retract_dist: 0 homing_positive_dir: false [stepper_z] step_pin: P0.22 dir_pin: P2.11 enable_pin: !P0.21 microsteps: 16 rotation_distance: 8 #endstop_pin: P1.25 # P1.24 for Z-max endstop_pin: probe:z_virtual_endstop position_min: 0 position_max: 180 [stepper_z1] step_pin: P0.1 dir_pin: P0.0 enable_pin: !P0.10 microsteps: 16 rotation_distance: 8 [extruder] step_pin: P2.13 dir_pin: !P0.11 enable_pin: !P2.12 microsteps: 16 rotation_distance: 29.888 nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: P2.7 sensor_type: Generic 3950 sensor_pin: P0.24 #control: pid #pid_Kp: 22.2 #pid_Ki: 1.08 #pid_Kd: 114 min_temp: 0 max_temp: 280 [heater_bed] heater_pin: P2.5 sensor_type: Generic 3950 sensor_pin: P0.23 #control: pid #pid_Kp: 148.74 #pid_Ki: 29.72 #pid_Kd: 496.3 min_temp: 0 max_temp: 80 [fan] pin: P2.3 max_power: 0.60 [mcu] serial: /dev/serial/by-id/usb-Klipper_lpc1768_0A30000407083DAF4C46665CC22000F5-if00 [printer] kinematics: cartesian max_velocity: 200 max_accel: 1500 max_z_velocity: 4 max_z_accel: 100 [safe_z_home] home_xy_position: 125, 125 speed: 30 z_hop: 5 ######################################## # TMC2130 configuration ######################################## # For TMC SPI # 1) Place jumpers on all the red pin headers under the stepper drivers # 2) Remove jumpers from the red pin headers labeled XUART (XUART, YUART etc.) [tmc2130 stepper_x] cs_pin: P1.17 spi_software_miso_pin: P0.5 spi_software_mosi_pin: P4.28 spi_software_sclk_pin: P0.4 diag1_pin: !P1.29 run_current: 0.800 stealthchop_threshold: 0 driver_SGT: 25 # -64 is most sensitive value, 63 is least sensitive [tmc2130 stepper_y] cs_pin: P1.15 spi_software_miso_pin: P0.5 spi_software_mosi_pin: P4.28 spi_software_sclk_pin: P0.4 diag1_pin: !P1.27 run_current: 0.800 stealthchop_threshold: 0 driver_SGT: 22 # -64 is most sensitive value, 63 is least sensitive [tmc2130 stepper_z] cs_pin: P1.10 spi_software_miso_pin: P0.5 spi_software_mosi_pin: P4.28 spi_software_sclk_pin: P0.4 #diag1_pin: P1.25 run_current: 0.650 stealthchop_threshold: 999999 [tmc2130 stepper_z1] cs_pin: P1.1 spi_software_miso_pin: P0.5 spi_software_mosi_pin: P4.28 spi_software_sclk_pin: P0.4 #diag1_pin: P1.25 run_current: 0.650 stealthchop_threshold: 999999 [tmc2130 extruder] cs_pin: P1.8 spi_software_miso_pin: P0.5 spi_software_mosi_pin: P4.28 spi_software_sclk_pin: P0.4 #diag1_pin: P1.28 run_current: 0.800 stealthchop_threshold: 0 ######################################## # 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=, 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=, EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=, EXP2_10= # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0" # See the sample-lcd.cfg file for definitions of common LCD displays. ###################################################################### # "RepRapDiscount 128x64 Full Graphic Smart Controller" type displays ###################################################################### [display] lcd_type: st7920 cs_pin: EXP1_4 sclk_pin: EXP1_5 sid_pin: EXP1_3 encoder_pins: ^EXP2_3, ^EXP2_5 click_pin: ^!EXP1_2 #kill_pin: ^!EXP2_8 [output_pin beeper] pin: EXP1_1 [bltouch] sensor_pin: ^P1.25 # Pull-up (^ symbol) needed in open drain mode control_pin: P2.0 # Some BLTouch V3 and many clones apparently require this, though mine didnt: #pin_up_touch_mode_reports_triggered: False x_offset: -33.0 y_offset: -37.0 z_offset: 1.5 speed: 3.0 samples: 2 [force_move] enable_force_move: True [verify_heater extruder] max_error: 150 [include mainsail.cfg] #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# #*# [extruder] #*# control = pid #*# pid_kp = 28.258 #*# pid_ki = 1.095 #*# pid_kd = 182.267 #*# #*# [heater_bed] #*# control = pid #*# pid_kp = 74.602 #*# pid_ki = 1.559 #*# pid_kd = 892.424