Rotary Encoder PDF
Rotary Encoder PDF
There are two main types of rotary encoder: absolute and incremental. The output of
an absolute encoder indicates the current shaft position, making it an angle
transducer. The output of an incremental encoder provides information about the
motion of the shaft, which typically is processed elsewhere into information such as
position, speed and distance.
Rotary encoders are used in a wide range of applications that require monitoring or
control, or both, of mechanical systems, including industrial controls, robotics,
photographic lenses,[1] computer input devices such as optomechanical mice and
trackballs, controlled stress rheometers, and rotating radar platforms.
Contents
Encoder technologies
Basic types
Absolute
Incremental
A Gray code absolute rotary encoder
Absolute encoder
with 13 tracks. At the top,the
Absolute rotary encoder
housing, interrupter disk, and light
Construction
source can be seen; at the bottom
Mechanical absolute encoders
the sensing element and support
Optical absolute encoders
components.
Magnetic absolute encoders
Capacitive absolute encoders
Absolute multi-turn encoder
Battery-powered multi-turn encoder
Geared multi-turn encoder
Self-powered multi-turn encoder
Ways of encoding shaft position
Standard binary encoding
Gray encoding
Single-track Gray encoding
Data output methods
Incremental encoder
Other pulse-output rotary encoders
See also
References
Further reading
External links
Encoder technologies
Conductive: A series of circumferential copper tracks etched onto a
PCB is used to encode the information. Contact brushes sense the
conductive areas. This form of encoder is now rarely seen except as a
user input in digital multimeters.
Optical: This uses a light shining onto aphotodiode through slits in a
metal or glass disc. Reflective versions also exist. This is one of the
most common technologies. Optical encoders are very sensitive to dust.
On-Axis Magnetic: This technology typically uses a specially
magnetized 2 pole neodymium magnet attached to the motor shaft.
Because it can be fixed to the end of the shaft, it can work with motors
that only have 1 shaft extending out of the motor body . The accuracy
can vary from a few degrees to under 1 degree. Resolutions can be as
low as 1 degree or as high as 0.09 degree (4000 CPR, Count per
Revolution).[2] Poorly designed internal interpolation can cause output
jitter, but this can be overcome with internal sample averaging.
Off-Axis Magnetic: This technology typically employs the use of rubber
bonded ferrite magnets attached to a metal hub. This of fers flexibility in
design and low cost for custom applications. Due to the flexibility in
many off axis encoder chips they can be programmed to accept any
number of pole widths so the chip can be placed in any position required
for the application. Magnetic encoders operate in harsh environments Hall effect quadrature encoder,
where optical encoders would fail to work. sensing gear teeth on thedriveshaft
of a robot vehicle.
Basic types
Absolute
An absolute encoder maintains position information when power is removed from
the encoder.[3] The position of the encoder is available immediately on applying
power. The relationship between the encoder value and the physical position of the
controlled machinery is set at assembly; the system does not need to return to a
calibration point to maintain position accuracy
.
An absolute encoder has multiple code rings with various binary weightings which
provide a data word representing the absolute position of the encoder within one
.[4]
revolution. This type of encoder is often referred to as a parallel absolute encoder
Incremental encoder
A multi-turn absolute rotary encoder includes additional code wheels and gears. A
high-resolution wheel measures the fractional rotation, and lower-resolution geared
[5]
code wheels record the number of whole revolutions of the shaft.
Incremental
An incremental encoder will immediately report changes in position, which is an essential capability in some applications. However,
it does not report or keep track of absolute position. As a result, the mechanical system monitored by an incremental encoder may
have to be moved to a fixed reference point to initialize the position measurement.
Absolute encoder
Because brush-type contacts are susceptible to wear, encoders using contacts are not common; they can be found in low-speed
applications such as manual volume or tuning controls in a radio receiver
.
The absolute analog type produces a unique dual analog code that can be translated into an absolute angle of the shaft.
This code can be read by a controlling device, such as a microprocessor or microcontroller to determine the angle of the shaft, similar
to an optical encoder.
The absolute analog type produces a unique dual analog code that can be translated into an absolute angle of the shaft (by using a
special algorithm).
Due to the nature of recording magnetic effects, these encoders may be optimal to use in conditions where other types of encoders
may fail due to dust or debris accumulation. Magnetic encoders are also relatively insensitive to vibrations, minor misalignment, or
shocks.
Built-in rotary encoders are used to indicate the angle of the motor shaft in permanent magnet brushless motors, which are commonly
used on CNC machines, robots, and other industrial equipment. In such cases, the encoder serves as a feedback device that plays a
vital role in proper equipment operation. Brushless motors require electronic commutation, which often is implemented in part by
using rotor magnets as a low-resolution absolute encoder (typically six or twelve pulses per revolution). The resulting shaft angle
information is conveyed to the servo drive to enable it to ener
gize the proper stator winding at any moment in time.
In the above example, the contacts produce a standard binary count as the disc
rotates. However, this has the drawback that if the disc stops between two adjacent sectors, or the contacts are not perfectly aligned, it
can be impossible to determine the angle of the shaft. To illustrate this problem, consider what happens when the shaft angle changes
from 179.9° to 180.1° (from sector 3 to sector 4). At some instant, according to the above table, the contact pattern changes from off-
on-on to on-off-off. However, this is not what happens in reality. In a practical device, the contacts are never perfectly aligned, so
each switches at a different moment. If contact 1 switches first, followed by contact 3 and then contact 2, for example, the actual
sequence of codes is:
off-on-on (starting position)
on-on-on (first, contact 1 switches on)
on-on-off (next, contact 3 switches off)
on-off-off (finally, contact 2 switches off)
Now look at the sectors corresponding to these codes in the table.In order, they are 3, 7, 6 and then 4. So, from the sequence of codes
produced, the shaft appears to have jumped from sector 3 to sector 7, then gone backwards to sector 6, then backwards again to sector
4, which is where we expected to find it. In many situations, this behaviour is undesirable and could cause the system to fail. For
example, if the encoder were used in a robot arm, the controller would think that the arm was in the wrong position, and try to correct
the error by turning it through 180°, perhaps causing damage to the arm.
Gray encoding
To avoid the above problem, Gray coding is used. This is a system of binary
counting in which any two adjacent codes differ by only one bit position. For the
three-contact example given above, the Gray-coded version would be as follows.
Gray Coding
Sector Contact 1 Contact 2 Contact 3 Angle
0 off off off 0° to 45°
1 off off ON 45° to 90°
2 off ON ON 90° to 135°
3 off ON off 135° to 180°
4 ON ON off 180° to 225° Rotary encoder for angle-measuring
devices marked in 3-bit binary-
5 ON ON ON 225° to 270° reflected Gray code (BRGC). The
6 ON off ON 270° to 315° inner ring corresponds to Contact 1
in the table. Black sectors are "on".
7 ON off off 315° to 360°
Zero degrees is on the right-hand
side, with angle increasing counter-
In this example, the transition from sector 3 to sector 4, like all other transitions, clockwise.
involves only one of the contacts changing its state from on to off or vice versa. This
means that the sequence of incorrect codes shown in the previous illustration cannot
happen.
It is possible to arrange several sensors around a single track (ring) so that consecutive positions differ at only a single sensor; the
result is the single-track Gray codeencoder.
A rotary incremental encoder has two output signals, A and B, which issue square
waves in quadrature when the encoder shaft rotates. The square wave frequency
indicates the speed of shaft rotation, whereas the A-B phase relationship indicates Two square waves in quadrature.
the direction of rotation. The direction of rotation is indicated
by the sign of the A-B phase angle
Some rotary incremental encoders have an additional "index" output (typically which, in this case, is negative
labeled Z), which emits a pulse when the shaft passes through a particular angle. because A trails B.
Once every rotation, the Z signal is asserted, typically always at the same angle,
until the next AB state change. This is commonly used in radar systems and other
applications that require a registration signal when the encoder shaft is located at a
particular reference angle.
Unlike absolute encoders, an incremental encoder does not keep track of, nor do its
outputs indicate the absolute position of the mechanical system to which it is
attached. Consequently, to determine the absolute position at any particular moment,
it is necessary to "track" the absolute position with an incremental encoder interface.
Conceptual drawing of a rotary
incremental encoder sensor
Inexpensive incremental encoders are used in mechanical computer mice. Typically,
mechanism, with the corresponding
two encoders are used: one to sense left-right motion and another to sense forward-
logic states of the A and B signals
backward motion.
See also
Analogue devices that perform a similar function include the synchro, the resolver, the rotary variable differential transformer
(RVDT), and the rotary potentiometer.
A linear encoder is similar to a rotary encoder, but measures position in a straight line, rather than rotation. Linear encoders often use
incremental encoding and are used in many machine tools.
References
1. "New - Rotary Encoder"(https://web.archive.org/web/20131005090254/http://www .canon.com/bctv/faq/rotary.html).
Archived from the original (http://www.canon.com/bctv/faq/rotary.html) on 2013-10-05. Canon video camera lens,
used for zoom and aperture control
2. http://massmind.ecomorder.com/techref/io/sensor/pos/enc/ENC2.htm
3. Eitel, Elisabeth. Basics of rotary encoders: Overview and new technologies(http://machinedesign.com/sensors/basic
s-rotary-encoders-overview-and-new-technologies-0)| Machine Design Magazine, 7 May 2014. Accessed: 30 June
2014
4. TI-5000EX Serial/Incremental Encoder Test System User Manual (http://www.mitchell-electronics.com/downloads/Ca
talog_PriceList/TI5000EXManual.pdf), Mitchell Electronics, Inc.
5. G. K. McMillan, D.M. Considine (ed.)Process Instruments and Controls Handbook Fifth Edition
, McGraw Hill 1999,
ISBN 978-0-07-012582-7, page 5.26
6. "encoders" (http://irtfweb.ifa.hawaii.edu/~tcs3/tcs3/0306_conceptual_design/Docs/05_Encoders/encoder_primer
.pdf)
(PDF). p. 12. Retrieved 20 February 2013.
7. "Capacitive Absolute Encoder"(http://www.gmc-camillebauer.com/pic/DM-2W2_SSI_KIN-WB__02-000405-3-L.pdf)
(PDF). Camille Bauer. Retrieved 20 February 2013.
8. Robert, Repas. "Multi-turn absolute encoders"(http://machinedesign.com/article/multi-turn-absolute-encoders-0412)
.
machinedesign.com. Retrieved 20 February 2013.
9. "New technology yields encoder that never forgets"(http://www.motioncontrol.co.za/news.aspx?pklnewsid=24901).
journal. www.motioncontrol.co.za. 2007. Retrieved 20 February 2013.
10. "White Paper Magnetic Encoder"(http://www.posital.com/media/posital_media/documents/Magnetic_Encoders.pdf)
(pdf). FRABA Inc. p. 3. Retrieved 13 February 2013.
Further reading
Winder, C. Farrell (October 1959)."Shaft Angle Encoders Afford High Accuracy" (PDF). Electronic Industries. Chilton
Company. 18 (10): 76–80. Retrieved 2018-01-14.
External links
"Choosing a code wheel: A detailed look at how encoders work"article by Steve Trahey 2008-03-25 describes
"rotary encoders".
"Encoders provide a sense of place"article by Jack Ganssle 2005-07-19 describes "nonlinear encoders".
"Robot Encoders".
Introductory Tutorial on PWM and Quadrature Encoding.
Revotics - Understanding Quadrature Encoding- Covers details of rotary and quadrature encoding with a focus on
robotic applications.
How Rotary Encoder Works - Video explanation how rotary encoder works, plus how to use it with an Arduino
microcontroller.
Text is available under theCreative Commons Attribution-ShareAlike License ; additional terms may apply. By using this
site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of theWikimedia
Foundation, Inc., a non-profit organization.