Closeup of rotary encoder on gradient background

What is an encoder?

Feb. 17, 2025
How encoders convert mechanical movement to electrical code

The word encode means “to convert.” Simply put, an encoder takes a feedback signal and makes it into something readable and understandable. Encoding is equivalent to translating.

Motion-control applications use encoders to report position back. For instance, in rotary motion, a shaft moves in a circle, and, each time the circumference is met, engineers can put a value or count on that mechanical rotation.

Get your subscription to Control Design’s daily newsletter.

If you sum the rotations, you have moved a distance related to the number of rotations. This count can be related to count, speed, distance, position, direction. This is a simplified view of converting a mechanical movement to an electrical signal that can be measured.

How do encoders work in motion control?

Most machine builders and controls folks would relate encoder to motion, but how do encoders really work? How an encoder works depends on the type of technology used. For instance, encoders may be mechanical, magnetic, resistive or optical. Optical is most common in today’s world. A light-emitting diode (LED) is used to emit a light beam, and, when the shaft rotates, the light shines through a line on the disc, and a pulse is created. When the light is on, the binary response is one. When the light is off, the binary response is zero. Mechanically, the disk that the light looks through may be modified for the resolution needed.

As an example, let’s look at digital logic. For digital logic, picture a 4 to 2 conversion (Table 1).

In the box representation, this would be OR gates with the logic of:

If Y1 or Y0 then A0 =1

If Y2 or Y3 then A1 = 1.

This can be expanded to represent however many inputs (Figure 1). Here, we just want to show how four inputs can be encoded to represent two outputs. This is the same idea used with an encoder.

These examples are simple, but encoders are the backbone to actuation and precision movement (Figure 2). For instance, robotic encoders may have precision to the point of arcseconds, or, for example, a fraction of a degree such as 0.18 degrees.

Encoders defined and their role in automation

Encoders have been under development since the 1960s and are continually being updated based on electronics advances and societal needs. Robots or computer numerical control (CNC) would not be possible without encoders.

The purpose of this explanation is to define an encoder and show the transition of the mechanical response to the electrical response. Also, the pattern can be whatever is called for.

For instance, absolute encoders use a code disc that allows markers to track a unique binary code for each position. Many people think this means you do not have to “home” an absolute encoder. Initial configuration still requires zeroing and creating a reference for a start position so that the absolute encoder may store the expected reference for future power-offs.

In short, if the controls engineer recognizes that a physical pulse can be converted to a binary pattern and then referenced in a real-time program with units, then they are on their way to understanding encoders.

About the Author

Tobey Strauch | Arconic Davenport

Tobey Strauch is currently managing brownfield installations for controls upgrades at Arconic Davenport.  She has previously worked as principal controls engineer and before getting her bachelor’s in electrical engineering, was a telecommunications network technician.  She has 20 plus years in automation and controls.  She has commissioned systems, programmed PLCs and robots, and SCADAs, as well as managed maintenance crews.  She has a broad mix of mechatronics with process control.  She enjoys solving problems with Matlab and Simscape.  Contact her at [email protected].

Sponsored Recommendations

Why Electromechanical Actuators are Increasingly Replacing Hydraulic Systems

Are your heavy duty, automation applications tired of the mess, space, complexity, cost and other issues related to hydraulic systems? Converting to electromechanical linear actuators...

Validating and Optimizing Production Machinery

Join us on the path of efficient and digitalized production.

2025 State of Technology Report: Motors, Drives & Motion

Industrial motors account for a significant portion of energy costs. But reduced power spend isn’t the only advantage of using drives. And motor selection isn’t always...

Building a sustainable battery ecosystem with Jagenberg, Eirich and Siemens

Watch our one-hour on-demand webinar where industry leaders in the battery sector— Jagenberg Group, Eirich and Siemens- come together to forge the path towards a sustainable battery...