Bought a mini stepper motor with 5 wires. Its a Symbol Mini Stepper Motor run on 5V. I tried to use the schematic from this website where someone made a driver to run the motor. For some reason I couldnt get the circuit to work. Most likely it was the transistor or the resistor value. Instead, I tried connecting the motor directly to the pin out 2, 3, 4 and 5. Using the attached sketch file, I was able to run the motor. This motor did full rotation in 20 steps (1step = 18 degrees). Still needs more testing for speed etc. The original .pde file is set to move the motor in random direction and random speed. If you change the .pde file to use constant speed/direction use the following
Speed: 1 – 50 (50 being the fastest)
Direction: 1 – 20 (20 being a complete rotation)