Professional Documents
Culture Documents
Stepper Motor
A stepper motor, also known as step motor or stepping motor, is a brushless
DC electric motor that divides a full rotation into a number of equal steps. The
motor's position can then be commanded to move and hold at one of these steps
without any position sensor for feedback (an open-loop controller), as long as the
motor is carefully sized to the application in respect to torque and speed.
Stepper motor working principle: How does a stepper motor work? The stepper
motor rotor is a permanent magnet, when the current flows through the stator
winding, the stator winding to produce a vector magnetic field. The magnetic
field drives the rotor to rotate by an angle so that the pair of magnetic fields of
the rotor and the magnetic field direction of the stator are consistent. When the
stator's vector magnetic field is rotated by an angle, the rotor also rotates with the
magnetic field at an angle. Each time an electrical pulse is input, the motor rotates
one degree further. The angular displacement it outputs is proportional to the
number of pulses input and the speed is proportional to the pulse frequency.
Change the order of winding power, the motor will reverse. Therefore, it can
control the rotation of the stepping motor by controlling the number of pulses, the
frequency and the electrical sequence of each phase winding of the motor.
A unipolar stepper motor has one winding with center tap per phase. Each section
of windings is switched on for each direction of magnetic field. Since in this
arrangement a magnetic pole can be reversed without switching the direction of
current, the commutation circuit can be made very simple (e.g., a single
transistor) for each winding. Typically, given a phase, the center tap of each
winding is made common: giving three leads per phase and six leads for a typical
two phase motor. Often, these two phase commons are internally joined, so the
motor has only five leads.
A microcontroller or stepper motor controller can be used to activate the
drive transistors in the right order, and this ease of operation makes unipolar
motors popular with hobbyists; they are probably the cheapest way to get precise
angular movements. For the experimenter, the windings can be identified by
touching the terminal wires together in PM motors. If the terminals of a coil are
connected, the shaft becomes harder to turn. One way to distinguish the center
tap (common wire) from a coil-end wire is by measuring the resistance.
Resistance between common wire and coil-end wire is always half of the
resistance between coil-end wires. This is because there is twice the length of coil
between the ends and only half from center (common wire) to the end. A quick
way to determine if the stepper motor is working is to short circuit every two pairs
and try turning the shaft. Whenever a higher than normal resistance is felt, it
indicates that the circuit to the particular winding is closed and that the phase is
working.
Bipolar motors: Bipolar motors have a single winding per phase. The current in
a winding needs to be reversed in order to reverse a magnetic pole, so the driving
circuit must be more complicated, typically with an H-bridge arrangement
(however there are several off-the-shelf driver chips available to make this a
simple affair). There are two leads per phase, none are common.
A typical driving pattern for a two coil bipolar stepper motor would be: A+ B+
A− B−. I.e. drive coil A with positive current, then remove current from coil A;
then drive coil B with positive current, then remove current from coil B; then
drive coil A with negative current (flipping polarity by switching the wires e.g.
with an H bridge), then remove current from coil A; then drive coil B with
negative current (again flipping polarity same as coil A); the cycle is complete
and begins anew.
Because windings are better utilized, they are more powerful than a unipolar
motor of the same weight. This is due to the physical space occupied by the
windings. A unipolar motor has twice the amount of wire in the same space, but
only half used at any point in time, hence is 50% efficient (or approximately 70%
of the torque output available). Though a bipolar stepper motor is more
complicated to drive, the abundance of driver chips means this is much less
difficult to achieve.
Servomotor
A servomotor is a rotary actuator or linear actuator that allows for precise
control of angular or linear position, velocity and acceleration. It consists of a
suitable motor coupled to a sensor for position feedback. It also requires a
relatively sophisticated controller, often a dedicated module designed specifically
for use with servomotors.
Servomotors are not a specific class of motor, although the term servomotor is
often used to refer to a motor suitable for use in a closed-loop control system.
The motor is paired with some type of position encoder to provide position and
speed feedback. In the simplest case, only the position is measured. The measured
position of the output is compared to the command position, the external input to
the controller. If the output position differs from that required, an error signal is
generated which then causes the motor to rotate in either direction, as needed to
bring the output shaft to the appropriate position. As the positions approach, the
error signal reduces to zero and the motor stops.
The very simplest servomotors use position-only sensing via
a potentiometer and bang-bang control of their motor; the motor always rotates
at full speed (or is stopped). This type of servomotor is not widely used in
industrial motion control, but it forms the basis of the simple and
cheap servos used for radio-controlled models.
More sophisticated servomotors use optical rotary encoders to measure the speed
of the output shaft and a variable-speed drive to control the motor speed. Both of
these enhancements, usually in combination with a PID control algorithm, allow
the servomotor to be brought to its commanded position more quickly and more
precisely, with less overshooting.
Servomotors vs. stepper motors: Servomotors are generally used as a high-
performance alternative to the stepper motor. Stepper motors have some inherent
ability to control position, as they have built-in output steps. This often allows
them to be used as an open-loop position control, without any feedback encoder,
as their drive signal specifies the number of steps of movement to rotate, but for
this the controller needs to 'know' the position of the stepper motor on power up.
Therefore, on first power up, the controller will have to activate the stepper motor
and turn it to a known position, e.g. until it activates an end limit switch. This can
be observed when switching on an inkjet printer; the controller will move the ink
jet carrier to the extreme left and right to establish the end positions. A servomotor
will immediately turn to whatever angle the controller instructs it to, regardless
of the initial position at power up.
The lack of feedback of a stepper motor limits its performance, as the stepper
motor can only drive a load that is well within its capacity, otherwise missed steps
under load may lead to positioning errors and the system may have to be restarted
or recalibrated. The encoder and controller of a servomotor are an additional cost,
but they optimise the performance of the overall system (for all of speed, power
and accuracy) relative to the capacity of the basic motor. With larger systems,
where a powerful motor represents an increasing proportion of the system cost,
servomotors have the advantage.
There has been increasing popularity in closed loop stepper motors in recent
years. They act like servomotors but have some differences in their software
control to get smooth motion. The main benefit of a closed loop stepper motor is
its relatively low cost. There is also no need to tune the PID controller on a closed
loop stepper system.