pin substitutions

This commit is contained in:
Torsten 2023-01-30 14:53:28 +02:00
parent 6c916e6323
commit fda68e3dee

View File

@ -8,55 +8,22 @@
# Read more about klipper here: https://www.klipper3d.org/Overview.html
#############################################################################################################
### CONTROL BOARD
### Pick the board you have installed and wired in your printer.
#############################################################################################################
# not all aliases are set yet, but diag pins my be usefull in future (i.e detecting skipped steps on extruder)
[board_pins octopus_11_tmc2209]
aliases:
# steppers
x_step_pin=PF13, x_dir_pin=PF12, x_enable_pin=PF14, x_uart_pin=PC4, x_diag_pin=PG6, x_endstop_pin=PG6,
y_step_pin=PG0, y_dir_pin=PG1, y_enable_pin=PF15, y_uart_pin=PD11, y_diag_pin=PG9, y_endstop_pin=PG9,
z0_step_pin=PC13, z0_dir_pin=PF0, z0_enable_pin=PF1, z0_uart_pin=PE4, z0_diag_pin=null,
z1_step_pin=PE2, z1_dir_pin=PE3, z1_enable_pin=PD4, z1_uart_pin=PE1, z1_diag_pin=null,
z2_step_pin=PE6, z2_dir_pin=PA14, z2_enable_pin=PE0, z2_uart_pin=PD3, z2_diag_pin=null,
e_step_pin=PF11, e_dir_pin=PG3, e_enable_pin=PG5, e_uart_pin=PC6, e_diag_pin=null, e_heater_pin=PA2, e_sensor_pin=PF4,
# accel
adxl345_cs_pin=PA15,
# auto leveling
bltouch_sensor_pin=PB7, bltouch_control_pin=PB6,
probe_pin=PB7,
# fans
fan_part_cooling_pin=PA8,
fan_toolhead_cooling_pin=PE5,
fan_controller_board_pin=PD12,
# Bed heater
heater_bed_heating_pin=PA1,
heater_bed_sensor_pin=PF3,
## Expansion ports
# EXP1 header
EXP1_1=PE8, EXP1_3=PE9, EXP1_5=PE12, EXP1_7=PE14, EXP1_9=<GND>,
EXP1_2=PE7, EXP1_4=PE10, EXP1_6=PE13, EXP1_8=PE15, EXP1_10=<5V>,
# EXP2 header
EXP2_1=PA6, EXP2_3=PB1, EXP2_5=PB2, EXP2_7=PC15, EXP2_9=<GND>,
EXP2_2=PA5, EXP2_4=PA4, EXP2_6=PA7, EXP2_8=<RST>, EXP2_10=PC5,
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi2"
[mcu]
baud: 250000
serial: /dev/btt-octopus-11
[temperature_sensor Octopus]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
[adxl345]
spi_bus: spi3
cs_pin: adxl345_cs_pin
cs_pin: PA15
#############################################################################################################
### BASE SETUP
@ -73,9 +40,6 @@ gcode:
# 2 hour timeout
timeout: 7200
[temperature_sensor raspberry_pi]
sensor_type: temperature_host
[skew_correction]
[input_shaper]
@ -93,23 +57,23 @@ enable_force_move: True
[respond]
[heater_bed]
heater_pin: heater_bed_heating_pin
sensor_pin: heater_bed_sensor_pin
heater_pin: PA1
sensor_pin: PF3
sensor_type: Generic 3950
min_temp: 0
max_temp: 120
pwm_cycle_time: 0.02 # 50hz for european AC, to avoid flickering lights.
[fan]
pin: fan_part_cooling_pin
pin: PA8
shutdown_speed: 1.0
[heater_fan toolhead_cooling_fan]
pin: fan_toolhead_cooling_pin
pin: PE5
fan_speed: 1
[controller_fan controller_fan]
pin: fan_controller_board_pin
pin: PD12
# These are only safeguards for first time users
# Modify printer.cfg to tune acceleration.
@ -134,18 +98,18 @@ max_z_accel: 20
### Pick the drivers and stepper motors you're using. See the RatOS documentation for custom combinations.
#############################################################################################################
[stepper_x]
step_pin: x_step_pin
dir_pin: x_dir_pin
enable_pin: !x_enable_pin
step_pin: PF13
dir_pin: PF12
enable_pin: !PF14
rotation_distance: 40
microsteps: 64
homing_speed: 50
homing_retract_dist: 0
[stepper_y]
step_pin: y_step_pin
dir_pin: y_dir_pin
enable_pin: !y_enable_pin
step_pin: PG0
dir_pin: PG1
enable_pin: !PF15
rotation_distance: 40
microsteps: 64
homing_speed: 50
@ -153,32 +117,32 @@ homing_retract_dist: 0
[stepper_z]
endstop_pin: probe:z_virtual_endstop
step_pin: z0_step_pin
dir_pin: z0_dir_pin
enable_pin: !z0_enable_pin
step_pin: PC13
dir_pin: PF0
enable_pin: !PF1
rotation_distance: 4
microsteps: 64
position_min: -5 # Needed for z-offset calibration and tilt_adjust.
homing_speed: 10
[stepper_z1]
step_pin: z1_step_pin
dir_pin: z1_dir_pin
enable_pin: !z1_enable_pin
step_pin: PE2
dir_pin: PE3
enable_pin: !PD4
rotation_distance: 4
microsteps: 64
[stepper_z2]
step_pin: z2_step_pin
dir_pin: z2_dir_pin
enable_pin: !z2_enable_pin
step_pin: PE6
dir_pin: PA14
enable_pin: !PE0
rotation_distance: 4
microsteps: 64
[extruder]
step_pin: e_step_pin
dir_pin: !e_dir_pin
enable_pin: !e_enable_pin
step_pin: PF11
dir_pin: !PG3
enable_pin: !PG5
microsteps: 64
# UNCOOLED TMC 2209 + LDO-42STH48-2504AC
@ -199,7 +163,7 @@ square_corner_velocity: 5
# Backwards compatibility
[tmc2209 stepper_x]
uart_pin: x_uart_pin
uart_pin: PC4
run_current: 1.1
stealthchop_threshold: 1
@ -209,7 +173,7 @@ run_current: 1.1
stealthchop_threshold: 1
[tmc2209 extruder]
uart_pin: e_uart_pin
uart_pin: PC6
run_current: 0.5
stealthchop_threshold: 0
@ -219,18 +183,18 @@ run_current: 1.0
stealthchop_threshold: 1
[tmc2209 stepper_z1]
uart_pin: z1_uart_pin
uart_pin: PE1
run_current: 1.1
stealthchop_threshold: 1
[tmc2209 stepper_z2]
uart_pin: z2_uart_pin
uart_pin: PD3
run_current: 1.0
stealthchop_threshold: 1
[tmc2209 stepper_x]
uart_pin: x_uart_pin
uart_pin: PC4
run_current: 1.1
stealthchop_threshold: 1
@ -240,7 +204,7 @@ run_current: 1.1
stealthchop_threshold: 1
[tmc2209 extruder]
uart_pin: e_uart_pin
uart_pin: PC6
run_current: 0.5
stealthchop_threshold: 0
@ -250,17 +214,17 @@ run_current: 1.0
stealthchop_threshold: 1
[tmc2209 stepper_z1]
uart_pin: z1_uart_pin
uart_pin: PE1
run_current: 1.1
stealthchop_threshold: 1
[tmc2209 stepper_z2]
uart_pin: z2_uart_pin
uart_pin: PD3
run_current: 1.0
stealthchop_threshold: 1
[tmc2209 stepper_x]
uart_pin: x_uart_pin
uart_pin: PC4
run_current: 1.1
driver_TBL: 1
driver_TOFF: 3
@ -284,7 +248,7 @@ driver_HEND: 0
driver_HSTRT: 0
[tmc2209 stepper_z1]
uart_pin: z1_uart_pin
uart_pin: PE1
run_current: 1.1
driver_TBL: 1
driver_TOFF: 3
@ -292,7 +256,7 @@ driver_HEND: 0
driver_HSTRT: 0
[tmc2209 stepper_z2]
uart_pin: z2_uart_pin
uart_pin: PD3
run_current: 1.1
driver_TBL: 1
driver_TOFF: 3
@ -305,8 +269,8 @@ driver_HSTRT: 0
#############################################################################################################
# BL Touch
[bltouch]
sensor_pin: ^bltouch_sensor_pin
control_pin: bltouch_control_pin
sensor_pin: ^PB7
control_pin: PB6
speed: 7
pin_move_time: 0.675
sample_retract_dist: 10
@ -318,11 +282,11 @@ y_offset: -13
# Physical endstops
[stepper_x]
endstop_pin: x_endstop_pin
endstop_pin: PG6
homing_retract_dist: 5.0
[stepper_y]
endstop_pin: y_endstop_pin
endstop_pin: PG9
homing_positive_dir: true
homing_retract_dist: 5.0
@ -385,9 +349,9 @@ filament_diameter: 1.750
max_extrude_only_velocity: 60
max_extrude_only_distance: 200
nozzle_diameter: 0.4
heater_pin: e_heater_pin
heater_pin: PA2
sensor_type: ATC Semitec 104GT-2
sensor_pin: e_sensor_pin
sensor_pin: PF4
min_extrude_temp: 170
min_temp: 0
max_temp: 400
@ -474,7 +438,7 @@ variable_macro_travel_speed: 100
### Customize the defaults to your specific build
#############################################################################################################
[stepper_x]
dir_pin: x_dir_pin # Add ! in front of pin name to reverse X stepper direction
dir_pin: PF12 # Add ! in front of pin name to reverse X stepper direction
rotation_distance: 40 # 40 for 20 tooth 2GT pulleys, 32 for 16 tooth 2GT pulleys
position_endstop: 0 # Adjust this to your setup
#x_offset: -27.0
@ -482,7 +446,7 @@ position_endstop: 0 # Adjust this to your setup
[stepper_y]
dir_pin: y_dir_pin # Add ! in front of pin name to reverse Y stepper direction
dir_pin: PG1 # Add ! in front of pin name to reverse Y stepper direction
rotation_distance: 40 # 40 for 20 tooth 2GT pulleys, 32 for 16 tooth 2GT pulleys
position_endstop: 480 # 300mm printer
position_min: 5
@ -493,17 +457,17 @@ position_min: 5
#position_endstop: 500 # 500mm printer
[stepper_z]
dir_pin: !z0_dir_pin # Add ! in front of pin name to reverse Z stepper direction
dir_pin: !PF0 # Add ! in front of pin name to reverse Z stepper direction
rotation_distance: 4 # 4 for TR8*4 lead screws
endstop_pin: probe: z_virtual_endstop
[stepper_z1]
dir_pin: !z1_dir_pin # Add ! in front of pin name to reverse Z1 direction
dir_pin: !PE3 # Add ! in front of pin name to reverse Z1 direction
rotation_distance: 4 # 4 for TR8*4 lead screws
endstop_pin: probe: z_virtual_endstop
[stepper_z2]
dir_pin: !z2_dir_pin # Add ! in front of pin name to reverse Z2 direction
dir_pin: !PA14 # Add ! in front of pin name to reverse Z2 direction
rotation_distance: 4 # 4 for TR8*4 lead screws
endstop_pin: probe: z_virtual_endstop
@ -520,10 +484,10 @@ pin_move_time: 0.8
# [probe]
# z_offset: 1.0 # Adjust this to fit your setup -> "1.0" is placeholder!
# pin: ^probe_pin # For NPN NC probes such as the Super Pinda / Vinda / SupCR / Decoprobe probes.
#pin: ^!probe_pin # NPN NO (refer to the specs on your probe)
#pin: probe_pin # PNP NO (refer to the specs on your probe)
#pin: !probe_pin # PNP NC (refer to the specs on your probe)
# pin: ^PB7 # For NPN NC probes such as the Super Pinda / Vinda / SupCR / Decoprobe probes.
#pin: ^!PB7 # NPN NO (refer to the specs on your probe)
#pin: PB7 # PNP NO (refer to the specs on your probe)
#pin: !PB7 # PNP NC (refer to the specs on your probe)
# Safe Z Home (Physical endstops only)
[safe_z_home]
@ -541,18 +505,12 @@ z_hop_speed: 5
# Check https://www.klipper3d.org/Pressure_Advance.html for pressure advance tuning.
#pressure_advance: 0.05
nozzle_diameter: 0.4 # Remember to change this if you change nozzle diameter.
dir_pin: e_dir_pin # Remove ! in front of pin name to reverse extruder direction
dir_pin: PG3 # Remove ! in front of pin name to reverse extruder direction
#control: pid
#pid_kp: 28.413
#pid_ki: 1.334
#pid_kd: 151.300
[heater_bed]
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
# [bed_mesh]
# speed: 30