Hello everyone
I am going to just turn a stepper motor with my driver (TMC2130) and arduino uno with the most basic arduino code (attached at the end). It is not working 🙁. I have checked the wiring, tested with two TMC 2130 drivers, tested with 12 V power and 24 V power supply, tested two motors. However, it is not working. Can you guess what is the problem?
I have a constant 24 V in the 4 pins related to the motor. Should it be like this or it should not be constant?
#define en 4
#define dir 5
#define stp 3
void setup() {
pinMode(en, OUTPUT);
pinMode(dir, OUTPUT);
pinMode(stp, OUTPUT);
digitalWrite(en, LOW);
digitalWrite(dir, HIGH);
}
void loop() {
digitalWrite(stp, LOW);
delay(100);
digitalWrite(stp, HIGH);
delay(100);
}