hi all im newbie and need help with this cicruit i built

Hi all im had this mycom taiwan stepper motor and it industrial 2 phase driver.....what im trying to do is controlling it using arduino uno. i tried the simple code to drive the motor but it didnt work....here i attached the data sheet for the driver and a picture of the connected components...can anybody help im doing this as a hobby and maybe trying to built a home made cnc :slight_smile:

ims200.pdf (228 KB)

  1. What "simple code"?
  2. How have you connected the Arduino output(s) to the stepper driver? Your photo
    shows an Arduino not connected to anything but USB so its obviously not going to work!

opss sorry dude my bad here the connected pic to arduino.... i used this sample program just to test my circuit either it work or not...

#include <Stepper.h>

#define motorSteps 200
#define motorPin1 8
#define motorPin2 9
#define ledPin 13

// initialize of the Stepper library:
Stepper myStepper(motorSteps, motorPin1,motorPin2);

void setup() {
// set the motor speed at 60 RPMS:
myStepper.setSpeed(60);

// Initialize the Serial port:
Serial.begin(9600);

// set up the LED pin:
pinMode(ledPin, OUTPUT);
// blink the LED:
blink(3);
}

void loop() {
// Step forward 100 steps:
Serial.println("Forward");
myStepper.step(100);
delay(500);

// Step backward 100 steps:
Serial.println("Backward");
myStepper.step(-100);
delay(500);

}

// Blink the reset LED:
void blink(int howManyTimes) {
int i;
for (i=0; i< howManyTimes; i++) {
digitalWrite(ledPin, HIGH);
delay(200);
digitalWrite(ledPin, LOW);
delay(200);
}
}