Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####################################################################
- # _ __ __ _ _ _
- # | |/ /___ _ __ / _(_) __ _ _ _ _ __ __ _| |_(_)
- # | ' // _ \| '_ \| |_| |/ _` | | | | '__/ _` | __| |/ _ \| '_ \
- # | . \ (_) | | | | _| | (_| | |_| | | | (_| | |_| | (_) | | | |
- # |_|\_\___/|_| |_|_| |_|\__, |\__,_|_| \__,_|\__|_|\___/|_| |_|
- # |___/
- # ___ _ _ _ __ __ ____ _ _____
- # / _ \(_) __| (_) \ \/ / | _ \| |_ _ ___ |___ /
- # | | | | |/ _` | | \ /_____| |_) | | | | / __| |_ \
- # | |_| | | (_| | | / \_____| __/| | |_| \__ \ ___) |
- # \__\_\_|\__,_|_| /_/\_\ |_| |_|\__,_|___/ |____/
- #
- ####################################################################
- #[include mainsail.cfg]
- [include macros/client.cfg]
- [include macros/sensorless_homing_override.cfg]
- [include macros/macros.cfg]
- #[include K-ShakeTune/*.cfg]
- #[include macros/dryer.cfg]
- [include macros/timelapse.cfg]
- #[include macros/clean_backups.cfg]
- #[include macros/klipperscreen_shutdown.cfg]
- [include macros/adaptive_mesh.cfg]
- [include macros/custom.cfg]
- #################################################
- # Prevent error checks
- #################################################
- [duplicate_pin_override]
- pins: PA1,PC9
- # A comma-separated list of pins that can be used multiple times in
- # of a configuration file without normal error checks. This parameter must be
- # be specified.
- #################################################
- # Printer / MCU Settings
- #################################################
- [mcu]
- serial: /dev/ttyS0
- restart_method: command
- [mcu MKS_THR]
- serial:/dev/serial/by-id/usb-Klipper_rp2040_D59D8B163A765058-if00
- [printer]
- kinematics:corexy
- max_velocity: 600
- max_accel: 20000
- minimum_cruise_ratio: 0.5
- max_z_velocity: 5
- max_z_accel: 500
- square_corner_velocity: 5
- #################################################
- # Extruder
- #################################################
- [extruder]
- step_pin: MKS_THR:gpio5
- dir_pin: MKS_THR:gpio4
- enable_pin: !MKS_THR:gpio10
- rotation_distance: 53.102
- gear_ratio: 1628:170
- microsteps: 16
- full_steps_per_rotation: 200 #200 for 1.8 Grad, 400 for 0.9 Grad
- nozzle_diameter: 0.400
- filament_diameter: 1.75
- min_temp: 0
- max_temp: 360
- min_extrude_temp: 170
- smooth_time: 0.000001
- heater_pin: MKS_THR:gpio0
- sensor_type: MAX6675
- sensor_pin: MKS_THR:gpio17
- spi_speed: 100000
- spi_software_sclk_pin: MKS_THR:gpio18
- spi_software_mosi_pin: MKS_THR:gpio19
- spi_software_miso_pin: MKS_THR:gpio16
- max_power: 1.0
- control: pid
- pid_Kp: 14.734
- pid_Ki: 6.549
- pid_Kd: 8.288
- pressure_advance: 0.032
- pressure_advance_smooth_time: 0.03
- max_extrude_cross_section: 500
- instantaneous_corner_velocity: 10.000
- max_extrude_only_distance: 120.0
- max_extrude_only_velocity: 5000
- max_extrude_only_accel: 2000
- step_pulse_duration: 0.000002
- [tmc2209 extruder]
- uart_pin: MKS_THR: gpio6
- interpolate: True
- run_current: 0.714
- stealthchop_threshold: 0
- [verify_heater extruder]
- max_error: 120
- check_gain_time: 20
- hysteresis: 5
- heating_gain: 1
- #################################################
- # X, Y, Z stepper motors / Driver settings
- #################################################
- [stepper_x]
- step_pin: PB4
- dir_pin: PB3
- enable_pin: !PB5
- microsteps: 16
- rotation_distance: 39.96
- full_steps_per_rotation: 200
- endstop_pin: tmc2209_stepper_x:virtual_endstop
- position_min: -11
- position_endstop: -11
- position_max: 280
- homing_speed: 40
- homing_retract_dist: 0
- homing_positive_dir: False
- step_pulse_duration: 0.000002
- [tmc2209 stepper_x]
- uart_pin: PD2
- run_current: 1.07
- interpolate: True
- stealthchop_threshold: 0
- diag_pin: ^PB8
- driver_SGTHRS: 85
- #################################################
- [stepper_y]
- step_pin: PC14
- dir_pin: PC13
- enable_pin: !PC15
- microsteps: 16
- rotation_distance: 39.96
- full_steps_per_rotation: 200
- endstop_pin: tmc2209_stepper_y:virtual_endstop
- position_min: -24
- position_endstop: -24
- position_max: 280
- homing_speed: 40
- homing_retract_dist: 0
- homing_positive_dir: False
- step_pulse_duration: 0.000002
- [tmc2209 stepper_y]
- uart_pin: PB9
- run_current: 1.07
- interpolate: True
- stealthchop_threshold: 0
- diag_pin: ^PC0
- driver_SGTHRS: 97
- #################################################
- [stepper_z]
- step_pin: PC10
- dir_pin: PA15
- enable_pin: !PC11
- microsteps: 16
- rotation_distance: 8
- full_steps_per_rotation: 200
- endstop_pin: probe:z_virtual_endstop
- position_max: 280
- position_min: -6
- homing_speed: 8
- homing_retract_dist: 8.0
- second_homing_speed: 8
- homing_positive_dir: false
- step_pulse_duration: 0.000002
- [tmc2209 stepper_z]
- uart_pin: PC5
- run_current: 0.285
- interpolate: True
- stealthchop_threshold: 1200
- #################################################
- # Heated bed
- #################################################
- [heater_bed]
- heater_pin: PC8
- sensor_type: NTC 100K MGB18-104F39050L32
- sensor_pin: PA0
- max_power: 1.0
- control: pid
- pid_Kp: 71.039
- pid_Ki: 2.223
- pid_Kd: 567.421
- min_temp: -100
- max_temp: 125
- [verify_heater heater_bed]
- max_error: 200
- check_gain_time: 60
- hysteresis: 3
- heating_gain: 1
- #################################################
- # Temperature sensors
- #################################################
- [temperature_sensor Mainboard]
- sensor_type: temperature_host
- min_temp: 5
- max_temp: 80
- [temperature_sensor MCU]
- sensor_type: temperature_mcu
- [temperature_sensor Toolhead]
- sensor_type: temperature_mcu
- sensor_mcu: MKS_THR
- min_temp: 0
- max_temp: 80
- #################################################
- # Heated chamber
- #################################################
- [heater_generic chamber]
- heater_pin: PB10
- max_power: 1.0
- sensor_type: NTC 100K MGB18-104F39050L32
- sensor_pin: PA1
- control: watermark
- max_delta: 1.0
- #pid_Kp: 63.418
- #pid_Ki: 1.342
- #pid_Kd: 749.125
- min_temp: -100
- max_temp: 65
- [verify_heater chamber]
- max_error: 300
- check_gain_time: 480
- hysteresis: 5
- heating_gain: 1
- #################################################
- # Fans
- #################################################
- ## Auxiliary fan
- [fan_generic auxiliary_cooling_fan]
- pin: PA8
- shutdown_speed: 0.0
- cycle_time: 0.100
- hardware_pwm: false
- kick_start_time: 0.100
- off_below: 0.0
- ## Chamber Exhaust
- [fan_generic chamber_exhaust_fan]
- pin:PC9
- shutdown_speed: 0.0
- cycle_time: 0.100
- hardware_pwm: false
- kick_start_time: 0.100
- off_below: 0.0
- [temperature_fan chamber]
- pin: PC9
- max_power: 1
- hardware_pwm: false
- off_below:.1
- sensor_type: NTC 100K MGB18-104F39050L32
- sensor_pin: PA1
- control: pid
- pid_Kp: 60
- pid_Ki: 1
- pid_Kd: 900
- pid_deriv_time: 120
- min_temp: 0
- max_temp: 90
- target_temp: 50.0
- max_speed: 1
- min_speed: 0.0
- gcode_id: chamber
- ## Hotend Fan
- [heater_fan hotend_fan]
- pin: MKS_THR:gpio1
- max_power: 1.0
- kick_start_time: 0.5
- heater: extruder
- heater_temp: 50.0
- fan_speed: 1.0
- off_below: 0
- ## Hotend Fan 2
- [heater_fan hotend_fan_2]
- pin: MKS_THR:gpio20
- max_power: 1.0
- kick_start_time: 0.5
- heater: extruder
- heater_temp: 50.0
- fan_speed: 1.0
- off_below: 0
- ## Mainboard fan
- [heater_fan mainboard_fan]
- pin: PC4
- max_power: 1.0
- kick_start_time: 0.5
- heater: extruder
- heater_temp: 50.0
- fan_speed: 1.0
- off_below: 0
- ## Part Cooling
- [fan_generic part_cooling_fan]
- pin: MKS_THR:gpio2
- shutdown_speed: 0.0
- cycle_time: 0.100
- hardware_pwm: false
- kick_start_time: 0.100
- off_below: 0.0
- #################################################
- # LEDs / Beep
- #################################################
- [output_pin caselight]
- pin: PC7
- pwm: false
- shutdown_value: 0
- value: 1
- [output_pin beeper]
- pin: PA2
- pwm: false
- shutdown_value: 0
- value: 0
- [output_pin sound]
- pin: PA13
- value: 1
- #################################################
- # Power outage shutdown
- #################################################
- [output_pin pwc]
- pin: PA3
- pwm: False
- value: 1
- shutdown_value: 1
- #################################################
- # Filament sensor
- #################################################
- [filament_switch_sensor fila]
- pause_on_runout: True
- runout_gcode:
- PAUSE
- SET_FILAMENT_SENSOR SENSOR=fila ENABLE=1
- event_delay: 3.0
- pause_delay: 0.5
- switch_pin: !PC1
- #################################################
- # Bed mesh / Leveling tools
- #################################################
- [bed_mesh]
- speed: 150 #Speed
- horizontal_move_z: 10 #Height Z-Axis
- mesh_min: 18,20 #Minimum position of the detection points
- mesh_max: 260,260 #Maximum position of the detection points
- probe_count: 8,8 #Number of measuring points - 6x6 - 7x7 etc.
- algorithm: bicubic
- bicubic_tension: 0.2
- mesh_pps: 5, 5
- [probe]
- pin: ^!MKS_THR:gpio21
- x_offset: 27.8
- y_offset: 6.75
- #z_offset: 0.0
- speed: 5
- samples: 2
- samples_result: average
- sample_retract_dist: 3.0
- samples_tolerance: 0.08
- samples_tolerance_retries:3
- [screws_tilt_adjust]
- screw1: 23, 43
- screw1_name: Front left screw
- screw2: 203, 43
- screw2_name: Front right screw
- screw3: 203, 223
- screw3_name: Rear right screw
- screw4: 223, 223
- screw4_name: Rear left screw
- horizontal_move_z: 8
- speed: 300
- screw_thread: CCW-M4
- #################################################
- # Shake and Tune
- #################################################
- [shaketune]
- result_folder: ~/printer_data/config/ShakeTune_results #The folder where the results will be stored. It will be created if it doesn't exist.
- number_of_results_to_keep: 3 #The number of results to keep in the result_folder. The oldest results will be automatically deleted after each runs.
- keep_raw_data: False #If True, the raw CSV files will be kept in the result_folder alongside the PNG graphs. If False, they will be deleted and only the graphs will be kept.
- show_macros_in_webui: True #Mainsail and Fluidd doesn't create buttons for "system" macros that are not in the printer.cfg file. If you want to see the macros in the webui, set this to True.
- timeout: 300 #The maximum time in seconds to let Shake&Tune process the CSV files and generate the graphs.
- #################################################
- # Input shaping
- #################################################
- [adxl345]
- cs_pin: MKS_THR:gpio13
- spi_software_sclk_pin: MKS_THR:gpio14
- spi_software_mosi_pin: MKS_THR:gpio15
- spi_software_miso_pin: MKS_THR:gpio12
- axes_map: -x, z, -y
- [resonance_tester]
- accel_chip:adxl345
- probe_points:
- 140, 140, 20 # an example
- [input_shaper]
- shaper_freq_x: 48.0
- shaper_type_x: mzv
- damping_ratio_x: 0.059
- shaper_freq_y: 42.2
- shaper_type_y: mzv
- damping_ratio_y: 0.049
- #################################################
- # TMC AutoTune
- #################################################
- [autotune_tmc stepper_x]
- motor: qidi-BJ42D29-28V07
- [autotune_tmc stepper_y]
- motor: qidi-BJ42D29-28V07
- [autotune_tmc stepper_z]
- motor: qidi-BJ42D29-22V08
- [autotune_tmc extruder]
- motor: qidi-BJY36D12-04V13
- #################################################
- # Miscellaneous
- #################################################
- #################################################
- # client.cfg contains: #
- # - virtual_sdcard #
- # - pause_resume #
- # - display_status #
- # - respond #
- #################################################
- [exclude_object]
- [gcode_arcs]
- resolution: 0.2 #1.0
- [idle_timeout]
- timeout: 86400
- [virtual_sdcard]
- path: /home/scox/printer_data/gcodes
- on_error_gcode: CANCEL_PRINT
- #################################################
- # Auto-Config
- #################################################
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# -0.091250, -0.081250, -0.033750, -0.057500, -0.072500, -0.050000, -0.015000, -0.006250
- #*# -0.026250, -0.002500, -0.001250, -0.021250, -0.030000, -0.018750, 0.023750, 0.030000
- #*# -0.018750, -0.020000, 0.015000, -0.008750, -0.018750, -0.008750, 0.020000, 0.028750
- #*# -0.003750, -0.008750, 0.018750, 0.000000, -0.011250, -0.023750, 0.008750, 0.026250
- #*# -0.005000, -0.023750, 0.008750, -0.018750, -0.040000, -0.036250, -0.012500, 0.005000
- #*# -0.013750, -0.031250, -0.008750, -0.037500, -0.065000, -0.072500, -0.050000, -0.031250
- #*# -0.015000, -0.026250, -0.035000, -0.062500, -0.101250, -0.112500, -0.072500, -0.088750
- #*# -0.021250, -0.062500, -0.062500, -0.110000, -0.151250, -0.162500, -0.150000, -0.160000
- #*# x_count = 8
- #*# y_count = 8
- #*# mesh_x_pps = 5
- #*# mesh_y_pps = 5
- #*# algo = bicubic
- #*# tension = 0.2
- #*# min_x = 18.0
- #*# max_x = 259.99
- #*# min_y = 20.0
- #*# max_y = 259.96000000000004
- #*#
- #*# [bed_mesh kamp]
- #*# version = 1
- #*# points =
- #*# -0.187500, -0.150000, -0.151250, -0.162500, -0.146250, -0.151250, -0.146250, -0.121250
- #*# -0.128750, -0.101250, -0.100000, -0.102500, -0.101250, -0.105000, -0.107500, -0.081250
- #*# -0.066250, -0.065000, -0.068750, -0.062500, -0.063750, -0.070000, -0.070000, -0.052500
- #*# -0.011250, -0.015000, -0.016250, -0.028750, -0.032500, -0.056250, -0.056250, -0.042500
- #*# 0.023750, -0.005000, -0.007500, -0.020000, -0.023750, -0.042500, -0.053750, -0.045000
- #*# 0.050000, 0.027500, 0.006250, -0.018750, -0.040000, -0.063750, -0.071250, -0.065000
- #*# 0.075000, 0.040000, 0.002500, -0.030000, -0.050000, -0.072500, -0.095000, -0.105000
- #*# x_count = 8
- #*# y_count = 7
- #*# mesh_x_pps = 5
- #*# mesh_y_pps = 5
- #*# algo = bicubic
- #*# tension = 0.2
- #*# min_x = 18.0
- #*# max_x = 259.99
- #*# min_y = 26.8028
- #*# max_y = 222.70280000000002
- #*#
- #*# [probe]
- #*# z_offset = 1.430
Advertisement
Add Comment
Please, Sign In to add comment