DFR 2A motor shield with bipolar geared stepper, please help

Hi guys,
Could you help perhaps. Im not a techi or someone who generally does electronic related things anymore, im just playing around with the arduino and elec for the first time in 15 years so don’t really know terminology anymore. the programming comes across as very easy with the tests I have done on servo motors.
Im trying to connect this stepper motor to the DFR motor shield with no luck. Here are the specs and diagram:
MOTOR STEPPER GEARED 12V 0.15D
BIPOLAR GEARED STEPPER MOTOR, RATIO=50, 12V, 20E, 0.15DEGREE, 2400
STEP, 4 WIRE
[url=http://www.mantech.dfrobot.za/Datasheets/Products/PMGXX.pdf]http://www.mantech.dfrobot.za/Datasheets/Products/PMGXX.pdf[/url]
it makes a noise as if it were trying to turn based on the code but no steppers occur.
I connect my own ac adapter 12V and set the pins to use external power on the shield.
wired it up like this:
M1- red
M1+ yellow
M2- black
M2+ white
This is one of the codes I used. Ive tried quite a few different codes, the motor reacts to the timing but no step.
*/
int motorPin1 = 5;
int motorPin2 = 6;
int motorPin3 = 7;
int motorPin4 = 8;
int delayTime = 500;
void setup() {
pinMode(motorPin1, OUTPUT);
pinMode(motorPin2, OUTPUT);
pinMode(motorPin3, OUTPUT);
pinMode(motorPin4, OUTPUT);
}
void loop() {
digitalWrite(motorPin1, HIGH);
digitalWrite(motorPin2, LOW);
digitalWrite(motorPin3, LOW);
digitalWrite(motorPin4, LOW);
delay(delayTime);
digitalWrite(motorPin1, LOW);
digitalWrite(motorPin2, HIGH);
digitalWrite(motorPin3, LOW);
digitalWrite(motorPin4, LOW);
delay(delayTime);
digitalWrite(motorPin1, LOW);
digitalWrite(motorPin2, LOW);
digitalWrite(motorPin3, HIGH);
digitalWrite(motorPin4, LOW);
delay(delayTime);
digitalWrite(motorPin1, LOW);
digitalWrite(motorPin2, LOW);
digitalWrite(motorPin3, LOW);
digitalWrite(motorPin4, HIGH);
delay(delayTime);
}
THANKS!
Could you help perhaps. Im not a techi or someone who generally does electronic related things anymore, im just playing around with the arduino and elec for the first time in 15 years so don’t really know terminology anymore. the programming comes across as very easy with the tests I have done on servo motors.
Im trying to connect this stepper motor to the DFR motor shield with no luck. Here are the specs and diagram:
MOTOR STEPPER GEARED 12V 0.15D
BIPOLAR GEARED STEPPER MOTOR, RATIO=50, 12V, 20E, 0.15DEGREE, 2400
STEP, 4 WIRE
[url=http://www.mantech.dfrobot.za/Datasheets/Products/PMGXX.pdf]http://www.mantech.dfrobot.za/Datasheets/Products/PMGXX.pdf[/url]
it makes a noise as if it were trying to turn based on the code but no steppers occur.
I connect my own ac adapter 12V and set the pins to use external power on the shield.
wired it up like this:
M1- red
M1+ yellow
M2- black
M2+ white
This is one of the codes I used. Ive tried quite a few different codes, the motor reacts to the timing but no step.
*/
int motorPin1 = 5;
int motorPin2 = 6;
int motorPin3 = 7;
int motorPin4 = 8;
int delayTime = 500;
void setup() {
pinMode(motorPin1, OUTPUT);
pinMode(motorPin2, OUTPUT);
pinMode(motorPin3, OUTPUT);
pinMode(motorPin4, OUTPUT);
}
void loop() {
digitalWrite(motorPin1, HIGH);
digitalWrite(motorPin2, LOW);
digitalWrite(motorPin3, LOW);
digitalWrite(motorPin4, LOW);
delay(delayTime);
digitalWrite(motorPin1, LOW);
digitalWrite(motorPin2, HIGH);
digitalWrite(motorPin3, LOW);
digitalWrite(motorPin4, LOW);
delay(delayTime);
digitalWrite(motorPin1, LOW);
digitalWrite(motorPin2, LOW);
digitalWrite(motorPin3, HIGH);
digitalWrite(motorPin4, LOW);
delay(delayTime);
digitalWrite(motorPin1, LOW);
digitalWrite(motorPin2, LOW);
digitalWrite(motorPin3, LOW);
digitalWrite(motorPin4, HIGH);
delay(delayTime);
}
THANKS!
2013-04-19 05:50:09 Thanks Angelo, i will try that!
Does my wiring look right to you?
i was concerned about the code as its a biopolar stepper, ive never touched one of those.
stushapiro
Does my wiring look right to you?
i was concerned about the code as its a biopolar stepper, ive never touched one of those.

2013-04-18 18:32:15 Hi, stushapiro:
Perhaps you delay too much time between two steps. one step can only move 0.15 degree. The stepper does work, while the speed is very slow. You may change the delayTime to about 5 or use the delayMicroseconds(unsigned long) to let the stepper more faster.
Angelo.Qiao
Perhaps you delay too much time between two steps. one step can only move 0.15 degree. The stepper does work, while the speed is very slow. You may change the delayTime to about 5 or use the delayMicroseconds(unsigned long) to let the stepper more faster.
