#Position after sensor less homing

156 messages · Page 1 of 1 (latest)

wintry jungle
#

Hello,
which parameter configures the position value that is shown after sensorless homing?

solemn surgeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

plain pelican
#

There is a homing routine on RatOS that is not used in anything else.
What is your goal?

wintry jungle
#

So I assume there is a variable I am missing

plain pelican
#

How does a minion show 200 after homing X?

#

Please, share RatOS-Debug.zip

#

That is your issue. Position_max: 400

#

The minion is not 400.

wintry jungle
#

I thought adjusting those values is all it takes

plain pelican
#

Why? It is not supported…
And the position after homing is always half of position_max.

wintry jungle
brave galleon
#

stepper min, max and endstop positions

wintry jungle
# brave galleon stepper min, max and endstop positions

[stepper_x]
position_endstop = 0
position_min = 0
position_max = 400
step_pin = PF13
dir_pin = PF12
enable_pin = !PF14
microsteps = 64
full_steps_per_rotation = 200
rotation_distance = 40
homing_speed = 50
endstop_pin = tmc5160_stepper_x:virtual_endstop
homing_retract_dist = 0

#

That is what I used

#

I just realized, that sensorless homing does not seem to work...

#

Maybe that is the problem: It is meant to go in the middle after sensorless homing triggers but it just never triggers

#

And then it sets the position to 200

plain pelican
#

Calibrate your sensorless.
If it grinds when hitting the end, it needs calibration.

#

What board are you using?

#

Rato-debug.zip would help

wintry jungle
plain pelican
#

No.
Go to configurator, bottom left you have RatOS-Debug.zip

wintry jungle
#

Klippy.log is not enough?

plain pelican
#

This zip compiles your config files and logs. NOTHING else

#

Check discord on how many people shared it…

wintry jungle
#

RatOS says so itself 😄

#

I just don't want my wifi key to show up online

#

or something like that

#

@plain pelican

plain pelican
#

Read the complete sentence!!!

#

The final part

wintry jungle
#

Just fyi: I changed the name. Calling it the best printer did not seem appropriate at this point 😄

#

To clarify the error: When homing X (I haven't tried Y yet), the axis travels exactly 200mm and then stops and shows up as homed

plain pelican
wintry jungle
plain pelican
#

use set_centre_kinematic_position to check motor directions

wintry jungle
#

That works fine

#

I can navigate the printhead without any issues after doing that

plain pelican
#

are you sure to be using RatOS 2.1?

wintry jungle
plain pelican
#

no

#

where is your RatOS_edited.cfg?

wintry jungle
#

I am waiting for my beacon to arrive

#

In the meantime I wanted to use the Cato Probe - but I had to comment out the probe section for that

#

That's why I had to created the new file (so it is ot overwritten every startup)

plain pelican
#

did you insert the jumpers for sensorless on the board?

#

and Cartographer messes the homing routine. It is programed for the supported sensors.
Both carto, eddy, bd sensor, micro probe have issues.
You have to set up your homing sequence.
Comment out [include RatOS/homing.cfg] on RatOS_edited.cfg and include your homing routine on the carto file

#

make sure you have the jumpers inserted on the board for X and Y and calibrate your sensorless homing threshold

wintry jungle
plain pelican
#

yes

#

if homing X the printhead only moves towards the right, you are missing the jumpers or sensorless calibration.
Tha means it is always triggered and the machine only needs to move to the supposed X200

#

and you need jumpers for both X and X1. Not only X

#

same for Y and Y1

wintry jungle
plain pelican
#

also, you are missing the tmc2209 config for the Z motor driver. You only have it on Z1 and Z2

#

the GENERATE_SHAPER_GRAPHS macro is already part of RatOS. No need to include it again

wintry jungle
plain pelican
#

the same for the shell_commands

plain pelican
wintry jungle
plain pelican
#

without sensorless working?

wintry jungle
plain pelican
#

you need sensorless working correctly to have a correct homing sequence

#

otherwise there is no reference for the machine to move correctly

wintry jungle
#

15:47
Run Current: 1.60A Hold Current: 1.60A
15:47
Run Current: 1.60A Hold Current: 1.60A
15:47
Run Current: 0.90A Hold Current: 0.90A
15:47
Run Current: 0.90A Hold Current: 0.90A

#

Is this telling you something?

plain pelican
#

that is not what you need

wintry jungle
#

In which direction I should go

plain pelican
#

[tmc5160 stepper_x]
diag1_pin: ^!PG6
driver_SGT: -20 # Lower value = higher sensitity, range -64 to 63

#

on sensorless-homing-x.cfg

#

same for y

wintry jungle
#

Maybe even too soon?

plain pelican
#

yes

#

you need to increase it until it does not grind on the end of the travel but without stoping too soon

#

start with 0 and check

wintry jungle
#

I set it to -64 and it still grinds

plain pelican
#

if it grinds, you need to decrease and go negative. If it stops too soon you need to increase towards positive

wintry jungle
#

I set it to -64 and it does not stop

plain pelican
#

make sure you inserted the jumper for the correct drivers

wintry jungle
plain pelican
wintry jungle
#

(they are the red ones in the picture)

plain pelican
#

issue

#

motor 2 has 2 plugs that are the same.

#

counting from the power plugs (with screws) you need slots 1, 2, 3 and 5

#

have to go now

#

later will take another look

wintry jungle
#

Thank you very much for your patience 🙂

wintry jungle
#

I put the stepper motor in the correct slot and moved the jumper one slot over as well.

#

Unfortunately it still does not home properly - there is something strange going on

#

What really bogles my mind is the fact, that it does not go further than 200mm and then just is marked as homed

wintry jungle
#

You can see it in the picture that the second Y motor is between two empty slots

plain pelican
#

Then it means something in your config is not correct

#

Are you using it as a hybrid machine or a AWD?

plain pelican
#

Since you are not using a RR machine and I know almost nothing about it, can’t do much…

wintry jungle
plain pelican
#

No. Have them working on my machines

wintry jungle
#

Two motors for X and two for Y

#

So I guess AWD would be the closest

wintry jungle
plain pelican
#

Not sure. I’m not at home

#

What version of the 5160 are you using?

wintry jungle
#

D/C: 2023.2.28

plain pelican
#

What brand?

wintry jungle
#

BigTreeTech

#

Can I damage something by entering a wrong senseresistor value?

#

They have sense_resistor: 0.075 - so I would just try that

plain pelican
wintry jungle
#

Thank you 🙂

plain pelican
wintry jungle
#

Then I'll just test it - wish me luck 🙂

wintry jungle
plain pelican
#

The wrong value was made by RatOs or did you change it?

solemn surgeBOT
wintry jungle
#

I am not sure if that makes a difference

plain pelican
#

Even selecting the v minion, when choosing 5160 should have set the correct values

plain pelican
wintry jungle
#

Did they maybe change the resitor for the newer 5160?

plain pelican
#

I will check later because mines are working correctly

wintry jungle
#

And for y?

#

I have to different values for mine and I would like to know which ones are correct

plain pelican
#

But lowering the current as RatOs does helps with sensorless.

wintry jungle
#

You were faster

#

Thanks

wintry jungle
#

@plain pelican have you checked your values?

plain pelican
#

I’m using the current values set by RatOS. Didn’t change them.

wintry jungle
plain pelican
#

Stock from RatOs. I selected tmc5160 T (Pro)

#

Just checked the configurator and it is correct

#

driver: 'TMC5160',
sense_resistor: 0.075,

wintry jungle
#

Very strange, but thanks for the confirmation

plain pelican
#

If I remember correctly, You included the 5160 info on printer.cfg.
And that overrides everything set in RatOs.cfg