Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial



Similar documents
Building the AMP Amplifier

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

Lab 5 Operational Amplifiers

Lab 7: Operational Amplifiers Part I

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

OPERATIONAL AMPLIFIER

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

Analog control unit for mobile robots

CHAPTER 11: Flip Flops

The Operational Amplfier Lab Guide

Conversion Between Analog and Digital Signals

Operational Amplifier - IC 741

School of Engineering Department of Electrical and Computer Engineering

Simple Op-Amp Circuits

Design Project: Power inverter

Chapter 12: The Operational Amplifier

If an occupancy of room is zero, i.e. room is empty then light source will be switched off automatically

Chapter 19 Operational Amplifiers

GLOLAB Two Wire Stepper Motor Positioner

AP331A XX G - 7. Lead Free G : Green. Packaging (Note 2)

OPERATIONAL AMPLIFIERS. o/p

SUPER SNOOPER BIG EAR

LM139/LM239/LM339/LM2901/LM3302 Low Power Low Offset Voltage Quad Comparators

EXPRESS PCB TUTORIAL Author: Lee Morey Revised: JE Feb 2015

Scaling and Biasing Analog Signals

OPERATIONAL AMPLIFIERS

Objectives: Part 1: Build a simple power supply. CS99S Laboratory 1

Basic Op Amp Circuits

DET Practical Electronics (Intermediate 1)

Frequency Response of Filters

6.101 Final Project Report Class G Audio Amplifier

ECEN 1400, Introduction to Analog and Digital Electronics

AP-1 Application Note on Remote Control of UltraVolt HVPS

MAS.836 HOW TO BIAS AN OP-AMP

Transistor Amplifiers

Electronics I - Laboratory 1 Diode I/V Characteristics

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

CA723, CA723C. Voltage Regulators Adjustable from 2V to 37V at Output Currents Up to 150mA without External Pass Transistors. Features.

Controlling a Dot Matrix LED Display with a Microcontroller

Wires & Connections Component Circuit Symbol Function of Component. Power Supplies Component Circuit Symbol Function of Component

Experiment #5, Series and Parallel Circuits, Kirchhoff s Laws

LABORATORY 2 THE DIFFERENTIAL AMPLIFIER

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

Lab 3 - DC Circuits and Ohm s Law

Handheld measurement equipment for measuring extremely low frequency electromagnetic fields

NTE923 & NTE923D Integrated Circuit Precision Voltage Regulator

Operational Amplifiers

PHYSICS 111 LABORATORY Experiment #3 Current, Voltage and Resistance in Series and Parallel Circuits

Joule Thief 3.0 Kit. June 2012, Rev Joule Thief 3.0

Total solder points: 67 Difficulty level: beginner advanced UNIVERSAL TEMPERATURE SENSOR K8067 ILLUSTRATED ASSEMBLY MANUAL

Physics 120 Lab 6: Field Effect Transistors - Ohmic region

BUILD YOUR OWN RC SWITCH (Issue 3)

SINGLE-SUPPLY OPERATION OF OPERATIONAL AMPLIFIERS

POWER SUPPLY MODEL XP-15. Instruction Manual ELENCO

Temperature Sensors. Resistance Temperature Detectors (RTDs) Thermistors IC Temperature Sensors

Using Op Amps As Comparators

28V, 2A Buck Constant Current Switching Regulator for White LED

Bipolar Transistor Amplifiers

DEGREE: Bachelor in Biomedical Engineering YEAR: 2 TERM: 2 WEEKLY PLANNING

Multipurpose Analog PID Controller

Gates, Circuits, and Boolean Algebra

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors

INFRARED PARTS MANUAL

Using voltage regulator to convert 5-12V range to 3.3V. Huan Lin

PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard

CONSTRUCTING A VARIABLE POWER SUPPLY UNIT

Decimal Number (base 10) Binary Number (base 2)

AP Physics Electricity and Magnetism #4 Electrical Circuits, Kirchoff s Rules

Voltage/current converter opamp circuits

Op amp DC error characteristics and the effect on high-precision applications

LM56 Dual Output Low Power Thermostat

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

More Op-Amp Circuits; Temperature Sensing

TEACHING RESOURCES SCHEMES OF WORK DEVELOPING A SPECIFICATION COMPONENT FACTSHEETS HOW TO SOLDER GUIDE GET IN TUNE WITH THIS FM RADIO KIT. Version 2.

Constant Voltage and Constant Current Controller for Adaptors and Battery Chargers

WHO ANSWERED FIRST? FIND OUT WITH THIS QUIZ BUZZER KIT

Reading: HH Sections , (pgs , )

LM3914 Dot/Bar Display Driver

A Practical Guide to Free Energy Devices

LG Air Conditioning Multi F(DX) Fault Codes Sheet. Multi Split Units

LF442 Dual Low Power JFET Input Operational Amplifier

Users Guide for the Non-Inverted LM3886 Kit

Karaoke Circuit Building Instructions

Measuring Electric Phenomena: the Ammeter and Voltmeter

LM386 Low Voltage Audio Power Amplifier

Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall Work in teams of two!

Arduino Lesson 13. DC Motors. Created by Simon Monk

High Voltage Current Shunt Monitor AD8212

LM337. Three-terminal adjustable negative voltage regulators. Features. Description

Op Amp Circuit Collection

Use and Application of Output Limiting Amplifiers (HFA1115, HFA1130, HFA1135)

Fox-2 MPPT Unit Testing

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

GT Sensors Precision Gear Tooth and Encoder Sensors

A Short Discussion on Summing Busses and Summing Amplifiers By Fred Forssell Copyright 2001, by Forssell Technologies All Rights Reserved

Content Map For Career & Technology

TS321 Low Power Single Operational Amplifier

LM833 LOW NOISE DUAL OPERATIONAL AMPLIFIER

INDUSTRIAL VOLTAGE AMPLIFIER IC AM401 PRINCIPLE FUNCTION

Transcription:

Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial Administration: o Prayer Robot Building for Beginners, Chapter 15, Voltage Comparators: o Review of Sandwich s Circuit: To this point we have: 9 Volt Power supply LED power indicator Photoresistor sensors Now we will add an integrated circuit - the brains. o Voltage Comparators: 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. Another way of defining a comparator is to say that a comparator circuit is used to compare two voltage inputs and determine which is the larger of the two. 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 1 Basic Inverting Operation The inverting operation can be represented in another graphical form: Figure 1 Basic Inverting Operation 1

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 2 Basic Non-inverting Operation The non-inverting operation can be represented in another graph: Figure 2 Basic Non-inverting Operation 2

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 open-loop 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 LM393 Dual Comparator: LM393 consist of two independent voltage comparators designed to operate from a single power supply over a wide voltage range. LM393 datasheets: o http://www.onsemi.com/pub/collateral/lm393-d.pdf o http://downloads.solarbotics.com/pdf/lm393.pdf o http://www.fairchildsemi.com/ds/lm%2flm393.pdf LM 393 Characteristics: o Two independent voltage comparators o Single power supply, 2V 36V o Operate over a wide range of voltages, up to about 36 V o Low input offset voltages in the mv range. This means that the LM393 can compare voltages that are very close to each other. o 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. Chip as a Source: In Figure 3 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 4. Figure 3 - Chip Acting as a Source Figure 4 - Chip Acts Similar to Switch S1 3

Chip as a Sink: In Figure 5, when the pin connected to the LED goes LOW, the chip connects the load to ground, similar to the switch in Figure 6. Figure 5 - Chip Acting as a Sink Figure 6 - Chip Acts Similar to Switch S1 Pin Layout: 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 4

Electronics Technology and Robotics I Week 15 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.7 K Resistor o 1 1 K 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. 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 5

741 Pin Layout or Pinout Results: o Test 1: 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: 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 differ from the results of Test 2? 6

Electronics Technology and Robotics I Week 15 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 Pin Layout: o Always use the IC extractor when removing ICs. 7

Circuit 2 Wiring Diagram 1 8

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 2 of IC1A is set for non-inverting mode, what mode is IC1B in? 9

Electronics Technology and Robotics I Week 15 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 8. 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 10

Wiring Diagram 2 Circuit 4 (from Week 8) 11

o The Headlight Circuit: Wire the schematic Circuit 5 using the bright white LEDs. Circuit 5 Conclusions: o Sandwich will compare the voltages at Test Points 1 and 2 when following a black electrical tape line. Which side of the Sandwich will the motors 1 and 2 be connected to the have it follow the line? 12