22
Session: 2526 Infrared Emitter – Detector Remote Control Project Nghia T. Le, Terrance P. O’Connor Purdue University I. Introduction The following project is a design of a simple infrared emitter-detector circuit used as a remote control to turn on and off an ac light bulb. It reviews of some of the basic concepts and applications the students have learned during the first few semesters in the Electrical Engineering Technology program at Purdue University. The advantage of this project is that it consists of off- the-shelve parts and it progresses in steps that are manageable and easily to conduct laboratory activities. The project has an analog part and a digital part. An infrared light source emits two modulated signals at the frequencies of 1 kHz and 4 kHz. A phototransistor detects the signals and passes them through a series of analog circuits for processing. When the infrared source emits the 1 kHz signal, a light bulb is on and the 4 kHz signal commands to turn off the bulb. When the bulb is on, the digital part of the circuit would reset the time to 00.0 and would display the on time of the bulb to 1/10 of a second. When the bulb is off, this circuit freezes the displayed time. The block diagram of the analog part of the project is in Figure 1 below. VARIABLE FREQUENCY OSCILLATOR TRANSISTOR DRIVER IR EMITTER PHOTOTRANSISTOR DC BIASING PASSIVE FILTER AMPLIFIER ACTIVE FILTER ACTIVE FILTER RECTIFIER ACTIVE RECTIFIER ACTIVE TO A TO B DETECTOR COMPARATOR PEAK DETECTOR PEAK VOLTAGE COMPARATOR VOLTAGE A B REFERENCE VOLTAGE REFERENCE VOLTAGE SWITCH SWITCH TRANSISTOR TRANSISTOR FLIP-FLOP LATCHING TRANSISTOR DRIVER RELAY SOLID STATE SOURCE ac VOLTAGE ac LOAD TO DIGITAL COUNTER Figure 1 – Block Diagram of the Analog Part Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education Page 6.586.1

Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

Session: 2526

Infrared Emitter – Detector Remote Control Project

Nghia T. Le, Terrance P. O’Connor Purdue University

I. Introduction The following project is a design of a simple infrared emitter-detector circuit used as a remote control to turn on and off an ac light bulb. It reviews of some of the basic concepts and applications the students have learned during the first few semesters in the Electrical Engineering Technology program at Purdue University. The advantage of this project is that it consists of off-the-shelve parts and it progresses in steps that are manageable and easily to conduct laboratory activities. The project has an analog part and a digital part. An infrared light source emits two modulated signals at the frequencies of 1 kHz and 4 kHz. A phototransistor detects the signals and passes them through a series of analog circuits for processing. When the infrared source emits the 1 kHz signal, a light bulb is on and the 4 kHz signal commands to turn off the bulb. When the bulb is on, the digital part of the circuit would reset the time to 00.0 and would display the on time of the bulb to 1/10 of a second. When the bulb is off, this circuit freezes the displayed time. The block diagram of the analog part of the project is in Figure 1 below.

VARIABLEFREQUENCYOSCILLATOR

TRANSISTORDRIVER

IR EMITTER

PHOTOTRANSISTOR

DCBIASING

PASSIVEFILTER AMPLIFIER

ACTIVEFILTER

ACTIVEFILTER

RECTIFIERACTIVE

RECTIFIERACTIVE

TO A

TO B

DETECTOR COMPARATORPEAK

DETECTORPEAK VOLTAGE

COMPARATOR

VOLTAGE

A

B

REFERENCEVOLTAGE

REFERENCEVOLTAGE

SWITCH

SWITCHTRANSISTOR

TRANSISTOR

FLIP-FLOPLATCHING TRANSISTOR

DRIVER RELAYSOLID STATE

SOURCEac VOLTAGE

acLOAD

TO DIGITAL COUNTER

Figure 1 – Block Diagram of the Analog Part

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition

Copyright 2001, American Society for Engineering Education

Page 6.586.1

Page 2: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

Figure 2 below shows the block diagram of the digital part of the project.

OSCILLATORCOUNTER

DECODER/DRIVER

MULTIVIBRATORMONOSTABLE

ANALOGCIRCUIT

FROM

COUNTER COUNTER

DECODER/DRIVER

DECODER/DRIVER

Figure 2 – Block Diagram of the Digital Part

II. The Analog Part A. The Oscillator and Driver A 555 Timer is used in its astable mode as an oscillator. The schematic diagram of the Timer and a transistor driver is shown in Figure 3 on the next page. We will look at the Timer operation under three conditions: both NC momentary PB switches SW1 and SW2 are closed, SW1 is open, and SW2 is open. 1. Both SW1 and SW2 are closed Under this condition, both timing capacitors C1 and C2 are shorted out. The output voltage V1 of the Timer is a DC signal of approximately the power supply voltage of 15 V. The base current of the transistor driver is: V1 – 0.7 V 15 V – 0.7 V IB = _________________ = ___________________ = 4.33 mA R3 3.3 kΩ The maximum collector current of the transistor driver is: VCC 15 V ICMAX = ____________ = _______________ = 26.80 mA R4 560 Ω

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.2

Page 3: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

+15 V

12

6

7

8 4

3

5

555

+15 V

V2

D1

IC1

SW1

SW2

V1

IB

IC

IIR

15 V

15 V1 kHz

4 kHz15 V

CONDITION #1

CONDITION #2

CONDITION #3

0 V1.2 V1 kHz

4 kHz1.2 V

CONDITION #1

CONDITION #2

CONDITION #3

R1

6.8 kΩ

R2

150 kΩ

C2

0.0012 µF

C1

0.0047 µF

C3

100 µF

C4

0.01 µF

R4

560 Ω1/2 W

R3

3.3 kΩQ1

2N3903

Figure 3 – Oscillator and Driver Circuits

Since the base current is more than 10% of the maximum collector current, the transistor is in hard-saturation. Thus, the voltage V2 is zero resulting in the IR emitter D1 being off. The power dissipated in resistor R4 is: PR4 = ( 26.80 mA )2( 560 Ω ) = 0.4 W Therefore, use a ½ W resistor for R4 as shown in Figure 3. 2. Switch SW1 is open When switch SW1 is open, the timing capacitor C1 controls the output frequency. The output of the Timer is a square wave with its peak value of approximately 15 V and its frequency of: 1.44 f = _______________________ ( R1 + 2R2 )( C1 )

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.3

Page 4: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

In the design, since the desired frequency is 1 kHz, let C1 = 0.0047 µF. Thus, 1.44 R1 + 2R2 = ______________________________ = 306.4 kΩ ( 1 kHz )( 0.0047 µF ) Let R2 = 150 kΩ, then, R1 = 306.4 kΩ – 2( 150 kΩ ) = 6.4 kΩ Since 6.4 kΩ is not a standard value, let R1 be 6.8 kΩ. Using the selected values of the components to re-calculate the output frequency of the Timer, we obtain the frequency of: 1.44 1.44 f = _______________________ = _______________________________________________ = 998.6 Hz ≈ 1 kHz ( R1 + 2R2 )( C1 ) [ 6.8 kΩ + 2( 150 kΩ ) ]( 0.0047 µF ) which is about the desired frequency. The duty cycle of the square wave is: R1 + R2 6.8 kΩ + 150 kΩ Duty Cycle = _______________ ( 100% ) = ____________________________ ( 100% ) = 51.1% R1 + 2R2 6.8 kΩ + 2( 150 kΩ ) During the off cycle of the Timer output voltage V1, the transistor is in cut-off. Therefore, the IR emitter is on with a current of: 15 V – 1.2 V IIR = __________________ = 24.6 mA 560 Ω During the on cycle of the Timer output voltage V1, the transistor is in saturation. Thus, the IR emitter is off. In Figure 3, the capacitor C3 eliminates positive overshoot (if there is any). Its value can be from 10 µF up to 100 µF. The capacitor C4 is optional and has no effect in the operation. It bypasses the Timer control (pin 5) to ground.

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.4

Page 5: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

The infrared emitter is from RadioShack (part # 276-143). When switch SW1 opens, the IR emitter “blinks” at the frequency of 1 kHz. 3. Switch SW2 is open When switch SW2 opens, the timing capacitor C2 controls the output frequency. The output of the Timer is a square wave with its peak value of approximately 15 V and its frequency of: 1.44 f = _______________________ ( R1 + 2R2 )( C2 ) In the design, since the desired frequency is 4 kHz, R1 and R2 have been selected previously, the capacitance C2 is: 1.44 1.44 C2 = _______________________ = _________________________________________ = 0.00117 µF ( R1 + 2R2 )( f ) [ 6.8 kΩ + 2( 150 kΩ ) ]( 4 kHz) Since 0.00117 µF is not a standard value, we select a 0.0012 µF capacitor. Using the selected values of the components to re-calculate the output frequency of the Timer, we obtain the frequency of: 1.44 1.44 f = _______________________ = _______________________________________________ = 3.91 kHz ≈ 4 kHz ( R1 + 2R2 )( C2 ) [ 6.8 kΩ + 2( 150 kΩ ) ]( 0.0012 µF ) The duty cycle of the square wave is the same as in the previous condition because the R1-R2 values remain unchanged. Therefore, the IR emitter is “blinking” at the frequency of 4 kHz when switch SW2 opens. The waveforms of the 555 Timer output voltage V1 and the transistor driver voltage V2 under three conditions are in Figure 3. The oscillator and driver circuits are in a box shown in Figure 4 on the next page. This is the remote control to turn on and off the ac load.

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.5

Page 6: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

Figure 4 – Layout of the Oscillator and Driver

B. The Detector, the Passive High Pass Filter, and the Non-Inverting Amplifier The component used to detect the IR source is a phototransistor (RadioShack part # 276-145). The phototransistor is inside a box (RadioShack part # 270-211) that has an IR optical filter to minimize the effect of ambient light. This filter allows the IR wavelengths to pass through and blocks most of other light sources in visible spectrum. Figure 5 below shows the set up of the phototransistor box.

Figure 5 – Phototransistor Box Layout

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.6

Page 7: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

The schematic diagram of the first section of the detection circuit is in Figure 6 on the next page. The output voltage V3 of this circuit has an ac signal (from “seeing” the IR source and ambient light) and a DC offset from the biasing. The values of these voltages vary depending on ambient light, the alignment and the distance between the IR source and the phototransistor. In our setup, the DC offset voltage is about 12 V. The brighter ambient light results in a less collector-emitter impedance of the phototransistor. Thus, the DC offset voltage decreases as the intensity of ambient light increases. The ac signal is an “almost” square wave with a peak-to-peak value of approximately 2 mV at the frequency of 1 kHz when switch SW1 opens and 4 kHz when switch SW2 opens. These ac signals come from the IR source being detected by the phototransistor. The waveform of this voltage is in Figure 6 on the next page. Since the 1 kHz and 4 kHz signals are the only ones we wish to retain, a passive high pass filter is used to eliminate the DC offset and the 60 Hz interference from ambient light. This high pass filter consists of capacitor C5 and resistor R6. The cutoff frequency of this filter is: 1 fo = ________________ 2πR6C5

3

2 7

4

+15V

-15V

6LM741

+15V

R5

100 kΩ

Q2

C5

0.22 µF

R6

1 kΩ

V3

V4V5

R7

1.2 kΩR8

120 kΩ

0 V

2 mV@1 kHz

2 mV@4 kHz

CONDITION #2

CONDITION #3

CONDITION #1

CONDITION #3

CONDITION #2

CONDITION #1

@4 kHz

@1 kHz

2 mV

2 mV

12 VDC

12 VDC OFFSET

12 VDC OFFSET

CONDITION #3

CONDITION #2

CONDITION #1

@4 kHz

@1 kHz

200 mV

200 mV

0 V

Figure 6 – The Detector, Filter, and Amplifier

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.7

Page 8: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

Let fo be 700 Hz (this arbitrary frequency is low enough to pass the 1 kHz and 4 kHz signals and is high enough to block the DC and 60 Hz signals) and C5 be 0.22 µF: 1 1 R6 = ________________ = _______________________________ = 1.03 kΩ 2πfoC5 2π( 700 Hz )( 0.22 µF ) Since the above value is not standard, select R6 to be 1 kΩ. Then, the cutoff frequency is: 1 1 fo = ________________ = ______________________________ = 723.4 Hz 2πR6C5 2π( 1 kΩ )( 0.22 µF) The signal passing through this passive high pass filter becomes an “almost” square wave with its peak-to-peak value of about 2 mV at 1 kHz when switch SW1 opens. The filter eliminates the DC offset and ambient interference. When switch SW2 opens, the waveform is similar except that the frequency is 4 kHz. The waveforms of voltage V4 under different conditions are in Figure 6. This signal is then amplified with a factor of 101. To do this, we use a Non-Inverting amplifier. The closed-loop gain of this amplifier is: R8 K = 1 + ______ R7 Since the desired gain is 101, the ratio of R8/R7 is 100. Let R8 be 120 kΩ, then, R8 120 kΩ R7 = _________ = ____________ = 1.2 kΩ 100 100 The peak-to-peak value of the output voltage of the Non-Inverting amplifier is: V5 = KV4 = ( 101 )( 2 mV ) = 0.202 V ≈ 0.2 V Figure 6 also shows the waveforms of this output.

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.8

Page 9: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

C. The Butterworth Second Order Active High Pass/Low Pass Filters To further prevent interference from other light sources and re-condition the signals, we use two Second Order Active filters with a Q value of 6. Since these filters have a high Q, around the center frequency they behave very similarly to band pass filters. Figures 7 shows the normalized frequency responses of these filters.

0.2

1.0

Magnitude

0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0

2.0

3.0

4.0

5.0

6.0

ωo

ω

0.2

1.0

Magnitude

0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0

2.0

3.0

4.0

5.0

6.0

ωo

ω

Figure 7 – High Pass/Low Pass Normalized Frequency Response for Q = 6

3

2 7

4

+15V

-15V

6LM741

C6

0.0033 µF

R14

12 kΩ

V5

V6

R11

12 kΩR15

22 kΩ

12 kΩR13

0.0033 µFC7

+15V

22 kΩR16R12

0.0047 µFC8

3

-15V

4

0.0047 µFC9

12 kΩ

LM741

2 7R9

33 kΩ 6V7

0 V

3.4 Vpp

CONDITION #1

CONDITION #2

CONDITION #3@4 kHz

CONDITION #10 V

CONDITION #3

CONDITION #2@1 kHz3.4 VppR10

33 kΩ

@1 kHz30 mVpp

@4 kHz30 mVpp

CONDITION #3

CONDITION #2

CONDITION #1

@4 kHz

@1 kHz

200 mV

200 mV

0 V

Figure 8 – Second Order Active High Pass/Low Pass Filters

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.9

Page 10: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

Let’s focus onto the top high pass filter. In this circuit, if we let R13 = R14 = R and C6 = C7 = C, the center frequency is: 1 fo = ______________ 2πRC In this filter, the desired center frequency is 4 kHz. Let C be 0.0033 µF: 1 1 R = _____________ = _________________________________ = 12.057 kΩ 2πfoC 2π( 4 kHz )( 0.0033 µF ) Use 12 kΩ resistors for R13 and R14, 0.0033 µF capacitors for C6 and C7. Note that matching the resistor and capacitor values within 1% of their calculated values will ensure the performance of the filter. For the resistor value of 12 kΩ, the center frequency of the filter is: 1 1 fo = _____________ = _________________________________ = 4.019 kHz 2πRC 2π( 12 kΩ )( 0.0033 µF ) This frequency is very close to the desired frequency of 3.91 kHz. The Q value of the filter is calculated as: 1 Q = ____________ 3 – K where K is the closed-loop gain of the amplifier. For Q of 6, the closed-loop gain is calculated as: 1 1 K = 3 – _______ = 3 – ________ = 2.83333 Q 6 Since this gain is [1 + ( R15/R11 )], the ratio of R15/R11 is 1.83333.

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.10

Page 11: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

Let R11 be 12 kΩ, R15 = 1.83333( 12 kΩ ) = 22 kΩ If it is possible, use precision resistors for R11 and R15 because a slight change in their values will cause a significant change in Q. For example, if the resistors have 5% tolerance, the maximum value of R15 can be 23.1 kΩ and the minimum value of R11 can be 11.4 kΩ. Then, the closed-loop gain of the amplifier is: 23.1 kΩ K = 1 + _____________ = 3.026 11.4 kΩ This value of the gain forces the Q value to be negative resulting in oscillation of the circuit. On the other hand, with 5% tolerance, the minimum value of R15 can be 20.9 kΩ and the maximum value of R11 can be 12.6 kΩ. Then, the closed-loop gain of the amplifier is: 20.9 kΩ K = 1 + _____________ = 2.6587 12.6 kΩ This gain reduces the Q value to only about 3. The passing band of the filter becomes wider and the amplification around the center frequency is a lot less. The filter performs poorly. The output voltage V6 of this filter is a sine wave with its peak-to-peak value of approximately 3.4 V when switch SW2 opens. The waveforms of this output under different conditions are in Figure 8. Note that when switch SW1 opens (condition #3), the peak-to-peak value of V6 is approximately 30 mV. This is very insignificant in comparison to the desired 3.4 V and it does not have any impact on the performance of the remaining circuits. Thus, we can safely ignore this effect. The analysis of the bottom low pass filter is similar to what we discussed above except that its center frequency is 1 kHz. The output V7 of this filter is a sine wave with a peak-to-peak value of approximately 3.4 V when switch SW1 opens. The peak values of voltages V6 and V7 vary depending on the distance between the IR emitter and the phototransistor, and the alignment between these components.

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.11

Page 12: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

D. The Absolute Value Circuits The Absolute Value Circuits are used to double the operating frequencies of the signals to enhance the performance of the Peak Detector Circuits. This type of circuits is also called an Active Rectifier. Their schematic diagrams are in Figure 9 below. In the circuit, resistors R17 through R26 are equal in value. Let R17 = R18 = … = R26 = R. Also in the analysis of these circuits, we focus on only one of them and use ideal diodes for the ease of establishing the equivalent circuits for different cycles of the input voltage.

V6

+15V

50 kΩR27

R23

3

-15V

4

12 kΩ

LM741

2 7

6

R24

12 kΩ

LM741

-15V

34

6

+15V

12 kΩR19

2 7

12 kΩR17

1N914D2

1N914D3

12 kΩR21

V8

V7

12 kΩR18

D4

1N914

1N914D5

72

LM741

-15V

34

6

R20

12 kΩ

+15V 12 kΩR26

12 kΩR25

12 kΩR22

4

-15V

50 kΩ

+15V

LM7413

2 7

6V9

R28

@8 kHz8 Vp

0 V

0 V

8 Vp@2 kHz

0 V

0 V

0 V

0 V

3.4 Vpp@4 kHz

CONDITION #2

CONDITION #1

CONDITION #3

CONDITION #1

CONDITION #2

CONDITION #3

0 VCONDITION #1

0 VCONDITION #3

@1 kHz3.4 Vpp

CONDITION #2CONDITION #1

CONDITION #2

CONDITION #3

Figure 9 – The Absolute Value Circuit

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.12

Page 13: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

During the positive half cycle of the input voltage, diode D2 behaves as a short (use ideal diodes) and diode D3 acts as an open. The circuit becomes:

V6

+15V

50 kΩR27

R23

3

-15V

4

12 kΩ

LM741

2 7

6

R24

12 kΩ

LM741

-15V

34

6

+15V

12 kΩR19

2 7

12 kΩR17

12 kΩR21

V8

VX

INVERTING AMPLIFIER SUMMING AMPLIFIER

Figure 10 – Equivalent Circuit During Positive Half Cycle

The first part of the circuit acts as an Inverting Amplifier with a unity gain. Thus, the voltage VX is: R19 12 kΩ VX = – ________ V6 = – __________ V6 = – V6 R17 12 kΩ The second part of the circuit behaves as a Summing Amplifier. The output of this amplifier is: V6 VX VX V6 VX VX V8 = – R27 [

________ + ________ + ________ ] = – R27 [ __________ + __________ + __________ ]

R21 R23 R24 12 kΩ 12 kΩ 12 kΩ R27 R27 R27 V8 = – __________ ( V6 + VX + VX ) = – __________ ( V6 – V6 – V6 ) = __________ ( V6 ) 12 kΩ 12 kΩ 12 kΩ The circuit amplifies the positive half cycle of the input voltage with a gain of ( R27/12 kΩ ).

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.13

Page 14: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

During the negative half cycle of the input voltage, diode D2 acts as an open and diode D3 behaves as a short. Figure 11 shows the equivalent circuit for this cycle.

V6

+15V

50 kΩR27

R23

3

-15V

4

12 kΩ

LM741

2 7

6

R24

12 kΩ

LM741

-15V

34

6

+15V

12 kΩR19

2 7

12 kΩR17

12 kΩR21

V8

VY

INVERTING AMPLIFIER INVERTING AMPLIFIER

Figure 11 – Equivalent Circuit During Negative Half Cycle The first part of the circuit behaves as an Inverting Amplifier with a gain of zero because the feedback resistor (from pin 6 to pin 2 of the 741) is a short. Thus, the voltage at VY is zero. It is also because VY is at virtual ground. This effectively removes R19, R23 and R24 from the circuit. Therefore, the second part of the circuit becomes another Inverting Amplifier and its output is: R27 R27 V8 = – ________ V6 = – __________ V6 R21 12 kΩ Thus, the circuit inverts the negative half cycle of the input voltage and amplifies it with a gain of ( R27/12 kΩ ). The potentiometers R27 and R28 are set to obtain full-wave rectified signals at V8 and V9 with their peak values of 8 V. The setting values of these potentiometers vary depending on the distance between the IR emitter and the phototransistor and the alignment between them. We can increase their values to obtain larger voltage gains for V8 and V9.

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.14

Page 15: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

E. The Peak Detector Circuits The Peak Detector circuits convert the full-wave rectified output signals from the Absolute Value Circuits into an “almost” DC signals. Figure 12 below shows the configuration of this circuit.

V8

LM741

-15V

34

6

+15V

100 kΩR29

2 71N914

D6

V10

V9

0 V

0 V

8 Vp@8 kHz

CONDITION #2

CONDITION #1

CONDITION #3

0 VCONDITION #1

0 VCONDITION #3

@2 kHz8 Vp

CONDITION #2

2.2 µFC10

10 kΩR31

1N9147

3

-15V

LM741

46

10 µFC11

2

100 kΩ

+15V

R30

D7

10 kΩR32

V11

CONDITION #3

CONDITION #2

CONDITION #1

0 V

8 VDC

0 V

CONDITION #1

CONDITION #3

CONDITION #2 8 VDC

0 V

0 V

0.05 Vpp RIPPLE

0.04 Vpp RIPPLE

Figure 12 – The Peak Detector Circuits

The output voltages V10 and V11 have ripple voltages riding on a DC level. When the RC time constant is much larger than the period of the wave, the conversion will take place. The larger the time constant, the smoother the output will be. However, if there is any change in the input voltage level, a very large time constant will result in a very slow response time. Thus, in the design, we must try not to go to either extreme of having a very smooth output or very quick response time. In the circuit, the time constants are: τ1 = R31C10 = ( 10 kΩ )( 2.2 µF ) = 22 ms τ2 = R32C11 = ( 10 kΩ )( 10 µF ) = 100 ms

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.15

Page 16: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

The periods of the input signals are: 1 1 T1 = _______ = ___________ = 125 µs f 8 kHz 1 1 T2 = _______ = ___________ = 500 µs f 2 kHz From the above calculations, the conversion from full-wave rectified signals into “almost” DC signals will take place. Diodes D6 and D7 prevent the discharging of the capacitors back to the outputs of the 741 operational amplifiers. Feedback resistors R29 and R30 are much larger than R31 and R32 ensuring that load resistors R31 and R32 would control the discharging of the capacitors. The approximate DC currents are: 8 V IDC1 = IDC2 = ___________ = 0.8 mA 10 kΩ The peak-to-peak values of the ripple voltages are: IDC1 0.8 mA VRIPPLE1 = _____________ = ____________________________ = 0.05 V fC10 ( 8 kHz )( 2.2 µF ) IDC2 0.8 mA VRIPPLE2 = _____________ = ____________________________ = 0.04 V fC11 ( 2 kHz )( 10 µF ) Figure 12 shows the outputs of the circuits. These voltages have ripple voltages riding on a DC levels. F. The Voltage Comparators and Transistor Drivers Up to this point of the design, the output voltage V10 is a DC signal of about 8 V when the switch SW2 opens. Otherwise, it stays at 0 V. The output voltage V11 is a DC signal of about 8 V when the switch SW1 opens. Otherwise, it stays at 0 V. The Voltage Comparators are used to give an indication when either the switches opens. Figure 13 shows the schematic diagrams of the comparators and transistor drivers.

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.16

Page 17: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

V10

LM741

-15V

34

6

+15V

100 kΩR33

2 7 V14

V11

7

3

-15V

LM741

46

2

+15V

V15

+15V

1 kΩR36

+5V

27 kΩR34

Q3

2N3903 10 µFC12

2N3903

27 kΩR35

R37

1 kΩ

Q4

+5V

10 µFC13

5 V

0 V

SW2 OPENS

SW1 OPENS

5 V

0 V

+14.5 V

-14.5 V

SW2 OPENS

V12

V13

SW1 OPENS

-14.5 V

+14.5 V

+4 VDC

-14.5 V

SW2 CLOSES

-14.5 V

SW1 CLOSES

5 V

5 V

SW1 CLOSES

SW2 CLOSES

Figure 13 – The Voltage Comparators and Transistor Drivers Let’s look at the top comparator and driver circuits. The Voltage Comparator utilizes the open-loop gain of the 741 operational amplifier. The voltage V10 goes to the non-inverting input of the operational amplifier and a voltage divider is set up as a reference voltage at the inverting input. A 100 kΩ potentiometer R33 is used for this purpose to adjust the reference voltage when necessary because in the design, the voltage V10 (when switch SW2 opens) varies depending on the intensity of the IR emitter, the alignment and distance between the emitter and the phototransistor and ambient light. When the reference voltage is more than the voltage V10, the open-loop gain causes the comparator to produce a negative saturation voltage (about –14.5 V). When the reference voltage is less than the voltage V10, the open-loop gain causes the comparator to produce a positive saturation voltage (about +14.5 V). In the design, we set the reference voltage to 4 V. Therefore, when switch SW2 opens, the voltage V10 increases from 0 V to approximately 8 V resulting in a change from –14.5 V to +14.5 V of the voltage V12. However, the transition from negative saturation to positive saturation of V12 is not smooth as shown in its waveform in Figure 13. At the very moment when V10 crosses the DC reference voltage, the ripple voltage causes a series of 8 kHz pulses. These pulses create false triggering for the digital circuits. We will eliminate these pulses in the transistor driver circuit.

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.17

Page 18: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

The analysis of the transistor drivers is similar to the one discussed previously. The transistor drivers attenuate the output voltages V12 and V13 to TTL level, produce a falling edge for the monostable-multivibrator circuit, a LO TTL level to enable the count sequence for the counters and the latching circuit. At the collector output of the driver, we connect a 10 µF capacitor. This capacitor and the 1 kΩ collector resistor (the output impedance of the driver) form a passive low pass filter. The cut-off frequency of this filter is: 1 1 fo = ________________ = ______________________________ = 16 Hz 2πR36C12 2π( 1 kΩ )( 10 µF ) This filter effectively removes the 8 kHz pulses resulting in a TTL falling edge when switch SW2 opens. The same situation occurs at the bottom driver when switch SW1 opens. The waveforms of the output voltages of the drivers are in Figure 13. G. The Latch and ac Driver Circuits Up to this point of the design, we have a transition from 5 V to 0 V when one of the switches opens. This voltage returns to 5 V when we release the switch. The latch circuit allows us to maintain the desired voltage level. Figure 14 shows the schematic diagram of this circuit. We use a D flip-flop with Active Low Preset and Clear inputs. When the input signal V15 goes from HI to LO (switch SW1 opens), the output Q of the flip-flop goes HI and stays HI after the input V15 goes back up HI (switch SW1 closes). When the input signal V14 goes from HI to LO (switch SW2 opens), the output Q of the flip-flop goes LO and stays LO after this input goes back up HI (switch SW2 closes). Therefore, we latch the response of the openings of the switches. The output of the flip-flop is the controlled voltage to drive an ac load. The ac-controlled device is a solid-state relay (RadioShack part # 275-310). This SSR requires a DC input voltage of 1.2 V and current of 15 mA. Since the maximum output current of the 7474 is only 8 mA, we use a transistor driver to provide appropriate controlled signal to the SSR. The operating principle and calculations for this driver are similar to the one discussed before. In the design, when we press switch SW1, the SSR is energized turning on the 40 W light bulb. Switch SW2 de-energizes the SSR turning off the bulb. Figure 15 shows the timing diagram of the flip-flop.

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.18

Page 19: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

V14

+ 5 V

220 ΩR39

1 2 3 4 5 6 7

891011121314

7474

1.8 kΩR38

1CL

RV

CC

1D 1CL

K

1PR

E

1Q 1Q GN

D

V15 Q5

2N3903

@60 Hz120 V

40 W

SOLID-STATERELAY

V16

V17

Figure 14 – The Latch and ac Driver Circuits

V14

V15

SW1 OPENS SW1 CLOSES

SW2 CLOSESSW2 OPENS

V16

V17

LIGHT BULB IS ON

COUNT ENABLE

Figure 15 – Timing Diagram III. The Digital Part The primary function of this part is to display the time the bulb being on. When we turn on the light bulb, the three-digit display resets itself to 0.00 and starting counting the on time.

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.19

Page 20: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

Figure 16 below shows the schematic diagram of this part. It consists of an oscillator, a pulse generator, counters, decoders/drivers, and seven-segment displays. The oscillator provides the clock signal to the first counter and the Ripple Clock Output of this counter is the clock signal for the second counter and so on. The monostable-multivibrator provides a short pulse to reset the counters.

12

6

78 4

3

5

555

+ 5 V

C15

0.22 µF

330 kΩR42

0.01 µFC17

47 µFC16

1 kΩR41V17

1 2 3 4 5 6 7

891011121314

74121

18 kΩR40

+ 5 V

C14

0.82 µF

74190

CL

K

LO

AD

CT

EN

DD

DC

DB

DA

DB

DA

DD

DC

CL

K

LO

AD

CT

EN

DB

DA

DD

DC

CL

K

LO

AD

CT

EN

7419074190

U/D

U/D

U/D

RCO RCO RCO

7446

QA QB QC QD

QBQA QC QD

a b c d e f g

+ 5 V

COMMON ANODE

ALL R’S330 Ω

COMMON ANODE

QB

7446QA

ba c

+ 5 V

ALL R’S330 Ω

QC QD

ed f g

COMMON ANODE

QB

7446QA

ba c

+ 5 V

ALL R’S330 Ω

QC QD

ed f g

QDQCQBQA QDQCQBQA

V18

V19

V16

Figure 16 – The Digital Part A. The Oscillator A 555 Timer functions as an oscillator generating a 10 Hz TTL clock signal V19 for the first 74190 counter. The design principle of this circuit is similar to the one discussed previously. The clock frequency is: 1.44 1.44 f = __________________________ = ___________________________________________ = 9.9 Hz ( R41 + 2R42 )( C15 ) [ 1 kΩ + 2( 330 kΩ ) ]( 0.22 µF )

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.20

Page 21: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

The duty cycle of the clock signal is: R42 + R43 1 kΩ + 330 kΩ Duty Cycle = ________________ ( 100% ) = ___________________________ ( 100% ) = 50.1% R42 + 2R43 1 kΩ + 2( 330 kΩ ) B. The Monostable-Multivibrator (One Shot), Counter, Decoder/Driver Circuits The output voltage V16 of the flip-flop triggers the 74121 One-Shot circuit. This circuit produces a single pulse V18 that loads the data (00.0) resetting the counters. The pulse width is: Pulse Width = 0.7 R40C14 = 0.7( 18 kΩ )( 0.82 µF ) = 10.33 ms The voltage V17 enables the 74190 counters to count providing 4-bit outputs to the decoders. The 7446 (or 7447) decoders/drivers then drive the common-anode seven-segment displays. Figure 17 below shows a typical the timing diagram of the first counter. Its initial output is a decimal 3 or a binary 0011.

SW1 OPENS SW2 OPENS

V17

RESET COUNTERS

QC

QB

QD

RCO

QA1

0

0

0 0

0

1

0

0

0

1

1

0

1

0

0

0

1

0

1

0

1

1

0

0

0

0

0

0

0

1

1

0

1

1

1

1

0

0

0

1

0

0

1

0

0

0

0

0

0

0

1 0 1 1

1 1 1

0 0 0

0 0 0

V18

V19

Figure 16 – Timing Diagram Bibliography 1. Boylestad, R. L. (1995). Introductory circuit analysis (6th ed.). Ohio: Merrill Publishing. 2. Budak, A. (1974). Passive and active network analysis and synthesis. Boston: Houghton Mifflin. 3. Floyd, T. (1997). Digital fundamentals (6th ed.). New Jersey: Prentice-Hall. 4. Le, N. T. “Infrared Emitter-Detector Project.” Proceedings of the American Society for Engineering Education 2000 ASEE Annual Conference. CD-ROM. ASEE. June 2000.

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.21

Page 22: Infrared Emitter Detector Remote Control Project · Infrared Emitter Detector Remote Control Project Nghia T. Le, Terrance P. O Connor Purdue University I. Introduction The following

NGHIA T. LE Nghia T. Le is an Assistant Professor of Electrical Engineering Technology of Purdue University. He teaches at Purdue University, School of Technology at New Albany, Indiana. He earned his B. S. and M. E. E. E. degrees from the University of Louisville. His specialty is instrumentation and controls. He can be reached at [email protected]. TERRENCE P. O’CONNOR Terrence P. O’Connor is an Associate Professor of Electrical Engineering Technology for Purdue University. He teaches at the New Albany site where he has taught all but one of the courses in the two year degree offered there. He is primarily interested in ELF/ULF signal detection in the area of research, but also has delved into engineering ethics. He is a graduate of Northern Arizona University where he received a B.S. in Engineering Technology. He received his Master of Science degree in Engineering Technology from West Texas State University. He can be reached at: [email protected].

Proceedings of the 2001 American Society for Engineering Education Annual Conference & Exposition Copyright 2001, American Society for Engineering Education

Page 6.586.22