Servo?: (Click On Picture For Larger View)
Servo?: (Click On Picture For Larger View)
Servo?: (Click On Picture For Larger View)
Dghvukhiojopk,o robotics. The motors are small, as you can see by the picture above, have built in control
circuitry, and are extremely pogchjbjkhoifgiyclubjk nstandard servo such as the Futaba S-148 has 42 oz/inches
of torque, which is pretty strong for its size. It also draws power proportional to the mechanical load. A lightly
loaded servo, therefore, doesn't consume much energy. The guts of a servo motor are shown in the picture
below. You can see the control circuitry, the motor, a set of gears, and the case. You can also see the 3 wires that
connect to the outside world. One is for power (+5volts), ground, and the white wire is the control wire.
somewhere around 180 degrees. Usually, its somewhere in the 210 degree range, but it varies by manufacturer.
A normal servo is used to control an angular motion of between 0 and 180 degrees. A normal servo is
mechanically not capable of turning any farther due to a mechanical stop built on to the main output gear.
The amount of power applied to the motor is proportional to the distance it needs to travel. So, if the shaft needs
to turn a large distance, the motor will run at full speed. If it needs to turn only a small amount, the motor will
run at a slower speed. This is called proportional control.
How do you communicate the angle at which the servo should turn? The control wire is used to communicate
the angle. The angle is determined by the duration of a pulse that is applied to the control wire. This is called
Pulse Coded Modulation. The servo expects to see a pulse every 20 milliseconds (.02 seconds). The length of
the pulse will determine how far the motor turns. A 1.5 millisecond pulse, for example, will make the motor turn
to the 90 degree position (often called the neutral position). If the pulse is shorter than 1.5 ms, then the motor
will turn the shaft to closer to 0 degress. If the pulse is longer than 1.5ms, the shaft turns closer to 180 degress.
As you can see in the picture, the duration of the pulse dictates the angle of the output shaft (shown as the green
circle with the arrow). Note that the times here are illustrative, and the actual timings depend on the motor
manufacturer. The principle, however, is the same.
ACTUATORS - SERVOS
Wiring
Control
Current, Torque
Gears
Velocity
Efficiency, Noise
Voltage Regulation
Digital vs Analog Servos
Hitec vs Futaba
Click to learn how to modify a servo for continuous rotation.
Click to learn how to waterproof a servo for continuous rotation.
What is a Servo?
Servos are DC motors with built in gearing and feedback control loop circuitry. And no motor drivers
required!
Synopsis
Servos are extremely popular with robot, RC plane, and RC boat builders. Most servo motors can rotate
about 90 to 180 degrees. Some rotate through a full 360 degrees or more. However, servos are unable to
continually rotate, meaning they can't be used for driving wheels (unless modified), but their precision
positioning makes them ideal for robot arms and legs, rack and pinion steering, and sensor scanners to
name a few. Since servos are fully self contained, the velocity and angle control loops are very easy to
impliment, while prices remain very affordable. To use a servo, simply connect the black wire to ground,
the red to a 4.8-6V source, and the yellow/white wire to a signal generator (such as from your
microcontroller). Vary the square wave pulse width from 1-2ms and your servo is now position/velocity
controlled.
Servo Current
Servo current operates the same as in a DC motor, except that you now also have a hard to predict
feedback control system to contend with. If your DC motor is not at the specified angle, it will suddenly
draw huge amounts of current to reach that angle. But there are other peculiarities as well. If you run an
experiment with a servo at a fixed angle and hang precision weights from the servo horn, the measured
current will not be what you expect. One would think that the current would increase at some fixed rate
as the weights increased linearly. Instead you will get unpredictable curves and multiple rates.
In conclusion, servo current draw is very unpredictable.
Stall Torque, Stall Current, Current Drain
Since servos contain DC motors, please read my DC motor tutorial to learn about servo stall
characteristics.
Gear Types
More expensive servos come with metal gears for higher torque and longer life, followed by karbonite
and then nylon gears for the cheapest.
Nylon Gears - Nylon gears are most common in servos. They are extremely smooth with little or no
wear factors. They are also very lightweight, but lack in durability and strength.
Karbonite Gears - Karbonite gears are relatively new to the market. They offer almost 5 times the
strength of nylon gears and also better wear resistance. Cycle times of well over 300,000 have been
observed with these gears with virtually no wear. Servos with these gears are more expensive but what
you get in durability is more than equaled.
Metal Gears - Metal gears have been around for sometime now. Although the heaviest and having the
highest wear rate of all gear types, they offer unparalleled strength. With a metal output shaft, side-loads
can be much greater. Ever had a nylon output shaft crack? I have. In applications that are jarred around,
metal gears are best. Unfortunately, due to wear, metal gears will eventually develop slight play in the
gear-train. Accuracy will slowly be lost.
Velocity
The servo turn rate, or transit time, is used for determining servo rotational velocity. This is the amount
of time it takes for the servo to move a set amount, usually 60 degrees. For example, suppose you have a
servo with a transit time of 0.17sec/60 degrees at no load. This means it would take nearly half a second
to rotate an entire 180 degrees. More if the servo were under a load. This information is very important
if high servo response speed is a requirement of your robot application. It is also useful for determining
the maximum forward velocity of your robot if your servo is modified for full rotation. Remember, the
worst case turning time is when the servo is at the minimum rotation angle and is then commanded to go
to maximum rotation angle, all while under load. This can take several seconds on a very high torque
servo.
If you do not want to deal with the added complication of programming, no worries! Hitec digital servos
will perform like standard servos out of the box. It is not required to program them before use.
The standing torque of a digital servo is 3 times that of its analog counterpart. This means digital servos
are typically smaller and have more torque.
What about servo modification? Digital servos are also modifiable, just check the datasheet to make
sure.
Hitec vs Futaba
There are actually four major servo manufacturers - Hitec, Futaba, Airtronics, and JR Radios. The last
two are uncommon today, so I wont talk about them. Hitec and Futaba servos work the same, but there
are several interfacing differences which you should be aware of.
The first is wire color, as Hitec uses a yellow signal wire while Futaba uses a white one. The wiring
order is the same, just different colors.
The second is connector compatibility. Futaba (J type) has a special flange thingy while Hitec (S type,
for universal) does not. Futaba has the extra flange to help the user plug in the servo correctly, although
there are only two ways to do it and connecting a servo in the wrong way will not actually damage
anything. If you want to connect a Futaba servo to a Hitec device, just clip the flange off and use
sandpaper to file it down until it fits. If you ever need to connect a Hitec connector to something Futaba,
just use sandpaper to decrease the connector width until it fits.
The third is price. All things kept the same, Hitec servos are cheaper than Futaba servos. But don't let
this be your only determining factor in your decision, as Futaba has some servo sizes that Hitec does
not.
The last major difference is in the spline. The spline is the output shaft of the servo. This is where you
would attach your servo horn or servo arm. Standard Hitec splines have 24 teeth while standard Futaba
splines have 25 teeth. What makes this important is that servo horns built for one will not work with the
other.