I was not able to get the driver to work, even when I followed the tutorial on the wiki doc. I do not know if there is something wrong with the code or with the wiring but if anyon...
JaneYu 2016-10-13 11:21:11 12 Views6 Replies I was not able to get the driver to work, even when I followed the tutorial on the wiki doc. I do not know if there is something wrong with the code or with the wiring but if anyone can help that would be greatly appreciated.
I am using the TMC260 with Arduino Uno (SPI interface) to rotate a motor up for a certain time, down for a certain time, and repeat. I am using the configuration settings from the example code.
The program works as intended for some amount of time (usually 1-2 hours but I've seen as long as 12+ hours) and at some point the program hangs. I inserted print commands before each instruction and determined that Arduino is hanging after one of the spi.start() calls each time.
Any idea why this is happening?
void loop() {
delay(600000);
//rotate down
tmc26XStepper.SPI_step(rotationSteps);
tmc26XStepper.spi_start();
delay(120000);
//rotate up
tmc26XStepper.SPI_step(-rotationSteps);
tmc26XStepper.spi_start();
}
JaneYu Hi I am using this driver with a 5V stepper motor and a 5V supply. According to the schematic the EN pin is kept LOW that should enable the stepper motor drive and harden the motor shaft but the stepper motor is freewheeling. Why?
JaneYu Hello,
Power to the VIN port should be kept between 7-40V, even if you are using a 5V stepper motor.
Otherwise the motor driver chip may not work properly.


