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

Similar documents
o Semiconductor Diode Symbol: The cathode contains the N-type material and the anode contains the P-type material.

USER MANUAL FOR THE LM2901 QUAD VOLTAGE COMPARATOR FUNCTIONAL MODULE

Potentiometer Tutorial Cornerstone Electronics Technology and Robotics I Week 8

o What happens if S1 and S2 or S3 and S4 are closed simultaneously? o Perform Motor Control, H-Bridges LAB 2 H-Bridges with SPST Switches

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

Module 9C: The Voltage Comparator (Application: PWM Control via a Reference Voltage)

Sensor Interfacing and Operational Amplifiers Lab 3

Direct Current Waveforms

University of North Carolina, Charlotte Department of Electrical and Computer Engineering ECGR 3157 EE Design II Fall 2009

EET 150 Introduction to EET Lab Activity 12 Temperature Sensor Amplifier Project

Cornerstone Electronics Technology and Robotics I Week 19 Electrical Relays

INTRODUCTION. Figure 1 Three-terminal op amp symbol.

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

Laboratory 8 Operational Amplifiers and Analog Computers

CENG4480 Embedded System Development and Applications The Chinese University of Hong Kong Laboratory 1: Op Amp (I)

Physics 310 Lab 6 Op Amps

LM392/LM2924 Low Power Operational Amplifier/Voltage Comparator

LAB 1 AN EXAMPLE MECHATRONIC SYSTEM: THE FURBY

ELT 215 Operational Amplifiers (LECTURE) Chapter 5

Fig 1: The symbol for a comparator

EE223 Laboratory #4. Comparators


LM392 LM2924 Low Power Operational Amplifier Voltage Comparator

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

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

EGR Laboratory 3 - Operational Amplifiers (Op Amps)

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

Section 4: Operational Amplifiers

Lab #6: Op Amps, Part 1

Exercise 2: Temperature Measurement

PreLab 6 PWM Design for H-bridge Driver (due Oct 23)

Hello, and welcome to the TI Precision Labs video discussing comparator applications, part 4. In this video we will discuss several extra features

Electronics I. laboratory measurement guide

Logic signal voltage levels

BME/ISE 3512 Bioelectronics. Laboratory Five - Operational Amplifiers

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

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

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

BME 3512 Bioelectronics Laboratory Five - Operational Amplifiers

Utilise audio amps for voltage splitting (Part 3)

OPERATIONAL AMPLIFIERS LAB

Chapter 13: Comparators

Multi-Transistor Configurations

Intro To Engineering II for ECE: Lab 7 The Op Amp Erin Webster and Dr. Jay Weitzen, c 2014 All rights reserved.

LM18293 Four Channel Push-Pull Driver

Introduction to the Op-Amp

CHARACTERISTICS OF OPERATIONAL AMPLIFIERS - I

Lab Exercise 6: Digital/Analog conversion

Data Conversion and Lab Lab 1 Fall Operational Amplifiers

ET 438B Sequential Digital Control and Data Acquisition Laboratory 4 Analog Measurement and Digital Control Integration Using LabVIEW

EXPERIMENT 5 CURRENT AND VOLTAGE CHARACTERISTICS OF BJT

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

Exercise 1: EXCLUSIVE OR/NOR Gate Functions

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

Electronic Components

Unit 3: Introduction to Op- amps and Diodes

Process Components. Process component

ECE 5670/6670 Project. Brushless DC Motor Control with 6-Step Commutation. Objectives

Autonomous Robot Control Circuit

LABORATORY 5 v3 OPERATIONAL AMPLIFIER

OCR Electronics for A2 MOSFETs Variable resistors

University of Pennsylvania. Department of Electrical and Systems Engineering. ESE Undergraduate Laboratory. Analog to Digital Converter

Table of Contents. 2.0 Linear Supplies 2.1 Fixed DC Regulator 2.2 Variable DC Regulator. Assignment Questions. For Further Research

LM1801 Battery Operated Power Comparator

= V IN. and V CE. = the supply voltage 0.7 V, the transistor is on, V BE. = 0.7 V and V CE. until saturation is reached.

TSM1013. Constant voltage and constant current controller for battery chargers and adapters. Description. Features. Applications

ELR 4202C Project: Finger Pulse Display Module

UNIVERSITY OF UTAH ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT ELECTROMYOGRAM (EMG) DETECTOR WITH AUDIOVISUAL OUTPUT

Concepts to be Reviewed

Operational Amplifiers

Discrete Op-Amp Kit MitchElectronics 2019

Op Amp Booster Designs

PHYS 3152 Methods of Experimental Physics I E2. Diodes and Transistors 1

Operational Amplifiers

Laboratory experiments and reports

Schmitt Trigger Inputs, Decoders

Audio Amplifier. November 27, 2017

EE 221 L CIRCUIT II. by Ming Zhu

University of Michigan EECS 311: Electronic Circuits Fall 2009 LAB 2 NON IDEAL OPAMPS

Chapter 9: Operational Amplifiers

Electronics Technology and Robotics I Week 5 Resistors and Potentiometers

Block Diagram of a DC Power Supply. Wiring diagrams are used to help with the actual circuit wiring.

INDIANA UNIVERSITY, DEPT. OF PHYSICS, P400/540 LABORATORY FALL Laboratory #6: Operational Amplifiers

Semiconductors, ICs and Digital Fundamentals

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

Instrumentation Amplifier Module. Instruction Manual

Enhanced Optical Position Detector

EK307 Lab 3 Spring Lab Assignment 3 Logic Gates

LP265 LP365 Micropower Programmable Quad Comparator

Cornerstone Electronics Technology and Robotics I Week 17 Magnetism Tutorial

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

E85: Digital Design and Computer Architecture

Introduction to Electronics and Breadboarding Circuits

National Quali cations Date of birth Scottish candidate number

Assignment /01

Lab 8: SWITCHED CAPACITOR CIRCUITS

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

Operational Amplifiers

TTL LOGIC and RING OSCILLATOR TTL

University of Pittsburgh

Transcription:

Cornerstone Electronics Technology and Robotics I Week 16 Voltage Comparators Administration: o Prayer Robot Building for Beginners, Chapter 15, Voltage Comparators: o Review of Sandwich s Circuit: To this point we have covered the electric power source (a 9V battery) and the sensors (the photoresistor network). Now we will add the brains - an integrated circuit called a comparator. The action (motors) and body will be covered later lessons. The words in bold are the parts of a robot included in Lesson 1. o Voltage Comparators: A comparator circuit is used to compare two voltage inputs and determine which is the larger of the two. A comparator is a device whose output is HIGH when the voltage on the positive (+) input is greater than the voltage on the negative (-) input and LOW when the positive input voltage is less than the negative input voltage. This is true regardless whether the comparator is set up for inverting or non-inverting operation. Figure 1: Basic Relationships for a Comparator For example: Figure 2: Example of Basic Relationships for a Comparator 1

Inputs into a comparator can be an analog voltage; the output is digital. Two Basic Comparator Operations: Inverting Operation: V REF (the reference voltage) assigned to the positive input. When V IN (the input voltage) exceeds V REF, the output V OUT goes from HIGH to LOW. Figure 3a: Basic Inverting Operation The inverting operation can be represented in another graphical form: Figure 3b: Basic Inverting Operation o In other words, the comparator set for inverting operation makes the following decisions: If V IN < V REF, then the output voltage is HIGH and If V IN > V REF, then the output voltage is LOW o Remember, in the inverting mode of operation, V REF is connected to the + input. 2

Non-inverting Operation: V REF (the reference voltage) assigned to the negative input. When V IN exceeds V REF, the output V OUT goes from LOW to HIGH. Figure 4a: Basic Non-inverting Operation The non-inverting operation can be represented in another graph: Figure 4b: Basic Non-inverting Operation o The comparator set for non-inverting operation makes the following decisions: If V IN < V REF, then the output voltage is LOW and If V IN > V REF, then the output voltage is HIGH 3

How the comparator is used to control Sandwich s motors: The linefollowing robot Sandwich uses two independent comparators in one IC to control the two motors (Figure 3). The photoresistor sensors send voltages from Test Points 1 and 2 to both comparators. Assume that Test Point 1 is the reference voltage. Comparator A is wired for the inverting mode of operation (V REF is connected to input + and V IN is connected to input -) and the comparator B is set for the non-inverting mode. If one of the comparator s output is HIGH, then the other comparator output will usually be LOW. Normally, only one motor will be on at any one time; which motor that is on is determined by which pair of photoresistor sensors has the least amount of light entering it. Figure 5: Sandwich Comparator Wiring When Test Point 2 Is Activated, Motor 2 Turns On and Motor 1 Turns Off When Test Point 1 is Activated, Motor 1 Turns On and Motor 2 Turns Off Figure 6: Sandwich s Movement 4

o Chip as a Source and as a Sink: Chip as a Source: In Figure 7 below, when the pin connected to R1 goes HIGH, the chip connects the source voltage (+9V) to the load (the LED), similar to the switch in Figure 8. Figure 7: Chip Acting as a Source Figure 8: Chip Acts as a Closed Switch Chip as a Sink: In Figure 9, when the pin connected to the LED goes LOW, the chip connects the load to ground, similar to the switch in Figure 10. Figure 9: Chip Acting as a Sink Figure 10: Chip Acts as an Open Switch 5

o 741 Op Amp: A 741 op amp can be used to function as a comparator. The 741 functions as a comparator when it is operated in an openloop mode, that is, there is no feedback resistor. The output varies from full on to full off with very small changes in the input voltage due to the high gain. Perform Voltage Comparators Lab 1 741 Comparator o LM393 Dual Comparator: Comparators are specifically designed for high-speed switching when matched up to an op amp. LM393 consist of two independent voltage comparators designed to operate from a single power supply over a wide voltage range. LM393 datasheet: http://www.fairchildsemi.com/ds/lm%2flm393.pdf LM393 Characteristics: Two independent voltage comparators Single power supply, 2V 36V Operate over a wide range of voltages, up to about 36 V Low input offset voltages in the mv range. This means that the LM393 can compare voltages that are very close to each other. Like many older chips, the LM393 can not source as much current as it can sink. The terminology source and sink is from the water analogy, where water comes out of the source and then goes into the sink. Comparator Pull-up Resistor: If you refer to the datasheet for the LM393, the schematic reveals that the comparator uses an internal transistor whose collector is connected to the output and whose emitter is connected to ground. To enable the LM393 to have a high output state (when V + > V - ), the comparator output must be connected to a positive voltage source through an external pull-up resistor. If the pull-up resistor is not present, then the output voltage floats, meaning it is not tied to any known voltage level. Value: The pull-up resistor must be small enough to drive the load connected to the comparator output, yet large enough to limit the power consumption. Below are two examples of pullup resistors used in two different applications. Figure 11: Power Switching and TTL Logic Circuit Applications 6

Pin Layout: Figure 12: Pinout of LM393 The semi-circle notch in the chip locates pin 1. Perform Voltage Comparators Lab 2 LM393N Comparator Perform Voltage Comparators Lab 3 Brightness Comparison Circuit o Other web references: http://www.techitoutuk.com/knowledge/electronics/buildingblocks/opa mp/index.html http://www.technologystudent.com/elec1/opamp3.htm http://www.uoguelph.ca/~antoon/gadgets/741/741.html http://booksbybibin.14.forumer.com/a/ic741-tutorial_post38.html 7

Electronics Technology and Robotics I Week 16 Voltage Comparators Lab 1 741 Comparator Purpose: The purpose of this lab is to test the 741 IC as a comparator. Apparatus and Materials: o 1 Solderless Breadboard with 9 V Power Supply o 3 Digital Multimeters o 1 741 Op Amp o 2 25 K Potentiometers o 1 4.7K Resistor o 1 1K Resistor o 1 2N2222A NPN Transistor o 1 LED Procedure: o Build Circuit 1 and use three multimeters to measure V REF, V IN, and V OUT (pin 6). o Non-inverting Operation: In the first test, let pin 2 be the reference voltage (V REF ). Adjust R 1 to set pin 2 to about 4.5 V. Adjust R 2 so the voltage input (V IN ) into pin 3 varies from 0 to 9V. If V IN is less than V REF is the LED on or off? Measure V OUT. If V IN is more than V REF is the LED on or off? Measure V OUT. Record your results. At what voltage does the LED change state? Record your results. o Inverting Operation: In the second test, let pin 3 be the reference voltage (V REF ). Adjust R 2 to set pin 3 to approximately 4.5 V. Adjust R 1 so the voltage input (V IN ) into pin 2 varies from 0 to 9V. Make the same observations and measurements as in the first test. Circuit 1 8

741 Pin Layout or Pinout Results: o Test 1- Non-inverting Operation: Pin 2 reference voltage (V REF ): V Pin 3 (V IN ) less than V REF : LED on or off V OUT = V Pin 3 (V IN ) more than V REF : LED on or off V OUT = V V IN where the LED changes state? V o Test 2 Inverting Operation: Pin 3 reference voltage (V REF ): V Pin 2 (V IN ) less than V REF : LED on or off V OUT = V Pin 2 (V IN ) more than V REF : LED on or off V OUT = V V IN where the LED changes state? V Conclusions: o How do the results from Test 1 compare to the results of Test 2? 9

Electronics Technology and Robotics I Week 16 Voltage Comparators Lab 2 LM393N Comparator Purpose: The purpose of this lab is to acquaint the student with the LM393N comparator and its inverting and non-inverting modes. Apparatus and Materials: o 1 Solderless Breadboard with 9 V Power Supply o 2 Digital Multimeters o 1 LM393N Comparator o 2 25 K Potentiometers o 2 1 K Resistors o 2 LEDs Procedure: o Build Circuit 2. Wiring Diagram 1 may assist in the assembly of the circuit. o In this test, let pins 2 and 5 be the reference voltage (V REF ). Adjust R 1 to set pins 2 and 5 to about 4.5 V. o Adjust R 2 so that the voltage input (V IN ) into pins 3 and 6 varies from 0 to 9V. If V IN is less than V REF are the LEDs on or off? If V IN is more than V REF are the LEDs on or off? Record your results. o At what voltage does the LED change state? Record your results. o LM393N Pinout: o Always use the IC extractor when removing ICs. 10

Circuit 2 Wiring Diagram 1 11

Results: o Pins 2 and 5 reference voltage (V REF ): V o Pins 3 and 6 (V IN ) less than V REF : LED1 on or off o Pins 3 and 6 (V IN ) more than V REF : LED1 on or off LED2 on or off LED2 on or off o V IN where the LED changes state? V Conclusions: o If Pin 5 of IC1B is set as V REF, what mode is IC1B in? Inverting or noninverting? 12

Electronics Technology and Robotics I Week 16 Voltage Comparators Lab 3 Brightness Comparison Circuit Purpose: The purpose of this lab is to acquaint the student with the LM393N comparator and its inverting and non-inverting modes. Apparatus and Materials: o 1 Solderless Breadboard with 9 V Power Supply o 1 LM393N Comparator o 2 25 K Potentiometers o 2 1 K Resistors o 2 470 Resistors o 2 LEDs (Regular) o 2 LEDs (Bright White) Procedure: o Build Circuit 3. Wiring Diagram 2 is available to assist in the assembly of the circuit. o The test points 1 and 2 are connected to the brightness circuit from Week 12. Refer to Circuit 4 for connections. o Move your hand over the photoresistors in the brightness circuit and observe the LED output of the LM393N IC. Circuit 3 Pin 8 +9V Pin 4 Ground 13

Wiring Diagram 2 Circuit 4 (from Week 12) 14

o The Headlight Circuit: Wire the schematic Circuit 5 using the bright white LEDs. Circuit 5 15