Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Klicky probe with auto Z. Always about 2mm to high
Post Body

I have installed the klicky switch with auto-z addition. Two things are strange. When I do the Z offset calibration and after that tells the Z to go to 0 wish should make the nozzle just barely touch the bed, it just doesn't. I change the switch offset and still it stays a couple of mm to high. Why is this?

And, the script should test the distance from the Z stop to the switch body. It never does that. When is that suppose to happen?

I am lost and hope is on you guys. :)

******************

klicky-variables.cfg

#-------------------------------------------Variables----------------------------------------#
[gcode_macro _User_Variables]
variable_verbose:             True # Enable verbose output
variable_debug:              False # Enable Debug output
variable_travel_speed:         200 # how fast all other travel moves will be performed when running these macros
variable_move_accel:          1000 # how fast should the toolhead accelerate when moving
variable_dock_speed:            10 # how fast should the toolhead move when docking the probe for the final movement
variable_release_speed:         10 # how fast should the toolhead move to release the hold of the magnets after docking
variable_z_drop_speed:          10 # how fast the z will lower when moving to the z location to clear the probe
variable_safe_z:                10 # Minimum Z for attach/dock and homing functions
variable_enable_z_hop:        True # set this to false for beds that fall significantly under gravity (almost to Z max)
variable_max_bed_y:            300 # maximum Bed size avoids doing a probe_accuracy outside the bed
variable_max_bed_x:            300 # maximum Bed size avoids doing a probe_accuracy outside the bed
# if a separate Z endstop switch is in use, specify the coordinates of the switch here. Set to 0 to have the probe move to center of bed.
variable_z_endstop_x:         50
variable_z_endstop_y:         232
# Check the printer specific documentation on klipper Dock/Undock configuration, these are dummy values dock location.
variable_docklocation_x:      50 # X Dock position
variable_docklocation_y:      300 # Y Dock position
variable_docklocation_z:      2 # Z dock position (-128 for a gantry/frame mount)
# The following variables are used if the dock is deployed and retracted via a servo motor.
variable_enable_dock_servo:  False # Set to true if your klicky dock is servo-controlled
# Dock move, final toolhead movement to release the probe on the dock it's a relative move.
Variable_dockmove_x:          20
Variable_dockmove_y:          0
Variable_dockmove_z:           0
# Attach move. final toolhead movement to attach the probe on the mount it's a relative move.
Variable_attachmove_x:        0
Variable_attachmove_y:       25
Variable_attachmove_z:        0
# Umbilical to help untangle the umbilical in difficult situations.
variable_umbilical:          False # should we untangle the umbilical
#variable_umbilical_x:           15    # X umbilical position
#variable_umbilical_y:           15    # Y umbilical position
# location to park the toolhead.
variable_park_toolhead:      True # Enable toolhead parking
variable_parkposition_x:       220
variable_parkposition_y:       150
variable_parkposition_z:        20
variable_version:                1 # Helps users to update the necessary variables, do not update if the variables above are not updated
# Below this remark, you normally do not need to configure attach move2.
Variable_attachmove2_x:          0 # intermediate toolhead movement to attach
Variable_attachmove2_y:          0 # the probe on the dock
Variable_attachmove2_z:          0 # (can be negative)
variable_home_backoff_x:        10 # how many mm to move away from the X endstop after homing X
# this is useful for the voron v0 to enable the toolhead to move out of the way to allow an unstricted Y homing
variable_home_backoff_y:        10 # how many mm to move away from the Y endstop after homing Y
variable_override_homing:       ''    # configures what axis to home first
#  '' = default klicky behavior (tries to avoid the hitting the dock)
# 'X' = forces X to home first
# 'Y' = forces Y to home first

variable_dock_on_zhome:       True # docks the probe on Z Homing if not necessary (avoids hitting the bed on some printers                                      
#--------------------------------------Do not modify below----------------------------------------#
gcode:
{% set Mx = printer['configfile'].config["stepper_x"]["position_max"]|float %}
{% set My = printer['configfile'].config["stepper_y"]["position_max"]|float %}
{% set Ox = printer['configfile'].config["probe"]["x_offset"]|float %}
{% set Oy = printer['configfile'].config["probe"]["y_offset"]|float %}
{% set Oz = printer['configfile'].config["probe"]["z_offset"]|float %}
# If x, y coordinates are set for z endstop, assign them.
{% if z_endstop_x != 0 or z_endstop_y != 0 %}
SET_GCODE_VARIABLE MACRO=_Probe_Variables VARIABLE=z_endstop_x VALUE={ z_endstop_x }
SET_GCODE_VARIABLE MACRO=_Probe_Variables VARIABLE=z_endstop_y VALUE={ z_endstop_y }
# if no x, y coordinates for z endstop, assume probe is endstop and move toolhead to center of bed.
{% else %}
SET_GCODE_VARIABLE MACRO=_Probe_Variables VARIABLE=z_endstop_x VALUE={ (Mx * 0.5) - Ox }
SET_GCODE_VARIABLE MACRO=_Probe_Variables VARIABLE=z_endstop_y VALUE={ (My * 0.5) - Oy }
{% endif %}

******************

klicky-z-callibration.cfg

#-----------------------------------------Bed leveling------------------------------------------------#
[z_calibration]
nozzle_xy_position: 50, 232 # X, Y coordinate (e.g. 100,100) of the nozzle, clicking on the Z endstop.
switch_xy_position: 47, 200 # X, Y coordinate (e.g. 100,100) of the probe's switch body, clicking on the Z endstop.
bed_xy_position: 150, 150 # X, Y coordinate (e.g. 100,100) where the print surface (e.g. the center point) is probed. These coordinates will be adapted by the probe's X and Y offsets.
wiggle_xy_offsets: 5,5 # After probing the nozzle and retracting, move x some distance away and back. Useful to prevent the z endstop pin sticking to the nozzle and being pulled out of the assembly.
safe_z_height: 2 # default is 2 \ z_offset from the "probe:z_offset" section. The absolute z position in mm to move to before moving to the next position. The minimum safe z height is 3mm.*
#position_min: default from "stepper_z:position_min" section. # Minimum valid distance (in mm) used for probing move. The default is from the Z rail configuration.
lift_speed: 20 # Speed (in mm/s) of the Z axis when lifting the probe between samples and clearance moves.
probing_speed: 5 # The fast probing speed (in mm/s) used, when probing_first_fast is enabled.
probing_second_speed: 2 # The slower speed (in mm/s) for probing the recorded samples.
probing_retract_dist: 2 # Distance to retract (in mm) before probing the next sample.
probing_first_fast: true # If true, the first probing will be faster by the probing speed.
switch_offset: 0.5 # The trigger point offset of the used mag-probe switch. Larger values will position the nozzle closer to the bed. max_deviation: 1.0. The maximum allowed deviation of the calculated offset. If the offset exceeds this value, it will stop! The default is 1.0 mm.
samples: 3 # The number of times to probe each point. The probed z-values will be averaged.
# samples_tolerance: default from "probe:samples_tolerance" section. The maximum Z distance (in mm) that a sample may differ from other samples. The default is from the probe's configuration.
# samples_tolerance_retries: default from "probe:samples_tolerance_retries" section #   The number of times to retry if a sample is found that exceeds samples_tolerance. The default is from the probe's configuration.
samples_result: median
# clearance: 2 \ z_offset from the "probe:z_offset" section. The distance in mm to move up before moving to the next position. The default is two times the z_offset from the probe's configuration.*
speed: 200 #The moving speed in X and Y. The default is 50 mm/s.
start_gcode: _SET_Z_CURRENT VAL=HOME
DETACH_PROBE # A list of G-Code commands to execute prior to each calibration command. See docs/Command_Templates.md for G-Code format. This can be used to attach the probe.
before_switch_gcode: ATTACH_PROBE #Macro name for attaching the probe AFTER probing the nozzle.
G0 Z20
end_gcode:: _SET_Z_CURRENT # A list of G-Code commands to execute prior to each probing on the mag-probe.
DETACH_PROBE # A list of G-Code commands to execute after each calibration command.

*************

printer.cfg

# The firmware should be compiled for the
# STM32F446 with a "32KiB bootloader" and a "12MHz crystal" clock reference.
# Probe is declared in probe_and_mesh.
[include mainsail.cfg]
[include macros.cfg]
[include tilt_and_mesh.cfg]
#[include input_shaper_and_resonance_tester.cfg]
[include ./klicky/klicky-variables.cfg]                #Required
[include ./klicky/klicky-macros.cfg]                   #Required
[include ./klicky/klicky-z-calibration.cfg]    
[include ./klicky/klicky-bed-mesh-calibrate.cfg]      #bed mesh, requires klipper configuration
[include ./klicky/klicky-z-tilt-adjust.cfg]           #level 2 or 3 Z motors
#------------------------------------BASIC CONFIGS---------------------------------------#
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_100025001950534841313020-if00
baud: 250000
[printer]
kinematics: cartesian
max_velocity: 500
max_accel: 3000
max_z_velocity: 10
max_z_accel: 500
[gcode_arcs]
resolution: 0.3
[idle_timeout]
gcode: TURN_OFF_HEATERS
gcode: TURN_OFF_FANS
timeout: 600
[save_variables]
filename: ~/variables.cfg
[temperature_sensor mcu_temp] # BTT Octopussy internal temp
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100
[heater_bed]
heater_pin: PA1
sensor_pin: PF3
sensor_type: EPCOS 100K B57560G104F
control: pid
pid_Kp: 68.518
pid_Ki: 1.088
pid_Kd: 1079.166
min_temp: 0
max_temp: 130
[probe]
pin: !PC5
x_offset: -3.0 # The distance (in mm) between the probe and the nozzle along the x-axis. The default is 0.
y_offset: 30.0 # The distance (in mm) between the probe and the nozzle along the y-axis. The default is 0.
#z_offset: 5.0 # The distance (in mm) between the bed and the nozzle when the probe triggers. Calculated with Klicky Probe.
speed: 5.0
samples: 1
#-------------------------------------STEPPER SETTINGS----------------------------------#
[stepper_x] # X Left (Driver 0)
step_pin: PF13
dir_pin: PF12
enable_pin: !PF14
endstop_pin: !PG6 # (Stop 0)
microsteps: 16
rotation_distance: 50
position_endstop: 0
position_max: 360
homing_speed: 150
[dual_carriage] # X Right (Driver 1)
axis: x
step_pin: PG0
dir_pin: !PG1
enable_pin: !PF15
endstop_pin: !PG9 # (Stop 1)
microsteps: 16
rotation_distance: 50
position_endstop: 360
position_max: 360
homing_speed: 150
[stepper_y] # (Driver 2)
step_pin: PF11
dir_pin: !PG3
enable_pin: !PG5
microsteps: 16
rotation_distance: 40
endstop_pin: !PG10 # (Stop 2)
position_endstop: 0
position_max: 315
homing_speed: 150
[stepper_z] # Z Left (Driver 3)
step_pin: PG4
dir_pin: PC1
enable_pin: !PA0
endstop_pin: !PG11 # Separat Z, ej probe på extrudern.
microsteps: 16
rotation_distance: 8
position_endstop: 0
position_max: 400
homing_retract_dist: 2.0
homing_speed: 5
position_min: -4
[stepper_z1] # Z Right (Driver 4)
step_pin: PF9
dir_pin: PF10
enable_pin: !PG2
microsteps: 16
rotation_distance: 8
[extruder] # E Left (Driver 5)
step_pin: PC13
dir_pin: !PF0
enable_pin: !PF1
microsteps: 16
rotation_distance: 33.500
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA2 # HE0
sensor_pin:  PF4 # T0
sensor_type: EPCOS 100K B57560G104F
# Om PT100/1000 typ K används så gäller nedan istället för raden ovan
#sensor_type: MAX31865
#sensor_pin: PF8
#spi_software_sclk_pin: PA5
#spi_software_mosi_pin: PA7
#spi_software_miso_pin: PA6
#tc_type: K
##tc_use_50Hz_filter: False
##tc_averaging_count: 1
##rtd_nominal_r: 100
##rtd_reference_r: 430
##rtd_num_of_wires: 2
##rtd_use_50Hz_filter: False
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 350
[extruder1] # E Right (Driver 6)
step_pin: PE2
dir_pin: !PE3
enable_pin: !PD4
microsteps: 16
rotation_distance: 33.500
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA3
sensor_pin: PF5
sensor_type: EPCOS 100K B57560G104F
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 270
#----------------------------------------------FILAMENT SENSORS-------------------------------------------#
[filament_switch_sensor material_0] # Left material
switch_pin: PG12 # (Stop 4)
pause_on_runout: True
[filament_switch_sensor material_1] # Right material
switch_pin: PG13 # (Stop 5)
pause_on_runout: True
#-------------------------------------------------FAN SETTINGS---------------------------------------------#
[heater_fan extruder] # Extruder Left (Fan 2)
pin: PD12
heater: extruder
heater_temp: 70.0
[heater_fan extruder1] # Extruder Right (Fan 3)
pin: PD13
heater: extruder1
heater_temp: 70.0
[fan_generic part_0] # Part cooling Left (Fan 0)
pin: PA8
[fan_generic part_1] # Part cooling Right (Fan 1)
pin: PE5
#-------------------------------------------Steppers Basic settings--------------------------------------------------#
[tmc2209 stepper_x]
uart_pin: PC4
run_current: 0.800
hold_current: 0.500
[tmc2209 dual_carriage]
uart_pin: PD11
run_current: 0.800
hold_current: 0.500
[tmc2209 stepper_y]
uart_pin: PC6
run_current: 0.800
hold_current: 0.500
[tmc2209 stepper_z]
uart_pin: PC7
run_current: 0.800
hold_current: 0.500
[tmc2209 stepper_z1]
uart_pin: PF2
run_current: 0.800
hold_current: 0.500
[tmc2209 extruder]
uart_pin: PE4
run_current: 0.800
hold_current: 0.500
[tmc2209 extruder1]
uart_pin: PE1
run_current: 0.800
hold_current: 0.500
#\# <---------------------- SAVE_CONFIG ---------------------->*
#\# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.*
#\#*
#\# [probe]*
#\# z_offset = 6.143*

Author
Account Strength
70%
Account Age
3 years
Verified Email
Yes
Verified Flair
No
Total Karma
236
Link Karma
50
Comment Karma
186
Profile updated: 5 days ago
Posts updated: 2 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago