bdring / FluidNC

The next generation of motion control firmware
Other
1.62k stars 386 forks source link

TMC2209 & SpreadCycle & Interpolation #698

Open cranefist opened 2 years ago

cranefist commented 2 years ago

How do i set the following settings for TMC2209:

0 microstepping
Interpolation true
SpreadCycle

There does not seem to exists SpreadCycle in the mode selection? And if i set microstepping to 0 it does not like it. Cant find anything about interpolation setting at all?

These settings optimize torque from my nema17 motors. SpreadCycle offers higher torque than StealthChop, and having 0 microstepping gives the highest torque output, while interpolation smooths the movements and reduces motor noise when using 0 microstepping.

As my leadscrews have 1mm lead, 200/mm steps is more than enough for my purposes.

bdring commented 2 years ago

We are not experts on the chip. We just have some basic settings to config some modes. Some modes like Spreadcycle can be a combination of register settings.

The lowest microstep setting is 1 (1:1 no extra steps) I think the default for interpolation is on.

image

Can you tell me the exact setting to the register values that you want?

cranefist commented 2 years ago

Ok, so interpolation defaults on. I think you want to make that into a setting, because it also apparently has negatives. At least klipper documentations says that it can introduce some tiny delay. But its really good for full stepping.

image

Setting this as 1 puts it into SpreadCycle, it would be good as some motors simply do not like StealthChop and there is also considerable more torque in SpreadCycle. StealthChop is intended for high speeds, that's why it also has a setting where you set the speed at which it turns on.

image

I usually set this as 0, when using SpreadCycle, im not sure do i actually have to do that. But this controls the speed when the drivers switches to StealthChop.

I will try setting microstepping as 1.

image

I have used these settings through TMCStepper library in arduino environment.