SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By bigmuddyfoot
#154383
Hey guys!
I need some help. Here is what i have.
https://www.sparkfun.com/products/10846
and
https://www.sparkfun.com/products/10735


Here is what i have for setup....
I am using arduino uno. and the code im using for now. (i am using 9600 as well)
Code: Select all
#define DIR1_PIN (9)
#define STEP1_PIN (10)
#define DELAY (1600/10)
#define BAUD (9600)

void setup() {
Serial.begin(BAUD);
pinMode(DIR1_PIN,OUTPUT);
pinMode(STEP1_PIN,OUTPUT);
}


void loop() {
int i,j=DELAY;

digitalWrite(DIR1_PIN, LOW); // Set the direction.
delayMicroseconds(DELAY);
Serial.println(">>");

for (i = 0; i<3400; i++) // Iterate for 4000 microsteps.
{
digitalWrite(STEP1_PIN, LOW); // This LOW to HIGH change is what creates the
digitalWrite(STEP1_PIN, HIGH); // "Rising Edge" so the easydriver knows to when to step.
delayMicroseconds(j); // This delay time is close to top speed for this
j+=1;
} // particular motor. Any faster the motor stalls.

digitalWrite(DIR1_PIN, HIGH); // Change direction.
delayMicroseconds(DELAY);
Serial.println("<<");

for (i = 0; i<3400; i++) // Iterate for 4000 microsteps
{
digitalWrite(STEP1_PIN, LOW); // This LOW to HIGH change is what creates the
digitalWrite(STEP1_PIN, HIGH); // "Rising Edge" so the easydriver knows to when to step.
delayMicroseconds(j); // This delay time is close to top speed for this
j-=1;
} // particular motor. Any faster the motor stalls.
}
on the driver board i have the following

GNd to ground on the arduino
Step to Pin 10
Dir to pin 9
----------------------------
COILS A
Black & Green
+++++++++++++++++
COILS B
Red & blue
--------------------------
GND to ground on power supply (computer power supply)
M+ to positive ( or +) of power supply


what in the heck am i doing wrong?????
Here is where i found the coil config
http://memakingthings.blogspot.com/2012 ... otors.html

And the code config
http://www.instructables.com/id/How-to- ... /?ALLSTEPS


As for the powersupply here is the info on that.
@ 5v i have 22A max (this is what im using)

Here is a pic of the connector im using.
http://www.smpspowersupply.com/ATX-connectors.JPG

I am using paeripheral connector Red and black wire. and i have jumped the power supply and its on and running.

Can you guys help me out.
User avatar
By Ross Robotics
#154400
You gave us all the information except what problem you are having.

The only thing I didn't see is where you hooked the GND up to the Arduino. All GNDs must be connected.
By bigmuddyfoot
#154416
codlink wrote:You gave us all the information except what problem you are having.

The only thing I didn't see is where you hooked the GND up to the Arduino. All GNDs must be connected.

LOL i guess thats what i get for writing this so late! The problem i am having is that i can not get the stepper motor to do anything. it does not make any noise or turn. I have played with the power output too.
By bigmuddyfoot
#158848
So come to find out after hours and hours of testing and buying another driver board some one at the factory put together the stepper motor spacer washer in backwards. I simply moved the spacer to the other side of the shaft and walaha! it works!!!!
By mdne
#160822
Hello. I have a similar problem. Recently I just bought a Big Easy Driver and a stepper like this https://www.sparkfun.com/products/10847.
I connected 4 stepper wires(green, black, red and blue) to the BED. Then I connected to M+ and Gnd 12v. And 9,8, Gnd pins from arduino to BED. Also I ran a simple arduino sketch

void setup() {
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
digitalWrite(8, LOW);
digitalWrite(9, LOW);
}

void loop() {
digitalWrite(9, HIGH);
delay(100);
digitalWrite(9, LOW);
delay(100);
}

But the stepper didn't move or even jittered. I measured a voltage on AA and BB headers and it was 10V on A pin and 2V on B and didn't change during the time. I also checked the step signal on arduino. It was correct from 0 to 5V.

What I did wrong or it is a problem with BED?
By EmbeddedMan
#160840
As a followup, mdne e-mailed me, and we went through a lot of troubleshooting steps. We confirmed that the pulses were getting from the Arduino to the BED. We confirmed that the BED had good power, and that the output stages looked like they were doing the right thing. But the step pulses were not actually causing any steps to be taken. I believe mdne is buying another BED to see if replacing that component fixes the issue.

*Brian
By JoelB
#161592
Just as a follow-up, did a new BED work? I'm experiencing a similar issue with one that I purchased roughly two years ago, and am finally just getting around to using it. Same problem though - everything powers up just fine, but no motor movement, and minimal voltage being sent to the stepper.

I've been able to verify that it isn't the stepper or the Netduino powering it, as I've hooked it up to a Pololu stepper controller, which worked fine.