Open afeathers1 opened 3 years ago
You should first just focus on getting a response from the driver. I didn't have the time to test this piece of code but you can try it out
#include <Arduino.h>
#include <TMCStepper.h>
TMC2660Stepper driver(53, 0.1);
void setup() {
Serial.begin(9600);
SPI.begin();
driver.begin();
}
void loop() {
delay(1000);
auto drv_status = driver.DRV_STATUS();
Serial.print("Driver status = ");
Serial.println(drv_status);
}
I am trying to drive a nema23/56 stepper with a TMC2660 on the TMC2660-BOB breakout board, with an arduino mega 2560. I'm attempting to run hardware SPI on the mega SPI pins (50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS)). https://www.trinamic.com/support/eval-kits/details/tmc2660-bob/
To the absolute best of my knowledge and after double, tripple, and quadruple checking connections, I simply get no output to the stepper. Sporadically, the shaft locks and unlocks. Step and direction signals look like they should when measured.
Is there a guide to using this library? I saw reference to chapters somewhere, but links provided were broken.
Any help or guidance appreciated. Thank you very much for sharing this.
Code below, in case it's something simple: