[mcu]
# The hardware use USART1 PA10/PA9 connect to RK3328
serial: /dev/ttyS0
restart_method: command
[stepper_x]
step_pin:PC14
dir_pin:PC13
enable_pin:!PC15
microsteps: 16
rotation_distance: 40
#full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
endstop_pin:!PA14
#position_min: 0
position_endstop:0
position_max: 300
homing_speed:50
#homing_retract_dist:5
#homing_positive_dir:true
#step_pulse_duration:0.000008
[stepper_y]
step_pin:PE5
dir_pin:PE4
enable_pin:!PD14
microsteps:16
rotation_distance: 40
#full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
endstop_pin:!PA15
#position_min: 0
position_endstop:300
position_max:300
homing_speed:50
#homing_retract_dist:5
#homing_positive_dir:true
#step_pulse_duration:0.000008
[stepper_z]
step_pin:PE1
dir_pin:PE0
enable_pin: !PE2
microsteps: 16
rotation_distance: 8
#full_steps_per_rotation: 200
#gear_ratio: 80:16
endstop_pin:probe:z_virtual_endstop ## PB12 for Z-max; endstop have'!' is NO
## Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0)
## (+) value = endstop above Z0, (-) value = endstop below
## Increasing position_endstop brings nozzle closer to the bed
## After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config
#position_endstop:-5
position_max: 340
position_min: -5
homing_speed: 3
second_homing_speed: 3
[stepper_z1]
step_pin:PD6
dir_pin:PD5
enable_pin:!PD7
microsteps:16
rotation_distance: 8
#full_steps_per_rotation: 200
#gear_ratio: 80:16
[extruder]
step_pin:PB5
dir_pin:!PB4
enable_pin:!PB6
microsteps:16
rotation_distance: 4.637 #Bondtech 5mm Drive Gears
#gear_ratio: 50:17
#full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
nozzle_diameter: 0.400
filament_diameter: 1.750
min_temp: 0
max_temp: 300
heater_pin: PB1
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: PC1
#max_power: 1.0
control : pid
pid_kp : 26.213
pid_ki : 1.304
pid_kd : 131.721
pressure_advance: 0.025
pressure_advance_smooth_time: 0.03
#max_extrude_cross_section:20
#instantaneous_corner_velocity: 1.000
max_extrude_only_distance: 500
max_extrude_only_velocity:120
#max_extrude_only_accel:2000
#step_pulse_duration:0.000004
[heater_bed]
heater_pin: PD12
sensor_type: EPCOS 100K B57560G104F # Stock NTC 100K MGB18-104F39050L32
sensor_pin: PC0
max_power: 1.0
control = pid
pid_kp = 71.039
pid_ki = 2.223
pid_kd = 567.421
min_temp: 0
max_temp: 200
#fan for printed model FAN0
[fan]
pin: PA2
#fan for hotend FAN1
#[heater_fan my_nozzle_fan]
[heater_fan fan1]
pin: PA1
shutdown_speed: 1
#fan for control board FAN2
#[heater_fan my_control_fan]
[heater_fan fan2]
pin: PA0
shutdown_speed: 1
####################################################################
# Homing and Gantry Adjustment Routines
#####################################################################
[idle_timeout]
timeout: 3600
[homing_override]
gcode:
G90 ; Use absolute position mode
G1 Z10 ; Move up 10mm
G28 X Y
G1 X150 Y150 F6000 ; Change the X and Y coordinates to the center of your print bed
G28 Z
set_position_z: 0.0
#[safe_z_home]
#home_xy_position: 155,155 # Change coordinates to the center of your print bed
#speed: 50
#z_hop: 10 # Move up 10mm
#z_hop_speed: 5
[z_tilt]
z_positions:
20,141.5
280,141.5
points:
20,141.5
280,141.5
speed:50
horizontal_move_z: 5
retries: 5
retry_tolerance: 0.05
#####################################################################
# Probe
#####################################################################
#[probe]
#pin:!PB15
#x_offset: 0
#y_offset: -42.0
#z_offset: 0.55
#speed: 10.0
#samples: 2
#samples_result: median
#sample_retract_dist: 3.0
#samples_tolerance: 0.05
#samples_tolerance_retries: 1
[bltouch]
sensor_pin: PB15
control_pin: PA8
pin_move_time: 0.68
stow_on_each_sample: True
probe_with_touch_mode: False
pin_up_reports_not_triggered: True
pin_up_touch_mode_reports_triggered: True
#set_output_mode:
x_offset: 0.0
y_offset: -20.0
#z_offset: 0
speed: 4.0
lift_speed: 3.0
samples: 2
sample_retract_dist: 3.0
samples_result: median
samples_tolerance: 0.05
samples_tolerance_retries: 2
[bed_mesh]
speed: 120
horizontal_move_z: 8
mesh_min: 30, 30
mesh_max: 280, 280
probe_count: 3, 3
mesh_pps: 2, 2
algorithm: bicubic
bicubic_tension: 0.2
[filament_switch_sensor RunoutSensor]
Pause_on_runout: False
runout_gcode: PAUSE
insert_gcode: RESUME
event_delay: 3.0
pause_delay: 0.5
switch_pin: PA13
[printer]
kinematics:corexy
max_velocity: 250
max_accel: 4500
#max_accel_to_decel: 4000
max_z_velocity: 15
max_z_accel: 100
#square_corner_velocity: 2.0
#####################################################################
# LED Control
#####################################################################
#[output_pin caselight ](Use PA9)
## Chamber Lighting - In 5V-RGB Position
#pin: PC5
#pwm: true
#shutdown_value: 0
#value:100
#cycle_time: 0.01
########################################
# TMC UART configuration
########################################
[tmc2209 stepper_x]
uart_pin: PE6
run_current: 0.8
hold_current: 0.5
interpolate: True
stealthchop_threshold: 400
[tmc2209 stepper_y]
uart_pin: PE3
run_current: 0.8
hold_current: 0.5
interpolate: True
stealthchop_threshold: 400
[tmc2209 stepper_z]
uart_pin: PB7
interpolate: True
run_current: 1.6
hold_current: 1.6
stealthchop_threshold: 120
[tmc2209 stepper_z1]
uart_pin: PD4
interpolate: True
run_current: 1.6
hold_current: 1.6
stealthchop_threshold: 120
[tmc2209 extruder]
uart_pin: PB3
run_current: 0.85
hold_current: 0.5
sense_resistor: 0.11
interpolate: True
stealthchop_threshold: 0
driver_TBL: 0
driver_HEND: 6
driver_HSTRT: 7
driver_TOFF: 4
########################################
# 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=PD13, 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"
# See the sample-lcd.cfg file for definitions of common LCD displays.
# Some alternate glyphs for use with 128x64 LCDs. These are used by
# adding them to your printer.cfg.
# See docs/Config_Reference.md for a description of parameters.
######################################################################
# MKS Mini 12864v3.0 (with neopixel backlight leds)
######################################################################
[display]
lcd_type: uc1701
cs_pin: EXP1_3
a0_pin: EXP1_4
rst_pin: EXP1_5
contrast: 63
encoder_pins: ^EXP2_5, ^EXP2_3
click_pin: ^!EXP1_2
## Some micro-controller boards may require an spi bus to be specified:
#spi_bus: spi
## Alternatively, some micro-controller boards may work with software spi:
spi_software_miso_pin: EXP2_1
spi_software_mosi_pin: EXP2_6
spi_software_sclk_pin: EXP2_2
[output_pin beeper]
pin: EXP1_1
[neopixel fysetc_mini12864]
pin: EXP1_6
chain_count: 3
color_order: RGB
initial_RED: 1.0
initial_GREEN: 1.0
initial_BLUE: 0.0
# See the MKS Lcd Config path file for definitions of common LCD displays.
[mcu rpi]
serial: /tmp/klipper_host_mcu
[adxl345]
cs_pin: rpi:None
spi_bus: spidev0.2
[resonance_tester]
accel_chip: adxl345
probe_points:
100, 100, 20 # an example
[input_shaper]
shaper_freq_x: 68.4
shaper_type_x: mzv
shaper_freq_y: 45.6
shaper_type_y: mzv
[virtual_sdcard]
#path:/home/mks/uploads
path: ~/printer_data/gcodes
[pause_resume]
[gcode_macro CANCEL_PRINT]
description: Cancel the actual running print
rename_existing: CANCEL_PRINT_BASE
gcode:
TURN_OFF_HEATERS
CANCEL_PRINT_BASE
[display_status]
[gcode_macro G32]
gcode:
BED_MESH_CLEAR
G28
QUAD_GANTRY_LEVEL
G28
[gcode_macro AUTO_LEVEL]
gcode:
G28
Z_TILT_ADJUST
BED_MESH_CLEAR
BED_MESH_CALIBRATE
G28
[gcode_macro START_PRINT]
gcode:
G92 E0 ; Reset Extruder
SET_FAN_SPEED FAN=Motor_coolingfan SPEED=1.0
SET_FAN_SPEED FAN=motherboard_coolingfan SPEED=1.0
{% set BED_TEMP = params.BED_TEMP|default(60)|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(215)|float %}
# Start bed heating
M140 S{BED_TEMP}
G28 ; Home all axes
Z_TILT_ADJUST ; Adjust Z and Z1 hight
# Wait for bed to reach temperature
M190 S{BED_TEMP}
# Set and wait for nozzle to reach temperature
M109 S{EXTRUDER_TEMP}
BED_MESH_CLEAR ; Clear old bed mesh values
BED_MESH_CALIBRATE ; Auto bed leveling
# Use absolute coordinates
#G90
# Reset the G-Code Z offset (adjust Z offset if needed)
#SET_GCODE_OFFSET Z=0.0
# Home the printer
#AUTO_LEVEL
# Move the nozzle near the bed
#G1 Z5 F3000
# Move the nozzle very close to the bed
#G1 Z0.15 F300
M109 S{EXTRUDER_TEMP} ;Wait for extruder to reach temp before proceeding
G1 F2000 Z10; // Move Z down with 10mm
G1 F7200 X0 Y300; // Move head to the left behind
G1 X5 Y220 Z0 E9.0 F1000.0;intro line
G1 X5 Y80 E21.5 F1000.0 ;continue line
G92 E0; Reset Extruder
G1 Z10 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
#M117;
[gcode_macro END_PRINT]
gcode:
# Turn off bed, extruder, and fan
M140 S0
M104 S0
M106 S0
SET_FAN_SPEED FAN=Motor_coolingfan SPEED=0.0
SET_FAN_SPEED FAN=motherboard_coolingfan SPEED=0.0
# Move nozzle away from print while retracting
G91
G1 X-2 Y-2 E-3 F300
# Raise nozzle by 10mm
G1 Z10 F3000
G90
# Disable steppers
M84
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [bltouch]
#*# z_offset = 0.339
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# -0.068750, -0.122500, 0.107500
#*# 0.018750, -0.118750, -0.048750
#*# 0.103750, -0.082500, -0.012500
#*# x_count = 3
#*# y_count = 3
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 30.0
#*# max_x = 280.0
#*# min_y = 30.0
#*# max_y = 280.0
댓글 영역
획득법
① NFT 발행
작성한 게시물을 NFT로 발행하면 일주일 동안 사용할 수 있습니다. (최초 1회)
② NFT 구매
다른 이용자의 NFT를 구매하면 한 달 동안 사용할 수 있습니다. (구매 시마다 갱신)
사용법
디시콘에서지갑연결시 바로 사용 가능합니다.