How does Servo Motor work

Servos are controlled by sending an electrical pulse of variable width, or pulse width modulation (PWM), through the control wire. There is a minimum pulse, a maximum pulse, and a repetition rate. A servo motor can usually only turn 90° in either direction for a total of 180° movement.

How Servo Motors Work

Servo motors have been around for a long time and are utilized in many applications. They are small in size but pack a big punch and are very energy-efficient. These features allow them to be used to operate remote-controlled or radio-controlled toy cars, robots and airplanes. Servo motors are also used in industrial applications, robotics, in-line manufacturing, pharmaceutics and food services. But how do the little guys work?

The servo circuitry is built right inside the motor unit and has a position able shaft, which usually is fitted with a gear (as shown below). The motor is controlled with an electric signal which determines the amount of movement of the shaft.

Inside a Servo Motor

To fully understand how the servo works, you need to take a look under the hood. Inside there is a pretty simple set-up: a small DC motor, potentiometer, and a control circuit. The motor is attached by gears to the control wheel. As the motor rotates, the potentiometer’s resistance changes, so the control circuit can precisely regulate how much movement there is and in which direction.

When the shaft of the motor is at the desired position, power supplied to the motor is stopped. If not, the motor is turned in the appropriate direction. The desired position is sent via electrical pulses through the signal wire. The motor’s speed is proportional to the difference between its actual position and desired position. So if the motor is near the desired position, it will turn slowly, otherwise it will turn fast. This is called proportional control. This means the motor will only run as hard as necessary to accomplish the task at hand, a very efficient little guy.

cout
pulse

Servo Motor Control

The guts of a servo motor (L) and an assembled servo (R)

Servos are controlled by sending an electrical pulse of variable width, or pulse width modulation (PWM), through the control wire. There is a minimum pulse, a maximum pulse, and a repetition rate. A servo motor can usually only turn 90° in either direction for a total of 180° movement. The motor’s neutral position is defined as the position where the servo has the same amount of potential rotation in the both the clockwise or counter-clockwise direction. The PWM sent to the motor determines position of the shaft, and based on the duration of the pulse sent via the control wire; the rotor will turn to the desired position. The servo motor expects to see a pulse every 20 milliseconds (ms) and the length of the pulse will determine how far the motor turns. For example, a 1.5ms pulse will make the motor turn to the 90° position. Shorter than 1.5ms moves it in the counter clockwise direction toward the 0° position, and any longer than 1.5ms will turn the servo in a clockwise direction toward the 180° position.

Variable Pulse width control servo position: When these servos are commanded to move, they will move to the position and hold that position. If an external force pushes against the servo while the servo is holding a position, the servo will resist from moving out of that position. The maximum amount of force the servo can exert is called the torque rating of the servo. Servos will not hold their position forever though; the position pulse must be repeated to instruct the servo to stay in position.

Types of Servo Motors: Servo motors come in various types, shapes, and sizes. Joseph Facort used the term “servo” for the first time in 1859 when he used steam to control the rudders on a ship. A servo has three parts: a motor and feedback device and control electronics. A servo motor is one of these three parts. If you need feedback, you can use a potentiometer, Hall-effect device, a tachometer, a resolver, an encoder, a linear transducer, or any other sensor that fits your needs. The control electronics that power the motor and compare the feedback data and the command reference to make sure the servo motor is working as it should are the last parts of the servo system.

They come in two types: AC and DC. AC servos can handle more current surges and are usually used in industrial machines, so they are more likely to be found there. DC servos aren’t built to take a lot of power surges and are usually better for smaller applications. In general, DC motors are cheaper than their AC counterparts. Some of these, too, have been built for continuous rotation, making it easy to get your robot moving. They have two ball bearings on the output shaft to reduce friction and make it easier to get to the potentiometer that changes the rest point.

Servo Motor Applications

Servos are used in radio-controlled airplanes to position control surfaces like elevators, rudders, walking a robot, or operating grippers. Servo motors are small, have built-in control circuitry and have good power for their size.

In food services and pharmaceuticals, the tools are designed to be used in harsher environments, where the potential for corrosion is high due to being washed at high pressures and temperatures repeatedly to maintain strict hygiene standards. Servos are also used in in-line manufacturing, where high repetition yet precise work is necessary.

Of course, you don’t have to know how a servo works to use one, but as with most electronics, the more you understand, the more doors open for expanded projects and projects’ capabilities. Whether you’re a hobbyist building robots, an engineer designing industrial systems, or just constantly curious, where will servo motors take you?