Skip to main content

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

#####################################################################
# Important Notes #
#####################################################################
##***Items that need to be changed/checked:***
## 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 Motor Steps [extruder]

#####################################################################
# File Includes #
#####################################################################
#[include fluidd.cfg] # FLUIDD include file.
#[include mainsail.cfg] # MAINSDIL include file.
#Determine which file to use yourself.

#####################################################################
# Mainboard Configuration #
#####################################################################
[mcu] # FLY Mainboard ID
serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_XXXXXXXXXXXXXXXXXXXXX
### Query USB firmware ID with: 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 with: ~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0
### For CAN ID, replace serial with canbus_uuid: followed by the ID.

#####################################################################
# Printer Model and Acceleration #
#####################################################################
[printer] # Printer Settings
kinematics: corexy # Kinematics types: cartesian, corexy, etc. Cartesian: cartesian
max_velocity: 300 # Printer maximum velocity
max_accel: 3000 # Maximum acceleration, max 3000
max_z_velocity: 15 # Z-axis maximum velocity
max_z_accel: 100 # Z-axis maximum acceleration
square_corner_velocity: 5.0 # Square corner velocity, lower value helps reduce inertia from heavy platform.

#####################################################################
# Temperature Monitoring #
#####################################################################
[temperature_sensor Fly-Super8] # FLY Mainboard Temperature (rename as desired)
sensor_type: temperature_mcu # Associate with MCU (default)
#--------------------------------------------------------------------
[temperature_sensor FLY-π] # Host (SBC) Temperature
sensor_type: temperature_host # Associate with host
#--------------------------------------------------------------------
# [temperature_sensor Box] # Chamber Temperature (requires additional sensor, 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 # Sampling points (4x4 = 16 points)
mesh_pps: 2,2 # Additional sampling points
algorithm: bicubic # Algorithm model
bicubic_tension: 0.2 # Do not change algorithm interpolation value.

#####################################################################
# X/Y Stepper Motor Settings (X/Y Stepper Settings) #
#####################################################################
# B Motor ---- Motor A
# | |
# |------Extruder-------|
# | |
# | |
# Front
#####################################################################
# X-axis Stepper Motor on Driver0 (B Motor) #
#####################################################################
[stepper_x]
step_pin: PE2 # X-axis motor step pin setting
dir_pin: PC5 # X-axis motor direction pin setting, adjust direction as needed, adding '!' inverts direction.
enable_pin: !PF11 # X-axis motor enable pin setting, enable pin requires '!', otherwise motor won't work.
rotation_distance: 40 # Drive pulley circumference mm (2GT-20T pulley:40, 2GT-16T pulley:32)
microsteps: 16 # Motor microstepping setting, higher microsteps = better quality, but higher MCU load.
full_steps_per_rotation: 200 # Pulses per motor revolution (1.8-degree motor:200, 0.9-degree motor:400)
endstop_pin: !PG12 # Endstop pin, recommended to use normally closed and add '!' to invert state, located at io-3.
### When connected as normally closed, it's triggered. Adding '!' inverts this state, preventing crashes if wire breaks.
position_min: 0 # Soft limit minimum travel
position_endstop: 300 # Soft limit maximum travel (250mm-300mm-350mm)
position_max: 300 # Mechanical limit maximum travel (250mm-300mm-350mm)
homing_speed: 50 # Homing speed, maximum 100. Homing speed should not be too fast.
homing_retract_dist: 5 # Retract distance after first triggering the endstop.
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
## Ensure the driver model is configured correctly (2208 or 2209).
[tmc2209 stepper_x] # X Driver Configuration - TMC2209
uart_pin: PC4 # Communication port pin definition.
interpolate: False # Enable 256 microstep interpolation? (True to enable, False to disable).
run_current: 0.8 # Run current
sense_resistor: 0.110 # Driver sense resistor, do not change.
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if silent mode 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, software SPI recommended.
## spi_speed: 100000 # SPI communication speed.
#run_current: 1.0 # Motor run current value.
#interpolate: False # Enable 256 microstep interpolation? (True to enable, False to disable).
#sense_resistor: 0.075 # Driver sense resistor, do not change (if using 5160 Pro, change to 0.033).
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if silent mode not needed).
#####################################################################
# Y-axis Stepper Motor on Driver1 (A Motor) #
#####################################################################
[stepper_y]
step_pin: PE3 # Y-axis motor step pin setting.
dir_pin: PF13 # Y-axis motor direction pin setting, adjust direction as needed, adding '!' inverts direction.
enable_pin: !PF14 # Y-axis motor enable pin setting, enable pin requires '!', otherwise motor won't work.
rotation_distance: 40 # Drive pulley circumference mm (2GT-20T pulley:40, 2GT-16T pulley:32)
microsteps: 16 # Motor microstepping setting, higher microsteps = better quality, but higher MCU load.
full_steps_per_rotation: 200 # Pulses per motor revolution (1.8-degree motor:200, 0.9-degree motor:400)
endstop_pin: !PG11 # Endstop pin, recommended to use normally closed and add '!' to invert state, located at io-0.
### When connected as normally closed, it's triggered. Adding '!' inverts this state, preventing crashes if wire breaks.
position_min: 0 # Soft limit minimum travel
position_endstop: 300 # Soft limit maximum travel (250mm-300mm-350mm)
position_max: 300 # Mechanical limit maximum travel (250mm-300mm-350mm)
homing_speed: 50 # Homing speed, maximum 100. Homing speed should not be too fast.
homing_retract_dist: 5 # Retract distance after first triggering the endstop.
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
## Ensure the driver model is configured correctly (2208 or 2209).
[tmc2209 stepper_y] # Y Driver Configuration - TMC2209
uart_pin: PF12 # Communication port pin definition.
interpolate: False # Enable 256 microstep interpolation? (True to enable, False to disable).
run_current: 0.8 # Run current
sense_resistor: 0.110 # Driver sense resistor, do not change.
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if silent mode 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, software SPI recommended.
# spi_speed: 100000 # SPI communication speed.
#run_current: 1.0 # Motor run current value.
#interpolate: False # Enable 256 microstep interpolation? (True to enable, False to disable).
#sense_resistor: 0.075 # Driver sense resistor, do not change (if using 5160 Pro, change to 0.033).
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if silent mode not needed).

#####################################################################
# Z-axis Stepper Motor (Z Stepper Settings) #
#####################################################################
# |----- Z1 -----|
# | |
# | |
# | |
# Z0----Display----Z2

#####################################################################
# Z-axis Stepper Motor #
#####################################################################
## Z Stepper Motor - Front Left on Driver3
[stepper_z]
step_pin: PE14 # Z-axis motor step pin setting.
dir_pin: !PE8 # Z-axis motor direction pin setting, adjust direction as needed, adding '!' inverts direction.
enable_pin: !PE9 # Z-axis motor enable pin setting, enable pin requires '!', otherwise motor won't work.
### T8x4 leadscrew. One rotation moves the bed 4 mm.
## Modify according to your purchased leadscrew parameters.
rotation_distance: 8 # Leadscrew pitch is 8, modify according to your actual usage, three places need modification.
full_steps_per_rotation: 200 # Pulses per motor revolution (1.8-degree motor:200, 0.9-degree motor:400)
microsteps: 16 # Motor microstepping setting, higher microsteps = better quality, but higher MCU load.
endstop_pin: !PG10 # Endstop pin, recommended to use normally closed and add '!' to invert state, located at io-1.
## position_endstop is the position (in mm) of the nozzle relative to the print surface (Z0) to the Z endstop trigger point.
position_endstop: -0.5
## Positive value = endstop above bed, Negative value = endstop below bed.
## Increasing the position_endstop value brings the nozzle closer to the bed.
## After running Z_ENDSTOP_CALIBRATE, the position_endstop will be stored at the end of the CFG configuration.
position_min: -15 # (Nozzle cleaning requires around -5)
position_max: 300 # Mechanical limit maximum travel (250mm-300mm-350mm)
homing_speed: 5 # Homing speed - maximum 20
second_homing_speed: 3 # Second homing speed - maximum 10
homing_retract_dist: 0 # Retract distance
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 stepper_z]
uart_pin: PE7 # Driver communication port.
interpolate: false # 256 microstep interpolation.
run_current: 0.8 # Run current mA.
sense_resistor: 0.110 # Driver sense resistor, do not change.
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if silent mode 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, software SPI recommended.
# spi_speed: 100000 # SPI communication speed.
#run_current: 1.0 # Motor run current value.
#interpolate: False # Enable 256 microstep interpolation? (True to enable, False to disable).
#sense_resistor: 0.075 # Driver sense resistor, do not change (if using 5160 Pro, change to 0.033).
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if silent mode not needed).
#--------------------------------------------------------------------

## Z1 Stepper Motor - Rear on Driver4
[stepper_z1]
step_pin: PE15 # Z1-axis motor step pin setting.
dir_pin: !PE11 # Z1-axis motor direction pin setting, adjust direction as needed, adding '!' inverts direction.
enable_pin: !PF2 # Z1-axis motor enable pin setting, enable pin requires '!', otherwise motor won't work.
### T8x4 leadscrew. One rotation moves the bed 4 mm.
## Modify according to your purchased leadscrew parameters.
rotation_distance: 8 # Leadscrew pitch is 8.
full_steps_per_rotation: 200 # Pulses per motor revolution (1.8-degree motor:200, 0.9-degree motor:400)
microsteps: 16 # Motor microstepping setting, higher microsteps = better quality, but higher MCU load.
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 stepper_z1]
uart_pin: PE10 # Driver communication port.
interpolate: false # 256 microstep interpolation.
run_current: 0.8 # Run current mA.
sense_resistor: 0.110 # Driver sense resistor, do not change.
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if silent mode 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, software SPI recommended.
# spi_speed: 100000 # SPI communication speed.
#run_current: 1.0 # Motor run current value.
#interpolate: False # Enable 256 microstep interpolation? (True to enable, False to disable).
#sense_resistor: 0.075 # Driver sense resistor, do not change (if using 5160 Pro, change to 0.033).
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if silent mode not needed).
#--------------------------------------------------------------------

## Z2 Stepper Motor - Front Right on Driver5
[stepper_z2]
step_pin: PE1 # Z2-axis motor step pin setting.
dir_pin: !PF0 # Z2-axis motor direction pin setting, adjust direction as needed, adding '!' inverts direction.
enable_pin: !PC15 # Z2-axis motor enable pin setting, enable pin requires '!', otherwise motor won't work.
### T8x4 leadscrew. One rotation moves the bed 4 mm.
## Modify according to your purchased leadscrew parameters.
rotation_distance: 8 # Leadscrew pitch is 8.
full_steps_per_rotation: 200 # Pulses per motor revolution (1.8-degree motor:200, 0.9-degree motor:400)
microsteps: 16 # Motor microstepping setting, higher microsteps = better quality, but higher MCU load.
step_pulse_duration: 0.000004
#--------------------------------------------------------------------
[tmc2209 stepper_z2]
uart_pin: PF1 # Driver communication port.
interpolate: false # 256 microstep interpolation.
run_current: 0.8 # Run current mA.
sense_resistor: 0.110 # Driver sense resistor, do not change.
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if silent mode 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, software SPI recommended.
# spi_speed: 100000 # SPI communication speed.
#run_current: 1.0 # Motor run current value.
#interpolate: False # Enable 256 microstep interpolation? (True to enable, False to disable).
#sense_resistor: 0.075 # Driver sense resistor, do not change (if using 5160 Pro, change to 0.033).
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if silent mode not needed).
#--------------------------------------------------------------------

#####################################################################
# E0 Extruder Settings (E0 Settings) #
#####################################################################
#Driver2
[extruder] # Extruder
step_pin: PE4 # Extruder motor step pin.
dir_pin: !PG0 # Extruder motor direction pin setting.
enable_pin: !PG1 # Extruder motor enable pin setting.
## Update the following value after performing extruder calibration.
## For example, you request 100mm of filament, but 102 is actually extruded:
## rotation_distance = <old_rotation_distance> * <actual_extrude_length> / <requested_extrude_length>
## Calibration 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 ratio 7.5:1 and comment out this line; BMG is 50:17, output shaft in front, input shaft in back)
microsteps: 16 # Motor microstepping setting, higher microsteps = better quality, but higher MCU load.
full_steps_per_rotation: 200 # Pulses per revolution (200 for 1.8 degree, 400 for 0.9 degree)
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: exceeding set temperature triggers emergency stop)
max_temp: 350 # Maximum temperature (Note: exceeding set temperature triggers 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 (pressure advance adjusts this)
#Pressure advance tuning method: https://www.klipper3d.org/zh/Pressure_Advance.html
pressure_advance_smooth_time: 0.040 # Pressure advance smooth time - default is 0.040
#max_extrude_only_distance: 200.0 # If extrusion flow error occurs, 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 to enable, False to disable).
run_current: 0.5 # Motor run current value.
sense_resistor: 0.110 # Driver sense resistor, do not change.
stealthchop_threshold: 500 # StealthChop threshold (set to 0 if silent mode 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, software SPI recommended.
# spi_speed: 100000 # SPI communication speed.
#run_current: 1.0 # Motor run current value.
#interpolate: False # Enable 256 microstep interpolation? (True to enable, False to disable).
#sense_resistor: 0.075 # Driver sense resistor, do not change (if using 5160 Pro, change to 0.033).
#stealthchop_threshold: 500 # StealthChop threshold (set to 0 if silent mode not needed).

#####################################################################
# Heated Bed Configuration #
#####################################################################
[heater_bed]
heater_pin: PE5 # Heated bed interface
sensor_type: Generic 3950 # Heated bed sensor type
sensor_pin: PC1 # Heated bed sensor interface
max_power: 0.5 # Heated bed power
min_temp: 0 # Minimum temperature (Note: exceeding set temperature triggers emergency stop)
max_temp: 120 # Maximum temperature (Note: exceeding set temperature triggers 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 interface
kick_start_time: 0.5 # Kick start time (do not change)
off_below: 0.10 # Do not change
#--------------------------------------------------------------------
[heater_fan hotend_fan] # Hotend heatsink cooling fan
pin: PA1 # Signal interface
max_power: 1.0 # Maximum speed
kick_start_time: 0.5 # Kick start time (do not change)
heater: extruder # Associated device: extruder
heater_temp: 50 # Temperature at which fan starts when extruder reaches this value.
fan_speed: 1.0 # Fan speed
#--------------------------------------------------------------------
[heater_fan controller_fan] # Electronics compartment fan
pin: PA2 # Signal interface
max_power: 1.0 # Maximum speed
kick_start_time: 0.5 # Kick start time (do not change)
heater: heater_bed # Associated device: heated bed
heater_temp: 50 # Temperature at which fan starts when heated bed reaches this value.
fan_speed: 1.0 # Fan speed
#--------------------------------------------------------------------
[heater_fan exhaust_fan] # Exhaust fan
pin: PA3 # Signal interface
max_power: 1.0 # Maximum speed
kick_start_time: 0.5 # Kick start time (do not change)
heater: heater_bed # Associated device: heated bed
heater_temp: 70 # Temperature at which fan starts when heated bed reaches this value.
fan_speed: 1.0 # Fan speed


#####################################################################
# Bed Leveling Sensor #
#####################################################################
#Default PL08N inductive probe is not lower than nozzle height, used only for leveling. If your PL08N is NO (normally open), please change pin to add '!'.
[probe]
pin: ^PF3 # Endstop pin, recommended to use normally closed and add '!' to invert 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 # Leveling speed.
samples: 3 # Number of samples.
samples_result: median # Result calculation method (default median).
sample_retract_dist: 4.0 # Leveling retract distance.
samples_tolerance: 0.006 # Sample tolerance (Note: too small a value may increase sampling attempts).
samples_tolerance_retries: 3 # Tolerance exceed retry count.

#####################################################################
# 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 hop height before homing.
#--------------------------------------------------------------------
[homing_override] # Z-axis homing macro (If using Klicky, comment out this section).
axes: z
set_position_z: 0
gcode:
G90
G0 Z5 F600
G28 X Y
## Z endstop switch position.
## After testing a few times to ensure no issues, update X and Y to your values (e.g., X157, Y305).
## End pin position definition step.
G0 X-10 Y-10 F3600 # Update the X and Y values here.

G28 Z
G0 Z10 F1800

## Remove the "#" in front of the corresponding configuration based on your model size:
## Rough measurement is the middle of your bed.
#--------------------------------------------------------------------
## For 250mm model, remove the "#" in front of the following line to enable the configuration.
#G0 X125 Y125 Z30 F3600
#--------------------------------------------------------------------
## For 300mm model, remove the "#" in front of the following line to enable the configuration.
#G0 X150 Y150 Z30 F3600
#--------------------------------------------------------------------
## For 350mm model, remove the "#" in front of the following line to enable the configuration.
#G0 X175 Y175 Z30 F3600
#--------------------------------------------------------------------

#####################################################################
# 3Z Leveling
#####################################################################
[z_tilt]
## Use the Z_TILT_ADJUST command to level the gantry.
## z_positions: Positions of the print head.

##--------------------------------------------------------------------
## For 250mm model, remove the "#" in front of the following configuration to enable it.
#z_positions:
# -50, 18
# 125, 298
# 300, 18
#points:
# 30, 5
# 125, 195
# 220, 5
##--------------------------------------------------------------------
## For 300mm model, remove the "#" in front of the following configuration to enable it.
#z_positions:
# -50, 18
# 150, 348
# 350, 18
#points:
# 30, 5
# 150, 245
# 270, 5
##--------------------------------------------------------------------
## For 350mm model, remove the "#" in front of the following configuration to enable it.
#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 # Tolerance exceed retry count.

#####################################################################
# 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 setting.
#a0_pin: EXP1_4 # Display data/command (A0) pin setting.
#rst_pin: EXP1_5 # Display reset (RST) pin setting.
#contrast: 63 # Contrast.
#encoder_pins: ^EXP2_5, ^!EXP2_3 # Rotary encoder (knob) pin settings.
#click_pin: ^!EXP1_2 # Rotary encoder (knob) click button pin setting.
#spi_bus: spi1 # Must specify SPI channel.
#--------------------------------------------------------------------
##### For FLY Mini12864
#[neopixel fly_mini12864]
#pin: EXP1_6 # Display backlight control pin setting.
#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 Heated Bed Timeout
#####################################################################
[idle_timeout]
timeout: 1800 # If idle for more than 30 minutes, turn off heated bed.

#####################################################################
# Custom G-code Macros #
#####################################################################
[gcode_macro PRINT_START] # Set PRINT_START as the macro for print start, custom actions before printing.
gcode:
G92 E0 # Reset extruder.
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, custom actions before printing.
gcode:
G1 Z5 F3000
G92 E0; # Reset extruder.
G90 # Set to absolute positioning.
G0 X5 Y1 F6000 # Move to x5 y1 position, speed 100mm/s (F6000 means 6000mm per minute).
G0 Z0.4 # Move Z-axis height to 0.4.
G91 # Set to relative positioning.
G1 X100 E20 F1200; # Move X-axis 100mm, and extrude, change F to adjust extrusion rate.
G1 Y1 # Move Y-axis 1mm.
G1 X-100 E20 F1200; # Move X-axis -100mm, and extrude, change F to adjust extrusion rate.
G0 z5 # Raise Z-axis 5mm.
G1 E-5.0 F3600 # Retract filament.
G92 E0; # Reset extruder.
G90 # Set to absolute positioning.

#--------------------------------------------------------------------
[gcode_macro PRINT_END] # Set PRINT_END as the macro for print end, custom actions after printing completes.
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 remove ooze.
M104 S0 # Turn off hotend.
M140 S0 # Turn off heated bed.
M106 S0 # Turn off part cooling fan.
G90 # Set to absolute positioning.
G0 X{max_x / 2} Y{max_y} F3600 # Park nozzle at the rear.
BED_MESH_CLEAR # Unload bed mesh.

Loading...