Hi,
i’m a bit of a beginner to this nd am trying to set up a stepper motor connected to my arduino board as shown in the pictures below. I’ve followed the logic as shown in this image download/file.php?id=1438 except that I added a 100um capacitor after my 12v power supply. The motor i am using is a Wantai Nema17 motor [reprapworld.com/?products_details&products_id/770/cPath/1614#.VVSi6fmqqko]
When I run this however, absolutely nothing happens - is there something I am missing?
Thanks!
The code I am using is as follows:
[code]int sleep = 11;
int reset = 10;
int direccion = 9;
int paso = 8;
void setup()
{
pinMode(sleep,OUTPUT);
pinMode(reset,OUTPUT);
pinMode(direccion,OUTPUT);
pinMode(paso,OUTPUT);
digitalWrite(sleep, HIGH);
digitalWrite(reset, HIGH);
digitalWrite(direccion, HIGH);
}
void loop()
{
digitalWrite(paso, HIGH);
delay(100);
digitalWrite(paso, LOW);
delay(100);
}[/code]