In this example we will show a basic stepper motor example, we use a driver board that can be bought on many sites which basically comprises of a ULN2003 IC and a few other components, you can use either 5v or 12v, the motor that comes quite often with this board is a 5v type, you can see it further down the page.
Here is the board that I used for this example and here are the connections
Arduino pin 8 -> IN1
Arduino pin 9 -> IN2
Arduino pin 10 ->IN3
Arduino pin 11 -> IN4
Here is the motor I used, the motor connector can only fit one way on the board. This is identified as a 28byj-48 type.