Sample Configuration files for the Fly-D5
Edit me

Fly-D5 Configuration files

Fly-D5 aliases file

[board_pins]
aliases:
    # Stepper drivers
    D0_EN=PC2,   D0_STEP=PC15,  D0_DIR=PC14,  D0_CS=PC13, D0_STOP=PB4,  # X
    D1_EN=PA2,   D1_STEP=PA1,   D1_DIR=PA0,   D1_CS=PC3,  D1_STOP=PB3,  # Y
    D2_EN=PA6,   D2_STEP=PA5,   D2_DIR=PA4,   D2_CS=PA3,  D2_STOP=PD2,  # Z
    D3_EN=PB0,   D3_STEP=PC5,   D3_DIR=PC4,   D3_CS=PA7,  D3_STOP=PB5,  # E0
    D4_EN=PB11,  D4_STEP=PB10,  D4_DIR=PB2,   D4_CS=PB1,                # E1

    # Heaters
    BED_OUT=PC7,
    HEAT0=PC6,

    # Thermisors
    BED_TEMP=PC0,
    HEAT0_TEMP=PC1,
   
    # Fans
    FAN0=PC8, FAN1=PC9,

    # EXP1 header
    EXP1_1=<NC>,  EXP1_3=PC11,  EXP1_5=PC10,  EXP1_7=<NC>,  EXP1_9=<GND>,
    EXP1_2=PA15,  EXP1_4=PA14,  EXP1_6=PA13,  EXP1_8=<NC>,  EXP1_10=<5V>,
    
    # EXP2 header
    EXP2_1=PB14, EXP2_3=PC12,  EXP2_5=PB6,   EXP2_7=PB7,    EXP2_9=<GND>,
    EXP2_2=PB13, EXP2_4=PB12,  EXP2_6=PB15,  EXP2_8=<RST>,  EXP2_10=<NC>,

    # BL Touch
    SERVO=PA8   # BL Touch servo pin

Example Printer.cfg file

Motherboard model

Please modify it based on your motherboard model

[include boards/FLY_D5.cfg]

mcu

serial: /dev/serial/by-id/{your serial ID here}

mcu host

serial: /tmp/klipper_host_mcu

virtual_sdcard

path: ~/printer_data/gcodes

printer

kinematics: corexy
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100

temperature_sensor FLY-D5

sensor_type: temperature_host

Drives

stepper_x

step_pin: D0_STEP
dir_pin: !D0_DIR
enable_pin: !D0_EN
microsteps: 16
rotation_distance: 40
endstop_pin: !D0_STOP
position_endstop: 120
position_max: 120
homing_speed: 40

stepper_y

step_pin: D1_STEP
dir_pin: D1_DIR
enable_pin: !D1_EN
microsteps: 16
rotation_distance: 40
endstop_pin: !D1_STOP
position_endstop: 120
position_max: 120
homing_speed: 40

stepper_z

step_pin: D2_STEP
dir_pin: !D2_DIR
enable_pin: !D2_EN
microsteps: 16
rotation_distance: 8
endstop_pin: D2_STOP
position_endstop: 0.5
position_max: 120

extruder

step_pin: D3_STEP
dir_pin: D3_DIR
enable_pin: !D3_EN
microsteps: 16
rotation_distance: 33.5
#gear_ratio: 50:10
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: HEAT0
sensor_pin: HEAT0_TEMP
sensor_type: ATC Semitec 104GT-2
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 350

BED

heater_bed

heater_pin: BED_OUT
sensor_pin: BED_TEMP
sensor_type: ATC Semitec 104GT-2
control: watermark
min_temp: 0
max_temp: 200

FANs

fan

pin: FAN0
#cycle_time: 0.50

fan_generic fan1

pin: FAN1

TMC2209 configuration./2209/2225

tmc2209 stepper_x

uart_pin: D0_CS
run_current: 0.800
interpolate: False

tmc2209 stepper_y

uart_pin: D1_CS
run_current: 0.800
interpolate: False

tmc2209 stepper_z

uart_pin: D2_CS
run_current: 0.800
interpolate: False

tmc2209 extruder

uart_pin: D3_CS
run_current: 0.800
interpolate: False

TMC5160 configuration

tmc5160 stepper_x

cs_pin: D0_CS
spi_bus: spi2  ##^Gemini v1.1
diag1_pin: D0_STOP
run_current: 0.800
interpolate: False

tmc5160 stepper_y

cs_pin: D1_CS
spi_bus: spi2  ##^Gemini v1.1
diag1_pin: D1_STOP
run_current: 0.800
interpolate: False

tmc5160 stepper_z

cs_pin: D2_CS
spi_bus: spi2  ##^Gemini v1.1
diag1_pin: D2_STOP
run_current: 0.650
interpolate: False

tmc5160 extruder

cs_pin: D3_CS
spi_bus: spi2  ##^Gemini v1.1
run_current: 0.800
interpolate: False

BLTouch

bltouch

sensor_pin: ^D3_STOP
control_pin: SERVO
pin_move_time: 0.680
x_offset: 0.0
y_offset: 2.3
z_offset: 2.2
speed: 70

safe_z_home

home_xy_position: 105,105

Mini 12864 LCD

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

neopixel fly_mini12864

pin: EXP1_6
chain_count: 3
initial_RED: 0.1
initial_GREEN: 0.5
initial_BLUE: 0.0
color_order: RGB
Tags: