Stepper motor and TB6560(4 axis)

I have a nema 23 geared stepper motor and a 4 axis TB6560 stepper driver and an arduino to control movement.
I had it working a while ago, the motor moved, tb6560 was fine, code compiling perfectly and I decided to leave it and work on something else with my arduino so I disconnected the wires. I came back to work on it a few days later expecting it to work and nothing.
No movement at all from the steppers. My power supply works, I know the wiring from the stepper to the driver is right because I didn't disconnect those, the code compiles perfectly and it's the same code from when it worked. Anyone know what could have happened.
This is my wiring from the TB6560 to the arduino:
(TB6560-arduino)
Pin 1(dir)-pin 9
Pin 4(x enable)- 5volts
Pin 16(step)-pin 8
Ground pin-Arduino ground pin

I even tried using the rewiring for the y-axis on the TB6560 and change pins and code for the arduino.
There is not one bit of jitter from the motors and lights are on on the TB6560 and the code still compiles I can see it working on the arduino because the L- led is flashed for how long the motor is suppose to move(I didn't program it to do that)

I am so confused and don't know how to fix this, anyone know?

You need to check all the wiring with a multimeter, and that everything is getting the
right voltage.

A close visual inspection is often worthwhile too - be methodical and work through every
connection looking for bad connections or mis-wiring.

[adding LED+resistor to selected Arduino pins to see what they are doing is often
useful - although an oscilloscope is the best diagnostic tool if available]

Thanks for your help, but hap exactly would I use the multimeter with the wires from the DP port on the TB6560 to arduino?

Thanks :slight_smile:

It's possible enable needs to be LOW rather than HIGH - check the driver specs.

...R

I checked and it says the enable pin needs to be pulled high. Hope I haven't killed it some how!
Anyone have more ideas?

Alexisa:
Thanks for your help, but hap exactly would I use the multimeter with the wires from the DP port on the TB6560 to arduino?

Thanks :slight_smile:

Check continuity of every connection, all powred down.

Then power up and check all supply rails and that all signal voltages are as
expected when idle.

You could send a photo here too, might be something obvious to the trained eye.

Have you tried to run the motor with a really simple sketch? For example (with suitable pin corrections for your project). Your board uses step and direction like the A4988.

// testing a stepper motor with a Pololu A4988 driver board
// on an Uno the onboard led will flash with each step
// as posted on Arduino Forum at http://forum.arduino.cc/index.php?topic=208905.0

byte directionPin = 9;
byte stepPin = 8;
int numberOfSteps = 50;
byte ledPin = 13;
int pulseWidthMicros = 50;  // microseconds
int millisbetweenSteps = 50; // milliseconds

void setup() 
{ 

  Serial.begin(9600);
  Serial.println("Starting StepperTest");
  digitalWrite(ledPin, LOW);
  
  delay(2000);

  pinMode(directionPin, OUTPUT);
  pinMode(stepPin, OUTPUT);
  pinMode(ledPin, OUTPUT);
  
 
  digitalWrite(directionPin, HIGH);
  for(int n = 0; n < numberOfSteps; n++) {
    digitalWrite(stepPin, HIGH);
    delayMicroseconds(pulseWidthMicros);
    digitalWrite(stepPin, LOW);
    
    delay(millisbetweenSteps);
    
    digitalWrite(ledPin, !digitalRead(ledPin));
  }
  
  delay(3000);
  

  digitalWrite(directionPin, LOW);
  for(int n = 0; n < numberOfSteps; n++) {
    digitalWrite(stepPin, HIGH);
    delayMicroseconds(pulseWidthMicros);
    digitalWrite(stepPin, LOW);
    
    delay(millisbetweenSteps);
    
    digitalWrite(ledPin, !digitalRead(ledPin));
  }
  
}

void loop() 
{ 

}

...R