18.11.2014 Views

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Wireless Links<br />

Figure 12-4. <strong>The</strong> GP1U52X infrared receiver contains a detector, amplifier,<br />

and filter. When the receiver detects infrared energy pulsed at 40kHz, VOUT goes<br />

low.<br />

three connections, to +5V, ground, and VOUT. You can find this part at Radio Shack and<br />

other sources.<br />

Another option for MOD1 is Lite-On’s LTM-8834-2, carried by Digi-Key. It has a 32.7-kHz<br />

center frequency, rather than 40 kilohertz, so you’ll have to adjust the oscillator, either by<br />

adjusting R8 or by changing XTAL1. Digi-Key has a 32.56-kHz crystal that’s a good match<br />

for this receiver.<br />

When MOD1 detects infrared energy that is pulsed at 40 kilohertz, its VOUT is low.<br />

Otherwise, VOUT is high. Figure 12-4 shows a block diagram of what’s inside the module.<br />

<strong>The</strong> photodiode emits a current when it senses infrared energy in the range 880-1080<br />

nanometers. An optical filter on the photodiode blocks visible light, to reduce responses to<br />

ambient light. <strong>The</strong> module amplifies the detected signal and limits the peaks. A bandpass<br />

filter centered on 40 kilohertz reduces the amplitude of signals outside of the range of 36-44<br />

kilohertz. A demodulator filters out the 40-kHz oscillations and recreates the original pulse<br />

pattern generated by the encoder. An integrator and comparator help to ensure a clean output<br />

at VOUT.<br />

<strong>The</strong> module does a good job of detecting transmitted infrared pulses at 40 kilohertz.<br />

Unfortunately, in spite of its optical filter, it also has some response to ambient light, which<br />

<strong>The</strong> <strong>Microcontroller</strong> <strong>Idea</strong> <strong>Book</strong> 205

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

Saved successfully!

Ooh no, something went wrong!