Transducers and Data Aquisition Systems
Transducers and Data Aquisition Systems
Transducers and Data Aquisition Systems
An optical rotary encoder produces angular position data directly in digital form,
eliminating any need for the ADC converter.
The concept is illustrated in following figure, which shows a slotted disk attached
to a shaft.
A light source (LED) and light receiver (phototransistor or photodiode)
arrangement are mounted so that the slots pass the light beam as the disk
rotates.
The angle of the shaft is deduced from the output of the photocell.
There are two types of optical rotary encoders: the absolute encoder and the
incremental encoder.
Optical Rotary Encoders
Absolute Rotary Encoder
The output of the absolute rotary encoder is in the form
of a binary word which is proportional to the angle of the
shaft.
The absolute encoder does not need to be homed
because when it is energized, it simply outputs the shaft
angle as a digital value.
Absolute optical encoders use a glass or plastic disk
marked off with a pattern of concentric tracks as shown
in the figure.
Absolute Rotary Encoder
A separate light beam is sent through each track to
individual photo sensors.
Each photo sensor contributes 1 bit to the output digital
word.
The encoder in the figure outputs a 4-bit word with the LSB
coming from the outer track (note that this is for illustrative
purposes only and a 4-bit encoder is of little practical use).
The disk is divided into 16 sectors, so the resolution in this
case is 360°/16 = 22.5°.
Absolute Rotary Encoder
The absolute angle of the encoder shaft can be found by multiplying the
binary output of the encoder times the resolution.
For example, assume our 4-bit encoder has an output of 1101 (decimal
13).
The encoder shaft would therefore be at an angle of 13 x 22.5 degrees =
292.5 degrees.
Because of the relatively poor resolution of this encoder, the shaft could be
at some angle between 292.5 degrees and 292.5+22.5 degrees.
For better resolution, more tracks would be required.
For example, eight tracks (providing 256 states) yield 360°/256 =
1.4°/state, and ten tracks (providing 1024 states) yield 360°/1024 =
0.35°/state.
Absolute Rotary Encoder
Absolute Rotary Encoder
An advantage of this type of encoder is that the
output is in straightforward digital form and, like a
pot, always gives the absolute position.
This is in contrast to the incremental encoder that, as
will be shown, provides only a relative position.
A disadvantage of the absolute encoder is that it is
relatively expensive because it requires that many
photocells be mounted and aligned very precisely
Absolute Rotary Encoder
If the photo sensors are out of line, the worst that could happen is that the
output would switch early or late.
Put another way, the error can never be more than the value of 1 LSB when
using the Grey code.
Absolute Rotary Encoder
Absolute Rotary Encoder
Write the binary number to be converted and add a leading zero (on the left side).
Exclusive-OR each pair of bits in the binary number together and write the
resulting bits below the original number.
Converting Gray to Binary:
Write the gray code number to be converted and add a leading zero (on the left
side).
Beginning with the leftmost digit (the added zero), perform a chain addition of all
the bits, writing the "running sum" as you go.
Incremental Rotary Encoder
The incremental optical encoder has one track of equally spaced slots.
Position is determined by counting the number of slots that pass by a
photo sensor, where each slot represents a known angle.
This system requires an initial reference point, which may come from a
second sensor on an inner track or simply from a mechanical stop or
limit switch.
In many applications, the shaft being monitored will be cycling back-
and-forth, stopping at various angles.
To keep track of the position, the controller must know which direction
the disk is turning as well as the number of slots passed.
A single photo sensor cannot convey which direction the disk is rotating;
however, a clever system using two sensors can
Incremental Rotary Encoder Digital
Incremental Rotary Encoder
Incremental Rotary Encoder
In the following , the two sensors, V1 and V2, are located slightly apart from each other on the
same track.
For this example, V1 is initially off (well, almost you can see it is half-covered up), and V2 is on.
Now imagine that the disk starts to rotate CCW.
The first thing that happens is that V1 comes completely on (while V2 remains on).
After more rotation, V2 goes off, and slightly later V1 goes off again. Figure (b) shows the
waveform for V1 and V2.
Now consider what happens when the disk is rotated in the CW direction [starting again from the
position shown in Figure (a)].
This time V1 goes off immediately, and V2 stays on for half a slot and then goes off. Later V1
comes on, followed by V2 coming on. Figure (c) shows the waveforms generated by V1 and V2.
Compare the two sets of waveforms, notice that in the CCW case V2 leads V1 by 90°, whereas for
the CW case V1 is leading V2 by 90°. This difference in phase determines which direction the
disk is turning.
The optical transducer convert light into electrical
quantity.
They are also called as photoelectric transducers. The
optical transducer can be classified as photo
emissive, photoconductive and photovoltaic
transducers.
The photo emissive devices operate on the principle
that radiation falling on a cathode causes electrons to
be emitted from the cathode surface.
The photoconductive devices operate on the
principle that whenever a material is illuminated,
its resistance changes.
The photovoltaic cells generate an output voltage
that is proportional to the radiation intensity.
The radiation that is incident may be x-rays,
gamma rays, ultraviolet, infrared or visible light.
An optical transducer converts light rays into
an electronic signal.
The purpose of an optical transducer is to
measure a physical quantity of light and,
depending on the type of transducer, then
translates it into a form that is readable by an
integrated measuring device.