Pages: [1]   Go Down
Author Topic: need quick help for an exhibition !!!!  (Read 251 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
HfG of main
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hey guys!

i'm absolutely down and out.

i've got an exhibition next tuesday and i need to get my stepper working (i'm new to it). so it would be a pleasure, if u you could help me!

here's my problem:
although i've looked in the www for help, i'm not able to plug the stepper wires right into the motor shield (ladyada). i've tried to connect the wires with the sections M1 and M2, but nothing happened.
then i've removed the power jumper and connected the shield with a 5V power adapter. but there still nothing happened.
then i've tried to connect the wires with M4 and M3, and correct the code, but the stepper stood still.

so. what am i doing wrong ?!

sorry, for my bad english... it's already very late...

here is the code i used:

#include <AFMotor.h>


AF_Stepper motor(48, 1);


void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Stepper test!");

  motor.setSpeed(10);  // 10 rpm   

  motor.step(100, FORWARD, SINGLE);
  motor.release();
  delay(1000);
}

void loop() {
  motor.step(100, FORWARD, SINGLE);
  motor.step(100, BACKWARD, SINGLE);

  motor.step(100, FORWARD, DOUBLE);
  motor.step(100, BACKWARD, DOUBLE);

  motor.step(100, FORWARD, INTERLEAVE);
  motor.step(100, BACKWARD, INTERLEAVE);

  motor.step(100, FORWARD, MICROSTEP);
  motor.step(100, BACKWARD, MICROSTEP);
}


* Foto am 25-10-2012 um 22.42 #2.jpg (68.16 KB, 640x480 - viewed 8 times.)

* Foto am 25-10-2012 um 22.42.jpg (70.83 KB, 640x480 - viewed 7 times.)
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
HfG of main
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hey guys!

can't belive it. i've solved the problem.

my arduino was broken.

so, thx to everybody who read my post, and sorry to everybody that i've stolen your time....

 smiley-lol
be blessed!
vorwind.
Logged

Pages: [1]   Go Up
Jump to: