I'm trying to scale up a smaller project to use high torque stepper I had lying around for a CNC project but can't get it to work with Accelstepper library which is integral to the project.
The Easystepper's I had around had too low current rating so I grabbed a few of these.
http://www.ebay.com.au/itm/Dual-H-Bridge-L298N-DC-Stepper-Motor-Driver-Module-Controller-Board-for-Arduino-/261364656280?hash=item3cda8c2898
It will spin with this code
int IN1=0
int IN2=1
int IN3=2
int IN4=3
void setup()
{
pinMode(IN1,OUTPUT);
pinMode(IN2,OUTPUT);
pinMode(IN3,OUTPUT);
pinMode(IN4,OUTPUT);
}
void loop()
{/*In the way of 4 beats to drive the stepping motor,A group connected to motorA,B
B group connected to motorB,Suppose A representing the forward current of A group,
A- representing the reverse current of A group,B representing the forward current of B group,
B- representing the reverse current of B group.
this way run as follow:
AB A-B A-B- AB-
or
AB AB- A-B- A-B
*/
digitalWrite(IN1,LOW);
digitalWrite(IN2,HIGH);
digitalWrite(IN3,HIGH);
digitalWrite(IN4,LOW);
delay(10);
digitalWrite(IN1,LOW);
digitalWrite(IN2,HIGH);
digitalWrite(IN3,LOW);
digitalWrite(IN4,HIGH);
delay(10);
digitalWrite(IN1,HIGH);
digitalWrite(IN2,LOW);
digitalWrite(IN3,LOW);
digitalWrite(IN4,HIGH);
delay(10);
digitalWrite(IN1,HIGH);
digitalWrite(IN2,LOW);
digitalWrite(IN3,HIGH);
digitalWrite(IN4,LOW);
delay(10);
}
But if I try setup with either of these, the stepper vibrates, but does not move.
AccelStepper stepper (AccelStepper::FULL4WIRE, IN1, IN2, IN3, IN4);
OR
AccelStepper stepper (AccelStepper::HALF4WIRE, IN1, IN2, IN3, IN4);
Any ideas?

