Laboratory 5: Interfacing Circuits to Computers: Analog-to-Digital Conversion, Digital Filters, and Digital-to-Analog Conversion

Size: px
Start display at page:

Download "Laboratory 5: Interfacing Circuits to Computers: Analog-to-Digital Conversion, Digital Filters, and Digital-to-Analog Conversion"

Transcription

1 ES 3: Introduction to Electrical Systems Laboratory 5: Interfacing Circuits to Computers: Analog-to-Digital Conversion, Digital Filters, and Digital-to-Analog Conversion I. GOALS: In this laboratory you will learn about the basics of incorporating computers into electrical systems. To demonstrate these ideas, you will build an automated speaker tester that evaluates the frequency response of the speaker you have built for ES3. If you have not yet completed your speaker, you may use a commercial speaker. Most loud speakers produce maximum audio output (i.e., sound level) within a limited range of frequencies. For frequencies that are much higher and much lower than this range, the speaker produces insufficient sound intensity. We often perceive this uneven frequency response as tinny or muffled sound. It is possible, however, to use a computer to compensate for poor frequency response by using digital filters. In the second part of this lab you will design a digital filter based on the measured frequency response of your speaker. This filter will then be applied to a music signal to improve the audio performance of your speaker. II. PRELAB QUESTIONS: The waveform shown in Figure 1 is sampled at a rate of f s =10 khz=10,000 samples per second. The voltage samples are converted to digital data using an analog-to-digital converter having 12-bit resolution; that is, each sample is represented as a 12-bit binary number. For this particular A/D, the number corresponds to 0 volts and corresponds to 5 volts. (In this system, only positive voltages can be converted to digital data). The waveform is stored in a computer s memory starting at t=0. What binary numbers do the first five memory locations contain? Repeat the question if f s = 5 khz and f s = 2.5 khz. What can you conclude about the minimum sampling rate needed to accurately record this signal? (Hint: what is the frequency of the triangle signal shown in Figure 1?) V(t) volts 5v t (ms) Figure 1. Prelab question voltage signal ES 3 Laboratory #5 Page 1 of 17

2 III. BACKGROUND INFORMATION In past ES3 labs you have investigated only continuous, analog signals. Over the past decade, however, much of the information from analog signals is routinely converted to digital data and stored on hard drives, non-volatile memory, and optical media (CDs). A simple block diagram of the analog-to-digital conversion process is shown in Fig. 2. pressure waves in the air v(t) v(t) amplifier microphone t t Sample and Hold (44,100 per second) v(t) Analog-to-digital converter (12 bit resolution) Memory (stored as an array) Figure 2. A block diagram of a simple analog-to-digital conversion process In this example, sound waves produced by a violin are converted into an analog electrical voltage by a microphone (see Lab #3). The voltage signal produced by the microphone is amplified in preparation for conversion to digital data. A critical component of the conversion process is the sampling of analog data. Audio data, for example, is typically sampled at least 44,100 times per second (44.1 khz) in order to ensure that the highest audio frequencies (~20 khz) are accurately captured. At this point in Fig. 2, the continuous analog signal is now a discrete set of voltages as shown in the blue inset of Fig. 2 (lower right). Each of these voltages is now converted to a binary number. In the example, a 12 bit conversion is shown. This allows one to divide the analog voltage range into 2 12 (or 4096) small bins. More precise representations of the analog data can be digitized using a larger number of bits. The binary number is represented inside the system by 12 separate voltages. Each of the 12 voltages is either high or low, and each voltage represents a single bit of data. This analog-todigital converter (A/D) produces 44,100 words per second. These 12-bit words are stored in memory. There are several different modes of storing data in memory. DRAM stores data in charged and uncharged capacitors (representing 1 and 0, respectively). Hard disks store the bits of data as magnetized regions on the surface of the disk, and CDs store data as small divots or bumps on the surface of the disk. ES 3 Laboratory #5 Page 2 of 17 t

3 Once analog data is stored in digital format it may be manipulated by computer programs. The study of altering digital data is called digital signal processing. Applications include reducing noise, correcting errors in the data stream, and improving the quality of the original signal (digital filtering). Later in this lab experiment, you will use digital signal processing to improve the frequency response of your speaker. When the digital data needs to be used by humans in the real world, the individual bits of data need to be converted back into an analog signal. This process is called digital-toanalog conversion (D/A). A simple D/A is shown in Fig. 3. Computer memory (an array) etc. 44,100 binary numbers per second from memory Digital-to-Analog Converter (binary (binary number voltage) Low-Pass Filter Filter f c f = c 20kHz 20kHz amp v(t) v(t) t t Figure 3. A block diagram of a simple digital-to-analog converter Beginning with digital data that is stored in memory, the D/A system supplies data to a module that converts digital data into analog voltages. It is critical that the number of data points per second exactly matches the original sampled data rate. The output of the analog conversion process is a step-like voltage waveform as shown in the lower-left inset of Fig. 3. Typically, a low-pass filter is used to remove the rapidly changing voltage steps and provide a smooth analog signal (Fig. 3, lower-right inset). The cut-off frequency of this filter is typically one half of the sampling frequency (in this example, f c = 20 khz, the highest audible frequency). The last step is to amplify the low-level analog signal such that the appropriate actuator is driven. At this point, it is necessary to pay close attention to the Thevenin equivalent resistance of the amplifier and the equivalent impedance of the actuator, Z eq, as discussed in ES3. In this section, we have used a digital audio recorder as an example. This type of digital conversion, however, is commonly used in many other applications including digital photography, radar systems, automotive control systems, voic systems, and others too numerous to list. It is necessary to specify a sufficiently high sampling rate to accurately capture the signal. Rapidly changing signals require A/D converters that operate at very high rates (for example, the digital oscilloscope used in this lab as well ES 3 Laboratory #5 Page 3 of 17

4 as radar systems). Also, very precise voltage measurements require an A/D with a larger number of bits. One example is the precision offered by 24-bit audio. In this lab, however, we will use the A/D and D/A that nearly every PC has: the sound card. Sound cards routinely sample analog signals at 44.1 khz and are usually capable of 12- to 16- bit precision. Using a sound card or other data acquisition device requires software that allows one to control the sampling rate, the storage of the data, and the playback rate. In this laboratory you will control the data acquisition with MATLAB, a commonly used computation tool in science and engineering. For a brief tutorial on MATLAB, please refer to Appix A of this lab. IV. EXPERIMENTS: In this lab, you are asked to build a system to evaluate the frequency response of your home-built speaker. The block diagram of the experiment is shown in Fig 4. Step 1: Create tones using MATLAB The computer creates a sequence of frequencies (f) using the command tone = sin(2*pi*f*t) in MATLAB. The variable t is actually an array containing discrete values of time: t(1) = 0, t(2) = 1/44100, t(3) = 2/44100,, t(44100) = 1 second. The sin function operates on every element of t to create a new array called tone that contains a sampled sine wave with frequency f. In this example, the sampling rate is rate=44100 samples per second. amp mic Figure 4. Block diagram of the audio frequency response test system ES 3 Laboratory #5 Page 4 of 17

5 Step 2: Convert the numerical tone into an analog voltage Once the desired data representing a sine function has been created, the entire array is sent to the digital-to-analog converter by the MATLAB command soundsc(tone, rate) The variable rate tells the D/A system in the soundcard how many samples per second should be used during playback of the data that are stored in the array called tone. Step 3: Amplify the low-level signal and create sound waves The low-level signal that is output by the sound card is not sufficient to drive a loud speaker. Therefore, the sound card output must be connected to an audio power amplifier. Using a breadboard and your expertise from Lab #4, construct an audio amplifier using the LM386 integrated circuit. See Appix B for instructions. Use a miniature stereo phone jack (supplied by the TA) to connect the output of the sound card to the input of your amplifier. Don t forget to notice which of the two wires is the ground at the output of the sound card! Also, connect the output of the amplifier to your speaker. Please refer to Figure B1 for assistance. Step 4: Recording the sound produced by the speaker Connect a microphone to the microphone input of the sound card on the lab computer. Place the microphone close to your speaker such that the sound produced by the speaker can be recorded. The microphone signal will be amplified by the sound card and then converted into digital data (also at a rate of samples per second). Step 5: Install the software Download the MATLAB m-file called es3.m from the ES3 website. This file should be placed on your Windows Desktop. Start MATLAB by following the instructions in Appix A. Set the Current Directory to the Windows Desktop. This allows MATLAB to find the m-file called es3.m Step 6: Run the audio frequency response test Position the microphone near the speaker. Then, at the MATLAB Command prompt, type: >> es3 You will probably need to adjust the volume level using Windows so that the output is neither distorted nor too quiet (double-click the speaker icon in the lower-right corner of the screen). Explanation of the Test Methods The m-file tests the frequency response of your audio system using two different methods. The first method generates a series of tones with ascing frequency. Each ES 3 Laboratory #5 Page 5 of 17

6 tone is recorded by the microphone. The intensity of the recorded tone is determined and plotted. The plot of sound intensity vs. frequency graphically displays the frequency response of your audio system (i.e., the amplifier, the speaker, and the microphone). The second method uses noise to determine the frequency response of the audio system. An important property of white noise is that all frequencies are simultaneously present with equal intensities. The computer produces white noise using a random number generator. This array of random numbers is sent to the sound card and the audio system produces a hissing sound (noise). Because the audio system is not perfect, however, some of the frequencies present in the original white noise signal are not produced at full intensity by the audio system. The microphone records the noise produced by the speaker. The Fourier transform of the digital data from the recorded noise signal is used to extract the intensity of each frequency in the recorded noise. The frequency response of the system is then plotted using this extracted data. This method is much quicker than using individual tones because only a single noise burst from the computer is needed. It is, however, more susceptible to interference from external noise sources, such as the noise generated by the lab s air conditioning. Perform the frequency response test on your speaker using the m-file called es3.m Cut and paste the plot of the audio frequency response of your speaker into a document and save the document for inclusion in your lab report. (In the Figure window, select Edit>>Copy Figure then paste the figure into a Word document.) In your lab report, explain any discrepancies between the frequency response recorded by the tone method and the frequency response determined by the noise method. What range of frequencies is produced most strongly by your speaker? What ranges of frequencies are not adequately produced by your speaker? Digital Filters Most speakers will produce adequate sound levels over an intermediate range of frequencies. This range is called the bandwidth of the system. Very low frequencies and very high frequencies will not be correctly reproduced. A typical frequency response of a small, cheap speaker (from in a laptop computer) is shown in Fig. 5. Notice that frequencies between 10 3 and 4x10 3 Hz have a high intensity (blue, unfiltered curve). This uneven response makes the speaker sound tinny or brittle. ES 3 Laboratory #5 Page 6 of 17

7 10 2 Digital Filtering of Noise unfiltered filtered 10 1 Signal Intensity (arb.) Frequency (Hz) Figure 5. Unfiltered and filtered frequency response from a laptop s audio speaker Filtering is a method of suppressing the frequencies of a signal that are too intense. Filtering can also be used to enhance or amplify the specific frequencies that are too weak. In Lab #4 you briefly investigated how capacitors affect the frequency response of an amplifier. This is referred to as analog filtering because the filtering is performed on continuous analog signals. Digital filtering is a method that modifies the digital samples of analog signals using computational methods. The lower curve in Fig. 5 (red) shows the frequency response of the same audio system after a digital filter was used to reduce the response of the audio signal in the vicinity of 2 khz. Notice that the response curve is much flatter. This means that all audio frequencies are produced with more or less the same intensity. For the filter demonstrated In Fig. 5, each element in the array of the filtered output signal, y(n), was calculated by summing three of the unfiltered input samples x(n), x(n-1) and x(n-2) along with two previously-computed filtered samples, y(n-1) and y(n-2). The coefficients of each sample determine the filtered frequency, the range of filtered frequencies (bandwidth) and the amount of attenuation at the center frequency. The exact equation of this particular digital filter is y(n) = *x(n) + ( )*x(n-1) *x(n-2) - ( )*y(n-1) *y(n-2) where n is the index of the arrays containing the unfiltered sample, x(n), and the filtered sample, y(n). The frequency response of this digital filter is shown in Fig. 6. Notice that the signal is greatly attenuated around a normalized frequency of 0.09, which corresponds to f = 0.09*(44.1kHz / 2) = 2000 Hz. (The sampling rate is 44.1 khz). This midrange attenuation is called a notch filter and it helps to flatten the frequency response as demonstrated in Fig. 5. ES 3 Laboratory #5 Page 7 of 17

8 Magnitude Response Estimate Magnitude (db) Normalized Frequency ( π rad/sample) Figure 6. The frequency response of a digital notch filter Download the m-file called es3notch.m from the ES3 website to your PC s desktop. Open the MATLAB editor by double-clicking on the file in the Current Directory window in the upper-left of the MATLAB screen. This file let s you design a simple digital filter by selecting the central frequencies to attenuate from a digital signal. It then plays the filtered and the unfiltered noise signal and calculates the frequency response of the audio system both with and without digital filtering Modify the notch frequency (notchfreq), the range of frequencies (bandwidth), and attenuation (attenuation) such that this digital filter flattens the frequency response of your audio system. Remember to save the m-file after you have made modifications! Once you are satisfied with the notch filter design, record the values for the notchfreq, bandwidth, and attenuation that give your audio system the flattest frequency response. Copy and paste the optimal frequency response plot from MATLAB into your lab report. In your lab report, briefly describe the procedure and the audible effect that the digital filter has on the noise signal. Final Test: Playback of a sound file In this final segment of this lab, you will test your complete audio system using a short segment of a sound file. Download the m-file called es3music.m from the ES3 website to your computer s desktop. Also download the file containing the audio clip called audiosample.mat to the desktop. ES 3 Laboratory #5 Page 8 of 17

9 At this point, you should open es3music.m in MATLAB s editor and modify the filter parameters in this m-file to exactly match the best filter parameters that you found in the previous section. Save the modified m-file. Run the m-file by typing >>es3music at the command prompt. MATLAB will load the data from the sound clip, apply the digital filter to the data contained in the sound clip, and then play the unfiltered clip, followed by the filtered version and finally the unfiltered version again. You may need to increase the volume during play back of the filtered sound clip since some of the original sound has been attenuated. Hopefully, you have designed a digital filter that significantly improves the frequency response of your audio system so that the digitally filtered music sounds better ( but not great, this is just a single home-made speaker after all!). Copy and paste the modified m-file into your lab report and comment on the sound quality with and without filtering. V. LAB REPORT: All required data, questions, and written comments can be found within the framed text blocks. Tabulate or plot all of the requested data and answer the questions in a manner that flows naturally. Complete Lab Report Guidelines are listed on the course website. ES 3 Laboratory #5 Page 9 of 17

10 VI. SUPPLEMENTARY INFORMATION: Appix A: MATLAB Tutorial Starting MATLAB Login to an ECE Windows PC using your ECE ID and password. Then, from the Start Menu select MATLAB R2007a. It takes several seconds for MATLAB to initialized, so please be patient. Setting a Working Directory Unless otherwise specified, all of your work will be saved in the default directory shown in the Current Directory box of the main MATLAB window. To change this directory, click on the button to the right of the Current Directory window that contains the ellipsis icon: [ ]. For this lab, it is easiest to run everything from the Windows Desktop. Select the Desktop from the list of available directories. Entering Commands (direct entry mode) You may enter MATLAB commands by typing at the >> prompt found in the Command Window. Try these exercises to get a feel for MATLAB: Type the following at the >> prompt. Finish each command by hitting Enter : >> x=3 >> y=6 >> z=y/x In this example you are storing the numerical value of 3 in the variable x, then 6 is stored in y, and finally you are assigning the variable z the value found by dividing y by x. In circuits and systems, it is common to use complex numbers. MATLAB is great for evaluating these expressions: >> clear >> a = 3 + j*3 >> b = 5 j*4 >> c = a + b >> d = (a+b)/(a-b) MATLAB recognizes both i and j as the imaginary number (-1) 1/2. You may determine the real and imaginary parts of a variable, as well as the magnitude and phase using >> real(a) >> imag(a) >> abs(a) %this is the magnitude of a >> phase(a) %the result is in radians ES 3 Laboratory #5 Page 10 of 17

11 Arrays and matrices of data can also be stored in MATLAB. For an array of numbers (also called a vector), a single variable name is used and each number is stored in a separately indexed variable. >> x = [ ] >> k=4 >> x(k) % MATLAB displays the value stored in the 4th position of x: 2 Another useful function allows the data in an array to be plotted M-files >> plot(x) Entering data at the command line is fine for simple calculations, but MATLAB is much more than a calculator. Large collections of commands can be written in an m-file and then the entire m-file can be replayed from the command window To create a new m-file, choose File>>New,..>>M-File. This starts the m-file editor. Commands can be typed into the editor and saved (save as filename.m). Then all of the commands saved in filename.m are replayed by typing filename on the command line. Placing a semicolon at the of a line will suppress the display of the results to the screen during execution: a=2; will set the variable a equal to two but will not show the result on the screen. The true power of this technique is tapped when control structures are included in the m- file. MATLAB has a complete set of control structures, just like other programming languages. These include for loops and if else structures. A complete list of control structures can be found in the MATLAB Help section. MATLAB Commands using the Soundcard A special set of MATLAB commands have been written so that users can access the functions of the PC s soundcard. To use the soundcard as an analog-to-digital converter and store the sampled voltage waveforms in memory, the following MATLAB code is used: rate=44100; %Hz, Sampling rate of the analog-to-digital % converter (soundcard) recordtime = 1; %in sec, Length of time for recording data bits=16; %Number of bits of data stored per sample mono=1; %1=mono 2=stereo recorder = audiorecorder(rate,bits,mono); recordblocking(recorder,recordtime); audio = getaudiodata(recorder); This segment of MATLAB code specifies the sampling rate (44.1kHz), the length of time that voltages should be converted (1 sec), the resolution of the digital data (16 bits) and ES 3 Laboratory #5 Page 11 of 17

12 whether the analog input data is one voltage (mono) or two simultaneous voltages (stereo). The resulting digital data is stored in an array variable called audio. This variable contains 44,100 individual numbers, each number representing one in the sequence of samples taken during the one-second period of analog-to-digital conversions. To view a graph of the sampled data, simply type plot(audio). Digital-to-analog conversion from MATLAB through the soundcard uses these two commands: rate = 44100; soundsc(audio,rate) These two commands s the numerical data stored in the array audio to the digitalto-analog converter. Data is sent to the D/A at rate samples per second (44,100 samples/sec). The command soundsc performs one other useful function: the data contained in audio is automatically scaled such that the maximum voltage range of the D/A converter is not exceeded. If you do not want the data to be scaled, then use the command sound(audio,rate) Fast Fourier Transform Fourier showed that any well-behaved periodic signal can be decomposed into a sum of sinusoids. MATLAB can extract these sinusoids from an arbitrary waveform stored in an array (vector) using the Fast Fourier Transform (FFT) function. The following lines of code determine the amplitudes of the frequencies present in a waveform stored in the array called audio. audiof=fft(audio,2048); %find a 2048 point FFT of the vector audio audiomag = abs(audiof); %determine the magnitude of the FFT fr=rate*[0:1023]/2048; %determine the frequency scaling for the plot plot(fr, audiomag) %plots the frequency spectrum of the signal ES 3 Laboratory #5 Page 12 of 17

13 Appix B: Building an Audio Amplifier using the LM386 Chip The circuit schematic for the LM386 audio amplifier is shown in Figure B1. The input to the amplifier comes from a miniature phone jack (left side). This phone jack should be connected to the output of the PC soundcard. (This is usually marked by a headphone icon). You may adjust the output level of the sound card by double-clicking on the speaker icon in the lower-right corner of the Windows icon tray. 9 V LM uf C C Ω 0.047uF Spkr 16 Ω (ground) Figure B1. The audio amplifier circuit ES 3 Laboratory #5 Page 13 of 17

14 Appix C: MATLAB m-files used in this laboratory es3.m %Audio Frequency Response Tester %This program requires a PC with a soundcard and a microphone. %An audio system should be connected to the output of the soundcard. %The MATLAB m-file will play user-specified tones through the soundcard and %the attached audio system. %Nearly simultaneously, the program records these tones using the microphone. %The amplitude of the recorded tone is plotted as a function of frequency. %After the program pauses, Matlab generates white noise and outputs this %noise to the soundcard. The noise is simultaneously recorded. The %Fourier transform of the noise is normalized to match the amplitudes of %the tone signals and plotted as the frequency response of the audio system. clear rate=44100; %Hz, Sampling rate of the analog-to-digital converter (soundcard) duration = 1; %sec, Length of time for each test tone bits=16; % Number of bits of data stored per sample mono=1; % 1=mono 2=stereo recordtime=duration; %Total recording time in seconds (same as the duration of the tone) t=[0:1/rate:(duration-(1/rate))]; %set up a time array [0 1/rate 2/rate... ] in seconds %All test tones are stored in the vector f; the user may modify these frequencies: tw = 2^(7/12); %the frequency interval of a perfect fifth f= [55 55*tw *tw *tw *tw *tw *tw *tw *tw 14080] figure for n=1:length(f) %create an array containing a sine with the frequency f(n) tone = sin(2*pi*f(n)*t); %play the tone at frequency f(n)through the digital-to-analog converter %(i.e., the soundcard output) soundsc(tone,rate) %simultaneously record the tone using the microphone using the %analog-to-digital converter (soundcard input) recorder = audiorecorder(rate,bits,mono); recordblocking(recorder,recordtime); audio = getaudiodata(recorder); pause(1.2*duration) %find the amplitude of the recorded sound by taking the Fourier %transform and select the maximum value (note: this method can %mistrack if high amplitude noise or interfering frequencies are present!) peak(n)= max(abs(fft(audio, 2048))); %display the test frequency and the resulting amplitude of the recorded %signal for each tone: f(n) peak(n) %create a log-log plot of the frequency response of the audio system loglog(f(1:n), peak, '-dr') xlabel('test Frequency (Hz)') ylabel('measured Sound Level (arb.)') title('frequency Response of an Audio System') xlim([ ]) hold on %create the final plot of the frequency response hold off figure loglog(f(1:n), peak, '-dr') xlabel('test Frequency (Hz)') ylabel('measured Sound Level (arb.)') title('frequency Response of an Audio System') xlim([ ]) pause(5) %wait 5 seconds before performing the white noise test % %The MATLAB code below produces 'white' noise. White noise contains ALL %frequencies simultaneously and each frequeny is present in an equal amount. %The noise is recorded and the frequency response is ES 3 Laboratory #5 Page 14 of 17

15 %deduced from the Fourier transform of the recorded noise. rate=44100; %Hz the sampling rate for playback and recording duration = 5; %sec the duration of the white noise time=[0:1/rate:duration]; %set up a time array [0 1/rate 2/rate... duration] in seconds %make white noise: noise=0.5*random('normal',0,1,1,length(time)); soundsc(noise,rate) %record the white noise during playback bits=16; %number of bits per sample mono=1; %1=mono 2=stereo recordtime=duration; %total recording time in seconds recorder = audiorecorder(rate, bits, mono); recordblocking(recorder,recordtime); audio = getaudiodata(recorder); %find the frequency spectrum of the recorded audio using fast Fourier transform: audiof=fft(audio,2048); audiomag = abs(audiof); fr=rate*[0:1023]/2048; %sets up the correct frequency scaling for the plot! %average together data points to help smooth the freq resp curve freqresp = audiomag; smooth=5; for n=1:smooth bode(n)=freqresp(n); %skip the first 'smooth' number of points for n=smooth:length(freqresp)-smooth bode(n)=0; for m=1:smooth bode(n)=bode(n)+(1/smooth)*freqresp(n+m); %plot the noise-based frequency response on the same plot as the tone-based %measurement by turning the 'hold' function ON. hold on %make a plot of the audio system's frequency response based on the %measurement of noise loglog(fr(smooth:1024), bode(smooth:1024)*max(peak)/max(bode(smooth:1024))) %label the two plots with a leg leg('tone method', 'noise method') es3notch.m clear rate=44100; %Hz, the sampling rate for playback and recording %create the parameters needed for a notch filter notchfreq = 2000 %in Hertz, the center of the frequencies to be removed wo = notchfreq/(rate/2); %Don't mess with this! It tells the filter design routine the sampling frequency. bandwidth = 2*wo; %The bandwidth of the notch filter. bw = bandwidth*(rate/2) attenuate = -6 %in db, the amount of signal removed at the (notchfreq +/- bandwidth) [b,a] = iirnotch(wo, bandwidth, attenuate); %fvtool(b,a); %un-comment this to see the filter's freq. resp %The code below produces nearly 'white' noise %The noise is recorded and the freq response is %deduced from the Fourier transform of the recorded noise duration = 5; %sec the duration of the white noise time=[0:1/rate:duration]; %set up a time array [0 1/rate 2/rate... duration] in seconds %make white noise: noise=0.1*random('normal',0,1,1,length(time)); %the following loop is executed twice %the first time, the noise is played and recorded %after the first time, the noise is filtered %during the second and final loop the filtered noise is played and recorded %finally the two noise signals are plotted so that they may be compared for c=1:2 soundsc(noise,rate) %record the white noise during playback bits=16; %number of bits per sample mono=1; %1=mono 2=stereo recordtime=duration; %total recording time in seconds ES 3 Laboratory #5 Page 15 of 17

16 recorder = audiorecorder(rate, bits, mono); recordblocking(recorder,recordtime); audio = getaudiodata(recorder); %find the frequency spectrum of the recorded audio using fast Fourier transform: audiof=fft(audio,2048); audiomag = abs(audiof); fr=rate*[0:1023]/2048; %sets up the correct frequency scaling for the plot! freqresp = audiomag; smooth=5; %average together data points to help smooth the freq resp curve for n=1:smooth bode(n)=freqresp(n); %skip the first 'smooth' number of points for n=smooth:length(freqresp)-smooth bode(n)=0; for m=1:smooth bode(n)=bode(n)+(1/smooth)*freqresp(n+m); if c==1 loglog(fr(smooth:1024), bode(smooth:1024)) xlim([ ]) hold on %apply the notch filter to the noise signal to attenuate %frequencies surrounding the selected 'notchfreq' noisefilt = filter(b,a,noise); noise=noisefilt; %plot the filtered frequency response loglog(fr(smooth:1024), bode(smooth:1024), '-r') leg('unfiltered', 'filtered') title('digital Filtering of Noise') xlabel('frequency (Hz)') ylabel('signal Intensity (arb.)') hold off es3music.m clear load audiosample; rate=44100; %Hz the sampling rate for playback and recording %create the parameters needed for a notch filter notchfreq = 2000 %hertz, the center of the frequencies to be removed wo = notchfreq/(rate/2); %don't mess with this! It tells the filter design routine the sampling frequency. bandwidth = 2*wo; %the bandwidth of the notch filter attenuate = -6; %db, the amount of signal removed at 'notchfreq' [b,a] = iirnotch(wo,bandwidth,attenuate); %fvtool(b,a); %un-comment this to see the filter's freq. resp unfilt='this is the UNFILTERED sound file'; filt='this is the FILTERED sound file'; unfilt soundsc(spin,rate) pause(length(spin)/rate) filt spinfilt=filter(b,a,spin); soundsc(spinfilt, rate); pause(length(spin)/rate) unfilt soundsc(spin,rate) pause(length(spin)/rate) ES 3 Laboratory #5 Page 16 of 17

17 VII. PARTS LIST: 1 - Home-made Speaker (or a commercially produced speaker if the home-made speaker is not yet complete) From Lab #4: LM386 audio amplifier chip 100μF non polarized electrolytic capacitor 0.047μF or 0.05 μf capacitor 0.01 μf capacitor (C C ) 10 Ω resistor 9 volt battery with battery clip Breadboard for prototyping circuits Special Equipment: MATLAB (preferably version R2006a, or later) Windows-based PC with a sound card PC-compatible microphone Test Leads Miniature (3.5 mm) stereo phone plug to alligator clips (use the wires from ground and either the left or right channel to connect from the output of the soundcard to the input of the LM386 amplifier chip) ES 3 Laboratory #5 Page 17 of 17

Laboratory 4: Amplification, Impedance, and Frequency Response

Laboratory 4: Amplification, Impedance, and Frequency Response ES 3: Introduction to Electrical Systems Laboratory 4: Amplification, Impedance, and Frequency Response I. GOALS: In this laboratory, you will build an audio amplifier using an LM386 integrated circuit.

More information

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

EECS 216 Winter 2008 Lab 2: FM Detector Part II: In-Lab & Post-Lab Assignment EECS 216 Winter 2008 Lab 2: Part II: In-Lab & Post-Lab Assignment c Kim Winick 2008 1 Background DIGITAL vs. ANALOG communication. Over the past fifty years, there has been a transition from analog to

More information

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

ESE 150 Lab 04: The Discrete Fourier Transform (DFT) LAB 04 In this lab we will do the following: 1. Use Matlab to perform the Fourier Transform on sampled data in the time domain, converting it to the frequency domain 2. Add two sinewaves together of differing

More information

Electrical & Computer Engineering Technology

Electrical & Computer Engineering Technology Electrical & Computer Engineering Technology EET 419C Digital Signal Processing Laboratory Experiments by Masood Ejaz Experiment # 1 Quantization of Analog Signals and Calculation of Quantized noise Objective:

More information

Laboratory Project 4: Frequency Response and Filters

Laboratory Project 4: Frequency Response and Filters 2240 Laboratory Project 4: Frequency Response and Filters K. Durney and N. E. Cotter Electrical and Computer Engineering Department University of Utah Salt Lake City, UT 84112 Abstract-You will build a

More information

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

ESE 150 Lab 04: The Discrete Fourier Transform (DFT) LAB 04 In this lab we will do the following: 1. Use Matlab to perform the Fourier Transform on sampled data in the time domain, converting it to the frequency domain 2. Add two sinewaves together of differing

More information

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback PURPOSE This lab will introduce you to the laboratory equipment and the software that allows you to link your computer to the hardware.

More information

EE477 Digital Signal Processing Laboratory Exercise #13

EE477 Digital Signal Processing Laboratory Exercise #13 EE477 Digital Signal Processing Laboratory Exercise #13 Real time FIR filtering Spring 2004 The object of this lab is to implement a C language FIR filter on the SHARC evaluation board. We will filter

More information

Lab 6: Building a Function Generator

Lab 6: Building a Function Generator ECE 212 Spring 2010 Circuit Analysis II Names: Lab 6: Building a Function Generator Objectives In this lab exercise you will build a function generator capable of generating square, triangle, and sine

More information

Experiment Guide: RC/RLC Filters and LabVIEW

Experiment Guide: RC/RLC Filters and LabVIEW Description and ackground Experiment Guide: RC/RLC Filters and LabIEW In this lab you will (a) manipulate instruments manually to determine the input-output characteristics of an RC filter, and then (b)

More information

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

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013 Exercise 1: PWM Modulator University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013 Lab 3: Power-System Components and

More information

EE 233 Circuit Theory Lab 3: First-Order Filters

EE 233 Circuit Theory Lab 3: First-Order Filters EE 233 Circuit Theory Lab 3: First-Order Filters Table of Contents 1 Introduction... 1 2 Precautions... 1 3 Prelab Exercises... 2 3.1 Inverting Amplifier... 3 3.2 Non-Inverting Amplifier... 4 3.3 Integrating

More information

EE 462G Laboratory #1 Measuring Capacitance

EE 462G Laboratory #1 Measuring Capacitance EE 462G Laboratory #1 Measuring Capacitance Drs. A.V. Radun and K.D. Donohue (1/24/07) Department of Electrical and Computer Engineering University of Kentucky Lexington, KY 40506 Updated 8/31/2007 by

More information

ECE 2006 University of Minnesota Duluth Lab 11. AC Circuits

ECE 2006 University of Minnesota Duluth Lab 11. AC Circuits 1. Objective AC Circuits In this lab, the student will study sinusoidal voltages and currents in order to understand frequency, period, effective value, instantaneous power and average power. Also, the

More information

Laboratory Assignment 4. Fourier Sound Synthesis

Laboratory Assignment 4. Fourier Sound Synthesis Laboratory Assignment 4 Fourier Sound Synthesis PURPOSE This lab investigates how to use a computer to evaluate the Fourier series for periodic signals and to synthesize audio signals from Fourier series

More information

Lab 4: Analysis of the Stereo Amplifier

Lab 4: Analysis of the Stereo Amplifier ECE 212 Spring 2010 Circuit Analysis II Names: Lab 4: Analysis of the Stereo Amplifier Objectives In this lab exercise you will use the power supply to power the stereo amplifier built in the previous

More information

EE 422G - Signals and Systems Laboratory

EE 422G - Signals and Systems Laboratory EE 422G - Signals and Systems Laboratory Lab 3 FIR Filters Written by Kevin D. Donohue Department of Electrical and Computer Engineering University of Kentucky Lexington, KY 40506 September 19, 2015 Objectives:

More information

ME 365 EXPERIMENT 8 FREQUENCY ANALYSIS

ME 365 EXPERIMENT 8 FREQUENCY ANALYSIS ME 365 EXPERIMENT 8 FREQUENCY ANALYSIS Objectives: There are two goals in this laboratory exercise. The first is to reinforce the Fourier series analysis you have done in the lecture portion of this course.

More information

Lab 10 - INTRODUCTION TO AC FILTERS AND RESONANCE

Lab 10 - INTRODUCTION TO AC FILTERS AND RESONANCE 159 Name Date Partners Lab 10 - INTRODUCTION TO AC FILTERS AND RESONANCE OBJECTIVES To understand the design of capacitive and inductive filters To understand resonance in circuits driven by AC signals

More information

George Mason University Signals and Systems I Spring 2016

George Mason University Signals and Systems I Spring 2016 George Mason University Signals and Systems I Spring 2016 Laboratory Project #4 Assigned: Week of March 14, 2016 Due Date: Laboratory Section, Week of April 4, 2016 Report Format and Guidelines for Laboratory

More information

Fourier Signal Analysis

Fourier Signal Analysis Part 1B Experimental Engineering Integrated Coursework Location: Baker Building South Wing Mechanics Lab Experiment A4 Signal Processing Fourier Signal Analysis Please bring the lab sheet from 1A experiment

More information

Time-Varying Signals

Time-Varying Signals Time-Varying Signals Objective This lab gives a practical introduction to signals that varies with time using the components such as: 1. Arbitrary Function Generator 2. Oscilloscopes The grounding issues

More information

EE 233 Circuit Theory Lab 2: Amplifiers

EE 233 Circuit Theory Lab 2: Amplifiers EE 233 Circuit Theory Lab 2: Amplifiers Table of Contents 1 Introduction... 1 2 Precautions... 1 3 Prelab Exercises... 2 3.1 LM348N Op-amp Parameters... 2 3.2 Voltage Follower Circuit Analysis... 2 3.2.1

More information

University of Michigan EECS 311: Electronic Circuits Fall 2008 LAB 2 ACTIVE FILTERS

University of Michigan EECS 311: Electronic Circuits Fall 2008 LAB 2 ACTIVE FILTERS University of Michigan EECS 311: Electronic Circuits Fall 2008 LAB 2 ACTIVE FILTERS Issued 9/22/2008 Pre Lab Completed 9/29/2008 Lab Due in Lecture 10/6/2008 Introduction In this lab you will design a

More information

Pre-Lab. Introduction

Pre-Lab. Introduction Pre-Lab Read through this entire lab. Perform all of your calculations (calculated values) prior to making the required circuit measurements. You may need to measure circuit component values to obtain

More information

Group: Names: Resistor Band Colors Measured Value ( ) R 1 : 1k R 2 : 1k R 3 : 2k R 4 : 1M R 5 : 1M

Group: Names: Resistor Band Colors Measured Value ( ) R 1 : 1k R 2 : 1k R 3 : 2k R 4 : 1M R 5 : 1M 2.4 Laboratory Procedure / Summary Sheet Group: Names: (1) Select five separate resistors whose nominal values are listed below. Record the band colors for each resistor in the table below. Then connect

More information

Set-up. Equipment required: Your issued Laptop MATLAB ( if you don t already have it on your laptop)

Set-up. Equipment required: Your issued Laptop MATLAB ( if you don t already have it on your laptop) All signals found in nature are analog they re smooth and continuously varying, from the sound of an orchestra to the acceleration of your car to the clouds moving through the sky. An excerpt from http://www.netguru.net/ntc/ntcc5.htm

More information

11. Audio Amp. LM386 Low Power Amplifier:

11. Audio Amp. LM386 Low Power Amplifier: EECE208 INTRO TO EE LAB Dr. Charles Kim 11. Audio Amp Objectives: The main purpose of this laboratory exercise is to design an audio amplifier based on the LM386 Low Voltage Audio Power Amplifier chip

More information

Laboratory Experiment #1 Introduction to Spectral Analysis

Laboratory Experiment #1 Introduction to Spectral Analysis J.B.Francis College of Engineering Mechanical Engineering Department 22-403 Laboratory Experiment #1 Introduction to Spectral Analysis Introduction The quantification of electrical energy can be accomplished

More information

Laboratory Assignment 1 Sampling Phenomena

Laboratory Assignment 1 Sampling Phenomena 1 Main Topics Signal Acquisition Audio Processing Aliasing, Anti-Aliasing Filters Laboratory Assignment 1 Sampling Phenomena 2.171 Analysis and Design of Digital Control Systems Digital Filter Design and

More information

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

ECE3204 D2015 Lab 1. See suggested breadboard configuration on following page! ECE3204 D2015 Lab 1 The Operational Amplifier: Inverting and Non-inverting Gain Configurations Gain-Bandwidth Product Relationship Frequency Response Limitation Transfer Function Measurement DC Errors

More information

Basic Signals and Systems

Basic Signals and Systems Chapter 2 Basic Signals and Systems A large part of this chapter is taken from: C.S. Burrus, J.H. McClellan, A.V. Oppenheim, T.W. Parks, R.W. Schafer, and H. W. Schüssler: Computer-based exercises for

More information

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

Laboratory 6. Lab 6. Operational Amplifier Circuits. Required Components: op amp 2 1k resistor 4 10k resistors 1 100k resistor 1 0. Laboratory 6 Operational Amplifier Circuits Required Components: 1 741 op amp 2 1k resistor 4 10k resistors 1 100k resistor 1 0.1 F capacitor 6.1 Objectives The operational amplifier is one of the most

More information

Department of Electrical & Computer Engineering Technology. EET 3086C Circuit Analysis Laboratory Experiments. Masood Ejaz

Department of Electrical & Computer Engineering Technology. EET 3086C Circuit Analysis Laboratory Experiments. Masood Ejaz Department of Electrical & Computer Engineering Technology EET 3086C Circuit Analysis Laboratory Experiments Masood Ejaz Experiment # 1 DC Measurements of a Resistive Circuit and Proof of Thevenin Theorem

More information

AC CURRENTS, VOLTAGES, FILTERS, and RESONANCE

AC CURRENTS, VOLTAGES, FILTERS, and RESONANCE July 22, 2008 AC Currents, Voltages, Filters, Resonance 1 Name Date Partners AC CURRENTS, VOLTAGES, FILTERS, and RESONANCE V(volts) t(s) OBJECTIVES To understand the meanings of amplitude, frequency, phase,

More information

ECE 6416 Low-Noise Electronics Orientation Experiment

ECE 6416 Low-Noise Electronics Orientation Experiment ECE 6416 Low-Noise Electronics Orientation Experiment Object The object of this experiment is to become familiar with the instruments used in the low noise laboratory. Parts The following parts are required

More information

Laboratory 5: RC Circuits and Filtering

Laboratory 5: RC Circuits and Filtering 5.1 Introduction Laboratory 5: ircuits and Filtering For this lab, you will be comparing the experimental behavior of a filter with analytical behavior modeled in MATLAB using Bode plots. During the lab

More information

SGN Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter ( ) Name: Student number:

SGN Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter ( ) Name: Student number: TAMPERE UNIVERSITY OF TECHNOLOGY Department of Signal Processing SGN-16006 Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter (2013-2014) Group number: Date: Name: Student

More information

EE2210 Laboratory Project 1 Fall 2013 Function Generator and Oscilloscope

EE2210 Laboratory Project 1 Fall 2013 Function Generator and Oscilloscope EE2210 Laboratory Project 1 Fall 2013 Function Generator and Oscilloscope For students to become more familiar with oscilloscopes and function generators. Pre laboratory Work Read the TDS 210 Oscilloscope

More information

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises Digital Video and Audio Processing Winter term 2002/ 2003 Computer-based exercises Rudolf Mester Institut für Angewandte Physik Johann Wolfgang Goethe-Universität Frankfurt am Main 6th November 2002 Chapter

More information

ENGR 210 Lab 6 Use of the Function Generator & Oscilloscope

ENGR 210 Lab 6 Use of the Function Generator & Oscilloscope ENGR 210 Lab 6 Use of the Function Generator & Oscilloscope In this laboratory you will learn to use two additional instruments in the laboratory, namely the function/arbitrary waveform generator, which

More information

EE 2274 RC and Op Amp Circuit Completed Prior to Coming to Lab. Prelab Part I: RC Circuit

EE 2274 RC and Op Amp Circuit Completed Prior to Coming to Lab. Prelab Part I: RC Circuit EE 2274 RC and Op Amp Circuit Completed Prior to Coming to Lab Prelab Part I: RC Circuit 1. Design a high pass filter (Fig. 1) which has a break point f b = 1 khz at 3dB below the midband level (the -3dB

More information

Click on the numbered steps below to learn how to record and save audio using Audacity.

Click on the numbered steps below to learn how to record and save audio using Audacity. Recording and Saving Audio with Audacity Items: 6 Steps (Including Introduction) Introduction: Before You Start Make sure you've downloaded and installed Audacity on your computer before starting on your

More information

ENGR 210 Lab 12: Sampling and Aliasing

ENGR 210 Lab 12: Sampling and Aliasing ENGR 21 Lab 12: Sampling and Aliasing In the previous lab you examined how A/D converters actually work. In this lab we will consider some of the consequences of how fast you sample and of the signal processing

More information

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

University of Utah Electrical Engineering Department ECE 2100 Experiment No. 2 Linear Operational Amplifier Circuits II University of Utah Electrical Engineering Department ECE 2100 Experiment No. 2 Linear Operational Amplifier Circuits II Minimum required points = 51 Grade base, 100% = 85 points Recommend parts should

More information

RLC Frequency Response

RLC Frequency Response 1. Introduction RLC Frequency Response The student will analyze the frequency response of an RLC circuit excited by a sinusoid. Amplitude and phase shift of circuit components will be analyzed at different

More information

Class #3: Experiment Signals, Instrumentation, and Basic Circuits

Class #3: Experiment Signals, Instrumentation, and Basic Circuits Class #3: Experiment Signals, Instrumentation, and Basic Circuits Purpose: The objectives of this experiment are to gain some experience with the tools we use (i.e. the electronic test and measuring equipment

More information

Experiment No. 6. Audio Tone Control Amplifier

Experiment No. 6. Audio Tone Control Amplifier Experiment No. 6. Audio Tone Control Amplifier By: Prof. Gabriel M. Rebeiz The University of Michigan EECS Dept. Ann Arbor, Michigan Goal: The goal of Experiment #6 is to build and test a tone control

More information

The object of this experiment is to become familiar with the instruments used in the low noise laboratory.

The object of this experiment is to become familiar with the instruments used in the low noise laboratory. 0. ORIENTATION 0.1 Object The object of this experiment is to become familiar with the instruments used in the low noise laboratory. 0.2 Parts The following parts are required for this experiment: 1. A

More information

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

University of North Carolina, Charlotte Department of Electrical and Computer Engineering ECGR 3157 EE Design II Fall 2009 University of North Carolina, Charlotte Department of Electrical and Computer Engineering ECGR 3157 EE Design II Fall 2009 Lab 1 Power Amplifier Circuits Issued August 25, 2009 Due: September 11, 2009

More information

Final Project Stereo Audio Amplifier Final Report

Final Project Stereo Audio Amplifier Final Report The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering Final Project Stereo Audio Amplifier Final Report Daniel S. Boucher ECE 20-32,

More information

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

Laboratory 9. Required Components: Objectives. Optional Components: Operational Amplifier Circuits (modified from lab text by Alciatore) Laboratory 9 Operational Amplifier Circuits (modified from lab text by Alciatore) Required Components: 1x 741 op-amp 2x 1k resistors 4x 10k resistors 1x l00k resistor 1x 0.1F capacitor Optional Components:

More information

Experiment 9 AC Circuits

Experiment 9 AC Circuits Experiment 9 AC Circuits "Look for knowledge not in books but in things themselves." W. Gilbert (1540-1603) OBJECTIVES To study some circuit elements and a simple AC circuit. THEORY All useful circuits

More information

Figure 1: Block diagram of Digital signal processing

Figure 1: Block diagram of Digital signal processing Experiment 3. Digital Process of Continuous Time Signal. Introduction Discrete time signal processing algorithms are being used to process naturally occurring analog signals (like speech, music and images).

More information

Lab 12 Laboratory 12 Data Acquisition Required Special Equipment: 12.1 Objectives 12.2 Introduction 12.3 A/D basics

Lab 12 Laboratory 12 Data Acquisition Required Special Equipment: 12.1 Objectives 12.2 Introduction 12.3 A/D basics Laboratory 12 Data Acquisition Required Special Equipment: Computer with LabView Software National Instruments USB 6009 Data Acquisition Card 12.1 Objectives This lab demonstrates the basic principals

More information

DSP First Lab 08: Frequency Response: Bandpass and Nulling Filters

DSP First Lab 08: Frequency Response: Bandpass and Nulling Filters DSP First Lab 08: Frequency Response: Bandpass and Nulling Filters Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises in the

More information

LLS - Introduction to Equipment

LLS - Introduction to Equipment Published on Advanced Lab (http://experimentationlab.berkeley.edu) Home > LLS - Introduction to Equipment LLS - Introduction to Equipment All pages in this lab 1. Low Light Signal Measurements [1] 2. Introduction

More information

332:223 Principles of Electrical Engineering I Laboratory Experiment #2 Title: Function Generators and Oscilloscopes Suggested Equipment:

332:223 Principles of Electrical Engineering I Laboratory Experiment #2 Title: Function Generators and Oscilloscopes Suggested Equipment: RUTGERS UNIVERSITY The State University of New Jersey School of Engineering Department Of Electrical and Computer Engineering 332:223 Principles of Electrical Engineering I Laboratory Experiment #2 Title:

More information

Experiment 2: Electronic Enhancement of S/N and Boxcar Filtering

Experiment 2: Electronic Enhancement of S/N and Boxcar Filtering Experiment 2: Electronic Enhancement of S/N and Boxcar Filtering Synopsis: A simple waveform generator will apply a triangular voltage ramp through an R/C circuit. A storage digital oscilloscope, or an

More information

An Introductory Guide to Circuit Simulation using NI Multisim 12

An Introductory Guide to Circuit Simulation using NI Multisim 12 School of Engineering and Technology An Introductory Guide to Circuit Simulation using NI Multisim 12 This booklet belongs to: This document provides a brief overview and introductory tutorial for circuit

More information

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

University of Michigan EECS 311: Electronic Circuits Fall 2009 LAB 2 NON IDEAL OPAMPS University of Michigan EECS 311: Electronic Circuits Fall 2009 LAB 2 NON IDEAL OPAMPS Issued 10/5/2008 Pre Lab Completed 10/12/2008 Lab Due in Lecture 10/21/2008 Introduction In this lab you will characterize

More information

EE-4022 Experiment 2 Amplitude Modulation (AM)

EE-4022 Experiment 2 Amplitude Modulation (AM) EE-4022 MILWAUKEE SCHOOL OF ENGINEERING 2015 Page 2-1 Student objectives: EE-4022 Experiment 2 Amplitude Modulation (AM) In this experiment the student will use laboratory modules to implement operations

More information

BME 3512 Bioelectronics Laboratory Six - Active Filters

BME 3512 Bioelectronics Laboratory Six - Active Filters BME 5 Bioelectronics Laboratory Six - Active Filters Learning Objectives: Understand the basic principles of active filters. Describe the differences between active and passive filters. Laboratory Equipment:

More information

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

EE320L Electronics I. Laboratory. Laboratory Exercise #2. Basic Op-Amp Circuits. Angsuman Roy. Department of Electrical and Computer Engineering EE320L Electronics I Laboratory Laboratory Exercise #2 Basic Op-Amp Circuits By Angsuman Roy Department of Electrical and Computer Engineering University of Nevada, Las Vegas Objective: The purpose of

More information

Laboratory 2 (drawn from lab text by Alciatore)

Laboratory 2 (drawn from lab text by Alciatore) Laboratory 2 (drawn from lab text by Alciatore) Instrument Familiarization and Basic Electrical Relations Required Components: 2 1k resistors 2 1M resistors 1 2k resistor Objectives This exercise is designed

More information

Testing DDX Digital Amplifiers

Testing DDX Digital Amplifiers Testing DDX Digital Amplifiers For Applications Assistance Contact: Ken Korzeniowski r. Design Engineer Apogee Technology, Inc. 19 Morgan Drive Norwood, MA 006, UA kkorz@apogeeddx.com TEL: 1-781-551-9450

More information

Sampling and Reconstruction

Sampling and Reconstruction Experiment 10 Sampling and Reconstruction In this experiment we shall learn how an analog signal can be sampled in the time domain and then how the same samples can be used to reconstruct the original

More information

BME 3512 Bioelectronics Laboratory Two - Passive Filters

BME 3512 Bioelectronics Laboratory Two - Passive Filters BME 35 Bioelectronics Laboratory Two - Passive Filters Learning Objectives: Understand the basic principles of passive filters. Laboratory Equipment: Agilent Oscilloscope Model 546A Agilent Function Generator

More information

Notes on Experiment #1

Notes on Experiment #1 Notes on Experiment #1 Bring graph paper (cm cm is best) From this week on, be sure to print a copy of each experiment and bring it with you to lab. There will not be any experiment copies available in

More information

Page 1/10 Digilent Analog Discovery (DAD) Tutorial 6-Aug-15. Figure 2: DAD pin configuration

Page 1/10 Digilent Analog Discovery (DAD) Tutorial 6-Aug-15. Figure 2: DAD pin configuration Page 1/10 Digilent Analog Discovery (DAD) Tutorial 6-Aug-15 INTRODUCTION The Diligent Analog Discovery (DAD) allows you to design and test both analog and digital circuits. It can produce, measure and

More information

CI-22. BASIC ELECTRONIC EXPERIMENTS with computer interface. Experiments PC1-PC8. Sample Controls Display. Instruction Manual

CI-22. BASIC ELECTRONIC EXPERIMENTS with computer interface. Experiments PC1-PC8. Sample Controls Display. Instruction Manual CI-22 BASIC ELECTRONIC EXPERIMENTS with computer interface Experiments PC1-PC8 Sample Controls Display See these Oscilloscope Signals See these Spectrum Analyzer Signals Instruction Manual Elenco Electronics,

More information

Combinational logic: Breadboard adders

Combinational logic: Breadboard adders ! ENEE 245: Digital Circuits & Systems Lab Lab 1 Combinational logic: Breadboard adders ENEE 245: Digital Circuits and Systems Laboratory Lab 1 Objectives The objectives of this laboratory are the following:

More information

Lab 4 An FPGA Based Digital System Design ReadMeFirst

Lab 4 An FPGA Based Digital System Design ReadMeFirst Lab 4 An FPGA Based Digital System Design ReadMeFirst Lab Summary This Lab introduces a number of Matlab functions used to design and test a lowpass IIR filter. As you have seen in the previous lab, Simulink

More information

TABLE OF CONTENTS SECTION 6.0

TABLE OF CONTENTS SECTION 6.0 TABLE OF CONTENTS SECTION 6.0 SECTION 6.0 FUNCTION GENERATOR (VFG)... 1 MEASUREMENT OBJECTIVES... 1 BASIC OPERATION... 1 Launching vfg... 1 vfg Quick Tour... 1 CHANNEL CONTROL... 2 FUNCTION TYPES... 2

More information

GE U111 HTT&TL, Lab 1: The Speed of Sound in Air, Acoustic Distance Measurement & Basic Concepts in MATLAB

GE U111 HTT&TL, Lab 1: The Speed of Sound in Air, Acoustic Distance Measurement & Basic Concepts in MATLAB GE U111 HTT&TL, Lab 1: The Speed of Sound in Air, Acoustic Distance Measurement & Basic Concepts in MATLAB Contents 1 Preview: Programming & Experiments Goals 2 2 Homework Assignment 3 3 Measuring The

More information

Physics 303 Fall Module 4: The Operational Amplifier

Physics 303 Fall Module 4: The Operational Amplifier Module 4: The Operational Amplifier Operational Amplifiers: General Introduction In the laboratory, analog signals (that is to say continuously variable, not discrete signals) often require amplification.

More information

Week 8 AM Modulation and the AM Receiver

Week 8 AM Modulation and the AM Receiver Week 8 AM Modulation and the AM Receiver The concept of modulation and radio transmission is introduced. An AM receiver is studied and the constructed on the prototyping board. The operation of the AM

More information

Lab E5: Filters and Complex Impedance

Lab E5: Filters and Complex Impedance E5.1 Lab E5: Filters and Complex Impedance Note: It is strongly recommended that you complete lab E4: Capacitors and the RC Circuit before performing this experiment. Introduction Ohm s law, a well known

More information

EE 233 Circuit Theory Lab 4: Second-Order Filters

EE 233 Circuit Theory Lab 4: Second-Order Filters EE 233 Circuit Theory Lab 4: Second-Order Filters Table of Contents 1 Introduction... 1 2 Precautions... 1 3 Prelab Exercises... 2 3.1 Generic Equalizer Filter... 2 3.2 Equalizer Filter for Audio Mixer...

More information

HOWTO PROPERLY SET YOUR GAINS

HOWTO PROPERLY SET YOUR GAINS HOWTO PROPERLY SET YOUR GAINS BY ERIC RUSSELL You meticulously selected the right products for your car audio system, installed them, and finally connected them together. It sounds good, but are you getting

More information

The Series RLC Circuit and Resonance

The Series RLC Circuit and Resonance Purpose Theory The Series RLC Circuit and Resonance a. To study the behavior of a series RLC circuit in an AC current. b. To measure the values of the L and C using the impedance method. c. To study the

More information

E40M Sound and Music. M. Horowitz, J. Plummer, R. Howe 1

E40M Sound and Music. M. Horowitz, J. Plummer, R. Howe 1 E40M Sound and Music M. Horowitz, J. Plummer, R. Howe 1 LED Cube Project #3 In the next several lectures, we ll study Concepts Coding Light Sound Transforms/equalizers Devices LEDs Analog to digital converters

More information

PHYSICS 107 LAB #9: AMPLIFIERS

PHYSICS 107 LAB #9: AMPLIFIERS Section: Monday / Tuesday (circle one) Name: Partners: PHYSICS 107 LAB #9: AMPLIFIERS Equipment: headphones, 4 BNC cables with clips at one end, 3 BNC T connectors, banana BNC (Male- Male), banana-bnc

More information

2.0 AC CIRCUITS 2.1 AC VOLTAGE AND CURRENT CALCULATIONS. ECE 4501 Power Systems Laboratory Manual Rev OBJECTIVE

2.0 AC CIRCUITS 2.1 AC VOLTAGE AND CURRENT CALCULATIONS. ECE 4501 Power Systems Laboratory Manual Rev OBJECTIVE 2.0 AC CIRCUITS 2.1 AC VOLTAGE AND CURRENT CALCULATIONS 2.1.1 OBJECTIVE To study sinusoidal voltages and currents in order to understand frequency, period, effective value, instantaneous power and average

More information

ECE 201 LAB 8 TRANSFORMERS & SINUSOIDAL STEADY STATE ANALYSIS

ECE 201 LAB 8 TRANSFORMERS & SINUSOIDAL STEADY STATE ANALYSIS Version 1.1 1 of 8 ECE 201 LAB 8 TRANSFORMERS & SINUSOIDAL STEADY STATE ANALYSIS BEFORE YOU BEGIN PREREQUISITE LABS Introduction to MATLAB Introduction to Lab Equipment Introduction to Oscilloscope Capacitors,

More information

EK307 Passive Filters and Steady State Frequency Response

EK307 Passive Filters and Steady State Frequency Response EK307 Passive Filters and Steady State Frequency Response Laboratory Goal: To explore the properties of passive signal-processing filters Learning Objectives: Passive filters, Frequency domain, Bode plots

More information

2 Oscilloscope Familiarization

2 Oscilloscope Familiarization Lab 2 Oscilloscope Familiarization What You Need To Know: Voltages and currents in an electronic circuit as in a CD player, mobile phone or TV set vary in time. Throughout the course you will investigate

More information

Experiment No. 4 The LM 741 Operational Amplifier

Experiment No. 4 The LM 741 Operational Amplifier Experiment No. 4 The LM 741 Operational Amplifier By: Prof. Gabriel M. Rebeiz The University of Michigan EECS Dept. Ann Arbor, Michigan The LM * 741 is the most widely used op-amp in the world due to its

More information

Spectrum Analysis: The FFT Display

Spectrum Analysis: The FFT Display Spectrum Analysis: The FFT Display Equipment: Capstone, voltage sensor 1 Introduction It is often useful to represent a function by a series expansion, such as a Taylor series. There are other series representations

More information

AC Circuits. "Look for knowledge not in books but in things themselves." W. Gilbert ( )

AC Circuits. Look for knowledge not in books but in things themselves. W. Gilbert ( ) AC Circuits "Look for knowledge not in books but in things themselves." W. Gilbert (1540-1603) OBJECTIVES To study some circuit elements and a simple AC circuit. THEORY All useful circuits use varying

More information

Memorial University of Newfoundland Faculty of Engineering and Applied Science. Lab Manual

Memorial University of Newfoundland Faculty of Engineering and Applied Science. Lab Manual Memorial University of Newfoundland Faculty of Engineering and Applied Science Engineering 6871 Communication Principles Lab Manual Fall 2014 Lab 1 AMPLITUDE MODULATION Purpose: 1. Learn how to use Matlab

More information

Frequency and Time Domain Representation of Sinusoidal Signals

Frequency and Time Domain Representation of Sinusoidal Signals Frequency and Time Domain Representation of Sinusoidal Signals By: Larry Dunleavy Wireless and Microwave Instruments University of South Florida Objectives 1. To review representations of sinusoidal signals

More information

A Simple Notch Type Harmonic Distortion Analyzer

A Simple Notch Type Harmonic Distortion Analyzer by Kenneth A. Kuhn Nov. 28, 2009, rev. Nov. 29, 2009 Introduction This note describes a simple notch type harmonic distortion analyzer that can be constructed with basic parts. It is intended for use in

More information

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

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering EXPERIMENT 5 GAIN-BANDWIDTH PRODUCT AND SLEW RATE OBJECTIVES In this experiment the student will explore two

More information

Fundamentals of Digital Audio *

Fundamentals of Digital Audio * Digital Media The material in this handout is excerpted from Digital Media Curriculum Primer a work written by Dr. Yue-Ling Wong (ylwong@wfu.edu), Department of Computer Science and Department of Art,

More information

THE SPEAKER. The decibel scale is related to the physical sound intensity measured in watts/cm 2 by the following equation:

THE SPEAKER. The decibel scale is related to the physical sound intensity measured in watts/cm 2 by the following equation: OBJECTIVES: THE SPEAKER 1) Know the definition of "decibel" as a measure of sound intensity or power level. ) Know the relationship between voltage and power level measured in decibels. 3) Illustrate how

More information

Laboratory 2. Lab 2. Instrument Familiarization and Basic Electrical Relations. Required Components: 2 1k resistors 2 1M resistors 1 2k resistor

Laboratory 2. Lab 2. Instrument Familiarization and Basic Electrical Relations. Required Components: 2 1k resistors 2 1M resistors 1 2k resistor Laboratory 2 nstrument Familiarization and Basic Electrical Relations Required Components: 2 1k resistors 2 1M resistors 1 2k resistor 2.1 Objectives This exercise is designed to acquaint you with the

More information

Tektronix digital oscilloscope, BK Precision Function Generator, coaxial cables, breadboard, the crystal earpiece from your AM radio kit.

Tektronix digital oscilloscope, BK Precision Function Generator, coaxial cables, breadboard, the crystal earpiece from your AM radio kit. Experiment 0: Review I. References The 174 and 275 Lab Manuals Any standard text on error analysis (for example, Introduction to Error Analysis, J. Taylor, University Science Books, 1997) The manual for

More information

Real Analog - Circuits 1 Chapter 11: Lab Projects

Real Analog - Circuits 1 Chapter 11: Lab Projects Real Analog - Circuits 1 Chapter 11: Lab Projects 11.2.1: Signals with Multiple Frequency Components Overview: In this lab project, we will calculate the magnitude response of an electrical circuit and

More information

Lab #2 First Order RC Circuits Week of 27 January 2015

Lab #2 First Order RC Circuits Week of 27 January 2015 ECE214: Electrical Circuits Laboratory Lab #2 First Order RC Circuits Week of 27 January 2015 1 Introduction In this lab you will investigate the magnitude and phase shift that occurs in an RC circuit

More information