- Sat Jan 19, 2013 10:36 pm
#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)
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.
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
on the driver board i have the following #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.
}
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.