Adalbert wrote:Hi Kaleun96,
I use TMC5130A via SPI. STEP/DIR wouldn’t make any sense.
So, I have to calculate/determine the target-position and send it to the driver.
In my case the speed of the processor doesn’t play any role.
I’m afraid the speed of the step-motor is the bottle neck
You only can improve the speed of the rail by the changing of the settings of the driver e.g. decrease the number of the micro-steps.
BR, ADi
When you mentioned your slowest setting gave you 150mm in 3 minutes, is this the setting you often run at or just the slowest as an example?
I'm often only using 16 or 32 microsteps and find the noise and vibrations to be extremely low, even running at a fast speed. I've tried increasing the microsteps but I found it difficult to have the StallGuard trigger reliably that way. I would need to implement better ramping, maybe something similar to Mike with dynamic microstep control, to get it to work with StallGuard at high microsteps better I think.
I can however switch to high microsteps when I'm stepping small distances for a stack.
In my case the speed of the processor doesn’t play any role.
Can I ask which Arduino board you're using? As you say, using direct SPI control does make clock speed somewhat irrelevant given how fast it can communicate.
Someone should look into making a SPI-driven AccelStepper library. I vaguely recall looking into it myself but for some reason backed off the idea, perhaps it was more difficult than I first suspected.
The advantage is having a standard set of functions for acceleration, positioning, homing, controlling multiple steppers, etc. I imagine most here want more customization than that but those settings could still be worked into a generic library. At the moment, I suspect most of us are writing our own functions for these things and essentially replicating the same work multiple times independently.
BTW I've found that the Trinamic 5160 StepStick has the chip forced (wired) into the Step and Dir mode and can't be easily changed
Hey Mike, do you know if those are the same boards sold by Watterott? They do look very similar but the Watterott documentation doesn't seem to mention this limitation.
https://learn.watterott.com/silentsteps ... g/tmc5160/
Though I'm a little unsure how they are forced into STEP/DIR mode, I thought it was mainly a choice between using SPI and CFG for configuration, and if you're in CFG standalone mode you can only use the CFG pins to set microsteps and you have to control the stepper via STEP/DIR pins. But if you're in SPI mode, you can configure via SPI and step using the STEP/DIR pins or you can config via SPI and also control the motor via SPI.
It's been awhile since I read the datasheet so maybe I'm missing something!