Jump to content

Motion system Switchwire


Razor1666

Recommended Posts

Hi there.

 

I'm at the part of the install on my Ender/switchwire conversion where I am checking the motion system. That is x and y.

When I home y - all good

When I home x the carriage goes from left to right but also down....  ?????  

When I home z it goes up  ???

My probe triggers like it is suppose too.

 

HELP!  lol

Link to comment
Share on other sites

2 hours ago, Razor1666 said:

When I home z it goes up  ???

In Klipper you need to change the direction of the dir_pin

[stepper_z]
step_pin: PF11
dir_pin: PG3                              to !PG3 (Remember to use the actual PIN number)

enable_pin: !PG5
rotation_distance: 40

See if that solves the problem of both movement alone X. If not then I will look at the wiring of the Z motor

Link to comment
Share on other sites

Yes I gave that a go and that caused the x to move left to right on homing. Hmmmm...

I did get my Z to go in the correct direction by setting the position endstop at 200. However when homed the z is at 200 not 0. It's like it thinks it's a corexy instead of a corexz where the bed moves up to zero

I have attached my printer config. Any help would be appreciated

 

z_up_printer.cfg

Link to comment
Share on other sites

Got it!

My issue was when I made changes that didn't work I reverted back to my previous settings, instead of looking at the way it moved after the changes as a new scenario.

Ok, onward and upward.

 

PS I had to swap the connection and reverse the z direction

 

 

 

  • Like 2
Link to comment
Share on other sites

Switchwire update:

Ok....machine moving. Extruder pushing plastic. However, I'm having a devil of a time getting the z-offset correct...(good think I'm using an old sheet 🙂 ) No matter what I do, I have to bump it up 0.65 every time I start a print. I've gone thru the official documentation step by step multiple times...

I've also noticed that when I move 100mm in z direction from mainsail, it only moves up 55mm.....hmmmmm Maybe this is my z-offset issue??

When I move X 100mm it goes like 96mm.  I've tried adjusting the rotational distance on X & Z but with these motors working together, I'm going on the asumption the values need to be the same...???

I haven't changed my current to z motor yet. I believe it's at 0.58...  Thinking of bumping it to 0.7.  Then maybe swap out the motor??  ... All suggestions welcome??

 

Link to comment
Share on other sites

14 minutes ago, Razor1666 said:

I'm going on the asumption the values need to be the same...???

This is a very safe assumption that is based on another assumption that the X and Z steppers are matched. If one is a 1.8 and the other 0.9 degree then things will get interesting.

Have you checked how far the Z moves when commanded to move 100mm? Is it possible that the motors are skipping steps?

Edited by atrushing
Link to comment
Share on other sites

Yes...When I tell Z to move 100mm it moves 55mm up...(just eyeballing with a ruler). I could mark the belt and measure how far the belt moves.

The motors are both creality 42-34 steppers. both motors are set to 40 for rotational distance and 16 microsteps. Stealthchop set to 999999. (Not sure what this is for.. I've seen it set to 250 in other printer.cfg files.... I not sure if changing that will affect anything

I don't hear the motors skipping but it's possible....???

I have some troubleshooting ahead of me  🙂

Link to comment
Share on other sites

38 minutes ago, Razor1666 said:

Yes...When I tell Z to move 100mm it moves 55mm up...(just eyeballing with a ruler). I could mark the belt and measure how far the belt moves.

The motors are both creality 42-34 steppers. both motors are set to 40 for rotational distance and 16 microsteps. Stealthchop set to 999999. (Not sure what this is for.. I've seen it set to 250 in other printer.cfg files.... I not sure if changing that will affect anything

I don't hear the motors skipping but it's possible....???

I have some troubleshooting ahead of me  🙂

Sorry, I missed that you mentioned the Z travel in the first post.

The 999999 sets the driver in stealthchop mode which makes the motor run quieter while loosing a bit of torque/speed. If the motors don't sound very smooth you can change between the modes and see which is smoother. It is possible to set a threshold when the drivers should change between stealth and spread but that can cause odd behavior at the transition so it is recommended to use one or the other.
    # Set to 999999 to turn stealthchop on, and 0 to use spreadcycle

Is it possible that you missed a jumper under one of the TMC2209 drivers and it isn't operating in UART mode?

Link to comment
Share on other sites

That is entirely possible. I have the SKR mini e3 v2.0. I didn't change anything from stock.  It did come with jumpers but I thought they where to be added if I wanted to use sensorless homing.  I'll look at that again  🙂

 

Thanks for the info on Stealthchop. I'll look at that also

Link to comment
Share on other sites

Drag chains...  In my pic above of the benchy, you can see that my drag chain is not laying flat but heads up from the toolhead. I was thinking that maybe I pulled the wires too tight...??  I do have it zip tied behind the toolhead for cable restraint.

I've read some posts about wires breaking and was thinking of leaving it like that as it has a longer radius for the wires.... not as much stress...??

Thoughts???

Link to comment
Share on other sites

It's probably that the end on the tool head is the full motin one, and not the limited one. Try swapping the chain ends. On my Trident I ended up just supergluing one of them to avoid that issue.

Oh, and I've got about 1400 hours on my wires and they are still ok. I am seeing some dust on the X extrusion from wear, but no breaks yet.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Ok.... I noticed that my 'Z' on my calibration cubes have been coming out backwards. So I put it on the things to look at list. I'm down to that point on the list now.

So thru some investigation, I found that I had to change the origin in Superslicer from x-0 to x-220. Which fixed the orientation in the slicer. However; when I go to print now, I get an out of range error. I'm sure I have to change something in the printer config now but not sure what.  Help! 

Link to comment
Share on other sites

I´m reading this post quite astonished on the problems you are finding on the motion system...

What board are you using?

Wen I build my switchwire(ish) was as easy as downloading the config file for my SKR mini in the github and all worked straightforward... I think I only modified the Zeros position out of preference, but that is it.

Of course there was a lot of work to be done to configure meshes, tilt beds, min and max temperatures along with fan controls and so... but the motion system worked out of the box.

Will It help if I copy my whole config file? are you using an SKR or something frankestain?

Link to comment
Share on other sites

9 hours ago, Maurici said:

Will It help if I copy my whole config file? are you using an SKR or something frankestain?

I would appreciate it if you would send me your config, to compare it to what I have.

I'm using a SKR E3 mini v2.0. I'm also using the config file that I downloaded from the link on the Klipper setup page

The only real hiccup I've had was in the setup of the x/z direction. That was because of the unclear directions but I'm willing to accept user error on that one. 

A grub screw coming loose led to another issue. Once again user error. 

Now letters and numbers coming out backwards. Not really any issues with hardware.  I believe this is software. 

Anyway, this being my first build and a newbie in these areas, I was expecting these learning experiences. 

Thanks for taking the time. 

 

 

Link to comment
Share on other sites

1 hour ago, Razor1666 said:

Now letters and numbers coming out backwards

Had this on my first Voron build - had the motors plugged in incorrectly. Switched the A and B motors and it solved the problem. But that controlled X and Y, where on the switchwire it controls X and Z. May be worth wile reverting the software changes you made and switching the motors

Link to comment
Share on other sites

2 hours ago, mvdveer said:

Switched the A and B motors and it solved the problem.

I'm going to take another look at that. That was the first thing that I changed per instructions on Voron docs, as my x/z directions originally didn't match any of the top pics.

I'm a little hesitant as everything is working so well but sometimes you have to go back in order to move forward... 

Link to comment
Share on other sites

3 hours ago, Razor1666 said:

I would appreciate it if you would send me your config, to compare it to what I have.

I'm using a SKR E3 mini v2.0. I'm also using the config file that I downloaded from the link on the Klipper setup page

The only real hiccup I've had was in the setup of the x/z direction. That was because of the unclear directions but I'm willing to accept user error on that one. 

A grub screw coming loose led to another issue. Once again user error. 

Now letters and numbers coming out backwards. Not really any issues with hardware.  I believe this is software. 

Anyway, this being my first build and a newbie in these areas, I was expecting these learning experiences. 

Thanks for taking the time. 

 

Find attached!  If you area novice with klipper, use with caution as there is a big share of personalization and so.

However, all the kinematics and motors setup should work straightforward (of course, depending on how you have it wired).

Good luck. hope it helps. Is an SKR mini V3, you may want to keep your pin numbers just in case.

 

-------------------------------------------------------------------------------------------------------------------------------------------------------

## *** THINGS TO CHANGE/CHECK: ***
## MCU paths                             [mcu] section
## Thermistor types                      [extruder] and [heater_bed] sections - See 'sensor types' list at end of file
## PID tune                              [extruder] and [heater_bed] sections
## Fine tune E steps                     [extruder] section

## For wiring directions please see https://docs.vorondesign.com/build/electrical/sw_miniE3_v20_wiring.html

## Webclient config files. Uncomment one depending on UI being used.
[include mainsail.cfg]
[include macros.cfg] 
[exclude_object]
[include adaptive_mesh.cfg]
[include adaptive_purge.cfg]

[printer]
kinematics: corexz
max_velocity: 300
max_accel: 3000
max_z_velocity: 50
max_z_accel: 1000
square_corner_velocity: 6.0

[mcu]
###Change to device found by "ls -l /dev/serial/by-id/" with just one this MCU connected to Pi
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_29004D000250415339373620-if00

[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


[virtual_sdcard]
path: ~/printer_data/gcodes


[static_digital_output usb_pullup_enable]
pins: !PC13

[display]
lcd_type: st7920
cs_pin: PB8
sclk_pin: PB9
sid_pin: PD6
encoder_pins: ^PA10, ^PA9
click_pin: ^!PA15
#####################################################################
#     X Stepper Settings
#####################################################################

######
# Motor -XM
# Endstop - X-STOP
###############
[stepper_x]
step_pin: PB13
dir_pin: PB12
enable_pin: !PB14
rotation_distance: 40
full_steps_per_rotation: 200
microsteps: 32
endstop_pin: ^PC0
position_endstop: 217
position_min: 0
position_max: 217
homing_speed: 70
homing_positive_dir: true

[tmc2209 stepper_x]
uart_pin: PC11
tx_pin: PC10
uart_address: 0
run_current: 0.5
interpolate: False
stealthchop_threshold: 0

#####################################################################
#   Y Stepper Settings
#####################################################################

######
# Motor -YM
# Endstop - Y-STOP
###############
[stepper_y]
step_pin: PB10
dir_pin: !PB2
enable_pin: !PB11
rotation_distance: 40
full_steps_per_rotation: 200
microsteps: 32
## Ucomment one of the following:
## Switch-based endstop for Y
endstop_pin: ^PC1 
## Sensorless endstop for Y
#endstop_pin: tmc2209_stepper_y:virtual_endstop
#homing_retract_dist: 0 # Uncomment this line too
position_endstop:0
position_min: 0
position_max: 229
homing_speed: 70
homing_positive_dir: false

[tmc2209 stepper_y]
uart_pin: PC11
tx_pin: PC10
uart_address: 2
run_current: 0.5
interpolate: False
stealthchop_threshold: 0
## Uncomment if using sensorless Y homing.
#driver_SGTHRS: 120 # tune this once it's working.

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

######
# Motor -ZAM
# Endstop - Z-STOP
###############
[stepper_z]
step_pin: PB0
dir_pin: PC5
enable_pin: !PB1
rotation_distance: 40
full_steps_per_rotation: 200
microsteps: 32
endstop_pin: probe:z_virtual_endstop
position_max: 250
homing_speed: 40
position_min: -3.0

[tmc2209 stepper_z]
uart_pin: PC11
tx_pin: PC10
uart_address: 1
run_current: 0.5
interpolate: False
stealthchop_threshold: 0

#####################################################################
#   Extruder Settings
#####################################################################

######
#Motor - EM
###############
[extruder]
# E0_STEP_PIN        PB3
# E0_DIR_PIN         PB4
# E0_ENABLE_PIN      PB1
# E0_UART_RX         PC11
# E0_UART_TX         PC10
step_pin: PB3
dir_pin: !PB4
enable_pin: !PD1
# Tune per individual printer
# Default for Bondtech 5mm Bore Drive Gears
rotation_distance: 3.433
# Tune for extruder 
#gear_ratio: 50:17
microsteps: 32
full_steps_per_rotation: 200
nozzle_diameter: 0.400
filament_diameter: 1.75
heater_pin: PC8
##  Validate the following thermistor type to make sure it is correct
##  See https://www.klipper3d.org/Config_Reference.html#common-thermistors for additional options
sensor_type: Generic 3950
sensor_pin: PA0
min_temp: 10
max_temp: 350
max_power: 1.0
min_extrude_temp: 170
max_extrude_cross_section: 5 
#control = pid
#pid_kp = 26.213
#pid_ki = 1.304
#pid_kd = 131.721
#Set appropriate once tuning your printer
#pressure_advance: .05
##    Default is 0.040, leave stock
# pressure_advance_smooth_time: 0.040
max_extrude_only_distance: 100.0

[tmc2209 extruder]
uart_pin: PC11
tx_pin: PC10
uart_address: 3
run_current: 0.7
hold_current: 0.3
interpolate: False

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

######
# BED Connector
###############
[heater_bed]
heater_pin: PC9
##  Validate the following thermistor type to make sure it is correct
##  See https://www.klipper3d.org/Config_Reference.html#common-thermistors for additional options
sensor_type: Generic 3950
sensor_pin: PC4
min_temp: 0
max_temp: 130
control: pid
pid_kp: 58.437
pid_ki: 2.347
pid_kd: 363.769

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

######
#Z Max Connector on Z(main) Board
#Inductive Probe
###############
[probe]
##      If your probe is NO instead of NC, add change pin to !z:P1.24
pin: ^PC2
x_offset: -1
y_offset: 27.9
#z_offset: 0
samples: 2
samples_result: median
sample_retract_dist: 4
samples_tolerance: 0.008
samples_tolerance_retries: 3

#####################################################################
#     Fan Control
#####################################################################
[fan]
pin: PC6

[heater_fan hotend_fan]
pin: PB15
heater: extruder
heater_temp: 50.0

[controller_fan electronic_enclosure_fan]
pin: PC7
idle_timeout: 60


#####################################################################
#   Homing and Bed Mesh
#####################################################################
[homing_override]
axes: z
set_position_z: 0
gcode:
    G90
    G0 Z5 F500
    G28 X0 Y0
    G0 X108 Y114 F9000
    G28 Z0
    G0 Z5 F500

[bed_mesh]
speed: 250
horizontal_move_z: 3
mesh_min: 15,30
mesh_max: 208,220
probe_count: 6,6
algorithm: bicubic
fade_start: 1
fade_end: 10
fade_target: 00

[bed_screws]
screw1: 10,10
screw1_name: bl
screw2: 10,220
screw2_name: br
screw3: 180,220
screw3_name: FL
screw4: 180,10
screw4_name: FR

#####################################################################
#     Displays
#####################################################################
##     For the mini12864 Display, the [display] and [neopixel] must be uncommented
# mini12864 LCD Display
# connected to exp1/2
#[display]
##    mini12864 LCD Display
#lcd_type: uc1701
#cs_pin: PB8
#a0_pin: PB15
#rst_pin: PB9
#encoder_pins: ^PA9,^PA10
#click_pin: ^!PB5
#contrast: 63
#spi_software_sclk_pin: PA5
#spi_software_mosi_pin: PA7
#spi_software_miso_pin: PA6
#menu_reverse_navigation: True

#[neopixel fysetc_mini12864]
##    To control Neopixel RGB in mini12864 display
## Remember with these ones, you'll need to remove the connector header on the LCD for EXT1 + 2
## (it slides off) and reverse it for it to work on your SKR (1.3 and 1.4) board
#pin: PA15
#chain_count: 3
#initial_RED: 1
#initial_GREEN: 1
#initial_BLUE: 1
#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=fysetc_mini12864 RED=1 GREEN=1 BLUE=1 INDEX=1 TRANSMIT=0    # Backlit Screen colour
#        SET_LED LED=fysetc_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0    # Top left Knob colour
#        SET_LED LED=fysetc_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3                # Bottom right knob colour

#####################################################################
#   Case Lights
#####################################################################
[output_pin LIGHTS]
pin: PA8
value: 0
shutdown_value: 0

[gcode_macro lights_on]
gcode:
    SET_PIN PIN=LIGHTS VALUE=1.0

[gcode_macro lights_off]
gcode:
    SET_PIN PIN=LIGHTS VALUE=0.0


###############################################
#accelerometre
###############################################
[mcu rpi]
serial: /tmp/klipper_host_mcu

[adxl345]
cs_pin: rpi:None

[resonance_tester]
accel_chip: adxl345
probe_points:
    100, 100, 20  # an example

[input_shaper]
shaper_freq_x: 55
shaper_type_x: 3hump_ei
shaper_freq_y: 37.4
shaper_type_y: mzv

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [probe]
#*# z_offset = 2.025
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 14.666
#*# pid_ki = 0.416
#*# pid_kd = 129.242
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*#     0.017187, -0.029688, -0.039062
#*#     0.017188, 0.020313, -0.007812
#*#     0.001563, 0.001563, -0.004687
#*# x_count = 3
#*# y_count = 3
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = lagrange
#*# tension = 0.2
#*# min_x = 83.26
#*# max_x = 134.68
#*# min_y = 83.39
#*# max_y = 130.53
 

 

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
Reply to this topic...

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