VORON Trident Reference Configuration
####################################################################################
# 3D MELLOW /FLY-Super8-Pro #
####################################################################################
## FLY-Super8-Pro Documentation URL: http://mellow.klipper.cn/#/board/fly_super8_pro/README
## FLY-Super8-Pro Schematic URL: https://github.com/Mellow-3D/Fly-Super8Pro
## FLY Official Taobao Store: https://shop126791347.taobao.com/shop/view_shop.htm?spm=a230r.1.14.4.1a4840a8hyvpPJ&user_number_id=2464680006
## For after-sales service, please contact Taobao customer service
## FLY After-sales Technical Support Group: 621032883
## FLY-RRF Firmware Discussion Group: 786561979
#####################################################################
# Notes #
#####################################################################
##***Items to Change/Check:***
## MCU Path [mcu]
## Printer Movement Range xyz position
## Thermistor Type [extruder] and [heater_bed]
## Z-axis Endstop Stop Position [homing_override]
## Z-axis Endstop Offset Position [stepper_z]
## PID Calibration [extruder] and [heater_bed]
## Fine-tune Extruder Stepper Value [extruder]
#####################################################################
# File Includes #
#####################################################################
#[include fluidd.cfg] # FLUIDD include file.
#[include mainsail.cfg] # MAINSALL include file.
# You need to determine which file to use yourself.
#####################################################################
# Board Configuration #
#####################################################################
[mcu] # FLY Board ID
serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_XXXXXXXXXXXXXXXXXXXXX
### Query USB firmware ID using: ls -l /dev/serial/by-id/
### Replace /dev/serial/by-id/usb-Klipper_stm32f407xx_XXXXXXXXXXXXXXXXXXXXX with the queried ID
#canbus_uuid: e51d5c71a901
### Query CAN firmware ID using: ~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0
### For CAN ID, replace `serial` with `canbus_uuid:` and append the ID.
#####################################################################
# Printer Model and Acceleration #
#####################################################################
[printer] # Printer Settings
kinematics: corexy # Kinematics structure: Cartesian and CoreXY, etc. Cartesian: cartesian
max_velocity: 300 # Maximum print speed
max_accel: 3000 # Maximum acceleration. Max 3000
max_z_velocity: 15 # Maximum Z-axis speed
max_z_accel: 100 # Maximum Z-axis acceleration
square_corner_velocity: 5.0 # Square corner velocity. A lower value can effectively avoid inertia caused by platform weight.
#####################################################################
# Temperature Monitoring #
#####################################################################
[temperature_sensor Fly-Super8] # FLY Board Temperature (can be renamed)
sensor_type: temperature_mcu # Associate with MCU (default)
#--------------------------------------------------------------------
[temperature_sensor FLY-π] # Host Temperature
sensor_type: temperature_host # Associate with host
#--------------------------------------------------------------------
# [temperature_sensor Box] # Chamber Temperature (requires an additional thermistor, see reference config)
# sensor_type: ATC Semitec 104GT-2 # Sensor model
# sensor_pin: PA4 # Signal pin
#####################################################################
# Bed Mesh Calibration
#####################################################################
[bed_mesh]
speed: 50 # Calibration speed
horizontal_move_z: 5 # Z lift height before probe moves to next point
mesh_min: 30,30 # Minimum calibration point coordinates x, y
mesh_max: 270, 270 # Maximum calibration point coordinates x, y
probe_count: 4,4 # Number of sample points (4x4 = 16 points)
mesh_pps: 2,2 # Sub-sample point count
algorithm: bicubic # Algorithm model
bicubic_tension: 0.2 # Algorithm interpolation - do not modify
#####################################################################
# X/Y Stepper Settings #
#####################################################################
# B Motor ---- Motor A
# | |
# |------Extruder-----|
# | |
# | |
# Front
#####################################################################
# X-axis Stepper on Driver0 (B Motor) #
#####################################################################
[stepper_x]
step_pin: PE2 # X-axis motor pulse pin
dir_pin: PC5 # X-axis motor direction pin. Determine direction based on actual condition, add `!` to reverse direction.
enable_pin: !PF11 # X-axis motor enable pin. Enable pin must have `!` otherwise motor will not work.
rotation_distance: 40 # Pulley circumference mm (2GT-20T pulley: 40, 2GT-16T pulley: 32)
microsteps: 16 # Motor microstep setting. Higher microsteps yield higher quality but increase MCU load.
full_steps_per_rotation: 200 # Pulses per motor revolution (1.8° motor: 200, 0.9° motor: 400)
endstop_pin: !PG12 # Endstop pin. NC is recommended, then add `!` to reverse state. Located at io-3.
### When connected as NC, it is in triggered state. Adding `!` reverses this state, preventing crashes if the wire breaks.
position_min: 0 # Software limit minimum travel
position_endstop: 300 # Software limit maximum travel (250mm-300mm-350mm)
position_max: 300 # Mechanical limit maximum travel (250mm-300mm-350mm)
homing_speed: 50 # Homing speed, max 100. It is recommended not to set homing speed too fast.
homing_retract_dist: 5 # Retract distance after first trigger of endstop
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
## Ensure the driver model is correctly configured (2208 or 2209)
[tmc2209 stepper_x] # X Driver Configuration - TMC2209
uart_pin: PC4 # Communication port pin definition
interpolate: False # Enable 256 microstep interpolation (True = enable, False = disable)
run_current: 0.8 # Running current
sense_resistor: 0.110 # Driver sense resistor - do not change
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if StealthChop is not needed)
#--------------------------------------------------------------------
#[tmc5160 stepper_x] # Extruder Driver Configuration - TMC5160
#cs_pin: PC4 # SPI chip select pin definition
# spi_software_mosi_pin: PB5
# spi_software_miso_pin: PB4
# spi_software_sclk_pin: PB3
## spi_bus: spi1a # SPI bus selection, it is recommended to use software SPI first
## spi_speed: 100000 # SPI communication speed
#run_current: 1.0 # Motor running current value
#interpolate: False # Enable 256 microstep interpolation (True = enable, False = disable)
#sense_resistor: 0.075 # Driver sense resistor - do not change (if using 5160 Pro, change value to 0.033)
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if StealthChop is not needed)
#####################################################################
# Y-axis Stepper on Driver1 (A Motor) #
#####################################################################
[stepper_y]
step_pin: PE3 # Y-axis motor pulse pin
dir_pin: PF13 # Y-axis motor direction pin. Determine direction based on actual condition, add `!` to reverse direction.
enable_pin: !PF14 # Y-axis motor enable pin. Enable pin must have `!` otherwise motor will not work.
rotation_distance: 40 # Pulley circumference mm (2GT-20T pulley: 40, 2GT-16T pulley: 32)
microsteps: 16 # Motor microstep setting. Higher microsteps yield higher quality but increase MCU load.
full_steps_per_rotation: 200 # Pulses per motor revolution (1.8° motor: 200, 0.9° motor: 400)
endstop_pin: !PG11 # Endstop pin. NC is recommended, then add `!` to reverse state. Located at io-0.
### When connected as NC, it is in triggered state. Adding `!` reverses this state, preventing crashes if the wire breaks.
position_min: 0 # Software limit minimum travel
position_endstop: 300 # Software limit maximum travel (250mm-300mm-350mm)
position_max: 300 # Mechanical limit maximum travel (250mm-300mm-350mm)
homing_speed: 50 # Homing speed, max 100. It is recommended not to set homing speed too fast.
homing_retract_dist: 5 # Retract distance after first trigger of endstop
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
## Ensure the driver model is correctly configured (2208 or 2209)
[tmc2209 stepper_y] # Y Driver Configuration - TMC2209
uart_pin: PF12 # Communication port pin definition
interpolate: False # Enable 256 microstep interpolation (True = enable, False = disable)
run_current: 0.8 # Running current
sense_resistor: 0.110 # Driver sense resistor - do not change
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if StealthChop is not needed)
#--------------------------------------------------------------------
#[tmc5160 stepper_y] # Extruder Driver Configuration - TMC5160
#cs_pin: PF12 # SPI chip select pin definition
# spi_software_mosi_pin: PB5
# spi_software_miso_pin: PB4
# spi_software_sclk_pin: PB3
## spi_bus: spi1a # SPI bus selection, it is recommended to use software SPI first
# spi_speed: 100000 # SPI communication speed
#run_current: 1.0 # Motor running current value
#interpolate: False # Enable 256 microstep interpolation (True = enable, False = disable)
#sense_resistor: 0.075 # Driver sense resistor - do not change (if using 5160 Pro, change value to 0.033)
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if StealthChop is not needed)
#####################################################################
# Z-axis Stepper Settings #
#####################################################################
# |----- Z1 -----|
# | |
# | |
# | |
# Z0----Display----Z2
#####################################################################
# Z-axis Stepper #
#####################################################################
## Z Stepper - Front Left on Driver3
[stepper_z]
step_pin: PE14 # Z-axis motor pulse pin
dir_pin: !PE8 # Z-axis motor direction pin. Determine direction based on actual condition, add `!` to reverse direction.
enable_pin: !PE9 # Z-axis motor enable pin. Enable pin must have `!` otherwise motor will not work.
### T8x4 lead screw. One revolution moves the bed 4 mm.
## Please modify according to the lead screw parameters you purchased
rotation_distance: 8 # Lead screw pitch is 8. Please modify based on your actual usage. Total 3 modifications needed.
full_steps_per_rotation: 200 # Pulses per motor revolution (1.8° motor: 200, 0.9° motor: 400
microsteps: 16 # Motor microstep setting. Higher microsteps yield higher quality but increase MCU load.
endstop_pin: !PG10 # Endstop pin. NC is recommended, then add `!` to reverse state. Located at io-1.
## position_endstop is the position of the nozzle relative to the print surface (Z0) when the Z endstop is triggered (unit: mm)
position_endstop: -0.5
## Positive value = stop point above the platform, negative value = stop point below the platform
## Increasing the position_endstop value moves the nozzle closer to the bed
## After running Z_ENDSTOP_CALIBRATE, position_endstop will be saved at the end of the CFG configuration
position_min: -15 # (configuring nozzle cleaning requires approximately -5)
position_max: 300 # Mechanical limit maximum travel (250mm-300mm-350mm)
homing_speed: 5 # Homing speed - max 20
second_homing_speed: 3 # Second homing speed - max 10
homing_retract_dist: 0 # Retract distance
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 stepper_z]
uart_pin: PE7 # Driver communication port
interpolate: false # Microstep interpolation 256
run_current: 0.8 # Running current mA
sense_resistor: 0.110 # Driver sense resistor - do not change
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if StealthChop is not needed)
#--------------------------------------------------------------------
#[tmc5160 stepper_z] # Extruder Driver Configuration - TMC5160
#cs_pin: PE7 # SPI chip select pin definition
# spi_software_mosi_pin: PB5
# spi_software_miso_pin: PB4
# spi_software_sclk_pin: PB3
## spi_bus: spi1a # SPI bus selection, it is recommended to use software SPI first
# spi_speed: 100000 # SPI communication speed
#run_current: 1.0 # Motor running current value
#interpolate: False # Enable 256 microstep interpolation (True = enable, False = disable)
#sense_resistor: 0.075 # Driver sense resistor - do not change (if using 5160 Pro, change value to 0.033)
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if StealthChop is not needed)
#--------------------------------------------------------------------
## Z1 Stepper - Rear on Driver4
[stepper_z1]
step_pin: PE15 # Z1-axis motor pulse pin
dir_pin: !PE11 # Z1-axis motor direction pin. Determine direction based on actual condition, add `!` to reverse direction.
enable_pin: !PF2 # Z1-axis motor enable pin. Enable pin must have `!` otherwise motor will not work.
### T8x4 lead screw. One revolution moves the bed 4 mm.
## Please modify according to the lead screw parameters you purchased
rotation_distance: 8 # Lead screw pitch is 8
full_steps_per_rotation: 200 # Pulses per motor revolution (1.8° motor: 200, 0.9° motor: 400
microsteps: 16 # Motor microstep setting. Higher microsteps yield higher quality but increase MCU load.
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 stepper_z1]
uart_pin: PE10 # Driver communication port
interpolate: false # Microstep interpolation 256
run_current: 0.8 # Running current mA
sense_resistor: 0.110 # Driver sense resistor - do not change
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if StealthChop is not needed)
#--------------------------------------------------------------------
#[tmc5160 stepper_z1] # Extruder Driver Configuration - TMC5160
#cs_pin: PE10 # SPI chip select pin definition
# spi_software_mosi_pin: PB5
# spi_software_miso_pin: PB4
# spi_software_sclk_pin: PB3
## spi_bus: spi1a # SPI bus selection, it is recommended to use software SPI first
# spi_speed: 100000 # SPI communication speed
#run_current: 1.0 # Motor running current value
#interpolate: False # Enable 256 microstep interpolation (True = enable, False = disable)
#sense_resistor: 0.075 # Driver sense resistor - do not change (if using 5160 Pro, change value to 0.033)
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if StealthChop is not needed)
#--------------------------------------------------------------------
## Z2 Stepper - Front Right on Driver5
[stepper_z2]
step_pin: PE1 # Z2-axis motor pulse pin
dir_pin: !PF0 # Z2-axis motor direction pin. Determine direction based on actual condition, add `!` to reverse direction.
enable_pin: !PC15 # Z2-axis motor enable pin. Enable pin must have `!` otherwise motor will not work.
### T8x4 lead screw. One revolution moves the bed 4 mm.
## Please modify according to the lead screw parameters you purchased
rotation_distance: 8 # Lead screw pitch is 8
full_steps_per_rotation: 200 # Pulses per motor revolution (1.8° motor: 200, 0.9° motor: 400
microsteps: 16 # Motor microstep setting. Higher microsteps yield higher quality but increase MCU load.
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 stepper_z2]
uart_pin: PF1 # Driver communication port
interpolate: false # Microstep interpolation 256
run_current: 0.8 # Running current mA
sense_resistor: 0.110 # Driver sense resistor - do not change
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if StealthChop is not needed)
#--------------------------------------------------------------------
#[tmc5160 stepper_z2] # Extruder Driver Configuration - TMC5160
#cs_pin: PF1 # SPI chip select pin definition
# spi_software_mosi_pin: PB5
# spi_software_miso_pin: PB4
# spi_software_sclk_pin: PB3
## spi_bus: spi1a # SPI bus selection, it is recommended to use software SPI first
# spi_speed: 100000 # SPI communication speed
#run_current: 1.0 # Motor running current value
#interpolate: False # Enable 256 microstep interpolation (True = enable, False = disable)
#sense_resistor: 0.075 # Driver sense resistor - do not change (if using 5160 Pro, change value to 0.033)
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if StealthChop is not needed)
#--------------------------------------------------------------------
#####################################################################
# E0 Extruder Settings #
#####################################################################
#Driver2
[extruder] # Extruder
step_pin: PE4 # Extruder motor pulse pin
dir_pin: !PG0 # Extruder motor direction pin
enable_pin: !PG1 # Extruder motor enable pin
## Update the following value after performing extruder calibration
## For example, if you request 100mm of filament, but the actual extrusion is 102mm:
## rotation_distance = <old_rotation_distance> * <actual_extrusion_length> / <requested_extrusion_length>
## Calibrate step value: 22.44 = old value 22 * actual value 102 / target value 100
rotation_distance: 22.44 # Step value
gear_ratio: 50:17 # Gear ratio (Galileo gear ratio 7.5:1 and comment out this line; BMG is 50:17, output shaft at front, input shaft at rear)
microsteps: 16 # Motor microstep setting. Higher microsteps yield higher quality but increase MCU load.
full_steps_per_rotation: 200 # Pulses per revolution (200 for 1.8°, 400 for 0.9°)
nozzle_diameter: 0.400 # Nozzle diameter
filament_diameter: 1.75 # Filament diameter
heater_pin: PB0 # Heater cartridge pin
sensor_type: ATC Semitec 104GT-2 # Sensor model (Generic 3950, ATC Semitec 104GT-2, PT1000)
sensor_pin: PF4 # Sensor pin, connected to ADC_0
min_temp: 10 # Minimum temperature (Note: measured temperature exceeding the set value will trigger emergency stop)
max_temp: 350 # Maximum temperature (Note: measured temperature exceeding the set value will trigger emergency stop)
max_power: 1.0 # Maximum power
min_extrude_temp: 170 # Minimum extrusion temperature (extruder can only extrude after reaching this temperature)
pressure_advance: 0.05 # Pressure advance - try to keep pressure below 1.0 (this adjusts pressure advance)
# Pressure advance adjustment method: https://www.klipper3d.org/Pressure_Advance.html
pressure_advance_smooth_time: 0.040 # Smooth time for pressure advance - default 0.040
#max_extrude_only_distance: 200.0 # If extrusion flow reports errors, you can comment this out, but re-slicing is recommended
max_extrude_only_distance: 800
max_extrude_cross_section:800
# Nozzle temperature PID calibration command: "PID_CALIBRATE HEATER=extruder TARGET=245"
control:watermark
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 extruder] # Extruder Driver Configuration - TMC2209
uart_pin: PF15 # Communication port pin definition
interpolate: False # Enable 256 microstep interpolation (True = enable, False = disable)
run_current: 0.5 # Motor running current value
sense_resistor: 0.110 # Driver sense resistor - do not change
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if StealthChop is not needed)
#--------------------------------------------------------------------
#[tmc5160 extruder] # Extruder Driver Configuration - TMC5160
#cs_pin: PF15 # SPI chip select pin definition
# spi_software_mosi_pin: PB5
# spi_software_miso_pin: PB4
# spi_software_sclk_pin: PB3
## spi_bus: spi1a # SPI bus selection, it is recommended to use software SPI first
# spi_speed: 100000 # SPI communication speed
#run_current: 1.0 # Motor running current value
#interpolate: False # Enable 256 microstep interpolation (True = enable, False = disable)
#sense_resistor: 0.075 # Driver sense resistor - do not change (if using 5160 Pro, change value to 0.033)
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if StealthChop is not needed)
#####################################################################
# Heated Bed Configuration #
#####################################################################
[heater_bed]
heater_pin: PE5 # Heated bed pin
sensor_type: Generic 3950 # Heated bed sensor type
sensor_pin: PC1 # Heated bed sensor pin
max_power: 0.5 # Heated bed power
min_temp: 0 # Minimum temperature (Note: measured temperature exceeding the set value will trigger emergency stop)
max_temp: 120 # Maximum temperature (Note: measured temperature exceeding the set value will trigger emergency stop)
# Heated bed temperature PID calibration command: "PID_CALIBRATE HEATER=heater_bed TARGET=100"
control:watermark
#####################################################################
# Fan Configuration #
#####################################################################
[fan] # Part cooling fan
pin: PA0 # Signal pin
kick_start_time: 0.5 # Start time (do not change)
off_below: 0.10 # Do not change
#--------------------------------------------------------------------
[heater_fan hotend_fan] # Heat sink cooling fan
pin: PA1 # Signal pin
max_power: 1.0 # Maximum speed
kick_start_time: 0.5 # Start time (do not change)
heater: extruder # Associated device: extruder
heater_temp: 50 # Temperature at which the extruder activates the fan
fan_speed: 1.0 # Fan speed
#--------------------------------------------------------------------
[heater_fan controller_fan] # Electronics bay fan
pin: PA2 # Signal pin
max_power: 1.0 # Maximum speed
kick_start_time: 0.5 # Start time (do not change)
heater: heater_bed # Associated device: heated bed
heater_temp: 50 # Temperature at which the heated bed activates the fan
fan_speed: 1.0 # Fan speed
#--------------------------------------------------------------------
[heater_fan exhaust_fan] # Exhaust fan
pin: PA3 # Signal pin
max_power: 1.0 # Maximum speed
kick_start_time: 0.5 # Start time (do not change)
heater: heater_bed # Associated device: heated bed
heater_temp: 70 # Temperature at which the heated bed activates the fan
fan_speed: 1.0 # Fan speed
#####################################################################
# Probe Sensor #
#####################################################################
#By default, the PL08N probe is installed not lower than the nozzle height. It is only used for bed leveling. If your PL08N is NO (Normally Open), please change the pin and add `!`.
[probe]
pin: ^PF3 # Endstop pin. NC is recommended, then add `!` to reverse state. Located at io-2.
x_offset: 0 # X-axis - Sensor offset relative to nozzle
y_offset: 25.0 # Y-axis - Sensor offset relative to nozzle
z_offset: 0 # Z-axis - Sensor offset relative to nozzle
speed: 10.0 # Probing speed
samples: 3 # Number of samples
samples_result: median # Result method (default: median)
sample_retract_dist: 4.0 # Retract distance between samples
samples_tolerance: 0.006 # Sample tolerance (Note: too small a value may increase the number of samples)
samples_tolerance_retries: 3 # Number of retries if tolerance is exceeded
#####################################################################
# Homing #
#####################################################################
# [safe_z_home] # Z-axis endstop coordinates
# home_xy_position:206,300 # Z-axis endstop position definition (Important!!! Adjust yourself)
# speed:100 # Homing speed
# z_hop:10 # Z lift before homing
#--------------------------------------------------------------------
[homing_override] # Z-axis homing macro (if using Klicky, comment this part out)
axes: z
set_position_z: 0
gcode:
G90
G0 Z5 F600
G28 X Y
## Z endstop position
## Test a few more times to ensure everything is correct, then update X and Y to your values (e.g., X157, Y305)
## End of pin position definition step.
G0 X-10 Y-10 F3600 # Update X and Y values here
G28 Z
G0 Z10 F1800
## Remove the "#" before the corresponding configuration based on your model size:
## Roughly measure the center of your bed.
#--------------------------------------------------------------------
## For 250mm model, remove the "#" from the line below to enable the configuration:
#G0 X125 Y125 Z30 F3600
#--------------------------------------------------------------------
## For 300mm model, remove the "#" from the line below to enable the configuration:
#G0 X150 Y150 Z30 F3600
#--------------------------------------------------------------------
## For 350mm model, remove the "#" from the line below to enable the configuration:
#G0 X175 Y175 Z30 F3600
#--------------------------------------------------------------------
#####################################################################
# 3Z Leveling
#####################################################################
[z_tilt]
## Use Z_TILT_ADJUST command to level the bed
## z_positions: Position of the print head
##--------------------------------------------------------------------
## For 250mm model, remove the "#" from the configurations below to enable:
#z_positions:
# -50, 18
# 125, 298
# 300, 18
#points:
# 30, 5
# 125, 195
# 220, 5
##--------------------------------------------------------------------
## For 300mm model, remove the "#" from the configurations below to enable:
#z_positions:
# -50, 18
# 150, 348
# 350, 18
#points:
# 30, 5
# 150, 245
# 270, 5
##--------------------------------------------------------------------
## For 350mm model, remove the "#" from the configurations below to enable:
#z_positions:
# -50, 18
# 175, 398
# 400, 18
#points:
# 30, 5
# 175, 295
# 320, 5
#--------------------------------------------------------------------
speed: 100 # Leveling speed
horizontal_move_z: 10 # Z-axis starting height
retry_tolerance: 0.0075 # Sample tolerance
retries: 5 # Number of retries if tolerance is exceeded
#####################################################################
# 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 # Display driver type
#cs_pin: EXP1_3 # Display chip select (CS) pin
#a0_pin: EXP1_4 # Display data/command (A0) pin
#rst_pin: EXP1_5 # Display reset (RST) pin
#contrast: 63 # Contrast
#encoder_pins: ^EXP2_5, ^!EXP2_3 # Rotary encoder (knob) pins
#click_pin: ^!EXP1_2 # Rotary encoder (knob) click pin
#spi_bus: spi1 # SPI channel must be specified
#--------------------------------------------------------------------
#####Suitable for FLY Mini12864
#[neopixel fly_mini12864]
#pin: EXP1_6 # Display backlight control pin
#chain_count: 3
#initial_RED: 0.5 # Red LED brightness control (range: 0-1)
#initial_GREEN: 0.5 # Green LED brightness control (range: 0-1)
#initial_BLUE: 0.5 # Blue LED brightness control (range: 0-1)
#color_order: RGB # Color order
#####################################################################
# Idle Timeout - Bed Shutdown
#####################################################################
[idle_timeout]
timeout: 1800 # Turn off heated bed after 30 minutes of idle time
#####################################################################
# Custom Gcode Macros #
#####################################################################
[gcode_macro PRINT_START] # Set PRINT_START as the macro executed at the start of a print - customize pre-print actions
gcode:
G92 E0 # Reset extrusion
BED_MESH_CLEAR # Unload bed mesh
G28 # Home all axes
Z_TILT_ADJUST # Gantry leveling
G28 # Home all axes
G1 Z20 F3000 # Move nozzle away from bed
BED_MESH_PROFILE LOAD=default # Load bed mesh
#--------------------------------------------------------------------
[gcode_macro PRINT_HUAXIAN] # Set PRINT_HUAXIAN as the macro after PRINT_START - customize pre-print actions
gcode:
G1 Z5 F3000
G92 E0; # Reset extrusion
G90 # Set absolute coordinate system
G0 X5 Y1 F6000 # Move to X5 Y1 position, speed 100mm/s (F6000 = 6000mm/min)
G0 Z0.4 # Move Z height to 0.4
G91 # Set coordinate system to relative coordinates
G1 X100 E20 F1200; # Move X axis 100mm and extrude, change F to change extrusion rate
G1 Y1 # Move Y axis 1mm
G1 X-100 E20 F1200; # Move X axis 100mm in opposite direction and extrude, change F to change extrusion rate
G0 Z5 # Raise Z axis 5mm
G1 E-5.0 F3600 # Retract filament
G92 E0; # Reset extrusion
G90 # Set absolute coordinate system
#--------------------------------------------------------------------
[gcode_macro PRINT_END] # Set PRINT_END as the macro executed at the end of a print - customize post-print actions
gcode:
# Get Boundaries
{% 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 %}
# Check end position to determine safe directions to move
{% if printer.toolhead.position.x < (max_x - 20) %}
{% set x_safe = 20.0 %}
{% else %}
{% set x_safe = -20.0 %}
{% endif %}
{% if printer.toolhead.position.y < (max_y - 20) %}
{% set y_safe = 20.0 %}
{% else %}
{% set y_safe = -20.0 %}
{% endif %}
{% if printer.toolhead.position.z < (max_z - 2) %}
{% set z_safe = 2.0 %}
{% else %}
{% set z_safe = max_z - printer.toolhead.position.z %}
{% endif %}
M400 # Wait for buffer to clear
G92 E0 # Zero the extruder
G1 E-10.0 F3600 # Retract filament
G91 # Relative positioning
G0 Z{z_safe} F3600 # Raise gantry
G0 X{x_safe} Y{y_safe} F20000 # Move nozzle to clear string
M104 S0 # Turn off extruder heater
M140 S0 # Turn off heated bed
M106 S0 # Turn off part cooling fan
G90 # Set absolute coordinate system
G0 X{max_x / 2} Y{max_y} F3600 # Park nozzle at the rear
BED_MESH_CLEAR # Unload bed mesh
Loading...