####################################################################################
# 3D MELLOW /FLY-Super8-Pro #
####################################################################################
## FLY-Super8-Pro 資料サイト:http://mellow.klipper.cn/#/board/fly_super8_pro/README
## FLY-Super8-Pro 回路図:https://github.com/Mellow-3D/Fly-Super8Pro
## FLY 公式淘宝店:https://shop126791347.taobao.com/shop/view_shop.htm?spm=a230r.1.14.4.1a4840a8hyvpPJ&user_number_id=2464680006
## サポートが必要な場合は淘宝カスタマーサービスにご連絡ください
## FLY サポート技術グループ:621032883
## FLY-RRFファームウェアグループ:786561979
#####################################################################
# 注意事項 #
#####################################################################
##***変更/確認が必要な項目:***
## MCU パス [mcu]
## プリンタの可動範囲 xyzのposition
## サーミスタタイプ [extruder] と [heater_bed]
## Z軸リミットスイッチ停止位置 [homing_override]
## Z軸リミットスイッチオフセット位置 [stepper_z]
## PID チューニング [extruder] と [heater_bed]
## エクストルーダーモーターのステップ値微調整 [extruder]
#####################################################################
# ファイル呼び出し #
#####################################################################
#[include fluidd.cfg] # FLUIDD用設定ファイル。
#[include mainsail.cfg] # MAINSDIL用設定ファイル。
#どちらを使うかはご自身でご確認ください
#####################################################################
# メインボード設定 #
#####################################################################
[mcu] # FLYボードID
serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_XXXXXXXXXXXXXXXXXXXXX
### USBファームウェアIDの確認方法:ls -l /dev/serial/by-id/
### /dev/serial/by-id/usb-Klipper_stm32f407xx_XXXXXXXXXXXXXXXXXXXXX を実際のIDに置き換えてください
#canbus_uuid: e51d5c71a901
### CANファームウェアIDの確認方法:~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0
### CANの場合はserialをcanbus_uuid: に置き換え、IDを追加
#####################################################################
# プリンタ設定 #
#####################################################################
[printer] # プリンタ設定
kinematics: corexy
max_velocity: 300 # 最大速度
max_accel: 3000 # 最大加速度(最大3000)
max_z_velocity: 15 # Z軸最大速度
max_z_accel: 100 # Z軸最大加速度
square_corner_velocity: 5.0 # 角速度(小さくすると慣性による影響を軽減)
#####################################################################
# 温度モニタ #
#####################################################################
[temperature_sensor Fly-Super8] # FLYボード温度(任意で名称変更可)
sensor_type: temperature_mcu MCUに関連(デフォルト)
#--------------------------------------------------------------------
[temperature_sensor FLY-π] # 上位機温度
sensor_type: temperature_host
#--------------------------------------------------------------------
# [temperature_sensor Box] # チャンバー温度(追加センサーが必要、参考設定)
# sensor_type: ATC Semitec 104GT-2 # センサー型番
# sensor_pin: PA4 # 信号ピン
#####################################################################
# ベッドメッシュキャリブレーション
#####################################################################
[bed_mesh]
speed: 50 # キャリブレーション速度
horizontal_move_z: 5 # 次のポイントへ移動前にZを持ち上げる高さ
mesh_min: 30,30 # 最小キャリブレーションポイント座標x,y
mesh_max: 270, 270 # 最大キャリブレーションポイント座標x,y
probe_count: 4,4 # サンプリングポイント数(4X4=16点)
mesh_pps: 2,2 # 補間ポイント数
algorithm: bicubic
bicubic_tension: 0.2 # 補間パラメータ(変更不要)
#####################################################################
# X/Yステッピングモーター設定 #
#####################################################################
# Bモーター ---- モーターA
# | |
# |------エクストルーダー-------|
# | |
# | |
# 正面
#####################################################################
# X軸ステッピングモーター on Driver0 #
#####################################################################
[stepper_x]
step_pin: PE2 # X軸ステッピングパルスピン
dir_pin: PC5 # X軸方向ピン(!で反転)
enable_pin: !PF11 # X軸イネーブルピン(!必須)
rotation_distance: 40 # プーリー周長mm(2GT-20T:40, 2GT-16T:32)
microsteps: 16 # マイクロステップ数
full_steps_per_rotation: 200 # 1回転あたりのステップ数(1.8°:200, 0.9°:400)
endstop_pin: !PG12 # リミットスイッチピン(通常閉で!推奨、io-3)
position_min: 0 # ソフトリミット最小
position_endstop: 300 # ソフトリミット最大(250/300/350mm)
position_max: 300 # 機械リミット最大
homing_speed: 50 # ホーミング速度(最大100)
homing_retract_dist: 5 # 一度目トリガー後のリトラクト距離
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
## ドライバ型番を正しく設定
[tmc2209 stepper_x] # Xドライバ設定 -TMC2209
uart_pin: PC4 # UARTピン
interpolate: False # 256マイクロステップ補間
run_current: 0.8 # ラン電流(A)
sense_resistor: 0.110 # サンプル抵抗(変更不可)
stealthchop_threshold: 500 # 静音閾値(不要なら0)
#####################################################################
# Y軸ステッピングモーター on Driver1 #
#####################################################################
[stepper_y]
step_pin: PE3 # Y軸パルスピン
dir_pin: PF13 # Y軸方向ピン(!で反転)
enable_pin: !PF14 # Y軸イネーブルピン(!必須)
rotation_distance: 40 # プーリー周長mm
microsteps: 16 # マイクロステップ数
full_steps_per_rotation: 200 # 1回転あたりのステップ数
endstop_pin: !PG11 # リミットスイッチピン(通常閉で!推奨、io-0)
position_min: 0 # ソフトリミット最小
position_endstop: 300 # ソフトリミット最大
position_max: 300 # 機械リミット最大
homing_speed: 50 # ホーミング速度
homing_retract_dist: 5 # 一度目トリガー後のリトラクト距離
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 stepper_y] # Yドライバ設定 -TMC2209
uart_pin: PF12 # UARTピン
interpolate: False # 256マイクロステップ補間
run_current: 0.8 # ラン電流(A)
sense_resistor: 0.110 # サンプル抵抗
stealthchop_threshold: 500 # 静音閾値
#####################################################################
# Z軸ステッピングモーター設定 #
#####################################################################
# |----- Z1 -----|
# | |
# | |
# | |
# Z0----ディスプレイ----Z2
#####################################################################
# Z軸ステッピングモーター #
#####################################################################
## Zステッピングモーター - 左前 Driver3
[stepper_z]
step_pin: PE14
dir_pin: !PE8
enable_pin: !PE9
rotation_distance: 8
full_steps_per_rotation: 200
microsteps: 16
endstop_pin: !PG10
position_endstop: -0.5
position_min: -15
position_max: 300
homing_speed: 5
second_homing_speed: 3
homing_retract_dist: 0
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 stepper_z]
uart_pin: PE7
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 500
## Z1 ステッピングモーター - 後方 Driver4
[stepper_z1]
step_pin: PE15
dir_pin: !PE11
enable_pin: !PF2
rotation_distance: 8
full_steps_per_rotation: 200
microsteps: 16
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 stepper_z1]
uart_pin: PE10
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 500
## Z2 ステッピングモーター - 右前 Driver5
[stepper_z2]
step_pin: PE1
dir_pin: !PF0
enable_pin: !PC15
rotation_distance: 8
full_steps_per_rotation: 200
microsteps: 16
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 stepper_z2]
uart_pin: PF1
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 500
#####################################################################
# E0 エクストルーダー設定 #
#####################################################################
#Driver2
[extruder]
step_pin: PE4
dir_pin: !PG0
enable_pin: !PG1
rotation_distance: 22.44
gear_ratio: 50:17
microsteps: 16
full_steps_per_rotation: 200
nozzle_diameter: 0.400
filament_diameter: 1.75
heater_pin: PB0
sensor_type: ATC Semitec 104GT-2
sensor_pin: PF4
min_temp: 10
max_temp: 350
max_power: 1.0
min_extrude_temp: 170
pressure_advance: 0.05
pressure_advance_smooth_time: 0.040
control = pid
pid_kp = 26.213
pid_ki = 1.304
pid_kd = 131.721
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 extruder]
uart_pin: PF15
interpolate: False
run_current: 0.5
sense_resistor: 0.110
stealthchop_threshold: 500
#####################################################################
# ヒートベッド設定 #
#####################################################################
[heater_bed]
heater_pin: PE5
sensor_type: Generic 3950
sensor_pin: PC1
max_power: 0.5
min_temp: 0
max_temp: 120
control: pid
pid_kp: 58.437
pid_ki: 2.347
pid_kd: 363.769
#####################################################################
# ファン設定 #
#####################################################################
[fan]
pin: PA0
kick_start_time: 0.5
off_below: 0.10
#--------------------------------------------------------------------
[heater_fan hotend_fan]
pin: PA1
max_power: 1.0
kick_start_time: 0.5
heater: extruder
heater_temp: 50
fan_speed: 1.0
#--------------------------------------------------------------------
[heater_fan controller_fan]
pin: PA2
max_power: 1.0
kick_start_time: 0.5
heater: heater_bed
heater_temp: 50
fan_speed: 1.0
#--------------------------------------------------------------------
[heater_fan exhaust_fan]
pin: PA3
max_power: 1.0
kick_start_time: 0.5
heater: heater_bed
heater_temp: 70
fan_speed: 1.0
#####################################################################
# オートレベリングセンサー #
#####################################################################
[probe]
pin: ^PF3
x_offset: 0
y_offset: 25.0
z_offset: 0
speed: 10.0
samples: 3
samples_result: median
sample_retract_dist: 4.0
samples_tolerance: 0.006
samples_tolerance_retries: 3
#####################################################################
# ホーミング #
#####################################################################
[homing_override]
axes: z
set_position_z: 0
gcode:
G90
G0 Z5 F600
G28 X Y
G0 X-10 Y-10 F3600
G28 Z
G0 Z10 F1800
## 機種サイズに応じて下記の設定の「#」を削除してください
## おおよそベッド中央です
#--------------------------------------------------------------------
## 250mm機種用
#G0 X125 Y125 Z30 F3600
#--------------------------------------------------------------------
## 300mm機種用
#G0 X150 Y150 Z30 F3600
#--------------------------------------------------------------------
## 350mm機種用
#G0 X175 Y175 Z30 F3600
#--------------------------------------------------------------------
#####################################################################
# 3Zレベリング
#####################################################################
[z_tilt]
## Z_TILT_ADJUST コマンドでベッドレベリング
## z_positions: ヘッド位置
##--------------------------------------------------------------------
## 250mm機種用
#z_positions:
# -50, 18
# 125, 298
# 300, 18
#points:
# 30, 5
# 125, 195
# 220, 5
##--------------------------------------------------------------------
## 300mm機種用
#z_positions:
# -50, 18
# 150, 348
# 350, 18
#points:
# 30, 5
# 150, 245
# 270, 5
##--------------------------------------------------------------------
## 350mm機種用
#z_positions:
# -50, 18
# 175, 398
# 400, 18
#points:
# 30, 5
# 175, 295
# 320, 5
#--------------------------------------------------------------------
speed: 100
horizontal_move_z: 10
retry_tolerance: 0.0075
retries: 5
#####################################################################
# FLY-Mini 12864 LCD
#####################################################################
[board_pins]
aliases:
EXP1_1=PE12, EXP1_3=PB2, EXP1_5=PC14, EXP1_7=PG14, EXP1_9=<GND>,
EXP1_2=PE13, EXP1_4=PG8, EXP1_6=PC13, EXP1_8=PG13, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PA6, EXP2_3=PB7, EXP2_5=PB6, EXP2_7=PG15, EXP2_9=<GND>,
EXP2_2=PA5, EXP2_4=PA4, EXP2_6=PA7, EXP2_8=<RST>, EXP2_10=<NC>,
#--------------------------------------------------------------------
#[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
#spi_bus: spi1
#--------------------------------------------------------------------
#####FLY Mini12864用
#[neopixel fly_mini12864]
#pin: EXP1_6
#chain_count: 3
#initial_RED: 0.5
#initial_GREEN: 0.5
#initial_BLUE: 0.5
#color_order: RGB
#####################################################################
# アイドル時ヒートベッドOFF
#####################################################################
[idle_timeout]
timeout: 1800
#####################################################################
# カスタムgcodeマクロ #
#####################################################################
[gcode_macro PRINT_START]
gcode:
G92 E0
BED_MESH_CLEAR
G28
Z_TILT_ADJUST
G28
G1 Z20 F3000
BED_MESH_PROFILE LOAD=default
#--------------------------------------------------------------------
[gcode_macro PRINT_HUAXIAN]
gcode:
G1 Z5 F3000
G92 E0
G90
G0 X5 Y1 F6000
G0 Z0.4
G91
G1 X100 E20 F1200
G1 Y1
G1 X-100 E20 F1200
G0 z5
G1 E-5.0 F3600
G92 E0
G90
#--------------------------------------------------------------------
[gcode_macro PRINT_END]
gcode:
{% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
{% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
{% set max_z = printer.configfile.config["stepper_z"]["position_max"]|float %}
# 終了位置に応じて安全な方向を決定
{% if printer.toolhead.position.x < %}
{% set x_safe = 20.0 %}
{% else %}
{% set x_safe = -20.0 %}
{% endif %}
{% if printer.toolhead.position.y < %}
{% set y_safe = 20.0 %}
{% else %}
{% set y_safe = -20.0 %}
{% endif %}
{% if printer.toolhead.position.z < %}
{% set z_safe = 2.0 %}
{% else %}
{% set z_safe = max_z - printer.toolhead.position.z %}
{% endif %}
M400
G92 E0
G1 E-10.0 F3600
G91
G0 Z{z_safe} F3600
G0 X{x_safe} Y{y_safe} F20000
M104 S0
M140 S0
M106 S0
G90
G0 X{max_x / 2} Y{max_y} F3600
BED_MESH_CLEAR