Jump to content
  • 0

BTT Octopus 1.1 change from 2209 xy drivers to 5160


Neo

Question

Hi folks,

 

i tried to figure it out myself but am not able get it working.

First of all my 2.4 was running fine with 2209´s but after a break of nearly 2 months it is behaving crude and destroyed a printbed and nozzel.

I did not observe the first layer truth to be told but why it normally worked fine.

Anyway i changed the print start macro with the online tool, works fine so far, an it accelerated the print start process. Configured z-offset and started a new print.

But now i get layer shifts from hell!

My conclusion was:

1. Drivers overheating or defect

2. Motors defect

Changed first the drivers to new 2209 but same result.

Changed the motors but same result.

Now i bought TMC 5160 drivers, set the jumpers as described for spi,  but am not able to get them running. I stumble fom one error message to a new.

Does any of you got a working printer.cfg for xy with 5160 or can tell me what to change in my config.

The current error message is:

 

Pin 'stepper_spi_miso_pin' is not a valid pin name on mcu 'mcu'

Once the underlying issue is corrected, use the "RESTART"
command to reload the config and restart the host software.
Printer is halted

 

 

My config is:

 

# This file contains common pin mappings for the BigTreeTech Octopus
# and Octopus Pro boards. To use this config, start by identifying the
# micro-controller on the board - it may be an STM32F446, STM32F429,
# or an STM32H723.  Select the appropriate micro-controller in "make
# menuconfig" and select "Enable low-level configuration options". For
# STM32F446 boards the firmware should be compiled with a "32KiB
# bootloader" and a "12MHz crystal" clock reference. For STM32F429
# boards use a "32KiB bootloader" and an "8MHz crystal". For STM32H723
# boards use a "128KiB bootloader" and a "25Mhz crystal".

# See docs/Config_Reference.md for a description of parameters.
## *** THINGS TO CHANGE/CHECK: ***
## MCU paths                            [mcu] section
## Thermistor types                     [extruder] and [heater_bed] sections - See https://www.klipper3d.org/Config_Reference.html#common-thermistors for common thermistor types
## Z Endstop Switch location            [safe_z_home] section
## Homing end position                  [gcode_macro G32] 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
## Probe pin                            [probe] section
## Fine tune E steps                    [extruder] section


#####################################################################
#   MCU & Printer Kinematic
#####################################################################
#--------------------------------------------------------------------
[mcu]  ##    Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
# serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_250028000251313133353932-if00
serial: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0
restart_method: command
#--------------------------------------------------------------------
# CAN bus is also available on this board
#--------------------------------------------------------------------
[printer]
kinematics: corexy
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
#--------------------------------------------------------------------
[include mainsail.cfg]
[include macros.cfg]
[include stealthburner_leds.cfg]
#--------------------------------------------------------------------
# Enable arcs support
[gcode_arcs]
resolution: 0.1

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

##  B Stepper - Left
##  Connected to MOTOR_0
##  Endstop connected to DIAG_0
# Driver0
[stepper_x]
step_pin: PF13
dir_pin: !PF12
enable_pin: !PF14
microsteps: 16
rotation_distance: 40
full_steps_per_rotation:200  #set to 400 for 0.9 degree stepper
endstop_pin: PG6
position_min: 0
#--------------------------------------------------------------------
position_endstop: 350
position_max: 350
#--------------------------------------------------------------------
homing_speed: 50   #Max 100
homing_retract_dist: 5
homing_positive_dir: true
#--------------------------------------------------------------------

[tmc5160 stepper_x]
cs_pin: PC4
spi_bus: spi1
diag1_pin: x_diag_pin
run_current: 0.800
stealthchop_threshold: 999999

#[tmc2209 stepper_x]
#uart_pin: PC4
#diag_pin: PG6
#run_current: 0.800
#stealthchop_threshold: 0


##  A Stepper - Right
##  Connected to MOTOR_1
##  Endstop connected to DIAG_1
# Driver1
[stepper_y]
step_pin: PG0
dir_pin: PG1
enable_pin: !PF15
microsteps: 16
rotation_distance: 40
full_steps_per_rotation:200  #set to 400 for 0.9 degree stepper
endstop_pin: PG9
position_min: 0
#--------------------------------------------------------------------
position_endstop: 350
position_max: 350
#--------------------------------------------------------------------
homing_speed: 50  #Max 100
homing_retract_dist: 5
homing_positive_dir: true
#--------------------------------------------------------------------

[tmc5160 stepper_y]
cs_pin: PD11
spi_bus: spi1
#diag1_pin: y_diag_pin
run_current: 0.800
stealthchop_threshold: 999999

#[tmc2209 stepper_y]
#uart_pin: PD11
#diag_pin: PG9
#run_current: 0.800
#stealthchop_threshold: 0


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

# Driver2
[stepper_z]
step_pin: PF11
dir_pin: PG3
enable_pin: !PG5
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
endstop_pin: !PG10
#position_endstop: 1.5
position_min: -2
position_max: 400
#--------------------------------------------------------------------
[tmc2209 stepper_z]
uart_pin: PC6
diag_pin: PG10
run_current: 0.800
stealthchop_threshold: 999999
#--------------------------------------------------------------------

# Driver3
#[stepper_z1]
#step_pin: PG4
#dir_pin: !PC1
#enable_pin: !PA0
#rotation_distance: 40
#gear_ratio: 80:16
#microsteps: 32
#--------------------------------------------------------------------
#[tmc2209 stepper_z1]
#uart_pin: PC7
#run_current: 0.650
#stealthchop_threshold: 999999
#--------------------------------------------------------------------

# Driver7
[stepper_z1]
step_pin: PE6
dir_pin: !PA14
enable_pin: !PE0
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
#--------------------------------------------------------------------
[tmc2209 stepper_z1]
uart_pin: PD3
run_current: 0.800
stealthchop_threshold: 999999
#--------------------------------------------------------------------


# Driver4
[stepper_z2]
step_pin: PF9
dir_pin: PF10
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
enable_pin: !PG2
#--------------------------------------------------------------------
[tmc2209 stepper_z2]
uart_pin: PF2
run_current: 0.800
stealthchop_threshold: 999999
#--------------------------------------------------------------------


# Driver5
[stepper_z3]
step_pin: PC13
dir_pin: !PF0
rotation_distance: 40
gear_ratio: 80:16
microsteps: 32
enable_pin: !PF1
#--------------------------------------------------------------------
[tmc2209 stepper_z3]
uart_pin: PE4
run_current: 0.800
stealthchop_threshold: 999999
#--------------------------------------------------------------------

########################################
# Extruder
########################################
# Driver6
[extruder]
step_pin: PE2
dir_pin: PE3
enable_pin: !PD4
microsteps: 128
##  Update value below when you perform extruder calibration
##  If you ask for 100mm of filament, but in reality it is 98mm:
##  rotation_distance = <previous_rotation_distance> * <actual_extrude_distance> / 100
##  22.6789511 is a good starting point
rotation_distance: 22.6789511   #Bondtech 5mm Drive Gears
##  rotation_distance: 4.637 #Orbiter 2.0
##  Update Gear Ratio depending on your Extruder Type
##  Use 50:10 for Stealthburner/Clockwork 2
##  Use 50:17 for Afterburner/Clockwork (BMG Gear Ratio)
##  Use 80:20 for M4, M3.1
gear_ratio: 50:10               #50:10 BMG Gear Ratio
nozzle_diameter: 0.600
filament_diameter: 1.750
heater_pin: PA2 # HE0
sensor_pin:  PF4 # T0
sensor_type: Honeywell 100K 135-104LAG-J01
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114
min_temp: 0
max_temp: 350
##--------------------------------------------------------------------
[tmc2209 extruder]
uart_pin: PE1
run_current: 0.800
stealthchop_threshold: 999999
##--------------------------------------------------------------------

########################################
# Heated Bed
########################################
[heater_bed]
heater_pin: PA1
sensor_pin: PF3 # TB
sensor_type: Generic 3950
#control: watermark
min_temp: 0
max_temp: 130
##--------------------------------------------------------------------

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

##  Inductive Probe
##  This probe is not used for Z height, only Quad Gantry Leveling
##  Z_MAX on mcu_z
[probe]
##  If your probe is NO instead of NC, change pin to !^z:P0.10
pin: PG15
x_offset: 0
y_offset: 25.0
z_offset: -1
speed: 10.0
samples: 5
samples_result: median
sample_retract_dist: 3.0
samples_tolerance: 0.006
samples_tolerance_retries: 3


#####################################################################
#   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:121,345
speed:100
z_hop:10
#--------------------------------------------------------------------

##  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
[quad_gantry_level]
#--------------------------------------------------------------------
##  Gantry Corners 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: 15
retries: 5
retry_tolerance: 0.0075
max_adjust: 10
#--------------------------------------------------------------------

[bed_mesh]
speed: 100
horizontal_move_z: 10
probe_count: 5, 5
mesh_min: 40, 40
mesh_max: 310,310

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

##  Print Cooling Fan - FAN0
[fan]
pin: PA8
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


##  Hotend Fan - FAN1
[heater_fan hotend_fan]
pin: PD13
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

##  Controller fan - FAN2
[controller_fan controller_fan]
pin: PD12
kick_start_time: 0.5
heater: heater_bed


##  Exhaust fan - FAN3
#[heater_fan exhaust_fan]
#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


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

#--------------------------------------------------------------------
# MKS Mini 12864Panel v3.x (with neopixel backlight leds)
#--------------------------------------------------------------------
[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
## Some micro-controller boards may require an spi bus to be specified:
#spi_bus: spi
## Alternatively, some micro-controller boards may work with software spi:

spi_software_miso_pin: stepper_spi_miso_pin
spi_software_mosi_pin: stepper_spi_mosi_pin
spi_software_sclk_pin: stepper_spi_sclk_pin

#spi_software_miso_pin: EXP2_1 
#spi_software_mosi_pin: EXP2_6
#spi_software_sclk_pin: EXP2_2

[output_pin beeper]
pin: EXP1_1

[neopixel mks_mini12864]
pin: EXP1_6
chain_count: 3
color_order: RGB
initial_RED: 1.0
initial_GREEN: 0.0
initial_BLUE: 0.0
#--------------------------------------------------------------------

[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=<GND>, EXP1_10=<5V>,

    # 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=<RST>,
    EXP2_9=<GND>, EXP2_10=PC5


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

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


#[filament_switch_sensor material_0]
#switch_pin: PG12
#[filament_switch_sensor material_2]
#switch_pin: PG14
#heater_pin: PB11 # HE3
#sensor_pin: PF7 # T3
#[filament_switch_sensor material_3]
#switch_pin: PG15
#...

##     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"

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 51.525
#*# pid_ki = 1.817
#*# pid_kd = 365.182
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 18.903
#*# pid_ki = 0.696
#*# pid_kd = 128.304
#*#
#*# [stepper_z]
#*# position_endstop = -0.025
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*#     2.901250, 2.891250, 2.908750, 2.902500, 2.901250
#*#     2.831250, 2.800000, 2.797500, 2.783750, 2.786250
#*#     2.807500, 2.778750, 2.765000, 2.751250, 2.756250
#*#     2.827500, 2.796250, 2.787500, 2.780000, 2.802500
#*#     2.927500, 2.885000, 2.867500, 2.880000, 2.912500
#*# x_count = 5
#*# y_count = 5
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = lagrange
#*# tension = 0.2
#*# min_x = 40.0
#*# max_x = 310.0
#*# min_y = 40.0
#*# max_y = 310.0
 

 

Sorry to bother you with this but right now i have no clue what to change.

And sorry for my faulty denglish;)

 

Greetings from Frankfurt am Main

Neo

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Ok, i changed the display value for:

spi_software_miso_pin: stepper_spi_miso_pin
spi_software_mosi_pin: stepper_spi_mosi_pin
spi_software_sclk_pin: stepper_spi_sclk_pin

I commented it out and now the spi communication for the stepper drivers work and klipper starts fine but now the display does not work because of the not defined spi_software_miso_pin: EXP2_1.

How can get my display running again?

 

Than you in advance

Neo

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...