Fill in the following worksheet-style pages. A colored pen or pencil works best. The procedure is:

Similar documents
10: AMPLIFIERS. Circuit Connections in the Laboratory. Op-Amp. I. Introduction

Laboratory Assignment 1 Sampling Phenomena

PHYSICS 107 LAB #9: AMPLIFIERS

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

Pre-Lab. Introduction

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

EE4902 C Lab 7

ECE4902 C Lab 7

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

Digital Applications of the Operational Amplifier

ECE3204 D2015 Lab 1. See suggested breadboard configuration on following page!

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

Advantages of Analog Representation. Varies continuously, like the property being measured. Represents continuous values. See Figure 12.

Physics 310 Lab 4 Transformers, Diodes, & Power Supplies

Operational Amplifiers

EE 3305 Lab I Revised July 18, 2003

OPERATIONAL AMPLIFIERS LAB

Operational Amplifiers

PHYS 536 The Golden Rules of Op Amps. Characteristics of an Ideal Op Amp

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

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

EK307 Passive Filters and Steady State Frequency Response

E-200D ALIGNMENT. See the end of the procedure for the location of the calibration points. EQUIPMENT REQUIRED

EE 210: CIRCUITS AND DEVICES

University of California at Berkeley Donald A. Glaser Physics 111A Instrumentation Laboratory

An active filter offers the following advantages over a passive filter:

EE431 Lab 1 Operational Amplifiers

BME 3512 Bioelectronics Laboratory Five - Operational Amplifiers

ME 461 Laboratory #3 Analog-to-Digital Conversion

Operational Amplifier Circuits

ECE4902 C Lab 5 MOSFET Common Source Amplifier with Active Load Bandwidth of MOSFET Common Source Amplifier: Resistive Load / Active Load

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

1) Consider the circuit shown in figure below. Compute the output waveform for an input of 5kHz

EK307 Active Filters and Steady State Frequency Response

The counterpart to a DAC is the ADC, which is generally a more complicated circuit. One of the most popular ADC circuit is the successive

PURPOSE: NOTE: Be sure to record ALL results in your laboratory notebook.

Physics 310 Lab 6 Op Amps

Sampling and Reconstruction

University of Pennsylvania Department of Electrical and Systems Engineering. ESE 206: Electrical Circuits and Systems II - Lab

BME 3512 Bioelectronics Laboratory Six - Active Filters

Project 4 Optical Communications Link

Electronics. RC Filter, DC Supply, and 555

Lecture 8: More on Operational Amplifiers (Op Amps)

Experiment A8 Electronics III Procedure

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

Lab 1: Non-Ideal Operational Amplifier and Op-Amp Circuits

DiMarzio Section Only: Prelab: 3 items in yellow. Reflection: Summary of what you learned, and answers to two questions in green.

Basic operational amplifier circuits In this lab exercise, we look at a variety of op-amp circuits. Note that this is a two-period lab.

EE 435 Switched Capacitor Amplifiers and Filters. Lab 7 Spring 2014 R 2 V OUT V IN. (a) (b)

9 Feedback and Control

BME/ISE 3512 Bioelectronics. Laboratory Five - Operational Amplifiers

Lab 1: Non-Ideal Operational Amplifier and Op-Amp Circuits

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

WESTREX RA-1712 PHOTOGRAPHIC SOUND RECORD ELECTRONICS

EE 421L Digital Electronics Laboratory. Laboratory Exercise #9 ADC and DAC

Project 1 Final System Design and Performance Report. Class D Amplifier

EE 233 Circuit Theory Lab 3: First-Order Filters

Lab 4: Analysis of the Stereo Amplifier

Butterworth Active Bandpass Filter using Sallen-Key Topology

Exercise 2: High-Pass Filters

Electronic Instrumentation ENGR-4300 Fall Project 4: Optical Communications Link

Oct 10 & 17 EGR 220: Engineering Circuit Theory Due Oct 17 & 24 Lab 4: Op Amp Circuits

EXPERIMENT 1: Characteristics of Passive and Active Filters

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2017 Lecture #5

Data Conversion and Lab Lab 3 Spring Analog to Digital Converter

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

EET 223 RF COMMUNICATIONS LABORATORY EXPERIMENTS

EE4902 C Lab 5 MOSFET Common Source Amplifier with Active Load Bandwidth of MOSFET Common Source Amplifier: Resistive Load / Active Load

cosω t Y AD 532 Analog Multiplier Board EE18.xx Fig. 1 Amplitude modulation of a sine wave message signal

Stereo Tone Controller

Lab: Operational Amplifiers

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

LABORATORY EXPERIMENT. Infrared Transmitter/Receiver

Operational Amplifiers 2 Active Filters ReadMeFirst

Lab 4 - Operational Amplifiers 1 Gain ReadMeFirst

VCC. Digital 16 Frequency Divider Digital-to-Analog Converter Butterworth Active Filter Sample-and-Hold Amplifier (part 2) Last Update: 03/19/14

Assist Lecturer: Marwa Maki. Active Filters

PHYSICS 330 LAB Operational Amplifier Frequency Response

INC 253 Digital and electronics laboratory I

ANALOG-TO-DIGITAL CONVERTERS

Physics 323. Experiment # 1 - Oscilloscope and Breadboard

Lab 6: Instrumentation Amplifier

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Spring 2007

Experiment A8 Electronics III Procedure

The Sampling Theorem:

Experiment No. 6. Audio Tone Control Amplifier

Precalculations Individual Portion Filter Lab: Building and Testing Electrical Filters

Group: Names: voltage calculated measured V out (w/o R 3 ) V out (w/ R 3 )

Integrators, differentiators, and simple filters

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

Low Pass Filter Introduction

ECE 4670 Spring 2014 Lab 1 Linear System Characteristics

ECEN 325 Lab 5: Operational Amplifiers Part III

Experiment 9 AC Circuits

MODELLING AN EQUATION

University of Pittsburgh

Lab E5: Filters and Complex Impedance

EECS 216 Winter 2008 Lab 2: FM Detector Part II: In-Lab & Post-Lab Assignment

ME 365 EXPERIMENT 7 SIGNAL CONDITIONING AND LOADING

ECE 2201 PRELAB 6 BJT COMMON EMITTER (CE) AMPLIFIER

Transcription:

14: ALIASING I. PRELAB FOR ALIASING LAB You might expect that to record a frequency of 4000 Hz you would have to sample at a rate of at least 4000 Hz. It turns out, however, that you actually have to sample at TWICE that rate (the Nyquist theorem) This is because you need to record a peak and a valley from each cycle. If you sampled at the same rate that the signal was oscillating, you would get a peak every time you sampled, and the output would be a constant voltage. When you sample at a rate that is less than twice the signal frequency, the output frequency is lower than it should be. This phenomenon, called aliasing or foldover, is best studied by trying it. Fill in the following worksheet-style pages. A colored pen or pencil works best. The procedure is: 1. Start at the left edge of the paper; at this point the signal is at its maximum value. 2. Draw a straight line to the right for the number of squares indicated in the left hand margin. 3. Drop straight down until your pen is BELOW OR EQUAL TO the signal. 4. Go right again for the appropriate number of squares. Each time you get to sample, move your pen to the highest corner which is below or equal to the signal. 5. Continue. ALWAYS STAY ON THE GRID. Never cut across squares. Trace the example to get a feel for it. Notice how the quality of reproduction decreases as the sampling rate decreases. In the last examples on the first workpage (page 2) the sampling frequency is more than half the signal frequency. Observe the consequences. This is aliasing. On the pages 3 and 4, the frequency of the signal stays the same, but we keep changing the sampling period. What is the apparent period (in divisions) of each signal after it is sampled? P108 Lab 14: Page 1

P108 Lab 14: Page 2

P108 Lab 14: Page 3

P108 Lab 14: Page 4

II. ALIASING (FOLDOVER) LAB A. Set Up Your ADC and DAC should be intact from last lab. Attach the scope and function generator. Make sure that everything still works. Set up the scope so that you can look at the original and final signals simultaneously. Put the final output of the DAC on CH2 so you can invert it. Set the generator to a 100 Hz sine signal and maximum amplitude without causing clipping at the output (recall that you need to use the DC offset on the generator so that the signal is always positive). Set the MODE knob to CHOP and the INTernal TRIGger to CH1. Adjust the position knobs and the red UNCALibrate knob on CH2 so that the two signals exactly overlap. Vary the frequency knob and watch the two signals move together. B. Limits of Digitization There are two characteristics of a digital system which limit it s accuracy: number of bits and rate of sampling. 1. Number of Bits You are using only four bits (16 possible voltages), yet the picture of the sine voltage after digitization is recognizable. Of course. the quality of the output deteriorates for smaller input signals because fewer bits are being used. Observe this by turning down the amplitude of the function generator. Adding bits is a good way to make the signal more accurate because each bit DOUBLES the overall accuracy. Increasing the number of bits from 4 to 16 would take 4 times as much memory, but would make the output 4096 times more detailed. With 4 bits, the dynamic range is (20 db)*log(2 4 ) 24 db; CD s use 16 bits (a theoretical dynamic range of 96 db). Set your function generator back to 100 Hz and maximum amplitude before proceeding. 2. Rate of Sampling The number of bits determines the Dynamic Range of a digital system. The Frequency Range is determined by the sampling rate, or number of numbers recorded per second. Unfortunately, in order to double the frequency range you must also double the sampling rate. Furthermore, as you saw in your prelab, you have to sample at TWICE the rate of the highest frequency you want to record. For audio signals this means you need to record a 16 bit numbers more than 40,000 times EVERY SECOND per channel. That means a 60 minute stereo recording requires a minimum of 5 billion bits of storage. Your ADC is currently hooked up to run at its fastest rate. Its effective sampling time is the amount of time it takes to make each conversion. Sampling rate problems are more easily observed with a slower rate. To do this connect a 100 pf capacitor from pin 4 (the clock input) to ground. Also, hook the output of your op amp to your headphones THROUGH A 2200 OHM RESISTOR. (This will probably P108 Lab 14: Page 5

require using a little breadboarding wire to take the signal to one of the banana plugs on the breadboard that is mounted to the table.) Vary the frequency as you listen to the digitized output. You should be able to hear the signal plus the high, whiny sampling noise. In a real reproduction system this would be filtered out. Switch to the 1 khz range. Notice that as you increase the frequency the output signal starts to lag the input. Switch to the 10 khz range. SLOWLY increase the frequency with the triggering on CH1. At some point you will hear the output frequency will top out and start falling EVEN THOUGH YOU KEEP INCREASING THE FREQUENCY OF THE INPUT. This is called aliasing." At what frequency f max does this occur? What is the PHASE relationship between input and output at this frequency? As you keep turning the frequency up, you come to a point where the output frequency drops to zero (the output is close to DC), and then starts increasing again. What frequency is this? Keep turning the frequency up until the output tops out and folds over again. How high is this compared to the f max? P108 Lab 14: Page 6

It is easier to see what s going on the digitized output if you look only at CH2 and trigger on CH2. Slowly increase the input frequency and watch the output frequency go up and down. Ask your instructor if you need assistance with this. Calculate the sampling time. To do this, set the frequency just above f max. The output will look something like this: sampling time Use the scope to measure the sampling time (the time interval from the beginning of one transition to the beginning of the next): Calculate the sampling frequency = 1/(sampling time). Compare this with the frequency f max. P108 Lab 14: Page 7

Now remove the 100 pf capacitor, thus increasing the clock rate. Measure the new sampling time. Calculate the new sampling rate. Predict the new f max. Now measure f max directly by listening to the DAC output. P108 Lab 14: Page 8

3. Problems with digital sound reproduction We have now heard two key problems with digital sound reproduction: sampling whine and aliasing. These can both be addressed by using filters. a. Output Filtering Reinsert the 100 pf capacitor between pin 4 (the clock input) of the ADC to ground. Place a 0.1 µf capacitor (call this value CF) between pins 6 and 2 of your DAC (this will effectively filter the DAC output by rolling off the gain of the inverting amplifier by 6dB/octave for frequencies above fc=1/(2p RF CF) = 1/(2p 2.5 k? 0.1 µf) 640 Hz. Listen to the output using the headphones. Most of the sampling noise should be gone. Look at the smoothed output on the scope. What happens as you increase the frequency to approach f max? What happens for input frequencies above f max? Problems remain even with output filtering: 1) it does not remove the effects of aliasing and 2) it distorts the output for frequencies between fc and fmax, where we probably want a flat response. We can fix problem 2 with a better filter, but problem 1 requires input filtering (before the ADC). P108 Lab 14: Page 9

b. Input filtering The only way to reduce the effects of foldover is to filter the signals going into the input of the ADC. What considerations should go into the design of this filter? We do not want to distort the input signal for frequencies below fmax and we want a very fast rolloff above fmax. This calls for a high-order low pass filter. We can verify that an input filter will improve aliasing by putting the signal through a second-order low pass filter before the input of the ADC. This filter has it's cutoff frequency (-3 db point) at 4 khz and rolls off approximately -12 db at 8 khz. The low frequency gain is close to unity because of the voltage divider at the output. R1=10 kω RF=5.6 kω - input (from generator) R2=3.9 kω 741 R3=3.9 kω + C2= C3= 0.01 µ F 0.01 µ F 5.6 kω 10 kω output (to ADC input) Try it out: Is there a noticeable reduction in aliasing? P108 Lab 14: Page 10