klipper_printer_hw_1/hw.cfg

389 lines
8.4 KiB
INI

# This file contains common pin mappings for MKS Monster8
# boards. To use this config, the firmware should be compiled for the
# stm32f407. When running "make menuconfig", select the 48KiB
# bootloader, and enable "USB for communication".
# The "make flash" command does not work on the MKS Monster8. Instead,
# after running "make", copy the generated "out/klipper.bin" file to a
# file named "mks_monster8.bin" on an SD card or Udisk and then restart the
# MKS Monster8 with that SD card or Udisk.
# See docs/Config_Reference.md for a description of parameters.
[gcode_button shutdown]
pin: PA13
press_gcode:
SET_PIN PIN=ps_on VALUE=0 {action_emergency_stop("pwr_button_pressed")}
[stepper_x]
step_pin: PC14
dir_pin: !PC13
enable_pin: !PC15
microsteps: 32
rotation_distance: 40
endstop_pin: PA14 # PA13 for X-max; endstop have'!' is NO
position_endstop: 0
position_min: 0
position_max: 390
homing_speed: 140
[stepper_y]
step_pin: PE5
dir_pin: !PE4
enable_pin: !PC15
microsteps: 32
rotation_distance: 40
endstop_pin: PA15 # PC5 for Y-max; endstop have'!' is NO
position_endstop: 0
position_min: 0
position_max: 355
homing_speed: 140
[stepper_z]
step_pin: PE1
dir_pin: PE0
enable_pin: !PE2
microsteps: 16
rotation_distance: 5
# endstop_pin: !PB13 # PB12 for Z-max; endstop have'!' is NO
endstop_pin: probe:z_virtual_endstop
#position_endstop: 1
position_min: -3
position_max: 700
homing_speed: 8
[extruder]
step_pin: PB5
dir_pin: !PB4
enable_pin: !PB6
microsteps: 16
rotation_distance: 7.71
nozzle_diameter: 0.600
filament_diameter: 1.750
max_extrude_only_distance: 500
heater_pin: PB1
sensor_type: T-D500
sensor_pin: PC1
control: pid
pid_Kp: 25.00
pid_Ki: 2.35
pid_Kd: 65.50
min_temp: 21
max_temp: 460
pressure_advance = 0.04
[filament_switch_sensor filament_sensor]
pause_on_runout: False
runout_gcode:
M600
#runout_gcode:
# #M117 Out of Filament
# #positions here are in printer coordinates eg if you have a 300mm bed and your sensor is 7cm past the
# #max y position then y_offset should be 370
# #{% set x_offset = 150 %} #approximate x location of the runout sensor
# #{% set y_offset = 370 %} #approximate y location of the runout sensor
# #z location not used but this can be easily extended to include a z offset if needed
# #{% set current_x = printer.toolhead.position.x %}
# #{% set current_y = printer.toolhead.position.y %}
# #{% set distance = ((x_offset - current_x)**2 + (y_offset - current_y)**2)**(1/2) %}
# #PAUSE_AFTER_D D=640
# insert_gcode:
# M117 Resuming
# M602
switch_pin: PD5
[input_shaper]
#[extruder1]
#step_pin: PD6
#dir_pin: !PD5
#enable_pin: !PD7
#heater_pin: PB0
#sensor_pin: PC2
#[extruder2]
#step_pin: PD2
#dir_pin: !PD1
#enable_pin: !PD3
#heater_pin: PA3
#sensor_pin: PC3
#[extruder3]
#step_pin: PC7
#dir_pin: PC6
#enable_pin: !PC8
#[extruder4]
#step_pin: PD13
#dir_pin: !PD12
#enable_pin: !PD14
[heater_bed]
heater_pin: PA3
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC0
max_power: 1.0
control: pid
pid_kp: 82.10
pid_ki: 5.60
pid_kd: 800.00
min_temp: 5
max_temp: 135
#fan for printed model FAN0
[fan]
pin: PA2
#fan for hotend FAN1
[heater_fan fan1]
pin: PA1
shutdown_speed: 1
heater: extruder
heater_temp: 70.0
#fan for control board FAN2
[controller_fan my_control_fan]
pin: PA0
shutdown_speed: 1
#fan_speed: 0.5
heater: extruder #, heater_bed
stepper: stepper_x, stepper_y, stepper_z, extruder
idle_timeout: 60
[mcu]
serial: /dev/ttyACM0
restart_method: command
[printer]
kinematics: corexy
max_velocity: 300
max_accel: 7000
max_accel_to_decel: 7000
max_z_velocity: 14
max_z_accel: 25
#####################################################################
# LED Control
#####################################################################
#[output_pin caselight ](Use PA9)
# Chamber Lighting - In 5V-RGB Position
#pin: PB10
#pwm: true
#shutdown_value: 0
#value:1
#cycle_time: 0.01
########################################
# TMC UART configuration
########################################
[tmc2209 stepper_x]
uart_pin: PE6
run_current: 1.2
# hold_current: 0.5
sense_resistor: 0.110
# stealthchop_threshold: 999999
[tmc2209 stepper_y]
uart_pin: PE3
run_current: 1.2
# hold_current: 0.5
sense_resistor: 0.110
# stealthchop_threshold: 999999
[tmc2209 stepper_z]
uart_pin: PB7
run_current: 1.0
# hold_current: 0.5
sense_resistor: 0.110
# stealthchop_threshold: 999999
[thermistor T-D500]
temperature1: 20
resistance1: 3649000
temperature2: 200
resistance2: 8000
temperature3: 300
resistance3: 1092
[tmc2209 extruder]
uart_pin: PB3
run_current: 0.4
# hold_current: 0.5
sense_resistor: 0.110
stealthchop_threshold: 999999
#[tmc2208 extruder1]
#uart_pin: PD4
#run_current: 0.8
#hold_current: 0.5
#stealthchop_threshold: 999999
#[tmc2208 extruder2]
#uart_pin: PD0
#run_current: 0.8
#hold_current: 0.5
#stealthchop_threshold: 999999
#[tmc2208 extruder3]
#uart_pin: PD15
#run_current: 0.8
#hold_current: 0.5
#stealthchop_threshold: 999999
#[tmc2208 extruder4]
#uart_pin: PD11
#run_current: 0.8
#hold_current: 0.5
#stealthchop_threshold: 999999
########################################
# TMC SPI configuration
########################################
#[tmc2130 stepper_x]
#spi_bus: spi4
#cs_pin: PE6
#diag1_pin: PA14
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
#[tmc2130 stepper_y]
#spi_bus: spi4
#cs_pin: PE3
#diag1_pin: PA15
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
#[tmc2130 stepper_z]
#spi_bus: spi4
#cs_pin: PB7
#diag1_pin: PB13
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
#[tmc2130 extruder]
#spi_bus: spi4
#cs_pin: PB3
#diag1_pin: PA13
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
#[tmc2130 extruder1]
#spi_bus: spi4
#cs_pin: PD4
#diag1_pin: PC5
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
#[tmc2130 extruder2]
#spi_bus: spi4
#cs_pin: PD0
#diag1_pin: PB12
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
#[tmc2130 extruder3]
#spi_bus: spi4
#cs_pin: PD15
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
#[tmc2130 extruder4]
#spi_bus: spi4
#cs_pin: PD11
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 999999
########################################
# EXP1 / EXP2 (display) pins
########################################
[board_pins]
aliases:
# # EXP1 header
EXP1_1=PB2, EXP1_3=PE11, EXP1_5=PD9, EXP1_7=PE15, EXP1_9=<GND>,
EXP1_2=PE10, EXP1_4=PD10, EXP1_6=PD8, EXP1_8=PE7, EXP1_10=<5V>,
# # EXP2 header
EXP2_1=PA6, EXP2_3=PE9, EXP2_5=PE8, EXP2_7=PB11, EXP2_9=<GND>,
EXP2_2=PA5, EXP2_4=PA4, EXP2_6=PA7, EXP2_8=<RST>, EXP2_10=<3.3v>
# # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp1"
[safe_z_home]
home_xy_position: 192.5, 177.5 # Change coordinates to the center of your print bed
speed: 50
z_hop: 5 # Move up 10mm
z_hop_speed: 5
[bltouch]
sensor_pin: ^PB13
control_pin: PA8
x_offset: 0
y_offset: -31
z_offset: 0.5
[bed_mesh]
speed: 120
horizontal_move_z: 5
mesh_min: 10, 10
mesh_max: 340, 319
zero_reference_position: 175, 206
probe_count: 6, 6
# fade_start: 1
# fade_end: 11
# fade_target: 0
mesh_pps: 2, 2
algorithm: bicubic
bicubic_tension: 0.2
[delayed_gcode bed_mesh_init]
initial_duration: .01
gcode:
BED_MESH_PROFILE LOAD=default
[output_pin ps_on]
pin: PB12
value: 1
shutdown_value: 1
#[idle_timeout]
#gcode:
# _KM_IDLE_TIMEOUT # This line must be in your idle_timeout section.
[gcode_macro _km_options]
# These are examples of some likely customizations:
# Any sheets in the below list will be available with a configurable offset.
#variable_bed_surfaces: ['smooth_1','texture_1']
# Length (in mm) of filament to load (bowden tubes will be longer).
variable_load_length: 90.0
# Hide the Octoprint LCD menu since I don't use it.
variable_menu_show_octoprint: False
variable_park_y: 350
# Customize the filament menus (up to 10 entries).
#variable_menu_temperature: [
# {'name' : 'PLA', 'extruder' : 200.0, 'bed' : 60.0},
# {'name' : 'PETG', 'extruder' : 230.0, 'bed' : 85.0},
# {'name' : 'ABS', 'extruder' : 245.0, 'bed' : 110.0, 'chamber' : 60}]
# Length of filament (in millimeters) to purge at print start.
#variable_start_purge_length: 30 # This value works for most setups.
gcode: # This line is required by Klipper.
# Any code you put here will run at klipper startup, after the initialization
# for these macros. For example, you could uncomment the following line to
# automatically adjust your bed surface offsets to account for any changes made
# to your Z endstop or probe offset.
ADJUST_SURFACE_OFFSETS