Hello, Everyone. I am new to the whole Arduino scene and am learning the ropes. My first project is getting 2 5 volt dc motors working, with my Arduino Uno.I have everything setup but there's a problem. I feel the motors vibrating but there's no movement but I'm not sure why. here is the code any editing or advice would be help would be great.
#include <Stepper.h>
// steps value is 360 / degree angle of motor
#define STEPS 250
// create a stepper object on pins 4, 5, 6 and 7
Stepper stepper1(STEPS, 7, 6, 5, 4);
Stepper stepper2(STEPS, 11, 10, 9, 8);
void setup()
{
}
void loop()
{
stepper1.setSpeed(100);
stepper2.setSpeed(100);
stepper1.step(100);
stepper2.step(100);
}