EE223 Laboratory #4. Comparators

Similar documents
LM193/LM293/LM393/LM2903 Low Power Low Offset Voltage Dual Comparators

LM193/LM293/LM393/LM2903 Low Power Low Offset Voltage Dual Comparators

USER MANUAL FOR THE LM2901 QUAD VOLTAGE COMPARATOR FUNCTIONAL MODULE

Features and Benefits

LM392/LM2924 Low Power Operational Amplifier/Voltage Comparator

LM193A/293/A/393/A/2903 Low power dual voltage comparator


EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

LM158/LM258/LM358/LM2904 Low Power Dual Operational Amplifiers

LM124/LM224/LM324/LM2902 Low Power Quad Operational Amplifiers

LM2900 LM3900 LM3301 Quad Amplifiers

Fig 1: The symbol for a comparator

Operational Amplifiers

Data Conversion and Lab Lab 1 Fall Operational Amplifiers

LM158/LM258/LM358/LM2904 Low Power Dual Operational Amplifiers

EE 368 Electronics Lab. Experiment 10 Operational Amplifier Applications (2)

Quad voltage comparator

ECE ECE285. Electric Circuit Analysis I. Spring Nathalia Peixoto. Rev.2.0: Rev Electric Circuits I

LINEAR IC APPLICATIONS

Laboratory 9. Required Components: Objectives. Optional Components: Operational Amplifier Circuits (modified from lab text by Alciatore)

Hello, and welcome to the TI Precision Labs video series discussing comparator applications. The comparator s job is to compare two analog input

Figure 1: Basic Relationships for a Comparator. For example: Figure 2: Example of Basic Relationships for a Comparator

University of Portland EE 271 Electrical Circuits Laboratory. Experiment: Op Amps

LM158 LM258 LM358 LM2904 Low Power Dual Operational Amplifiers

Lab 8: SWITCHED CAPACITOR CIRCUITS

Lab Exercise 6: Digital/Analog conversion

Schmitt Trigger Inputs, Decoders

LM392 LM2924 Low Power Operational Amplifier Voltage Comparator

Lab 7: DELTA AND SIGMA-DELTA A/D CONVERTERS


LP2902/LP324 Micropower Quad Operational Amplifier

FIRSTRANKER. 1. (a) What are the advantages of the adjustable voltage regulators over the fixed

Laboratory 6. Lab 6. Operational Amplifier Circuits. Required Components: op amp 2 1k resistor 4 10k resistors 1 100k resistor 1 0.

LP265 LP365 Micropower Programmable Quad Comparator

LF353 Wide Bandwidth Dual JFET Input Operational Amplifier

Multi-Transistor Configurations

LM124/LM224/LM324/LM2902 Low Power Quad Operational Amplifiers

LM158/LM258/LM358/LM2904 Low Power Dual Operational Amplifiers

Difference between BJTs and FETs. Junction Field Effect Transistors (JFET)

LF411 Low Offset, Low Drift JFET Input Operational Amplifier

TL082 Wide Bandwidth Dual JFET Input Operational Amplifier

LF442 Dual Low Power JFET Input Operational Amplifier

Low Power Low Offset Voltage Dual Comparators

EE320L Electronics I. Laboratory. Laboratory Exercise #2. Basic Op-Amp Circuits. Angsuman Roy. Department of Electrical and Computer Engineering

Low Power Low Offset Voltage Dual Comparators

NOT RECOMMENDED FOR NEW DESIGN. Application

University of Pittsburgh

PROPOSED SCHEME OF COURSE WORK

Lab 2: Discrete BJT Op-Amps (Part I)

Unit 3: Introduction to Op- amps and Diodes

TL082 Wide Bandwidth Dual JFET Input Operational Amplifier

11. Audio Amp. LM386 Low Power Amplifier:

Concepts to be Reviewed

EGR Laboratory 3 - Operational Amplifiers (Op Amps)

ADARSH K (ME00362) PRASHANTH S (ME00370) RADHA MALINI M.G (ME00371)

DIP14 Tube LM2901N LM2901D/LM2901DT SO-14 Tube or Tape & Reel

Lab Exercise # 9 Operational Amplifier Circuits

LM231A/LM231/LM331A/LM331 Precision Voltage-to-Frequency Converters

Exam Below are two schematics of current sources implemented with MOSFETs. Which current source has the best compliance voltage?

LF412 Low Offset, Low Drift Dual JFET Input Operational Amplifier

Electronics: Design and Build Training Session. Presented By: Dr. Shakti Singh Hazem Elgabra Amna Siddiqui

ENEE307 Lab 7 MOS Transistors 2: Small Signal Amplifiers and Digital Circuits

EE 210: CIRCUITS AND DEVICES

EE 2274 DIODE OR GATE & CLIPPING CIRCUIT

EE : ELECTRICAL ENGINEERING Module 8 : Analog and Digital Electronics INDEX

Verification of competency for ELTR courses

Field Effect Transistors

LM111/LM211/LM311 Voltage Comparator

ADC0808/ADC Bit µp Compatible A/D Converters with 8-Channel Multiplexer

using dc inputs. You will verify circuit operation with a multimeter.

Low-Power Quad Operational Amplifier FEATURES: DESCRIPTION: Memory. Logic Diagram. RAD-PAK technology-hardened against natural space radiation

6.111 Lecture # 15. Operational Amplifiers. Uses of Op Amps

IC Preamplifier Challenges Choppers on Drift

Process Components. Process component

Features. Applications

Amplification. Objective. Equipment List. Introduction. The objective of this lab is to demonstrate the basic characteristics an Op amplifier.

LF444 Quad Low Power JFET Input Operational Amplifier

MOSFET Amplifier Biasing

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016

Lab 2 Revisited Exercise

Lecture 3: Transistors

Laboratory #4: Solid-State Switches, Operational Amplifiers Electrical and Computer Engineering EE University of Saskatchewan

The operational amplifier

EE 233 Circuit Theory Lab 3: First-Order Filters

UC Berkeley, EECS Department EECS 40/42/100 Lab LAB3: Operational Amplifier UID:

St.MARTIN S ENGINEERING COLLEGE

AME140 Lab #4 ---Basic OP-AMP circuits

LAB 5 OPERATIONAL AMPLIFIERS

LAB 1 AN EXAMPLE MECHATRONIC SYSTEM: THE FURBY

Lab 6: Exploring the Servomotor Controller Circuit

BME/ISE 3512 Bioelectronics. Laboratory Five - Operational Amplifiers

Data Conversion and Lab Lab 3 Spring Analog to Digital Converter

EGR Laboratory 9 - Operational Amplifiers (Op Amps) Team Names

CA3290, CA3290A. BiMOS Dual Voltage Comparators with MOSFET Input, Bipolar Output. Features. Applications. Pinout. Ordering Information

Operational Amplifiers

CHARACTERIZATION OF OP-AMP

TS331 Low Power Low Offset Voltage Comparators

Community College of Allegheny County Unit 8 Page #1. Op-Amps

Section 4: Operational Amplifiers

Sonoma State University Department of Engineering Science Fall 2017

Transcription:

EE223 Laboratory #4 Comparators Objectives 1) Learn how to design using comparators 2) Learn how to breadboard circuits incorporating integrated circuits (ICs) 3) Learn how to obtain and read IC datasheets 4) Learn how to design and build a bargraph display 5) Learn how to select the correct current-limiting resistor for use with an LED Situation As a junior engineer in Blaupunkt s Car Audio division you have been tasked to design a four-segment light emitting diode (LED) bargraph meter that graphically displays the voltage output by the audio amplifier. In your old EE223 notes you find information on using comparators that will be useful. A comparator looks similar to an opamp but has no negative feedback. You will recall that for an opamp, Vout = A(V + -V - ), where A is huge. If there is no negative feedback then whenever V + > V - the output will attempt to go as high as it can, which is usually a few volts less than its positive power supply. Whenever V + < V - the output goes as low as it can, which is usually a few volts above its lower power supply. A comparator is similar, but has two differences: 1) The output goes exactly to its lower power supply (usually ground) when V + < V -. 2) The output is disconnected (it looks like an internal open) when V + > V -. Here s how to think of it: the comparator does what an opamp would do, except that instead of going high it disconnects. This is shown schematically below: bigger smaller Goal smaller bigger Goal (open) Figure 1: A model of a comparator, showing the output looks like either a short to ground or an open, depending on the relative voltages at the inputs. Note: this is a comparator, not an opamp, even though both have the same triangular shape. Opamps are used with negative feedback; comparators are used without negative feedback.

Figure 1 shows how the comparator is used in a circuit. Like an opamp, no current flows into a comparator, so the two 1kΩ resistors form a voltage divider to create 2.. When Vtest is greater than 2. (i.e., when V + < V - ) then the comparator s output goes to ground, allowing current to flow through the LED which lights. When Vtest is less than 2. (i.e., when V + > V - ) then the comparator s output disconnects, and the LED is extinguished. V test 2. Figure 1: Example comparator circuit that turns on the LED when V s > 2. The name Rlimit in Figure 1 comes from the fact that it is needed to limit the current flowing through the LED. To find Rlimit, note that the LED drops 2V and requires about 10mA to light (less than this won t light it brightly, but more than that will burn it out). Therefore to find Rlimit, 2V 300 10mA for this design. Design Note: All normal-sized LEDs have a voltage drop of about 2V (the exact amount depends on the color of the LED), and all normal-sized LEDs work well on 10mA of current. Confusion cleanup: When we talk about the voltage drop across an LED, we mean that the LED actually absorbs 2V of potential when it is lit. When less than 2V exists across it, it is unlit. If you try to put more than 2V across it, it will burn up. This is why the Rlimit resistor is always required; the LED will absorb 2V and the remaining voltage will appear across Rlimit. Your engineering team supervisor informs you that the voltage coming from the car s audio amplifier varies from 0 to and that you must power your circuit directly from the car battery. She suggests you use the circuit shown in Figure 2 as a model for your design. Further design constraints come from the supply division who stock National Semiconductor s LM339 quad comparator IC s, and from marketing who specify for aesthetic reasons to use 3 green LEDs to display the lower voltage levels and 1 red LED to display the highest voltage level. You checked on the web under National s website (www.national.com) and did a search on LM339 to find a datasheet for the LM339 (included on the last page of this lab) that specifies the chip s pinout. 2

R 1 V amp (0 to source representing the audio amp s output) 4V LED 3V LED 2V LED 1V LED Figure 2: Generic bargraph display schematic. Notice that the power connections are only shown on the top comparator. This is because typically 4 comparators are packaged on a single chip, so all four share the same V cc and ground connections. The labels next to the LEDs, for instance 4V LED, do not mean the LED drops 4V; they all drop about 2V. It means that LED will turn on when V amp is equal to or greater than 4V. Prelaboratory 1. Select R1 in the design shown in Figure 2 so that when Vamp = 0V no LEDs light 1V the lowest green LED lights 2V the lowest two green LEDs light 3V the lowest three LEDs light 4V all LEDs light (the lower 3 green and the topmost red) 2. Find Rlimit so that the LEDs light fully without burning out. 3. Use the provided datasheet for the LM339 and write the pin numbers on Figure 2. By this, I mean write a small 3 to signify pin 3 (positive chip power) next to the wire leading to the + in Figure 2, and a small 5 to signify pin 5 (non-inverting input of the first comparator) next to the + input of the top comparator. Complete with all pin numbers. (DO THIS! It sounds trivial, but it will help immensely when debugging. It will be the first thing I will ask to see if you need help debugging). 3

current flow Laboratory Breadboard the circuit. Use an external voltage supply to mimic the behavior of Vamp. Record the actual vs. designed transition voltages. To connect the voltage comparator, note that only one power and ground connection is required to power all four comparators on the IC. LEDs and ICs are unipolar, meaning unlike resistors, the direction in which you connect them matters. The longer wire for the LED is the more positive, and ICs are oriented with the arc shape on the top; see the example below. When completed with data gathering, get checked off by the instructor by demonstrating your circuit s operation as you vary Vamp. + - + - current flow arc is to the top How to identify an LEDs polarity How to prototype with ICs and identify their pin numbers LEDs and ICs require a particular orientation, unlike resistors. 1 2 3 4 5 6 7 place across breadboard pins like this Discussion Questions 1. Determine and quantitatively analyze potential sources of error. Qualitative analysis (e.g. Most of the error comes from resistor tolerance ) is for humanities courses. Engineering is quantitative (e.g. Spice simulation reveals a worst-case scenario for 5% resistors (i.e., R1,3,5 at +5%, R2,4,6 at -5%) results in a +7.23% error. Moving all resistors in the same direction, i.e. +5%, results in a much smaller 0.452% error. ) 2. With additional logic you could make this into an A/D converter to complement the D/A converter you built in an earlier lab. What is the name of the digital logic chip (multiplexer, demultiplexer, encoder, or decoder) you would use in place of the LEDs to make this into a 2 bit A/D converter? 3. Your lab partner accidentally hooked up the comparator inputs backwards (i.e. not the power or output leads but the inverting (-) and non-inverting (+) inputs). Describe how the circuit behaves. 4. How would you modify your design if marketing insisted that the design be changed to incorporate a 12 segment LED display? Use the same battery as a source and assume the input voltage from the amplifier remains in the 0- range. Be quantitative. What values would the resistors be? 14 13 12 11 10 9 8 4

LM139/LM239/LM339/LM2901/LM3302 Low Power Low Offset Voltage Quad Comparators General Description The LM139 series consists of four independent precision voltage comparators with an offset voltage specification as low as 2 mv max for all four comparators. These were designed specifically to operate from a single power supply over a wide range of voltages. Operation from split power supplies is also possible and the low power supply current drain is independent of the magnitude of the power supply voltage. These comparators also have a unique characteristic in that the input common-mode voltage range includes ground, even though operated from a single power supply voltage. Application areas include limit comparators, simple analog to digital converters; pulse, squarewave and time delay generators; wide range VCO; MOS clock timers; multivibrators and high voltage digital logic gates. The LM139 series was designed to directly interface with TTL and CMOS. When operated from both plus and minus power supplies, they will directly interface with MOS logic where the low power drain of the LM339 is a distinct advantage over standard comparators. Advantages High precision comparators Reduced VOS drift over temperature Eliminates need for dual supplies Allows sensing near GND Compatible with all forms of logic Power drain suitable for battery operation Features Wide supply voltage range LM139/139A 2 to 36 VDC or ±1to ±18 VDC LM2901: 2 to 36 VDC or ±1to ±18 VDC LM3302: 2 to 28 VDC or ±1to ±14 VDC Very low supply current drain (0.8 ma) independent of supply voltage Low input biasing current: 25 na Low input offset current: ±5nA Offset voltage: ±3mV n Input common-mode voltage range includes GND Differential input voltage range equal to the power supply voltage Low output saturation voltage: 250 mv at 4 ma Output voltage compatible with TTL, DTL, ECL, MOS and CMOS logic Dual-In-Line Package 2007 National Semiconductor Corporation DS005706 www.national.com 5