Arduino uno+TMC 2130 v1.2 driver+ stepper motor!

Hello!
at the beginning I apologize for my language skills! I come from a small country (Latvia)

Can someone help me get the TMC 2130 V1.2 driver for the Arduino nano?

As far as I understand My driver (v1.2-model) can only work in SPI mode. And that's why I can't start the stepper motor as easily as with the DRV 8825 driver!

i try to find information on google! but bad luck - probably I can't find it!

can someone help me?

1 Like

Which TMC2130 board do you have and which library are you using?

TMC2130V1.2

I use
#include <TMC2130Stepper.h>

This is the cods i have found so far!

/*
Initializes the library and turns the motor in alternating directions.
*/
#define EN_PIN 7 // Mega: 38 //enable (CFG6)
#define DIR_PIN 8 // 55 //direction
#define STEP_PIN 9 // 54 //step
#define CS_PIN 10 // 64 //chip select

bool dir = true;

#include <TMC2130Stepper.h>
TMC2130Stepper TMC2130 = TMC2130Stepper(EN_PIN, DIR_PIN, STEP_PIN, CS_PIN);

void setup() {
Serial.begin(9600);
TMC2130.begin(); // Initiate pins and registeries
TMC2130.SilentStepStick2130(600); // Set stepper current to 600mA
TMC2130.stealthChop(1); // Enable extremely quiet stepping

digitalWrite(EN_PIN, LOW);
}

void loop() {
digitalWrite(STEP_PIN, HIGH);
delayMicroseconds(10);
digitalWrite(STEP_PIN, LOW);
delayMicroseconds(10);
uint32_t ms = millis();
static uint32_t last_time = 0;
if ((ms - last_time) > 2000) {
if (dir) {
Serial.println("Dir -> 0");
TMC2130.shaft_dir(1);
} else {
Serial.println("Dir -> 1");
TMC2130.shaft_dir(1);
}
dir = !dir;
Serial.println(TMC2130.GCONF(), BIN);
last_time = ms;
}
}

FINALLY!

Things I did!

my tmc2130 v1.2 was not a soldered jumper. (but the description the seller put in was saying that v1.2 would work only on the SPI model! So the jumper would have to be soldered!

I found a good description of TMC2130 v1.2 (https://www.luisllamas.es/motores-paso-a-paso-en-silencio-con-arduino-y-los-driver-tmc2100-tmc2130-y-tmc2208/)

the coda shown there did not work for me anyway!

everything worked for me with this code -https: //github.com/watterott/SilentStepStick/blob/master/software/TMC2130.ino

so far one of the three TMC 2130 v1.2 I've tried has not worked for me.

as soon as I plugged in, started to heat up!

hope my experience will help someone!

Good luck with your experiments! :slight_smile: