Please or 注册 to create posts and topics.

Voron2.4-350-Octopus-八爪通用配置文件

电机顺序为 X-Y-E-Z0-Z1-Z2-Z3
## Voron Design VORON2 250/300/350mm Bigtreetech Octopus TMC2209 UART config
## ALLEN 2021.6.5 QQ:53602287
## *** THINGS TO CHANGE/CHECK: ***
## MCU paths [mcu] section
## Thermistor types [extruder] and [heater_bed] sections - See 'sensor types' list at end of file
## Z Endstop Switch location [homing_override] section
## Z Endstop Switch offset for Z0 [stepper_z] section
## Probe points [quad_gantry_level] section
## Min & Max gantry corner postions [quad_gantry_level] section
## PID tune [extruder] and [heater_bed] sections
## Fine tune E steps [extruder] section

##========================== Pin Definitions ========================
## DRIVER_SPI
## MOSI_PIN PA7
## MISO_PIN PA6
## SCK_PIN PA5

## X_STEP_PIN PF13
## X_DIR_PIN PF12
## X_ENABLE_PIN PF14
## X_ENDSTOP_PIN PG6
## X_UART_PIN PC4

## Y_STEP_PIN PG0
## Y_DIR_PIN PG1
## Y_ENABLE_PIN PF15
## Y_ENDSTOP_PIN PG12
## Y_UART_PIN PD11

## Z_STEP_PIN PG4
## Z_DIR_PIN PC1
## Z_ENABLE_PIN PA0
## Z_ENDSTOP_PIN PG9
## Z_UART_PIN PC7

## Z1_STEP_PIN PF9
## Z1_DIR_PIN PF10
## Z1_ENABLE_PIN PG2
## Z1_UART_PIN PF2

## Z2_STEP_PIN PC13
## Z2_DIR_PIN PF0
## Z2_ENABLE_PIN PF1
## Z2_UART_PIN PE4

## Z3_STEP_PIN PE2
## Z3_DIR_PIN PE3
## Z3_ENABLE_PIN PD4
## Z3_UART_PIN PE1

## E0_STEP_PIN PF11
## E0_DIR_PIN PG3
## E0_ENABLE_PIN PG5
## E0_UART_PIN PC6

## E1_STEP_PIN PE6
## E1_DIR_PIN PA14
## E1_ENABLE_PIN PE0
## E1_UART_PIN PD3

## BED PA1
## HE0 PA2
## HE1 PA3
## HE2 PB10
## HE3 PB11

## PF (PT100) PF8
## TB (TB Temp) PF3
## T0 (Bed Temp) PF4
## T1 PF5
## T2 PF6
## T3 PF7

## BL_TOUCH PB6,PB7
## G0_J27 PG6
## G0_J28 PG12
## G0_J29 PG9
## G0_J30 PG13
## G0_J31 PG10
## G0_J32 PG14
## G0_J33 PG11
## G0_J34 PG15

## FAN0 PA8
## FAN1 PE5
## FAN2 PD12
## FAN3 PD13
## FAN4 PD14
## FAN5 PD15
## SERVO PA3
##PS_ON PE11
##POWER_DET PC0
##RGB_LED PB0

##===================================================================

[mcu]
## MCU for X/Y/E/Z steppers main MCU
## [X in MOTOR0] - B Motor
## [Y in MOTOR1] - A Motor
## [E in MOTOR2_1] - Extruder
## [Z in MOTOR3] - Front Left
## [Z1 in MOTOR4] - Rear Left
## [Z2 in MOTOR5] - Rear Right
## [Z3 in MOTOR6]- Front Right
## Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
##--------------------------------------------------------------------
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_11001300115053424E363620-if00
##--------------------------------------------------------------------

[mcu rpi]
# This file contains common pin mappings for the BIGTREETECH Octopus V1.0 board.
# To use this config, the firmware should be compiled for the STM32F446.
# When calling "menuconfig", enable "extra low-level configuration setup"
# and select the "12MHz crystal" as clock reference
# For flashing, write the compiled klipper.bin to memory location 0x08000000
##--------------------------------------------------------------------
serial: /tmp/klipper_host_mcu
##--------------------------------------------------------------------

[printer]
kinematics: corexy
max_velocity: 500
max_accel: 12000 #Max 4000
max_accel_to_decel: 12000
max_z_velocity: 15 #Max 15 for 12V TMC Drivers, can increase for 24V
max_z_accel: 350 #Max ?
square_corner_velocity: 5.0 #Can experiment with 8.0, default 5.0

#####################################################################
# ADXL345
#####################################################################

[adxl345]
cs_pin: rpi:None

[resonance_tester]
accel_chip: adxl345
probe_points:
175,175,30 # an example

########################################
# TMC SPI configuration
########################################

# For TMC SPI
# 1) Remove four jumpers below the stepper drivers, connecting the outermost and middle pins of each row.

# For TMC Sensorless homing / DIAG1
# 1) Place a jumper on the two pin header near the endstop.

# SPI pins:
# SCK PA5
# MISO PA6
# MOSI PA7

#[tmc2130 stepper_x]
#spi_bus: spi1
#cs_pin: PE7
#diag1_pin: PB14
#microsteps: 16
#run_current: 0.800
#hold_current: 0.500
#stealthchop_threshold: 250

#####################################################################
# X/Y Stepper Settings
#####################################################################

[stepper_x]
## Connected to X on MOTOR0 (B Motor)
step_pin: PF13
dir_pin: !PF12
enable_pin: !PF14
rotation_distance: 40
microsteps: 64
full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
endstop_pin: !PG6
position_min: 0
##--------------------------------------------------------------------

## Uncomment below for 250mm build
#position_endstop: 250
#position_max: 250

## Uncomment for 300mm build
#position_endstop: 300
#position_max: 300

## Uncomment for 350mm build
position_endstop: 350
position_max: 350

##--------------------------------------------------------------------
homing_speed: 60 #Max 100
homing_retract_dist: 5
homing_positive_dir: True

## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_x]
uart_pin: PC4
interpolate: True
run_current: 1.0
hold_current: 1.0
sense_resistor: 0.110
stealthchop_threshold: 1

[stepper_y]
## Connected to Y on MOTOR1 (A Motor)
step_pin: PG0
dir_pin: !PG1
enable_pin: !PF15
rotation_distance: 40
microsteps: 16
full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
endstop_pin: !PG12
position_min: 0
##--------------------------------------------------------------------

## Uncomment for 250mm build
#position_endstop: 250
#position_max: 250

## Uncomment for 300mm build
#position_endstop: 300
#position_max: 300

## Uncomment for 350mm build
position_endstop: 350
position_max: 350

##--------------------------------------------------------------------
homing_speed: 60 #Max 100
homing_retract_dist: 5
homing_positive_dir: True

## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_y]
uart_pin: PD11
interpolate: True
run_current: 1.0
hold_current: 1.0
sense_resistor: 0.110
stealthchop_threshold: 1

#####################################################################
# Z Stepper Settings
#####################################################################

## MCU - In MOTOR3 Position
## Z0 Stepper - Front Left
[stepper_z]
step_pin: PG4
dir_pin: !PC1
enable_pin: !PA0
rotation_distance: 40
gear_ratio: 80:16
microsteps: 64
endstop_pin: PG9
## Z-position of nozzle (in mm) to z-endstop trigger point relative to print surface (Z0)
## (+) value = endstop above Z0, (-) value = endstop below
## Increasing position_endstop brings nozzle closer to the bed
## After you run Z_ENDSTOP_CALIBRATE, position_endstop will be stored at the very end of your config
#position_endstop: -0.5
##--------------------------------------------------------------------

## Uncomment below for 250mm build
#position_max: 240

## Uncomment below for 300mm build
#position_max: 290

## Uncomment below for 350mm build
position_max: 340

##--------------------------------------------------------------------
position_min: -5
homing_speed: 8.0
second_homing_speed: 3.0
homing_retract_dist: 3.0

## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_z]
uart_pin: PC7
interpolate: True
run_current: 1.2
hold_current: 1.0
sense_resistor: 0.110
stealthchop_threshold: 100

## MCU - In MOTOR4 Position
## Z1 Stepper - Rear Left
[stepper_z1]
step_pin: PF9
dir_pin: !PF10
enable_pin: !PG2
rotation_distance: 40
gear_ratio: 80:16
microsteps: 64

## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_z1]
uart_pin: PF2
interpolate: True
run_current: 1.2
hold_current: 1.0
sense_resistor: 0.110
stealthchop_threshold: 1

## MCU - In MOTOR5 Position
## Z2 Stepper - Rear Right
[stepper_z2]
step_pin: PC13
dir_pin: !PF0
enable_pin: !PF1
rotation_distance: 40
gear_ratio: 80:16
microsteps: 64

## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_z2]
uart_pin: PE4
interpolate: True
run_current: 1.2
hold_current: 1.0
sense_resistor: 0.110
stealthchop_threshold: 1

## MCU - In MOTOR6 Position
## Z3 Stepper - Front Right
[stepper_z3]
step_pin: PE2
dir_pin: !PE3
enable_pin: !PD4
rotation_distance: 40
gear_ratio: 80:16
microsteps: 64

## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 stepper_z3]
uart_pin: PE1
interpolate: True
run_current: 1.2
hold_current: 1.0
sense_resistor: 0.110
stealthchop_threshold: 1

#####################################################################
# Extruder
#####################################################################

# E0 on MCU MOTOR2_1 Position
[extruder]
step_pin: PF11
dir_pin: PG3
enable_pin: !PG5
## Update value below when you perform extruder calibration
## If you ask for 100mm of filament, but in reality it is 98mm:
## rotation_distance = * / 100
## 22.6789511 is a good starting point
rotation_distance: 25.12 #Bondtech 5mm Drive Gears
## Update Gear Ratio depending on your Extruder Type
## Use 50:17 for Afterburner/Clockwork (BMG Gear Ratio)
## Use 80:20 for M4, M3.1
gear_ratio: 50:17
microsteps: 32
full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
nozzle_diameter: 0.400
filament_diameter: 1.75
heater_pin: PA2
## Validate the following thermistor type to make sure it is correct
#sensor_type: ATC Semitec 104GT-2
sensor_type: PT1000
sensor_pin: PF3
min_temp: -10
max_temp: 450
max_power: 1.0
min_extrude_temp: 170
#control = pid
#pid_kp = 26.213
#pid_ki = 1.304
#pid_kd = 131.721
## Try to keep pressure_advance below 1.0
pressure_advance: 0.05
## Default is 0.040, leave stock
pressure_advance_smooth_time: 0.040

## E0 on MCU MOTOR2_1 Position
## Make sure to update below for your relevant driver (2208 or 2209)
[tmc2209 extruder]
uart_pin: PC6
interpolate: False
run_current: 0.5
hold_current: 0.4
sense_resistor: 0.110
stealthchop_threshold: 0

#####################################################################
# Bed Heater
#####################################################################

[heater_bed]
## SSR Pin - HE0 Position
heater_pin: PA3
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: PF4
## Adjust Max Power so your heater doesn't warp your bed
max_power: 1.0
min_temp: 0
max_temp: 125
#control: pid
#pid_kp: 58.437
#pid_ki: 2.347
#pid_kd: 363.769

#####################################################################
# Probe
#####################################################################

[probe]
## Inductive Probe
## This probe is not used for Z height, only Quad Gantry Leveling
## MCU on J40 Position
## If your probe is NO instead of NC, add change pin to !PB7
pin: ^!PB7
x_offset: 0
y_offset: 25.0
z_offset: 0
speed: 10.0
samples: 3
samples_result: median #average
sample_retract_dist: 3.0
samples_tolerance: 0.003
samples_tolerance_retries: 3

#####################################################################
# Bltouch
#####################################################################

#[bltouch]
## Bltouch - If you use this section , please comment the [probe] section
## More infomation at : https://www.klipper3d.org/BLTouch.html
## This bltouch is not used for Z height, only Quad Gantry Leveling
## In Z+ Position
#pin_up_touch_mode_reports_triggered: False

#sensor_pin: PB7
## In Y+ Position
#control_pin: PB6
#x_offset: 0
#y_offset: 25
#z_offset: 0
#speed: 10.0
#samples: 3
#samples_result: median #average
#sample_retract_dist: 3.0
#samples_tolerance: 0.5
#samples_tolerance_retries: 3

#####################################################################
# Fan Control
#####################################################################

[heater_fan hotend_fan]
## Hotend Fan - J50 Fan Position
pin: PA8
max_power: 1.0
kick_start_time: 0.5
heater: extruder
heater_temp: 50.0
## If you are experiencing back flow, you can reduce fan_speed
#fan_speed: 1.0

[fan]
## Print Cooling Fan - J51 Fan Position
pin: PE5
max_power: 1.0
kick_start_time: 0.5
## Depending on your fan, you may need to increase this value
## if your fan will not start. Can change cycle_time (increase)
## if your fan is not able to slow down effectively
#off_below: 0.10
off_below: 0.0010
cycle_time: 0.1

[heater_fan controller_fan]
## Controller fan - J52 Fan Position
pin: PD12
kick_start_time: 0.5
heater: heater_bed
heater_temp: 45.0
fan_speed: 0.4

#[heater_fan exhaust_fan]
## Exhaust fan - J53 Fan Position
#pin: PD13
#max_power: 1.0
#shutdown_speed: 0.0
#kick_start_time: 5.0
#heater: heater_bed
#heater_temp: 60
#fan_speed: 1.0

[temperature_fan chamber]
## Exhaust fan - J53 Fan Position
pin: PD13
max_power: 1.0
shutdown_speed: 0.0
kick_start_time: 5.0
cycle_time:0.01
off_below:0.1
sensor_type: ATC Semitec 104GT-2
sensor_pin: PF5
min_temp: -10
max_temp: 120
target_temp: 40
max_speed: 1.0
min_speed: 0.1
control: watermark
#gcode_id: C

#[gcode_macro M141]
#default_parameter_S: 50
#default_parameter_P: 35
#gcode:
# SET_TEMPERATURE_FAN_TARGET temperature_fan="chamber" target={S}

#####################################################################
# LED Control
#####################################################################

#[output_pin caselight]
# Chamber Lighting - Bed Connector (Optional)
#pin: PB0
#pwm:true
#shutdown_value: 0
#value:1
#cycle_time: 0.01

######################################################################
# RGB header
######################################################################

# See the example-extras.cfg file for more information.

#[output_pin blue]
#pin: PB7

#[output_pin red]
#pin: PB6

#[output_pin green]
#pin: PB5

#####################################################################
# Homing and Gantry Adjustment Routines
#####################################################################

[idle_timeout]
timeout: 1800

[safe_z_home]
## XY Location of the Z Endstop Switch
## Update -10,-10 to the XY coordinates of your endstop pin
## (such as 157,305) after going through Z Endstop Pin
## Location Definition step.
home_xy_position:230,350
speed:100
z_hop:10

[quad_gantry_level]
## Use QUAD_GANTRY_LEVEL to level a gantry.
## Min & Max gantry corners - measure from nozzle at MIN (0,0) and
## MAX (250, 250), (300,300), or (350,350) depending on your printer size
## to respective belt positions

#--------------------------------------------------------------------
## Gantry Corners for 250mm Build
## Uncomment for 250mm build
#gantry_corners:
# -60,-10
# 310, 320
## Probe points
#points:
# 50,25
# 50,175
# 200,175
# 200,25

## Gantry Corners for 300mm Build
## Uncomment for 300mm build
#gantry_corners:
# -60,-10
# 360,370
## Probe points
#points:
# 50,25
# 50,225
# 250,225
# 250,25

## Gantry Corners for 350mm Build
## Uncomment for 350mm build
gantry_corners:
-60,-10
410,420
## Probe points
points:
50,25
50,275
300,275
300,25

#--------------------------------------------------------------------
speed: 100
horizontal_move_z: 10
retries: 3
retry_tolerance: 0.0075
max_adjust: 10

#####################################################################
# BED MESH CALIBRATE
#####################################################################

[bed_mesh]
#[bed_mesh]
##FOLLOW THE FORUMULA FOR relative_reference_index, for example:
##[(7x7)-1] / 2 = 24
##[(5x5)-1] / 2 = 12
#relative_reference_index = ()(x points * y points) - 1) / 2
speed: 200
horizontal_move_z: 10
##--------------------------------------------------------------------
## Uncomment below for 250mm build
#mesh_min: 40, 40
#mesh_max: 210,210

## Uncomment for 300mm build
#mesh_min: 40, 40
#mesh_max: 260,260

## Uncomment for 350mm build
#mesh_min: 40, 40
#mesh_max: 310,310
mesh_min: 30,30
mesh_max: 320,320
##--------------------------------------------------------------------
fade_start: 0.6
fade_end: 10
#split_delta_z: 0.01
#move_check_distance: 3
probe_count: 5,5
algorithm: bicubic
relative_reference_index: 12
#bicubic_tension: 0.20

#####################################################################
# Displays
#####################################################################

## Uncomment the display that you have. Display connects to MCU
#--------------------------------------------------------------------
# These must be turned 180° when compared to the default RAMPS layout.
# The aliases below are 180° turned from what Fysetc considers pin 1,
# but visually correspond to the plugs on the board.

[board_pins]
aliases:
# EXP1 header
EXP1_1=PE8, EXP1_2=PE7,
EXP1_3=PE9, EXP1_4=PE10,
EXP1_5=PE12, EXP1_6=PE13, # Slot in the socket on this side
EXP1_7=PE14, EXP1_8=PE15,
EXP1_9=, EXP1_10=,

# EXP2 header
EXP2_1=PA6, EXP2_2=PA5,
EXP2_3=PB1, EXP2_4=PA4,
EXP2_5=PB2, EXP2_6=PA7, # Slot in the socket on this side
EXP2_7=PC15, EXP2_8=,
EXP2_9=, EXP2_10=

# See the sample-lcd.cfg file for definitions of common LCD displays.

[display]
## mini12864 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
# display_group: __voron_display
# menu_root: __voron_main
menu_timeout: 30
spi_software_miso_pin: EXP2_1
spi_software_mosi_pin: EXP2_6
spi_software_sclk_pin: EXP2_2

[neopixel my_neopixel]
## To control Neopixel RGB in mini12864 display
pin: PE13
chain_count: 3
initial_RED: 0.1
initial_GREEN: 0.5
initial_BLUE: 0.5
color_order: RGB

## Set RGB values on boot up for each Neopixel.
## Index 1 = display, Index 2 and 3 = Knob

#[delayed_gcode setdisplayneopixel]
#initial_duration: 1
#gcode:
# SET_LED LED=my_neopixel RED=1 GREEN=1 BLUE=1 INDEX=1 TRANSMIT=0
# SET_LED LED=my_neopixel RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0
# SET_LED LED=my_neopixel RED=1 GREEN=0 BLUE=0 INDEX=3

#--------------------------------------------------------------------

#####################################################################
# Optional Settings
#####################################################################

## Force Move for manual stepper control
#[force_move]
#enable_force_move: true

## Pause/Resume Functionality
#[pause_resume]
#[display_status]

## Timeout after idle
#[idle_timeout]
#timeout: 1800 ; 60 minutes

## This adds the 'respond' G-Code that you can use to send commands back to OctoPrint
#[respond]
#default_type: echo

## add virtual sd card
#[virtual_sdcard]
#path: ~/gcode_files

#[virtual_sdcard]
#path: /home/pi/sdcard
#path: ~/.octoprint/uploads
#path: ~/gcode_files

[include client.cfg]
[include client_macros.cfg]

[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 10
max_temp: 100

[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100

#[gcode_macro Rset_BLTOUCH]
#gcode:
# BLTOUCH_DEBUG COMMAND=reset

#[gcode_macro XQTZ]
#gcode:
# G90
# G0 Z10 F3600
# G0 X265 Y350 F3600
# G0 Z0 F3600
# G0 Z18 F3600

#[gcode_macro FHTZ]
#gcode:
# G90
# G0 X265 Y350 F3600
# G0 Z2 F3600
# G0 X250 F3600
# G0 Z5 F600

[gcode_macro NOZZLE_CLEAR]
gcode:
#G91
#G1 Z10 F1000
G90
G0 X75 Y350 F5000
G0 Z0 F1000
G0 X125 Y350 F5000
G0 X75 Y350 F5000
G0 X125 Y350 F5000
G0 X75 Y350 F5000
G0 X125 Y350 F3600

#[gcode_macro PURGE_LINE]
#gcode:
#G1 X15 Y15 Z2 F18000.0
#G92 E0
#G1 Z2.0 F3000
#G1 X15 Y20 Z0.3 F18000.0
#G1 X15 Y200.0 Z0.3 F1500.0 E15
#G1 X15 Y200.0 Z0.3 F18000.0
#G1 X20 Y20 Z0.3 F1500.0 E30
#G92 E0
#G1 Z2.0 F3000

#####################################################################
# Servo
#####################################################################

# See the example-extras.cfg file for more information.

#[servo my_servo1]
#pin: PA3 # shared with ZMAX

#####################################################################
# AUX-3 / SPI header
#####################################################################

# , , SS,
# , MISO , SCK,

#####################################################################
# Macros
#####################################################################

[gcode_macro G32]
gcode:
BED_MESH_CLEAR
G28
# XQTZ
QUAD_GANTRY_LEVEL
# FHTZ
NOZZLE_CLEAR
G28
## Uncomment for for your size printer:
#--------------------------------------------------------------------
## Uncomment for 250mm build
#G0 X125 Y125 Z30 F3600

## Uncomment for 300 build
#G0 X150 Y150 Z30 F3600

## Uncomment for 350mm build
G0 X175 Y175 Z30 F3600
#--------------------------------------------------------------------

[gcode_macro PRINT_START]
# Use PRINT_START for the slicer starting script - please customise for your slicer of choice
gcode:
G32 ; home all axes
# BED_MESH_PROFILE LOAD=HOT
G1 Z20 F3000 ; move nozzle away from bed

[gcode_macro PRINT_END]
# Use PRINT_END for the slicer ending script - please customise for your slicer of choice
gcode:
M400 ; wait for buffer to clear
G92 E0 ; zero the extruder
G1 E-2.0 F3600 ; retract filament
G91 ; relative positioning
G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing
TURN_OFF_HEATERS
M107 ; turn off fan
G1 Z2 F3000 ; move nozzle up 2mm
G90 ; absolute positioning
G0 X175 Y350 F3600 ; park nozzle at rear
BED_MESH_CLEAR

## Thermistor Types
## "EPCOS 100K B57560G104F"
## "ATC Semitec 104GT-2"
## "NTC 100K beta 3950"
## "Honeywell 100K 135-104LAG-J01"
## "NTC 100K MGB18-104F39050L32" (Keenovo Heater Pad)
## "AD595"
## "PT100 INA826"

#*#
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 24.110
#*# pid_ki = 1.017
#*# pid_kd = 142.849
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 62.852
#*# pid_ki = 3.352
#*# pid_kd = 294.617
#*#
#*# [stepper_z]
#*# position_endstop = -1.100
#*#
#*# [input_shaper]
#*# shaper_type_x = ei
#*# shaper_freq_x = 57.2
#*# shaper_type_y = zv
#*# shaper_freq_y = 37.4

没有账号? 注册  忘记密码?

社交账号快速登录