Closed DaAndi89 closed 6 years ago
For one, you're trying to use both stealthChop and constant off time mode at the same time. The latter is a bit of a relic at this point Trinamic calls it the "classic" option. Remove driver.chopper_mode(1)
from your setup.
You're also setting microsteps and interpolation twice.
You're setting the current with rms_current
and then overriding that with run_current
and hold_current
. Try to use on or the other approach.
I'd recommend not trying to set up stealthChop/spreadCycle transition thresholds before you have everything working first. Also the argument is not speed or rotations/steps/whatever. The argument is a TSTEP value which is a function of the internal driver clock frequency.
Hysteresis settings only apply to spreadCycle, so you can take them out too until you want to mix in spreadCycle for higher speeds.
3500 fullsteps/s seems quite high. That's 17.5 rounds/s for a 1.8 degree motor. Or about 700mm/s.
Basically try to simplify the set up as much as possible and build from there.
Hi guys,
hope you can help me. Since a week I´m tring to set up my tmc2130. I´ve the orginal (green) one from watterot. My supply voltage for the driver is 3.3V, VRef is at 1.1V, VM was tested between 12-18V. SPI Connection is open. My goal is the set the settings with SPI using the TMC2130Stepper library and controll the motor with the accelstepper library. I´m using a arduino uno. The stepper is a generic 1.8°/200 Steps stepper from adafruits. I want to create a controller for a camera slieder. Frist only the slieder than pan tilt astro functionality.
Problem what I have, is that my stepper runs only in low speeds. I´ve read that the arduino with its 16 Mhz is the limiting factor. But with a TB503A1 driver are getting much higher speeds. I only want the higher speed for position the camera on the slider during operation timelapse and so on the speeds that i can get at the moment are fine. But reference drive to the end stop and back i don´t want to wait für 5 min.
Below is my code example. At this configuration i need 3.4 seconds for a full rotaion. Is this a problem of my configuration of the tmc or do i´m using the tmc library in a wrong way or is this a problem with the accelstepper library.
Sorry for missusing your issue section teemuatlut but i couldn´t find you in a forum to ask you there.