21.08.2013 Views

Embedded Systems Design with the Atmel AVR Microcontroller Part II

Embedded Systems Design with the Atmel AVR Microcontroller Part II

Embedded Systems Design with the Atmel AVR Microcontroller Part II

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Ch A<br />

Ch B<br />

Figure 7.6: Optical encoder.<br />

rotating<br />

disk<br />

Detector output<br />

a) Incremental tachometer encoder<br />

b) Incremental quadrature encoder<br />

S<br />

stationary optical<br />

source and detector<br />

pair<br />

D<br />

7.3. INPUT DEVICES 195<br />

monitor <strong>the</strong> phase relationship between Channel A and Channel B as shown in Figure 7.6(b). The<br />

absolute encoder is equipped <strong>with</strong> multiple data tracks to determine <strong>the</strong> precise location of <strong>the</strong><br />

encoder disk (Sick).<br />

Example: Optical encoder for motor speed measurement and control. In Chapter 8, we<br />

provide a detailed example of actively regulating <strong>the</strong> speed of a motor under various loads. An optical<br />

tachometer is used to monitor instantaneous motor speed. Based on <strong>the</strong> speed measurement, <strong>the</strong><br />

motor is incrementally sped up or slowed down by varying <strong>the</strong> duty cycle of <strong>the</strong> motor PWM signal.<br />

7.3.5.2 Analog Sensors<br />

Analog sensors provide a DC voltage that is proportional to <strong>the</strong> physical parameter being measured.<br />

As discussed in <strong>the</strong> analog to digital conversion chapter, <strong>the</strong> analog signal may be first preprocessed by<br />

external analog hardware such that it falls <strong>with</strong>in <strong>the</strong> voltage references of <strong>the</strong> conversion subsystem.<br />

The analog voltage is <strong>the</strong>n converted to a corresponding binary representation.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!