Journal of Asian Scientific Research SIGNALS SPECTRAL ANALYSIS AND DISTORTION MEASUREMENTS USING AN OSCILLOSCOPE, A CAMERA AND A PC. A. A.

Similar documents
ECE 4670 Spring 2014 Lab 1 Linear System Characteristics

Sampling and Reconstruction

ELG3175 INTRODUCTION TO COMMUNICATION SYSTEMS

Introduction. In the frequency domain, complex signals are separated into their frequency components, and the level at each frequency is displayed

ECE 440L. Experiment 1: Signals and Noise (1 week)

Linear Time-Invariant Systems

MASSACHUSETTS INSTITUTE OF TECHNOLOGY /6.071 Introduction to Electronics, Signals and Measurement Spring 2006

Laboratory Exercise 6 THE OSCILLOSCOPE

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

EET 223 RF COMMUNICATIONS LABORATORY EXPERIMENTS

Laboratory Experiment #1 Introduction to Spectral Analysis

User-friendly Matlab tool for easy ADC testing

Real Analog - Circuits 1 Chapter 11: Lab Projects

ENGR 210 Lab 12: Sampling and Aliasing

Department of Electronic Engineering NED University of Engineering & Technology. LABORATORY WORKBOOK For the Course SIGNALS & SYSTEMS (TC-202)

Fourier Signal Analysis

Michael F. Toner, et. al.. "Distortion Measurement." Copyright 2000 CRC Press LLC. <

Lab 0: Introduction to TIMS AND MATLAB

Definitions. Spectrum Analyzer

Discrete Fourier Transform (DFT)

Operational Amplifiers: Part II

Analog Arts SG985 SG884 SG834 SG814 Product Specifications [1]

LAB #7: Digital Signal Processing

Series and Parallel Resonance

SIGNALS AND SYSTEMS LABORATORY 13: Digital Communication

Analog Arts SF900 SF650 SF610 Product Specifications

Lab Assignment 1 Spectrum Analyzers

ECE 6416 Low-Noise Electronics Orientation Experiment

RLC Frequency Response

Experiment No. 2 Pre-Lab Signal Mixing and Amplitude Modulation

ELEC3104: Digital Signal Processing Session 1, 2013

IEEE 802.3aq Task Force Dynamic Channel Model Ad Hoc Task 2 - Time variation & modal noise 10/13/2004 con-call

STATION NUMBER: LAB SECTION: Filters. LAB 6: Filters ELECTRICAL ENGINEERING 43/100 INTRODUCTION TO MICROELECTRONIC CIRCUITS

Signals & Systems for Speech & Hearing. Week 6. Practical spectral analysis. Bandpass filters & filterbanks. Try this out on an old friend

Laboratory Exercises for Analog Circuits and Electronics as Hardware Homework with Student Laptop Computer Instrumentation

EE 233 Circuit Theory Lab 2: Amplifiers

YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS

Lab 2: Capacitors. Integrator and Differentiator Circuits

Analog Arts SL987 SL957 SL937 SL917 Product Specifications [1]

EE 210: CIRCUITS AND DEVICES

DELTA MODULATION. PREPARATION principle of operation slope overload and granularity...124

ELEC3242 Communications Engineering Laboratory Amplitude Modulation (AM)

Analog Arts SF990 SF880 SF830 Product Specifications

Lab Assignment 1 Spectrum Analyzers

Design of Low-Cost Multi- Waveforms Signal Generator Using Operational Amplifier

HAMEG Programmable Measuring Instruments Series 8100

RTTY: an FSK decoder program for Linux. Jesús Arias (EB1DIX)

Technical note. Impedance analysis techniques

Frequency and Time Domain Representation of Sinusoidal Signals

Class #16: Experiment Matlab and Data Analysis

EE 422G - Signals and Systems Laboratory

UNIT-3. Electronic Measurements & Instrumentation

Experiment One: Generating Frequency Modulation (FM) Using Voltage Controlled Oscillator (VCO)

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

The Signals and Systems Toolbox: Comparing Theory, Simulation and Implementation using MATLAB and Programmable Instruments

Signal Processing for Digitizers

Basics Of The Spectrum Analyzer

High-resolution ADC operation up to 19.6 GHz clock frequency

The information carrying capacity of a channel

Step Response of RC Circuits

The Fundamentals of Mixed Signal Testing

ME scope Application Note 01 The FFT, Leakage, and Windowing

EE-4022 Experiment 3 Frequency Modulation (FM)

CHAPTER 6 INTRODUCTION TO SYSTEM IDENTIFICATION

Current Rebuilding Concept Applied to Boost CCM for PF Correction

Experiment Guide: RC/RLC Filters and LabVIEW

Intermediate and Advanced Labs PHY3802L/PHY4822L

Experiment 2: Transients and Oscillations in RLC Circuits

Transmit filter designs for ADSL modems

14 fasttest. Multitone Audio Analyzer. Multitone and Synchronous FFT Concepts

CHAPTER. delta-sigma modulators 1.0

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

EE-4022 Experiment 2 Amplitude Modulation (AM)

Knowledge Integration Module 2 Fall 2016

Experiment Five: The Noisy Channel Model

PHYSICS 330 LAB Operational Amplifier Frequency Response

A Low-Cost Programmable Arbitrary Function Generator for Educational Environment

Question 1 Draw a block diagram to illustrate how the data was acquired. Be sure to include important parameter values

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

ECE3042 Lab Report and Homework Guidelines. Homework. Lab Report

Technical Notes from Laplace Instruments Ltd. EMC Emissions measurement. Pre selectors... what, why and when?

EXPERIMENT NUMBER 2 BASIC OSCILLOSCOPE OPERATIONS

Application Note #5 Direct Digital Synthesis Impact on Function Generator Design

Lecture 6. Angle Modulation and Demodulation

Basic Electronics Learning by doing Prof. T.S. Natarajan Department of Physics Indian Institute of Technology, Madras

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

ENGR 210 Lab 6 Use of the Function Generator & Oscilloscope

Frequency Selective Circuits

ECEN Network Analysis Section 3. Laboratory Manual

Operational Amplifier

Time Matters How Power Meters Measure Fast Signals

Integrators, differentiators, and simple filters

LABORATORY #3 QUARTZ CRYSTAL OSCILLATOR DESIGN

A Temperature Modulation Circuit for Metal Oxide Semiconductor Gas Sensor

Notes on Experiment #1

Mechatronics. Analog and Digital Electronics: Studio Exercises 1 & 2

Impedance 50 (75 connectors via adapters)

Rigol DSA705 Spectrum Analyzer Reviewed by Phil Salas AD5X

Signal Characteristics

Precalculations Individual Portion Introductory Lab: Basic Operation of Common Laboratory Instruments

Transcription:

Journal of Asian Scientific Research journal homepage: http://www.aessweb.com/journals/5003 SIGNALS SPECTRAL ANALYSIS AND DISTORTION MEASUREMENTS USING AN OSCILLOSCOPE, A CAMERA AND A PC A. A. Azooz Department of Physics, College of Science, Mosul University Mosul Iraq S. K. Talal Department of Physics, College of Education, Zakho University, Zakho Iraq ABSTRACT This work describes a relatively simple yet effective method for analyzing harmonic distortions and spectral analysis of electronic signals up to the MHz range. The method involves the use a suitable analog or digital oscilloscopes to present the signal, taking a digital picture of the oscilloscope screen, converting the oscilloscope trace to numerical data and performing fast Fourier transform on the data. All MATLAB based software needed for the procedure is given. The results involve the spectrum analysis plot, the overall distortion, and all frequencies up to the tenth harmonic together with their relative amplitudes with respect to that of the fundamental frequency. The program provides for any user s selected frequency band analysis to be presented. Keywords: Radio frequency, Spectral analysis, Distortion meter, signal processing, Image processing, oscilloscope. PACS No: 07.05.Pj 1. INTRODUCTION The problems related to estimating, measuring and trying to eliminate distortions present in many types of electronic signals are of importance to electronics and signal processing engineers [1, 2]. Distortion meters, and spectrum analyzers have become essential tools for anyone working in this field. These devices have reached a high level of sophistication. This has come at a material price [3]. Consequently, and although many private enterprises in the fields of power transmission, audio industry and radio communications are able to afford having these measuring equipments, under many circumstances, life may not be that easy else where. Field workers and many undergraduate labs in developing countries are just two examples of such situations. This is particularly true when working with frequencies in the MHz up range. From electronic engineering point of view, most signal analysis and distortion measurements lab experiments are performed in the audio frequency range. This is due to the fact that audio frequency analyzers are much less 112

expensive. However, distortions and inter-modulation problems associated with high frequency distortion can on many situations be different in causes, nature and consequences from those at audio frequencies. For these reasons, it would be useful to have a cheap, yet effective method to analyze these distortions and harmonics on both teaching and application levels. All undergraduate physics and electronics engineering labs do indeed have, and use oscilloscopes. Typical analog or digital oscilloscopes now days can handle signals of few MHz at least. A 100 MHz signal will produce a ten wave s trace on a 10 MHz oscilloscope. Many modern digital oscilloscopes have the facility to digitize these traces. However, these again may not be affordable in many developing countries. Computers on the other hand, have become an integral part of most laboratories. Digital camera equipped cell phones have also become an integral part of every student s life. Motivated by these realities of life, one is encouraged to design experiments related to frequency analysis and distortion measurements at both audio and radio frequencies. 2. EXPERIMENTAL PROCEDURE, MEASUREMENTS AND RESULTS The experimental procedure for this analysis is simple. The signal to be analyzed is connected to the oscilloscope and a stable trace of few full waves is produced. A snapshot with the digital or cell phone camera is taken for each signal to be analyzed. Care should be taken to avoid shadows and reflections on the oscilloscope screen. The camera must be stable and parallel to the screen. An adjustable holder is useful for the purpose. Once the pictures are taken, they can be transferred to a PC which has MATLAB program installed. The use of MATLAB should not be of much concern. This is because most physics and engineering student do indeed take MATLAB courses at some stage or another, and the following analysis and software presented here are made user friendly to a high degree. The main issue now is to convert the trace in each picture to a reasonable number of experimental data points. Software named oscilloscope written by the one of authors can be freely downloaded and used from the MATLAB file exchange library for this purpose [4, 5]. The software is easy to use. The downloaded zip file contains full step by step instructions on how to use the program to convert digital pictures to numerical data with a high degree of accuracy. Figure (1) shows few examples of such conversions for several wave forms. Alternatively, and if one is at the luxury of having a digital data logging oscilloscope, data can be directly saved on the hard drive and the previous steps of acquiring data from screen pictures can be skipped. 113

(a) (b) (c) (d) Figure (1) Two sample results of converting oscilloscope traces to numerical data using the software oscilloscope (a) an 800x600 pixel screen photo of a 200 Hz 3.3 Vpp triangular signal (b)- Plot of 999 retrieved data from the trace in a. (c) picture of rectangular signal trace, (d) plot of 512 data points retrieved from (c) Once numerical data of each wave form are obtained, fast Fourier analysis of the signal can be carried out. Software named Spectrum_Analyser (time, voltage, f1, f2, delta) written for this purpose. The software can be freely downloaded from the MATLAB file exchange website [6]. The input arguments to the software are the time t and signal voltage variable v. The accurate scaling of v is not important because the program needs to analyze the signal shape only. The input parameters f1, and f2 are the upper and lower frequency limits defining the bandwidth of the spectrum that will appear. The input parameter delta is a measure of the output data spacing. It can range between 0.001 and 0.1. Using lower values of delta produces more smooth plots but at the expense of CPU time and RAM memory. The Spectrum Analyzer software can be copied, pasted to a new MATLAB M-file and saved in the MATLAB work directory (This is where MATLAB saves all user data and program files by default). The previously mentioned Oscilloscope software should also be saved there together with all digital pictures. 114

Once the program is activated by entering the statement, Spectrum Analyzer (t, v, 0, 10^7, 0.001) for example, the program will automatically produce the following outputs: 1- A spectrum analysis plot with bandwidth between f1 and f2 showing all relative amplitudes of all frequency contents in the original signal. 2- Numerical output of frequencies and relative amplitudes of first ten most prominent peaks in the spectrum. 3- The over all percentage distortion of the signal. The overall distortion D is calculated using the equation 2 1/ 2 A n n2 D 2 (1) An n1 The software structure and the function of each step are described in the non executable comments statements (These are in green fonts) within the program. These are intended for interested MATLAB programmer or developer and to skip reading them and treating the software as a black box will not in any away affect the ordinary user. In order to test the robustness of the software s ability to analyze signals, few known simulated signals were generated mathematically, and then analyzed by the program. The first test involved the computer generation of 10 MHz pure sinusoidal signal, v sin(2 10 7 t). This test is used to asses the accuracy of automatic fundamental frequency estimation facility contained in the program and the effect of the number of complete wave cycles involved on the sharpness of the spectral lines. The numbers of cycles considered are 2, 10, 25, and 50. The results are shown in figure (2-a) Figure (2) (a) Spectrum of a 10 MHz signal using different number of complete cycles. (b) Variation of FWHM derived from (a) with number of complete cycles analyzed. It is clear from this figure that the software is successful in fully estimating the correct frequency in all cases. The value of the distortion obtained is practically zero. However, using small number of cycles is obviously associated with larger lines bandwidths. Even so, the bandwidth seems to drop almost exponentially as the number of cycles is increased. A value of FWHM = f / f 510% can be achieved using between 10 and 25 cycles. This range of 115

cycle numbers is easily distinguishable on an oscilloscope screen. Narrower lines can be obtained when numerical data logging is used instead of analyzing oscilloscope pictures. (a) (b) With the above point in mind, a computer generated 10 MHz saw-tooth signal is analyzed. This is carried out for the purpose of testing the software s ability to find the correct harmonic structure of this signal. The number of cycles used in the analysis is twenty five. It is known from analytical Fourier theory that a saw-tooth signal of angular frequency can be represented as 2 1 1 1 1 F( t) (cos t cos 2t cos 3t cos(4t ) cos(5 t)...) 2 3 4 5 (2) is the slope of the rising part of the signal. Figure(3) shows the frequency spectrum obtained. (a) (b) 116

Figure (3) (a) simulated 10 MHz saw-tooth signal. (b) Frequency analysis spectrum obtained using the software showing only the first ten harmonics. It is clear from figure (3-b) that the program is very much successful in obtaining all the harmonics at the correct positions and with the correct amplitudes. The value of the distortion obtained is 59.6%. This is in good agreement with the theoretical value of 62% if one considers the first 100 terms of equation (2). From the above simulation one may conclude that correct signal spectral analysis of data extracted from oscilloscope pictures similar to that of figure (3-a) can be performed if one can obtain relatively clear digital pictures from the oscilloscope screen of any signal at any frequency provided that the picture represents over twenty five full cycles of the fundamental frequency. Several experimental test signals have been studied using this method. Signals are obtained from a 10 MHz Hung Chang model G305 sweep function generator connected to a Hung Chang 100 MHz model 5510 oscilloscope. Tests have shown that the generator is usually capable of producing up to 1 MHz sinusoidal, triangular or rectangular signals with only relatively small distortions. However and as one tries to gets into the higher frequency range, the generator tend to produce significantly more distorted signals. Signals in the 1-10 MHz frequency range are used as test signals. Two types of signals are analyzed. These are the sinusoidal and the triangular signals. Results of analysis are presented in tables (1) and (2) respectively. Table- 1. Results of analysis of sinusoidal signals between 1 and 10 MHz 117

118

3. DISCUSSION As it may appear from tables (1) and (2), the sweep generator produces distorted signals even at 1 MHz. However, and although the overall distortion is frequency dependent, this dependence tend to assume changing values as the frequency is increased. One point worth noticing is that the over all distortion of a triangular wave at 1 MHz is about 17% which is not much higher that the theoretical value of 12%. This indicates that the generator has a better performance at 1 MHz triangular wave than with sinusoidal. The approximately 1/10 third harmonic amplitude is another indication to the system reliability. Tables also indicate that the results of analysis and the number of harmonics produced are directly related to the visual distortion of waves noted on the oscilloscope screen. 4. CONCLUSIONS From above one may conclude that the system suggested can perform well in spite of the fact that it is a simple one. The MHz frequency range used here is not binding by any mean. These frequency values are selected for the simple reason that they are the highest available to us. The same analysis can be performed at any frequency provided that the oscilloscope can handle these frequencies. REFERENCES [1] M. S. Sarma, Introduction to electrical engineering: Oxford University Press, 2001. [2] National Instruments, "Harmonic distortion measurement, tutorial document Sep 6," 2005. [3] http://www.testequipmentdepot.com/usedequipment/spectrumanalyzers.htm. [4] A. Azooz, Instruments and Experimental Techniques, vol. 54, pp. 364 368, 2011. [5] http://www.mathworks.com/matlabcentral/fileexchange/25007-oscilloscope. [6] http://www.mathworks.com/matlabcentral/fileexchange/28688-fully-automatic-signal-spectrumanalyser. 119