Jump to content
  • 0

Shared TMC drivers SKR Mini E3 V3


mvdveer

Question

Knew I should not have used these even if I had them. Can seem to solve this problem:

image.thumb.png.95d9bbb205e5d5dbcc003badbdc0ed01.png

Here is the config extract:

 

[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_48004D000950414733303120-if00
restart_method: command

[mcu zstep]
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_34002D000750414235363020-if00
restart_method: command

#####################################################################
#   X/Y Stepper Settings
#####################################################################
[stepper_x]
step_pin: PB13
dir_pin: PB12
enable_pin: !PB14
rotation_distance: 40
microsteps: 32
full_steps_per_rotation:200  #set to 400 for 0.9 degree stepper
endstop_pin: PC0
position_min: 0
position_endstop: 120
position_max: 120
homing_speed: 25   #Max 100
homing_retract_dist: 5
#homing_positive_dir: true


[tmc2209 stepper_x]
uart_pin: PC11
tx-pin: PC10
uart_address: 0
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 999999

[stepper_y]
step_pin: zstep:PB13
dir_pin: zstep:PB12
enable_pin: zstep:!PB14
rotation_distance: 40
microsteps: 32
full_steps_per_rotation:200  #set to 400 for 0.9 degree stepper
endstop_pin: zstep:PC1
position_min: 0
position_endstop: 125
position_max: 125
homing_speed: 50  #Max 100
homing_retract_dist: 5
homing_positive_dir: true


[tmc2209 stepper_y]
uart_pin: zstep:PC11
tx_pin: zstep:PC10
uart_address: 0                          If I change this to  "zstep:0"   then I get a parsing error 
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 999999
 

#####################################################################
#   Z Stepper Settings
#####################################################################
[stepper_z]
step_pin: ztep:PB10
dir_pin: zstep:!PB2
enable_pin: ztep:!PB11
rotation_distance: 32
microsteps: 16
endstop_pin: PC2
position_endstop: -5
position_max: 100
position_min: -15
homing_speed: 10
second_homing_speed: 5
homing_retract_dist: 3


[tmc2209 stepper_z]
uart_pin: zstep:PC11
tx_pin: zstep:PC10
uart_address: 1
interpolate: false
run_current: 0.6
sense_resistor: 0.110
stealthchop_threshold: 500


[stepper_z1]
step_pin: zstep:PB3
dir_pin: zstep:PB4
enable_pin: zstep:!PD1
rotation_distance: 32
microsteps: 16
#full_steps_per_rotation:200 


[tmc2209 stepper_z1]
uart_pin: zstep:PC11
tx_pin: zstep:PC10
uart_address: 3
interpolate: false
run_current: 0.6
sense_resistor: 0.110
stealthchop_threshold: 500


[stepper_z2]
step_pin: zstep:PB0
dir_pin: zstep:PC5
enable_pin: zstep:!PB1
rotation_distance: 32
#full_steps_per_rotation:200 
microsteps: 16


[tmc2209 stepper_z2]
uart_pin: zstep:PC11
tx_pin: zstep:PC10
uart_address: 2
interpolate: false
run_current: 0.6
sense_resistor: 0.110
stealthchop_threshold: 500


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

[extruder]
step_pin: PB3
dir_pin: !PB4
enable_pin: !PD1
gear_ratio: 50:17               
microsteps: 16
full_steps_per_rotation: 200
rotation_distance: 13.760                                         
nozzle_diameter: 0.400
filament_diameter: 1.75
heater_pin: zstep:PC8
sensor_type: Generic 3950
sensor_pin: PA0
min_temp: 10
max_temp: 270
max_power: 1.0
min_extrude_temp: 170
max_extrude_only_distance: 500
max_extrude_only_velocity: 7200
max_extrude_only_accel: 800
#max_extrude_cross_section: 50.0
#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.06
#pressure_advance_smooth_time: 0.030

[tmc2209 extruder]
uart_pin: PC11
tx_pin: PC10
uart_address: 3
interpolate: false
run_current: 0.850
sense_resistor: 0.110
stealthchop_threshold: 0

 

 

And the pinout to the Mini E3 V 3

image.thumb.png.de22c8d0eb6e24553e1d70fc360b84e7.png

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Well - problem solved - don't ask me how exactly but this is the steps to rectify the errors:

Clarification/Terminology:

Main Board = Primary board (BTT SKR MINI E3 V3)

Z board = Secondary Board (BTT SKR MINI E3 V3)

 

HARDWARE CHANGES:

1. Reviewed all the connections and realised I had my B Motor plugged into the Z-Board (the one named zstep)

2. Changed the B Motor over to the main board: Ensured I had A-Motor, B-motor and E-Motor plugged into the main board

3. Realised my X- and Y-endstops where on the Z-Board, and the Z-Endstop on the main board,

4. Swapped X- and Y-Endstops to main board and Y-Endstop to the Z Board

SOFTWARE CHANGES:

1. Changed the naming of the Z Board mcu to [mcu z] to avoid spelling errors

2. Played around with the [TMC2209 xxxx] section and after numerous restarts trying to exclude or include various statements, this finally worked:

[tmc2209 stepper....]
uart_pin: PC11
#tx-pin: PC10
#select_pins:
uart_address: 0
interpolate: false
run_current: 0.8
sense_resistor: 0.110
stealthchop_threshold: 999999

The end result of another morning of fiddling and being the stubborn Frisia Dutchman I am at a working configuration. Even got the neopixels on both bed and hotend working.

Thanks for everyones input

Case Closed

 

Link to comment
Share on other sites

  • 0

This is a small thing and might be complete nonsense but I note that your uart addresses on the default MCU are non-sequential (i.e. 0 & 3) perhaps if they were (0 & 1). That's utter hand-waving but I know some address systems assume there's no gaps in the address range.

Link to comment
Share on other sites

  • 0
7 hours ago, smirk said:

but I note that your uart addresses on the default MCU are non-sequentia

They are because of where the motors are connected.

XM=0, YM=1, ZMA, ZMB=2 and EM =3

Thus in flipper they need to reflect the connection and don't need to be in sequence.

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...