#Sensorless homing with TMC 2240 on octopus pro v1.1.

205 messages · Page 1 of 1 (latest)

prisma burrow
#

I'v tried configuring sensorless homing for 2/3 hours, but I have an issue. As soon as I hit "home all" button or type G28 X, the printer consider itself homed and send "Move out of range" while trying to home.

sour flax
#

I think people generally recommend homing to the rear right on these printers. Looks like you have endstop set at 0, which would be left on x, but the printer appeared to move to the right - might have to invert the dir pin. Can you post pictures of stepper cable plugs in the board and tell what model steppers (e.g. 2504; stepper online model, etc.) you're using? And y stepper config

prisma burrow
#

Speedy power from LDO

prisma burrow
sour flax
#

Do you want it to home to the front left (0,0) or the rear right (Max, Max)?

prisma burrow
#

I don't really care

#

I want it to home

sour flax
#

Currently you're instructing it to home to the front left (0,0) and it appears to be going towards the rear right, so you should try inverting the dir pins on both x and y by putting a! '!' before the pin e.g. !PG1 on y. This should have the toolhead moving in the correct direction, then you move onto choosing endstop position and homing

#

Be ready with the power switch in case something goes wrong

prisma burrow
#

But I mean for now, my y axis is going the right way (back right) but it won't stop if loosing step

#

it keeps going

sour flax
prisma burrow
#

Okay I added a '!' and it is now going front, what's next ?

sour flax
#

I'll be home shortly, and continue to help

prisma burrow
#

okay

#

thx

#

Just so you know I followed voron doc to do the sensorless homing

sour flax
#

-64 should be the most sensitive setting for 2240 sensorless by my reckoning, (i.e. it should immediatley trigger), so something else afoot

uneven zinc
#

Your homing far too slow, but also either need to run kalico or use homing override macros to lower the homing current

#

Sensorless likes to home at around 100mm/s

#

Endstop switches are still recommended for most add they just work though.

sour flax
#

Oh yeah if you havent done that yet the Voron guide you linked covers it near the top

uneven zinc
#

That's as much help as I can provide, just starting work

sour flax
prisma burrow
#

I did add the homing.cfg

prisma burrow
sour flax
#

Did you modify the macro to suit your drivers etc.?

prisma burrow
#

But I might have missed something

sour flax
#

Looks ok, did you include a reference to it in printer.cfg? include [homing.cfg] not sure if needed

prisma burrow
sour flax
#

try changing driver_SGT to driver_sgt - i dont expect it to be captial sensitive but lets rule it out. if that doesnt work try setting the value to (positive) 1 and/or 64 and see what happends (be ready on power switch)

prisma burrow
#

nop doesn't work

formal spire
#

Oof, don’t do 64, it will slam for sure. The voron docs show you to set homing_speed to 80. Set position_endstop to the same as position_max. Most TMC2240s will fall in the sensitivity range of -1 to 1

prisma burrow
#

I've tried 63 (64 send a error message) blocking it with my hand and doesn't stop

formal spire
prisma burrow
#

This ?

formal spire
#

Home to position max is what people typically use

#

Yes

prisma burrow
#

Doesn't change the fact that the printer doesn't stop 😅

formal spire
#

What is your sensitivity set to right now?

sour flax
#

did you try -1/1?

prisma burrow
prisma burrow
#

let me try

formal spire
#

Set it to 0 on both and try again

prisma burrow
#

Seems to work for x (not sure) but not working on y

formal spire
#

Ok did Y move at all?

prisma burrow
#

yes it moves

formal spire
#

Ok, set Y to 1 and try again

prisma burrow
#

x didn't move a lot

formal spire
#

Oh, so X didn’t home all the way?

prisma burrow
#

nop stoped in the middle

#

and with 1 y not working

formal spire
#

Did Y at least move towards home some?

prisma burrow
#

Yes it still move but don't stop, the motor keep loosing steps

#

(New color !!)

sour flax
# prisma burrow

that means the homing current macro is working correctly, which is good - looks like the values you need will be somewhere between 1 and -1 as bsleep said. You need to trial and error to find the value that consistently homes correctly

prisma burrow
#

which would be the most sensitive ?

#

I mean 1 for y is doing the same than 63 and -64

formal spire
#

So Y moved towards home and then kept moving until to emergency stopped

formal spire
#

-64 is most sensitive, 64 is least

sour flax
#

so try 0 on y

formal spire
#

So you want to go down from -64

prisma burrow
#

That's what I tried but -64 is giving the exact same result as 63

#

=> loosing steps

#

until emergency stop

formal spire
#

So when you set Y to -64 it homes and then keeps moving?

prisma burrow
#

yes

#

I don't let it go to the end of the rail I stop it with my hand but yes the motor keep loosing steps until I hit Emergency stop

prisma burrow
formal spire
#

how are you changing SGT? Are you updating config and restarting every time?

prisma burrow
#

yup

formal spire
#

if so, don't do it that way. Let's use the command from the voron docs to set SGT

prisma burrow
#

I first tried this way

formal spire
#

SET_TMC_FIELD FIELD=SGT STEPPER=stepper_y VALUE=-63

#

G28 Y

uneven zinc
#

Do not define hold current

#

And .49 is very low homing current

prisma burrow
#

I did not, it does by itself define the hold current I don't know how to remove it

formal spire
#

you'll edit the homing.cfg

prisma burrow
#

This ?

formal spire
#

you should be able to comment these lines out under the gcode macros for X and Y

#

{% set HOME_CURRENT = 0.49 %}
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={HOME_CURRENT}
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={HOME_CURRENT}

#

wait no that's wrong

prisma burrow
#

the 3 lines ?

formal spire
#

don't do that. Let me look over it a little more

prisma burrow
#

okay xD

uneven zinc
#

I only use kalico now for sensorless

#

It's far easier, no macro needed

prisma burrow
#

Do you think it is worth it going for kalico ? I absolutly don't know how kalico works and what it is

uneven zinc
#

If you insist on using senseless instead of endstops I do

prisma burrow
#

Would you help use it ?

#

That means I have to change the whole firmware ?

formal spire
#

{% set HOME_CURRENT = 0.49 %}
SET_TMC_CURRENT STEPPER=stepper_x CURRENT={HOME_CURRENT} HOLDCURRENT=0
SET_TMC_CURRENT STEPPER=stepper_y CURRENT={HOME_CURRENT} HOLDCURRENT=0

uneven zinc
#

I cannot for 9 hours or so, I'm at work

formal spire
#

that would be the only way to change the holdcurrent with that command

#

so in the homing.cfg where you see those lines, add HOLDCURRENT=0 to the end

prisma burrow
#

I'll try with klipper and the macros

formal spire
#

you can also change the current where it says 0.49. Maybe bump it up to 0.6

#

I'm about to have to go to work myself

prisma burrow
formal spire
#

ok, remove that then

#

hold current will just have to remain set

prisma burrow
#

I don't understand why it's not doing the same on x axis and y axis

formal spire
#

so instead of only letting Y move a little bit, have you tried just letting it go all the way back?

#

because in that video you're not letting it move very far

#

or at least let it go back further than that. Let it get closer to home

prisma burrow
#

no difference

formal spire
#

ok

#

and it's set to -63?

prisma burrow
#

0 now let me try with -63

formal spire
#

ideally -63 won't move hardly at all

prisma burrow
#

Moving all the way to the bumper

#

and not stopping

formal spire
#

what model is this TMC2240? Are the BTT TMC2240s?

prisma burrow
#

So yes BTT drivers

formal spire
#

what is X set to right now?

prisma burrow
#

I set both at -63

formal spire
#

ok

#

Do you have homing_retract_dist set to 0 on both stepper_x and stepper_y?

prisma burrow
prisma burrow
#

let me retry

#

same result

formal spire
#

[force_move]
enable_force_move: True

#

you added this to your printer.cfg?

prisma burrow
#

yup

formal spire
#

and you're sure you have the jumper on the right pins

prisma burrow
#

hmmm yes should be

formal spire
#

can you send me a picture of the jumper pins you have set on the board

prisma burrow
formal spire
#

yep, I'm at a loss here

prisma burrow
#

😅

formal spire
#

we might be able to get X working

#

but I'm not sure what's going on with Y

prisma burrow
#

X is moving 2 times before stopping, either with -63 or 0

formal spire
#

set X to 5 and try

prisma burrow
#

Moved to the right and kept loosing steps until emergency stop

#

looks better

formal spire
#

ok, so X will work, just gotta find the right sensitivity

#

try 1 on X

prisma burrow
#

X working

formal spire
#

nice

prisma burrow
#

it came back a little bit

formal spire
#

it's supposed to do that

prisma burrow
#

Don't know why

formal spire
#

that's part of the macro

prisma burrow
#

okay

#

okay okay

#

but for y

#

😭

formal spire
#

for Y, I have no idea

#

it seems to be ignoring what you're setting the sensitivity to

#

with -63, it shouldn't move at all, or if it it does, it will be just barely

prisma burrow
#

yup I undertand

#

hmmmmm

#

why is it possible

formal spire
#

you can probably set it to anything, the driver will most likely ignore it though

prisma burrow
#

okay

#

May I try on voron discord 🤷‍♂️

formal spire
#

Can you show me your tmc_2240 stepper_x and stepper_y config sections

#

@prisma burrow

prisma burrow
formal spire
#

Ah

#

for Y you have diag1_pin. Change that to diag0_pin

prisma burrow
#

Okay....

#

It's working

formal spire
#

Yep

prisma burrow
#

but why did I put 2 jumpers if I only use diag0 ?

formal spire
#

Remember I told you yesterday in your other support ticket to watch out for that

#

Different motors

prisma burrow
#

but same name ?

#

okay

#

why not

formal spire
#

You set a jumper for motor 0, diag0 pin for motor 0

#

Same for Y

prisma burrow
formal spire
#

Each motors diag pin is referenced as diag0

prisma burrow
#

okay okay

formal spire
#

Now set sensitivity to 0 and home Y

prisma burrow
#

Thanks for your time and this journey through building a mercury 😂

formal spire
#

lol

prisma burrow
#

By any chance do you know where I can find the mercury one.1 profile for orca slicer ?

#

I'm too lazy to configure the whole profile by myself

formal spire
#

#1081001088037163088 message

prisma burrow
#

You are my saver

#

don't know if this is correct english but...

#

yeah

#

It's working !!!!!!!!!

prisma burrow