Help, I'm having trouble getting these motors dc working

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);

}

Couple of points:

  • Use code tags
  • Link to motors, are they really steppers
  • You can't connect a motor direct to an Arduino so what's between the motor and the Arduino?

-They are stepper motors
-how do i use code tags

  • there is a bread board between the arduino and motors

lukester:

  • there is a bread board between the arduino and motors

That doesn't count as something... That's just a wire. You need some sort of driver. Transistors (like the transistor array ULN2803) is commonly used.

lukester:
-how do i use code tags

Please edit your post, select the code, and put it between [code] ... [/code] tags.

You can do that by hitting the "Code" icon above the posting area. It is the first icon, with the symbol: </>

Read this before posting a programming question

How to use this forum