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

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

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

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Hands-On Introduction to EE Lab Skills Laboratory No. 2 BJT, Op Amps IAP 2008

Physics 310 Lab 6 Op Amps

ECE Lab #4 OpAmp Circuits with Negative Feedback and Positive Feedback

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

EE 3305 Lab I Revised July 18, 2003

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

Electronic PRINCIPLES

Fig 1: The symbol for a comparator

EE 210 Lab Exercise #5: OP-AMPS I

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

EE 482 Electronics II

Electronics I. laboratory measurement guide

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

Chapter 13: Comparators

EE 3101 ELECTRONICS I LABORATORY EXPERIMENT 9 LAB MANUAL APPLICATIONS OF IC BUILDING BLOCKS

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

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013

USER MANUAL FOR THE LM2901 QUAD VOLTAGE COMPARATOR FUNCTIONAL MODULE

Lab Exercise # 9 Operational Amplifier Circuits

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

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

EE 230 Lab Lab 9. Prior to Lab

ELR 4202C Project: Finger Pulse Display Module

Special-Purpose Operational Amplifier Circuits

Lab: Operational Amplifiers

Operational Amplifiers

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

Chapter 3 THE DIFFERENTIATOR AND INTEGRATOR Name: Date

BME/ISE 3512 Bioelectronics. Laboratory Five - Operational Amplifiers

Function Generator Using Op Amp Ic 741 Theory

When you have completed this exercise, you will be able to relate the gain and bandwidth of an op amp

University of Pittsburgh

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

Chapter 9: Operational Amplifiers

Operational Amplifiers

BME 3512 Bioelectronics Laboratory Five - Operational Amplifiers

Laboratory Final Design Project. PWM DC Motor Speed Control

Exercise 2: Temperature Measurement

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

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

Lab 6: Building a Function Generator

Lab #6: Op Amps, Part 1

Spectrum analyzer for frequency bands of 8-12, and MHz

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

Experiment #6: Biasing an NPN BJT Introduction to CE, CC, and CB Amplifiers

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

UNIVERSITY OF UTAH ELECTRICAL ENGINEERING DEPARTMENT

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

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

University of Pittsburgh

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

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

A 3-STAGE 5W AUDIO AMPLIFIER

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

Lecture #3 Basic Op-Amp Circuits

Common-Source Amplifiers

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

OPERATIONAL AMPLIFIERS (OP-AMPS) II

PAiA 4780 Twelve Stage Analog Sequencer Design Analysis Originally published 1974

Sensor Interfacing and Operational Amplifiers Lab 3

University of Utah Electrical Engineering Department ECE 2100 Experiment No. 2 Linear Operational Amplifier Circuits II

ES330 Laboratory Experiment No. 9 Bipolar Differential Amplifier [Reference: Sedra/Smith (Chapter 9; Section 9.2; pp )]

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

Analog Circuits Part 3 Operational Amplifiers

DC->DC Power Converters

Operational Amplifier BME 360 Lecture Notes Ying Sun

GUJARAT TECHNOLOGICAL UNIVERSITY. INSTRUMENTATION & CONTROL ENGINEERING (17) ANALOG SIGNAL PROCESSING SUBJECT CODE: B.E.

multiplier input Env. Det. LPF Y (Vertical) VCO X (Horizontal)

The Operational Amplifier This lab is adapted from the Kwantlen Lab Manual

Function Generator Op-amp Summing Circuits Pulse Width Modulation LM311 Comparator

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

OCR Electronics for A2 MOSFETs Variable resistors

Chapter 16: Oscillators

EE43 43/100 Fall Final Project: 1: Audio Amplifier, Part Part II II. Part 2: Audio Amplifier. Lab Guide

Laboratory Project 1: Design of a Myogram Circuit

Lab 2: Common Base Common Collector Design Exercise

Experiment EB2: IC Multivibrator Circuits

Experiment 9 : Pulse Width Modulation

EE431 Lab 1 Operational Amplifiers

Lecture #2 Operational Amplifiers

Federal Urdu University of Arts, Science & Technology Islamabad Pakistan THIRD SEMESTER ELECTRONICS - II BASIC ELECTRICAL & ELECTRONICS LAB

Lab 8: SWITCHED CAPACITOR CIRCUITS

Chapter 9: Operational Amplifiers

Schmitt trigger. V I is converted from a sine wave into a square wave. V O switches between +V SAT SAT and is in phase with V I.

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

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

). The THRESHOLD works in exactly the opposite way; whenever the THRESHOLD input is above 2/3V CC

EE 221 L CIRCUIT II. by Ming Zhu

ELEC207 LINEAR INTEGRATED CIRCUITS

+15 V 10k. !15 V Op amp as a simple comparator.

P a g e 1. Introduction

EET 438a Automatic Control Systems Technology Laboratory 1 Analog Sensor Signal Conditioning

A Simplified Test Set for Op Amp Characterization

Common-source Amplifiers

EE 233 Circuit Theory Lab 3: First-Order Filters

Basic Operational Amplifier Circuits

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

Transcription:

Explore More! Points awarded: Module 9C: The Voltage Comparator (Application: PWM Control via a Reference Voltage) Name: Net ID: Laboratory Outline A voltage comparator considers two voltage waveforms, A and B, and outputs a binary (two-valued) voltage waveform indicating which is larger (a high voltage for VV oooooo states that A is larger and a low voltage that B is larger, see Figure 1). In this module, we will study the application of the voltage comparator for PWM control via a reference voltage. Inversely-proportional means that as one signal gets larger, the other gets proportionally smaller. In the ECE110 laboratory exercise (Lab 8), you will have learned how to control the duty cycle of a PWM signal using a variable resistor in the feedback portion of an oscillator. This method is somewhat restrictive. Many sensors provide only access to the voltage output of a voltage divider circuit or, like an infrared receiver, a transistor-based voltage proportional (or inverselyproportional) to the received infrared intensity. These types of active sensors will require a different electronic mechanism to produce a sensor-controlled PWM signal than that used in Lab 8. A basic method of implementing PWM control via a reference voltage is made possible by comparing a triangular waveform to a slowing-varying reference voltage from the sensor. Figure 1: A block diagram demonstrating how a triangular waveform might be transformed into a PWM signal controlled by a reference voltage. When the reference voltage, VV rrrrrr, rises, the duty cycle of the PWM signal decreases. Recall: Relaxation oscillator circuit from Lab 5. Prerequisites Laboratory Exercise #5, the construction of a simple oscillator circuit. Explore More! Module: The Voltage-Follower Buffer. (recommended prerequisite) Laboratory Exercise #8, the construction of an oscillator with a selectable duty cycle. Parts Needed The completed oscillator circuit (Lab#5) (1) LM358 Op Amps and (1) LM311 Voltage Comparator (2 per IC) (optionally, (2) LM358 Operational Amplifier) Trimpot 10 kkω with knob (may be substituted with another trimpot value is non-critical) Recall: A method to use (variable) resistance to control PWM duty cycle from Lab 8.

At Home: Construction Create a triangular waveform generator by following the procedures for the Explore More! Module: The Voltage- Follower Buffer. That module may be submitted to your TA for separate module credit. When finished with that module, continue with the procedure here. Use the datasheet to add the schematic symbols for power and ground to the pinout below of the LM358 or LM311 used in the comparator circuit. We will use a 5- or 6-volt supply and ground the negative supply pin. What is the range of acceptable supply voltages? The simple oscillator circuit waveforms from Lab 5. A voltage follower used for signal conditioning from the Explore More! Module: The Voltage-Follower Buffer. On the physical pinout diagram above, add the circuit-schematic symbols of the components used to construct the circuit buffer of Figure 2.

Construct the voltage comparator circuit as shown in the figure below. The trimpot (10 kkω) is not part of the voltage comparator, but is rather used to provide a controllable reference voltage. It may be substituted with another trimpot. (a) (b) Figure 2: Configuration of a comparator test circuit based on (a) the LM311 comparator or (b) the LM358 op amp. For the LM311-based circuit, the output pin is an open collector that should be biased towards VV CCCC using a so-called pullup resistor (shown in the figure to be 10 kkω). While the LM358 is readily available from your kit, the LM311 comparator chip offers faster response time and a larger output voltage range, the latter of which may be beneficial in this application. NOTE: If using the LM358, you may need to buffer the output using two consecutive Schmitt-trigger inverters (like in Lab #8). Construct the PWM circuit as shown in the figure below, where the node voltage VV 4 will control the duty cycle of VV 5. Figure 3: The final PWM circuit controlled by a reference voltage (assuming the LM311 was used).

In the Laboratory: Analysis With the circuit completed as in Figure 3, adjust the voltage output of the potentiometer-based voltage divider while simultaneously monitoring the three waveforms VV 3, VV 4, and VV 5 on the oscilloscope. Describe what you see as the potentiometer (trimpot) is adjusted. Be sure to note the range of VV 4 that results in changes to the duty cycle of VV 5. Think how VV 3 appears different that the representation of Figure 4. Figure 4: Comparison of the inputs and output of a voltage comparator circuit used for PWM control. Produce a graph including all three plots for a duty-cycle near 30% and attach it to this report. Back at Home: Drawing Conclusions You should have noticed that this implementation of the triangular waveform is not ideal. Our triangular waveform is a scaled and offset version of that plotted in Figure 4. The triangular waveform of Figure 4 goes from 0 V to nearly the full supply voltage of 5 V.

Discuss why the VV 3 waveform of Figure 4 would be a better triangular waveform than ours when the reference voltage varies from 0 to 5 V. Learning Objectives To properly bias a voltage comparator based on either an LM358 Op Amp or a LM311 Voltage Comparator chip. To create a PWM waveform that is controlled by a reference voltage using the voltage comparator circuit. To gain experience in using the oscilloscope to assess a circuit while making and recording time-varying voltage waveforms. Learn More! In Explore More!: The Amplifier, we will learn to convert the triangular waveform of the relaxation oscillator into a full-range waveform similar to that in Figure 4. In Explore More!: PWM Control via an Active Sensor, we will amend this method using the circuital tools learned in other lab modules to make the sensor-controlled PWM signal more robust. Note: Robust is a term often used very loosely in engineering. It most often refers to a system that is insensitive to deviations in parameters or outside forces.