Ardiuno UNO, a4983 driver and stepper motor
hi
my motor doesn't move, think problem code
i using 12v battery, motor:
http://www.sparkfun.com/datasheets/robotics/sm-42byg011-25.pdf
i attaching pic of arduino at.
hope cold me here...
itamar
my motor doesn't move, think problem code
code: [select]
// stepper
#include <stepper.h>
// steps value 360 / degree angle of motor
#define steps 200
// create object on pins 6 , 7
stepper stepper(steps, 6,7);
void setup()
{
}
void loop()
{
///// turn stepper 200 steps 1 sec delay between steps @ 60rpm
/// reverse direction , 50 steps @ 20rpm 1sec delay between steps
stepper.setspeed(1);
stepper.step(200);
//delay(1000);
//stepper.setspeed(20);
//stepper.step(-50);
//delay(1000);
}i using 12v battery, motor:
http://www.sparkfun.com/datasheets/robotics/sm-42byg011-25.pdf
i attaching pic of arduino at.
hope cold me here...
itamar
i can't see connected ground (gnd) pins.
Arduino Forum > Using Arduino > Motors, Mechanics, and Power (Moderator: fabioc84) > Ardiuno UNO, a4983 driver and stepper motor
arduino
Comments
Post a Comment