New coolStep(TM) stepper motor drivers with step/direction and stallGuard2(TM)
I am writing software to operate the TMC260 in SPI mode. After I send the below SPI commands motor starts drawing current .
Now I write driver control register with current A and Current B respectively.
But motor doesn't rotate. Is there any sample code I can have to operate the motor in SPI mode?
- Posts: 5
- Joined: 15 May 2012, 10:59
In order to rotate the motor, you must rotate the electrical field (vector). Just apply a sine and a cosine curve with the desired velocity and the motor will turn. Later on you can customize your waves for perfect adaptation to you motor.
I'm sorry, but I'm not aware of a sample code for pure SPI mode operation - the sample code in the TMC262 Eval uses step&dir mode operation.
- Site Admin
- Posts: 2436
- Joined: 25 Jul 2006, 12:21
- Location: Hamburg (Germany)
Return to TMC260 / TMC261 / TMC262
Who is online
Users browsing this forum: No registered users and 2 guests