Top Banner
EE 198 B Senior Design Project
36

EE 198 B Senior Design Project. Spectrum Analyzer.

Dec 22, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: EE 198 B Senior Design Project. Spectrum Analyzer.

EE 198 B

Senior Design Project

Page 2: EE 198 B Senior Design Project. Spectrum Analyzer.

Spectrum AnalyzerSpectrum Analyzer

Page 3: EE 198 B Senior Design Project. Spectrum Analyzer.

Designed by

Archanna Srinivasan Shweta Upadhyaya Nelson Chen Wing Chan Xingli Zhu

Page 4: EE 198 B Senior Design Project. Spectrum Analyzer.

Details

Advisor: Professor Freeman Date of Presentation: May 14th 2004 San Jose State University

Page 5: EE 198 B Senior Design Project. Spectrum Analyzer.

Special Thanks to:

Professor Freeman Professor Strasilla Ms. Irma Alarcon NI Representatives

Page 6: EE 198 B Senior Design Project. Spectrum Analyzer.

Purpose of the Project

To implement a Spectrum Analyzer in LabVIEW Software that is cost efficient.

Page 7: EE 198 B Senior Design Project. Spectrum Analyzer.

Definition of an Analyzer

Analyzes the spectral content (amplitude and frequency) of the input signal.

Analyzes the various harmonics present in the signal.

Page 8: EE 198 B Senior Design Project. Spectrum Analyzer.

Application Used to measure signal characteristics

such as carrier level, sidebands, harmonics, and phase noise.

Used to measure the spectral purity of multiplex signals and the percentage of modulation of AM signals.

Can analyze distortion and spurious signals, and can determine the non-linearity in a system.

Page 9: EE 198 B Senior Design Project. Spectrum Analyzer.

Specifications:

Input Frequency: 0-500 KHz Dc Voltage Maximum: +/- 5 V

amplitude Number of Bits = 8 bits Resolution: 0.04 V FS: Sampling Frequency = 20 MHz Number of Harmonics used = 3

Page 10: EE 198 B Senior Design Project. Spectrum Analyzer.

FunctionGenerator

Power Supply

Circuit Board

OscilloscopeCOMPUTERPentium 4

256 MB RAM

NI PCI 5102 Digitizer

BLOCK DIAGRAM OF THE SYSTEM

Page 11: EE 198 B Senior Design Project. Spectrum Analyzer.

Block Diagram of Software

Low Pass Filter

DistortionMeasurement

Input

FFT (Spectral)

ToneMeasurement

Amplitude& Level

Measurement

Write LabVIEW

Page 12: EE 198 B Senior Design Project. Spectrum Analyzer.

Analysis of the BlocksAnalysis of the Blocks

Page 13: EE 198 B Senior Design Project. Spectrum Analyzer.

Block Diagram of the Input

NI Scope Initialize

NI Scope Auto Setup

NI Scope Multi Read

NI Scope Close Error Handler

Index Array Un bundle by Name

Build Waveform

Convert to Dynamic Data

Input to the Express VI’s

Page 14: EE 198 B Senior Design Project. Spectrum Analyzer.

Input A cluster of waveforms are

accessed. The waveforms are separated out

into indices in an array. A single waveform is extracted and

expanded to three signals wide. The single resulting waveform is

converted to dynamic data for use by the Express VI’s.

Page 15: EE 198 B Senior Design Project. Spectrum Analyzer.

Low pass Filter

Why Butterworth? It has a smooth response at all

frequencies and it is maximally flat.

Why order 3? High order is chosen to give more

accuracy.

Page 16: EE 198 B Senior Design Project. Spectrum Analyzer.

Fast Fourier Transform (FFT)

Main calculation block for the output.

Displays the frequency response - Vrms (dB) versus frequency.

Also displays the phase in degrees or radians.

Page 17: EE 198 B Senior Design Project. Spectrum Analyzer.

Harmonic Distortion Measurement Block Integral multiples of the

fundamental frequency (f): 2f, 3f, 4f...and so on are called harmonics.

The higher the number and amplitude of the harmonics, the more distorted is the system.

Helps to measure the non-linearity of a system.

Page 18: EE 198 B Senior Design Project. Spectrum Analyzer.

Distortion Parameters

THD: is the sum of the powers of all harmonic frequencies above the fundamental frequency to the power of the fundamental frequency.

Specific Harmonic: returns the value of the harmonic that is specified, in this case it is three.

Page 19: EE 198 B Senior Design Project. Spectrum Analyzer.

Tone Measurements

Finds the single tone with the highest amplitude.

Searches a specified frequency range to find the single tone with the highest amplitude.

All outputs (Amplitude, Frequency and Phase) have numeric displays.

Page 20: EE 198 B Senior Design Project. Spectrum Analyzer.

Amplitude/Level Measurements

Performs voltage measurements and analysis on the input signal.

Returns the DC voltage, AC Positive Peak and Negative Peak, Peak to Peak voltage, RMS (root mean square) of the input signal.

Above parameters have numeric display at the front panel.

Page 21: EE 198 B Senior Design Project. Spectrum Analyzer.

Write LabVIEW Writes data to a LabVIEW data

measurement file. It receives input from Spectrum

Measurement Block’s FFT. The File Name and Comments Input are

entered through Dialog Box by the user. The outputs are File Name, Saving Data. This file can be accessed using Microsoft

Excel.

Page 22: EE 198 B Senior Design Project. Spectrum Analyzer.

How is ours Better?

The input from the NI-Scope Digitizer was made compatible with the LabVIEW Express VI’s for the first time ever.

Page 23: EE 198 B Senior Design Project. Spectrum Analyzer.

Cost Analysis

How is our project cost-effective?

Page 24: EE 198 B Senior Design Project. Spectrum Analyzer.

Cost Comparison HP/Agilent 860E Spectrum Analyzer (input

frequency: 30hz – 2.9Ghz) sold at $27,530

Our cost DAQ Card + Probes = $1500 Computer = $900 Software = Free…Student Version Total = $2400

Page 25: EE 198 B Senior Design Project. Spectrum Analyzer.

Examples

Low Pass Filter

Page 26: EE 198 B Senior Design Project. Spectrum Analyzer.

First Order Low Pass Filter

Page 27: EE 198 B Senior Design Project. Spectrum Analyzer.

Low Pass Filter Gain from the Spectrum Analyzer (up to 100 KHz)

Gain vs. Freq (Analyzer)

-16

-14

-12

-10

-8

-6

-4

-2

0

2

0 20000 40000 60000 80000 100000 120000

Freq (Hz)

Ga

in (

rms

dB

)

Series1

Page 28: EE 198 B Senior Design Project. Spectrum Analyzer.

Common Emitter Amplifier

Page 29: EE 198 B Senior Design Project. Spectrum Analyzer.

Gain vs. Freq

0

2

4

6

8

10

12

14

16

18

20

0 200000 400000 600000 800000 1000000 1200000

Freq (Hz)

Ga

in (

dB

)

Scope

Analyzer

Common Emitter Gain vs. Freq (Scope & Analyzer)

Page 30: EE 198 B Senior Design Project. Spectrum Analyzer.

Demo

High Pass Filter

Page 31: EE 198 B Senior Design Project. Spectrum Analyzer.

Testing Spectrum Analyzer

First order high pass filter using LM741 Op-Amp.

Compare results taken from the Spectrum Analyzer with results from the Oscilloscope.

Resulting graphs are plotted in Excel.

Page 32: EE 198 B Senior Design Project. Spectrum Analyzer.

High Pass Filter Circuit

Page 33: EE 198 B Senior Design Project. Spectrum Analyzer.

High pass filter Excel graph:up to 50 kHz

-30

-25

-20

-15

-10

-5

0

0 10000 20000 30000 40000 50000

Frequency(Hz)

Gai

n(dB

)

Page 34: EE 198 B Senior Design Project. Spectrum Analyzer.

Illustration of Non-Idealities in an Op-amp

From 100 kHz to 4MHz

-45

-40

-35

-30

-25

-20

-15

-10

-5

0

0 1000000 2000000 3000000 4000000 5000000

Frequency(Hz)

Gain

(dB

)

Page 35: EE 198 B Senior Design Project. Spectrum Analyzer.

Results Found The graphs from the Oscilloscope and the

Spectrum Analyzer follows the same shape. They follow the same characteristics of a first

order high pass active filter using LM741 Op Amp.

Data from the scope are taken using the scope itself, while data from the Spectrum Analyzer are taken from the FFT graph.

As the frequency of a High Pass increases, the performance of the filter degrades as shown in the graph.

Page 36: EE 198 B Senior Design Project. Spectrum Analyzer.

QUESTIONS???