Hello guys, Im a little bit new to the scene but im running into a headbreaker. ![]()
I want to make:
An Arduino Pro Mini, activating a TMC2100 silent stepper motor which controls a 17HS4401 Nema17 stepper motor.
Ive checked all the pins, and their all showing voltages. The motor is powered by a 12v powersupply. All gnd are connected.
I believe the code shown below should rotate the motor or am I wrong?
Im using the code i got from Github:
/*
Trinamic TMC2100 Example
*/
// Note: You also have to connect GND, 5V/VIO and VM.
// A connection diagram can be found in the schematics.
#define EN_PIN 7 //enable (CFG6)
#define DIR_PIN 8 //direction
#define STEP_PIN 6 //step
void setup()
{
//set pin modes
pinMode(EN_PIN, OUTPUT);
digitalWrite(EN_PIN, HIGH); //deactivate driver (LOW active)
pinMode(DIR_PIN, OUTPUT);
digitalWrite(DIR_PIN, LOW); //LOW or HIGH
pinMode(STEP_PIN, OUTPUT);
digitalWrite(STEP_PIN, LOW);
digitalWrite(EN_PIN, LOW); //activate driver
}
void loop()
{
//make steps
digitalWrite(STEP_PIN, HIGH);
delay(2);
digitalWrite(STEP_PIN, LOW);
delay(2);
}
If somebody has advice, please let me know.
Thanks
