Controlling Stepper Motor with a Parallel Port Scheme |
Controlling Stepper Motor with a Parallel Port Physical |
How Stepper Motor Works?
Stepper motors are very different from a regular DC motors. Instead of spinning like DC motors do, stepper motor steps at a specific resolution for each pulse. The motor that we are using needs 48 steps / pulses just to complete a single revolution! That should be enough to tell about its precision.
Another advantage of stepper motors is the fact that their speed of rotation can be achieved almost instantly even if you change the spinning direction.
Stepper motor consists of a rotor - the permanent magnet that rotates inside, and stator - four coils (north, east, south, west) that are part of the case, and which don't move. Rotor can be moved by sequentially applying a pulsed DC voltage to one or two coils at a time.
Unipolar motor should have five or six connections depending on the model. If the motor has six connections like the one pictured above, you have to join pins 1 and 2 (red) together and connect them to a (+) 12-24V voltage supply. The remaining pins; a1 (yellow), b1 (black), a2 (orange), b2 (brown) should be connected to a driver (ULN2003) as shown on the schematic.