Stepper Motor
Stepper Motor
Stepper Motor
: Stepper Motor
An Overview
Stepper motors were developed in the early 1960s as a low cost alternative to
position servo systems in the emerging computer peripheral industry. The main
advantage of stepper motors is that they can achieve accurate position control
without the requirement for position feedback. In other words, they can run
open-loop, which significantly reduces the cost of a position control system. A
stepper motor converts electronic pulses into proportionate mechanical
movement. Each revolution of the stepper motors shaft is made up of a series of
discrete individual steps. A step is defined as the angular rotation produced by
the output shaft each time the motor receives a step pulse. Each step causes the
shaft to rotate a certain number of degrees. The size of this step is dependent on
the teeth arrangement of the motor, but a common value is 1.8 degrees, or 200
steps per revolution.
Stepper Motors vs. Other Motors
1. Brushless
Stepper motors are brushless. Motors with contact brushes create sparks,
undesirable in certain environments.
2. Holding torque
Stepper motors have very good low speed and holding torque. Stepper motors
are usually rated in terms of their holding torque and can even hold a position (to
a lesser degree) without power applied, using magnetic detent torque.
3. Open-loop positioning
Stepper motors can run open-loop without the need for any kind of encoder to
determine the shaft position. Compared to servos (Closed loop systems- systems
that feed back position information), stepper motors are very easy to control.
The position of the shaft is guaranteed as long as the torque of the motor is
sufficient for the load, under all its operating conditions.
4. Load independent
The rotation speed of a stepper is independent of load, provided it has
sufficient torque to overcome slipping. The higher RPM a stepper motor is driven,
the more torque it needs, so all stepper motors eventually start slipping at some
RPM. Slipping is usually a disaster for steppers, because the position of the shaft
becomes unknown. For this reason, software usually keeps the stepping rate
within a maximum top rate. In applications where a known RPM is needed under
a varying load, steppers can be very handy.
A steppers low speed torque will vary directly with current. How quickly the
torque falls off at faster speeds depends on the winding inductance and the drive
circuitry it is attached to, especially the driving voltage.
Steppers should be sized according to published torque curve, which is specified
by the manufacturer at particular drive voltages and/or using their own drive
circuitry. It is not guaranteed that you will achieve the same performance given
different drive circuitry, so the pair should be chosen with great care.
Fundamentals of Operation
Stepper motors operate differently from normal DC motors, which rotate when
voltage is applied to their terminals. Stepper motors, on the other hand,
effectively have multiple toothed electromagnets arranged around a central
gear-shaped piece of iron. The electromagnets are energized by an external
control circuit, such as a micro controller. To make the motor shaft turn, first one
electromagnet is given power, which makes the gears teeth magnetically
attracted to the electromagnets teeth. When the gears teeth are thus aligned to
the first electromagnet, they are slightly offset from the next electromagnet. So,
when the next electromagnet is turned on and the first is turned off, the gear
rotates slightly to align with the next one, and from there the process is
repeated. Each of those slight rotations is called a step, with an integral
(complete number) number of steps making a full rotation. In that way, the
motor can be turned by a precise angle.
Types of Stepper Motor
Stepper motors may be classified by their motor construction, drive topology,
and stepping pattern. There are three main types of stepper motor construction.
size or the power loss. By comparing Figure 3 and Figure 4, you will notice that a
unipolar stepper can be control using bipolar method by removing the
connection of the common wires.
and is the reason why the motor exhibits so much vibration. Various drive
techniques have been developed to better approximate a sinusoidal drive
waveform: they are half stepping and microstepping. Please refer to the figure
below for the following discussions.
motor uses only 50% of the available winding while the bipolar motor uses the
entire winding.
Half stepping (1 & 2 phases on)
When half stepping, the drive alternates between two phases on and single
phase on. This increases the angular resolution, but the motor also has less
torque at the half step position (when only single phase is on). This may be
mitigated by increasing the current in the active winding to compensate. The
advantage of half stepping is that the drive electronics need not change to
support it. The stator is energized according to the sequence XY Y !XY !X
!X!Y !Y X!Y X and the rotor steps from position 1 2 3 4 5 6
7 8.
Table below describes 3 types of stepping sequences and their relative merits.
The sequence pattern is represented with 4 bits, where a 1 indicates an
energized winding. After the last step in each sequence the sequence repeats.
Stepping backwards through the sequence reverses the direction of the motor.
motor gives the biggest step size, hence fastest rotation speed but lowest
resolution. Higher resolution but slower speed (smaller step size) is the result of
microstepping drive method. Hence the greater the microstepping divisor, the
smaller is the step size.
Microstepping is typically used in applications that require accurate positioning
and a fine resolution over a wide range of speeds.
This topic shows circuit schematic and C code for controlling the bipolar stepper
motor speed and direction using PIC16F877A microcontroller.
The stepper motor can be controlled in full step mode or half step mode. The full
step mode is a little bit easier than the half step control mode. In this topic the
full step control mode is used. To control the bipolar stepper motor we need two
H-bridge circuits and for that L293D motor driver chip is used, this cheap chip
can work as a dual H-bridge drivers. In the full step control mode always both
windings are energized according to the following two tables where table1 shows
the driving sequence for rotation direction 1:
And the following table shows driving sequence for the other rotation direction: