https://aliexpress.ru/item/1005003536896114.html
https://github.com/Mellow-3D/Fly-Gemini


Код: Выделить всё
[include kiauh_macros.cfg]
# Support tmc5160 driver
# Integrated Linux host
# "FLY flyboard FLY-Gemini" board
# use this config, the firmware should be compiled for the STM32F405
# with a "32KiB bootloader".
# after running "make", copy the generated "out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the FLYBOARD
# with that SD card.
# See docs/Config_Reference.md for a description of parameters.
# [virtual_sdcard]
# path: /home/fly/gcode_files
[input_shaper]
shaper_freq_x: 60
shaper_freq_y: 60
shaper_type: mzv
damping_ratio_x: 0.1
damping_ratio_y: 0.1
[stepper_x]
step_pin: PC13
dir_pin: !PC1
enable_pin: !PB2
microsteps: 8
#step_pulse_duration: 0.0000001 # The default is 0.000000100 (100ns) for TMC steppers that are configured in UART
rotation_distance: 40 #rotation_distance = 200<full_steps_per_rotation> * 16<microsteps> / 80<steps_per_mm>
endstop_pin: PA3
position_endstop: 0
position_max: 280
homing_speed: 80
[stepper_y]
step_pin: PC14
dir_pin: PC4
enable_pin: !PB6
microsteps: 8
#step_pulse_duration: 0.0000001
rotation_distance: 40
endstop_pin: PB1
position_endstop: 0
position_max: 180
homing_speed: 80
position_min: -1
[stepper_z]
step_pin: PC15
dir_pin: !PC5
enable_pin: !PB5
microsteps: 16
#step_pulse_duration: 0.000001
rotation_distance: 2
endstop_pin: probe:z_virtual_endstop # PB10
#position_endstop: 0
homing_speed: 10
position_max: 270
position_min: -5
[extruder]
step_pin: PC3
dir_pin: !PC7
enable_pin: !PB4
microsteps: 8
#step_pulse_duration: 0.0000004
gear_ratio: 50:17
rotation_distance: 23.056
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA0
sensor_pin: PC0
sensor_type: EPCOS 100K B57560G104F
control: pid
pid_kp = 14.745
pid_ki = 0.559
pid_kd = 97.319
min_temp: 0
max_temp: 300
min_extrude_temp: 150
pressure_advance: 0.125
pressure_advance_smooth_time: 0.040
smooth_time: 2.0
[heater_bed]
heater_pin: PA2
sensor_pin: PC2
sensor_type: ATC Semitec 104GT-2
#control: watermark
control: pid
pid_kp = 71.292
pid_ki = 2.200
pid_kd = 577.466
min_temp: 0
max_temp: 160
[fan]
pin: PC6
#cycle_time: 0.50
max_power: 0.99
#shutdown_speed: 0.2
#[heater_fan]
#pin: PB3
#max_power: 1.0
#shutdown_speed: 1.0
#cycle_time:
#hardware_pwm:
#kick_start_time:
#off_below:
#tachometer_pin:
#tachometer_ppr:
#tachometer_poll_interval:
# See the "fan" section for a description of the above parameters.
#heater: extruder
# Name of the config section defining the heater that this fan is
# associated with. If a comma separated list of heater names is
# provided here, then the fan will be enabled when any of the given
# heaters are enabled. The default is "extruder".
#heater_temp: 50.0
# A temperature (in Celsius) that the heater must drop below before
# the fan is disabled. The default is 50 Celsius.
#fan_speed: 0.8
# The fan speed (expressed as a value from 0.0 to 1.0) that the fan
# will be set to when its associated heater is enabled. The default
# is 1.0
[mcu]
serial: /dev/ttyACM0
[mcu host]
serial: /tmp/klipper_host_mcu
[printer]
kinematics: corexy
max_velocity: 150
max_accel: 4000
max_z_velocity: 10
max_z_accel: 100
max_accel_to_decel: 2000
square_corner_velocity: 5.0
[temperature_sensor FLY-Gemini]
sensor_type: temperature_host
[temperature_sensor FLY-MCU]
sensor_type: temperature_mcu
# [tmc2208 stepper_z]
# uart_pin: PB8
# run_current: 0.800
# hold_current: 0.500
# stealthchop_threshold: 999999
# [tmc2209 extruder]
# uart_pin: PB7
# interpolate: True
# run_current: 0.450
# hold_current: 0.300
# stealthchop_threshold: 9999
# [tmc2209 stepper_y]
# uart_pin: PB9
# interpolate: True
# run_current: 0.8
# hold_current: 0.5
# stealthchop_threshold: 9999
# [tmc2209 stepper_x]
# uart_pin: PB11
# interpolate: True
# run_current: 0.8
# hold_current: 0.5
# stealthchop_threshold: 9999
########################################
# BLTouch
########################################
[bltouch]
sensor_pin: ^PA1
control_pin: PB0
pin_move_time: 0.680
x_offset: -35
y_offset: 0.0
z_offset: 2.5
speed: 5
[safe_z_home]
home_xy_position: 130,80
speed: 80
z_hop: 5 # Move up 10mm
z_hop_speed: 5
[bed_mesh]
speed: 100
horizontal_move_z: 5
mesh_min: 40,40
mesh_max: 200,150
probe_count: 3,3
######################################################################
# "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
########################################
# EXP1 / EXP2 (display) pins
########################################
[board_pins]
aliases:
# EXP1 header
EXP1_1=<NC>, EXP1_3=PA13, EXP1_5=PA9, EXP1_7=<NC>, EXP1_9=<GND>,
EXP1_2=PA4, EXP1_4=PA10, EXP1_6=PA8, EXP1_8=<NC>, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PB14, EXP2_3=PA15, EXP2_5=PA14, EXP2_7=<NC>, EXP2_9=<GND>, # EXP2_7=PB3,
EXP2_2=PB13, EXP2_4=PB12, EXP2_6=PB15, EXP2_8=<RST>, EXP2_10=<NC>
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi2"
# See the sample-lcd.cfg file for definitions of common LCD displays.
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 71.292
#*# pid_ki = 2.200
#*# pid_kd = 577.466
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 14.745
#*# pid_ki = 0.559
#*# pid_kd = 97.319
Код: Выделить всё
[gcode_macro G29]
gcode: BED_MESH_CALIBRATE
[gcode_macro G28_XY]
gcode:
G28 X Y
G1 Y20
G1 X20
[gcode_macro PID_EXTR_200]
gcode: PID_CALIBRATE HEATER=extruder TARGET=200
[gcode_macro PID_BED_70]
gcode: PID_CALIBRATE HEATER=heater_bed TARGET=70