Lesson 5: Window Comparators - SIU · 2016-04-25 · Explain how a window comparator operates...
Transcript of Lesson 5: Window Comparators - SIU · 2016-04-25 · Explain how a window comparator operates...
4/25/2016
1
Lesson 5: Window Comparators ET 438b Sequential Control and Data Acquisition
Department of Technology
1 Lesson 5_et438b.pptx
Learning Objectives
After this presentation you will be able to:
Explain how a window comparator operates
Construct a window comparator using OP AMPs
Use a window comparator to detect voltages in three ranges
Design a window comparator given values of upper and lower trip voltages.
Lesson 5_et438b.pptx 2
4/25/2016
2
Window Comparators
3 Lesson 5_et438b.pptx
Vcc = 5 V
Vo1
Vo2
Vin
Vcc
Vref1= 1 V
Vref2 = 2 V
U1
U2
Vcc = 5 V
Circuit Logic U1 Inverting Comparator Vin > Vref1 (1 V) then Vo1 = 0 V Vin < Vref1 (1 V) then Vo1 = Vcc (5 V)
Circuit Logic U2 Non-Inverting Comparator Vin > Vref2 (2 V) then Vo2 = Vcc (5 V) Vin < Vref2 (2 V) then Vo2 = 0 V
Vin
V0 Vo2
Vo1 1= Vref1 2=Vref2
Window Comparators
Lesson 5_et438b.pptx 4
Add outputs through logic gates to get final Vo Assume Vcc = 5
Vo2
Vo1 Vref1
LTP Vref2
UTP
Vo1 Vo2 Vo
0 0 5 when LTP< Vin < UTP 0 5 0 when Vin > UTP 5 0 0 when Vin < LTP 5 5 0 this case never happens
Vo1
Vin
Vo
Vo
Same logic as NOR gate.
4/25/2016
3
Window Comparator
Lesson 5_et438b.pptx 5
Final Circuit
LTP
UTP
inverting comparator
non-inverting comparator
V0
NOR
Vo1
Vo2
Vin
Final Input/Output
Vin
V0
Vref2
UTP Vref1
LTP
Window Comparator-Alternate Design
Lesson 5_et438b.pptx 6
Add outputs using resistive voltage dividers and use OP AMP for final output. Note bipolar power supplies.
+15V
+
U1B LM324
+15V
-15V
+15V
+
U1A LM324
-15V
Vin
Vltp
Vutp
-15V
+15V
+
U1C LM324
Vo
R4 10k
R3 10k
R2 10k
Analyze this part
4/25/2016
4
Window Comparator-Alternate Design Analysis
Lesson 5_et438b.pptx 7
Circuit enclosed Must use superposition
Window Comparator-Alternate Design Analysis
Lesson 5_et438b.pptx 8
4/25/2016
5
Window Comparator-Alternate Design Analysis
Lesson 5_et438b.pptx 9
Window Comparator-Alternate Design Analysis
Lesson 5_et438b.pptx 10
For VLTP < Vin < VUTP the following circuit applies
This can be further reduced
4/25/2016
6
Window Comparator-Alternate Design Analysis
Lesson 5_et438b.pptx 11
vin
Window Comparator Simulation
Lesson 5_et438b.pptx 12
Simulation of previous circuit using piece-wise linear input and transient analysis. Uses LM 324 Quad OP AMP. (4 in 1 package)
Vutp=7 V
Vltp=4 V
4/25/2016
7
Design Example
Lesson 5_et438b.pptx 13
Design a circuit that will light one of three LEDs when the output from a pressure sensor that has a gain of .25 V/psi is connected to its input. The output should follow the specification listed below Range LED1 LED2 LED3 0 - 5 psi on off off 5 - 10 psi off on off 10 - 15 psi off off on Assume there is a 5Vdc power supply available and that all inputs and output are TTL compatible
Design Example
Lesson 5_et438b.pptx 14
Solution: Use window comparator with LEDs connected to the outputs of each device in the circuit.
LTP
UTP
inverting comparator
non-inverting comparator
V0
+5V
+5V
LED1
R
LED2
LED3
R
R
When Vin < LTP LED1 energized
U1
U2
Vo1
Vo2
Vin
When Vin > UTP LED3 Energized
Vin
V0 LED2 On
Vref1
LTP Vref2
UTP
Vin
V0 Vo2
Vo1
LED1 On LED3 On
Vref1
LTP Vref2
UTP
4/25/2016
8
Design Example (Continued)
Lesson 5_et438b.pptx 15
Determine the values of UTP and LTP from the pressure sensor gain.
Ranges 0 - 5 psi 5 - 10 psi 10 - 15 psi
VLTP = 5∙(0.25 V/psi) = 1.25 V VUTP = 10∙(0.25 V/psi) = 2.5 V
Size resistors for LED current limiting. Determine the maximum current sourcing ability of the comparators. (assume 25 mA) Forward voltage drop of LEDs Vf = 1.2 V
Vsat of U1 , U2 -0.8Vcc=4 V at high output
End Lesson 5: Window Comparators ET 438b Sequential Control and Data Acquisition
Department of Technology
Lesson 5_et438b.pptx 16