Real-time Data Collections and Processing in Open-loop and Closed-loop Systems

Similar documents
Real-time Real-life Oriented DSP Lab Modules

Development of Real-Time Adaptive Noise Canceller and Echo Canceller

AC : TEACHING ADAPTIVE FILTERS AND APPLICATIONS IN ELECTRICAL AND COMPUTER ENGINEERING TECHNOLOGY PRO- GRAM

Laboratory Experiments in Instrumentation and Control

LAB 4: OPERATIONAL AMPLIFIER CIRCUITS

Design of PID Control System Assisted using LabVIEW in Biomedical Application

HARDWARE IMPLEMENTATION OF LOCK-IN AMPLIFIER FOR NOISY SIGNALS

AC : INTERACTIVE LEARNING DISCRETE TIME SIGNALS AND SYSTEMS WITH MATLAB AND TI DSK6713 DSP KIT

Innovative Communications Experiments Using an Integrated Design Laboratory

Part 1. Using LabVIEW to Measure Current

Real-Time Frequency Tracking Using Novel Adaptive Harmonic IIR Notch Filter

Data acquisition and instrumentation. Data acquisition

GENERATION OF SIGNALS USING LABVIEW FOR MAGNETIC COILS WITH POWER AMPLIFIERS

AC : DEVELOPING DIGITAL/ANALOG TELECOMMUNICA- TION LABORATORY

AC : A LOW-COST LABORATORY EXPERIMENT TO GEN- ERATE THE I-V CHARACTERISTIC CURVES OF A SOLAR CELL

COURSE OUTLINE. School of Engineering Technology and Applied Science

EE 210: CIRCUITS AND DEVICES

Practical 2P12 Semiconductor Devices

PHY 351/651 LABORATORY 5 The Diode Basic Properties and Circuits

ECET DAQ & Control Systems

Using Signal Express to Automate Analog Electronics Experiments

CHAPTER 7 HARDWARE IMPLEMENTATION

EE 300W 001 Lab 2: Optical Theremin. Cole Fenton Matthew Toporcer Michael Wilson

Computer-Aided Design (CAD) of Recursive/Non-Recursive Filters

Teaching Mechanical Students to Build and Analyze Motor Controllers

EE 233 Circuit Theory Lab 3: First-Order Filters

Fuzzy Based Control Using Lab view For Temperature Process

AC : A LAB DEVELOPMENT FOR REAL TIME COMMUNICA- TION SYSTEMS WITH PCS

EENG 479 Digital signal processing Dr. Mohab A. Mangoud

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

Lab 2A: Introduction to Sensing and Data Acquisition

Fall 2009 ElEn 256 Analog and Digital Signal Processing

HIL Simulation Lab Work

Digital Signal Processing

Laboratory Preliminaries and Data Acquisition Using LabVIEW

Revision: June 10, E Main Suite D Pullman, WA (509) Voice and Fax

BIOMEDICAL DIGITAL SIGNAL PROCESSING

Laboratory Preliminaries and Data Acquisition Using LabVIEW

AC : LAB EXPERIENCE FOR CIRCUITS CLASSES IN A SIM- PLIFIED LAB ENVIRONMENT

AC : PSCAD SIMULATION IN A POWER ELECTRONICS APPLICATION COURSE

CG401 Advanced Signal Processing. Dr Stuart Lawson Room A330 Tel: January 2003

Lab 4 Rev. 1 Open Lab Due COB Friday April 6, 2018

Intruder Alarm Name Mohamed Alsubaie MMU ID Supervisor Pr. Nicholas Bowring Subject Electronic Engineering Unit code 64ET3516

Fuzzy Based Control Using Lab view For Temperature Process

Integration of System Design and Standard Development in Digital Communication Education

Discrete-Time Signal Processing (DTSP) v14

Multirate DSP, part 1: Upsampling and downsampling

A Bi-level Block Coding Technique for Encoding Data Sequences with Sparse Distribution

Lab 4: Analysis of the Stereo Amplifier

Simple Methods for Detecting Zero Crossing

: A NEW INTRODUCTORY COURSE ON SIGNALS, CIRCUITS AND SYSTEMS

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

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

VI-Based Introductory Electrical Engineering Laboratory Course*

ET 438B Sequential Digital Control and Data Acquisition Laboratory 4 Analog Measurement and Digital Control Integration Using LabVIEW

University of Portland EE 271 Electrical Circuits Laboratory. Experiment: Digital-to-Analog Converter

NEW YORK CITY COLLEGE of TECHNOLOGY THE CITY UNIVERSITY OF NEW YORK DEPARTMENT OF ELECTRICAL ENGINEERING AND TELECOMMUNICATIONS TECHNOLOGIES

LABORATORY 3 v1 CIRCUIT ELEMENTS

ME 461 Laboratory #3 Analog-to-Digital Conversion

Lab 0: Introduction to TIMS AND MATLAB

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

Development of 4/16-Channel Data Acquisition System Using Lab VIEW

Introduction to the Op-Amp

EE 110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab 0: Course Introduction

ADC, FFT and Noise. p. 1. ADC, FFT, and Noise

An Automatic Voice-Controlled Audio Amplifier

UC Berkeley, EECS Department EECS 40/42/100 Lab LAB3: Operational Amplifier UID:

EE 422G - Signals and Systems Laboratory

Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit

PC s and Micro-Controllers in Mechatronics Education. Santosh Devasia and Sanford Meek

An Incremental Measurements and Data Acquisition Project

RF System: Baseband Application Note

EE 300W Lab 2: Optical Theremin Critical Design Review

Active Noise Cancellation Headsets

Auto Harmonizer. EEL 4924 Electrical Engineering Design (Senior Design) Final Design Report 26 April 2012

Internal Sound Denoising for Traditional Stethoscope Using Inverse Chebyshev IIR Bandstop Filter

An Undergaduate Engineering Ethics and Leadership Education Program

Lab 2 Revisited Exercise

Lab 4 Digital Scope and Spectrum Analyzer

Experiment #8: Designing and Measuring a Common-Collector Amplifier

Final Design Project: Variable Gain Amplifier with Output Stage Optimization for Audio Amplifier Applications EE 332: Summer 2011 Group 2: Chaz

ITT Technical Institute. ET275 Electronic Communications Systems I Onsite Course SYLLABUS

The University of Wisconsin-Platteville

ME 461 Laboratory #5 Characterization and Control of PMDC Motors

DIGITAL SIGNAL PROCESSING. Introduction

LabVIEW Based Instrumentation and Experimental Methods Course

IMPLEMENTATION AND DESIGN OF TEMPERATURE CONTROLLER UTILIZING PC BASED DATA ACQUISITION SYSTEM

Electronic Circuits. Laboratory 6 - Solution

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

Lab 2: Introduction to NI ELVIS, Multisim, and LabVIEW

Real-Time Digital Signal Processing Demonstration Platform

LabVIEW and MatLab. E80 Teaching Team. February 5, 2008

Auto Harmonizer. EEL 4924 Electrical Engineering Design (Senior Design) Preliminary Design Report 2 February 2012

Electronic Circuit Simulation Tools Using Pspice On Ac Analysis

BME/ISE 3512 Bioelectronics. Laboratory Five - Operational Amplifiers

Optical Theremin CDR

Lab 2: Optical Theremin Team 2 Flyback By Brian Pugh, Andrew Baker, and Michael Betts

Laboratory 4: Amplification, Impedance, and Frequency Response

The Temperature Controlled Window Matt Aldeman and Chase Brill ME 224 June 2003

EE 264 DSP Project Report

Transcription:

Real-time Data Collections and Processing in Open-loop and Closed-loop Systems Jean Jiang Purdue University Northwest jjiang@pnw.edu Li Tan Purdue University Northwest lizhetan@pnw.edu Abstract We present our new pedagogy for teaching data processing implementations using the LabVIEW program and DAQ (Data Acquisition) board. In the Electrical Engineering (EE) and Electrical Engineering Technology (EET) curricula, the LabVIEW program and DAQ board data acquisition have been used as an effective platform for teaching signal processing and control systems during junior year. Such courses are offered in both EE and EET programs based on current trends in the signal processing/control industry and student interest regarding career development. The courses have significant emphasis on real-time processing applications. After completing the course, students not only became familiar with MATLAB and LabVIEW software development tools, but also gained real-time experience in signal processing. They are now able to design low-pass and band-pass filters and implement them using MATLAB and LabVIEW software, and thus can apply the software and hardware interface for real world applications. Compared to traditional control or signal processing courses, which mainly focus on heavy mathematical development with limited opportunity for computer simulations, our real-time projects can greatly help students understand how a real-time signal such as a temperature signal can be processed and controlled in a closed-loop feedback control system, or how his/her own voice could be enhanced by the following stages: audio amplification, audio digitization and collection by a DAQ board, display by LabVIEW and spectrum analyzer, digital audio processing by MATLAB and LabVIEW software, and analog audio recovery by an active reconstruction low-pass filter in an open-loop system. Therefore, in this paper, we first introduce a closedloop temperature control system which includes a DAQ board interface circuit and LabVIEW software. Next, we propose a DSP (Digital Signal Processing) platform to perform real-time audio data processing. Using these proposed platforms, students successfully learn LabVIEW and DAQ board interfacing techniques and are able to apply them to real life applications after completing such projects. I. Introduction Data acquisition and data/signal processing technology have continually impacted electrical, computer, and biomedical programs. This is due to the fact that real-time processing plays a key role in many current applications of electronics and control systems. A quick review of

the current jobs advertised in technical magazines and on internet sites further reveals a demand for individuals with a refined knowledge of real-time processing. Hence, being adequately qualified in operating, maintaining, repairing, evaluating, and helping to specify and design real-time systems allows a student to demonstrate significant competency for employment. To prepare engineering/technology students for such an industrial trend, many undergraduate programs in engineering/technology not only offer a course to cover the fundamentals of signal and system analysis, but also provide a second course in which real-time applications and corresponding advanced topics such as speech signal processing, adaptive filtering, and closed-loop control systems[1-3,5] are introduced. A control course in our engineering program and a signal processing course in our technology program are designed for junior students to gain experience with real-time data/signal processing and to develop interest in real world applications. Such examples of projects offered include a closed-loop temperature control system and an innovative real-time speech processing project, which are covered in this paper. Our complete real-time processing system which includes design and testing greatly motivates students and allows students to better understand class topics, whereas traditional teaching only focuses on heavy mathematical development in signal sampling and recovering, spectrum analysis, closed-loop system analysis, and FIR or IIR filter design with limited opportunity for computer simulations. Our course assumes that students have already acquired working knowledge of the Laplace transform, Fourier analysis, and analog filters from the previous course. In addition, proficiency in MATLAB programming is required, and MultiSIM will be used to verify different filter designs. In offering a broad coverage of topics and a focus on real-time applications, the course could prove to be beneficial to all electrical engineering students. Since teaching advanced real-time processing topics has a requirement of being taught at a hands-on level, adopting traditional teaching approaches and using textbooks from a standard four-year program that focus on complicated mathematics and theories may not be appropriate. Hence, in this paper, we will present our innovative pedagogies and experiences in the engineering/technology curricula. The paper is organized as follows. We first present a closed-loop temperature control project in the EE program; then, we demonstrate a hands-on signal processing project in the EET program. Note that both projects use DAQ (Data Acquisition) boards and simulation tools such as LabVIEW, MATLAB and MultiSIM. Finally, we address possible improvement of the course contents and associated laboratories. II. A Closed-loop Temperature Control System In this section, we create an on/off closed-loop temperature control system which includes two SCR s (silicon controlled rectifiers), an LM34DZ temperature sensor, two diodes and one 10 ohm resistor heater. We use LabVIEW to apply 10V power to the heater resistor until its temperature reaches 100 degrees Fahrenheit. Then the SCR will turn off its power supply until the resistor cools to less than 90 degrees Fahrenheit. The system will then turn the

power back on the heater to raise the temperature again. Therefore, this closed-loop control system can keep the temperature between 90 and 100 degrees Fahrenheit. A. System Level Concept Figure 1 shows the system block diagram, where the design specifications are given and LabVIEW is required for data acquisition and processing. LabView Platform LM34DZ T Sensor Ambient o F Vc Driver = 10 V When T>100 Heater 0 0 When 90 F T 100 F, the heater remains the current state 10Ω 10-W resistor SCR (Silicon controlled rectifier) switches are used in the driver circut 0 F, the heater turns off. 0 When T< 90 F, the heater turns on B. Hardware Design Figure 1. On/off Closed-loop Temperature Control The hardware design and interface with LabVIEW is shown in Figure 2. As shown in Figure 2, the special elements used in this project include: an LM34Z temperature sensor, an SCR (silicon controlled rectifier, often used in power industrial electronics such as automobiles), a diode, and a 4N33 optoisolator.

5 V (on) AO0= 0 V (off) 5 V (on) AO1= 0 V (off) AI0 AO0 AO0 4.7 kω GND NI 6255 Mode for AI0, AO0, and AO1: AI0: one sample on demand Range: -10 to 10 V Termimnal: RSE AI0 AO1 AO1 0 Temperture sensor ( F) V V CC 4N33 V = 5 V S (Power supply) = 10 V 10 KΩ Q 1 34DZ Heater V = 10 V CC 10Ω10-W resistor V - 1 + V2 100 KΩ A + + A 100 uf SCR 2 G SCR + - 1-1 - G 2 K K D Diode 1 Diode 2 VCC Q 2 D1 2 = 0 V, Diode 1=off, V is open D1 G1 V > 0.7 V, Diode 1=on, V >0.7 V, SCR1 is on D1 G1 I 2 = 10 V 4N33 10 KΩ 4.7 kω I2(max) = 10 V /100K = 0.1 ma < I Hold I 2 can not turn on SCR2, but can charge the capacitor Figure 2. Schematic of An On/Off Closed-loop Temperature Control System When the temperature sensor detects that the ambient temperature is lower than 90 0 F, the LabVIEW DAC channels 0 and 1 output AO0=5 V and AO1=0 V, respectively. This causes the SCR 1 on to turn run the heater. Otherwise, the SCR is off. The capacitor is charged to 10 volts, that is, V21=V2-V1=10 V. When the temperature is between 90 0 F and 100 0 F, the LabVIEW DAC channels 0 and 1 output zero volts, that is, AO0=0 V and AO1=0 V. SCR 1 is still on since the current passing through is greater than the holding current, and SCR 2 remains in the off-condition. However, when the temperature is over 100 0 F, the LabVIEW ADC channels 0 and 1 output AO0=0 V and AO1=5 V, respectively. This turns on SCR 2 and forces SCR 1 to be turned off. C is discharged from the path (current flow) Vcc-V1-V2- K-Ground. After C is fully discharged, C acts as an open circuit. The small holding current cannot maintain the current conducting through SCR 2. Thus, both SCR1 and SCR2 are now off. When temperature is less than 90 0 F, this procedure repeats from step 1. C. Software Design and Algorithm Figure 3 shows the front panel requirement and Figure 4 describes an algorithm for converting the temperature sensor voltage to display temperature in degrees Fahrenheit and degrees Celsius.

Front pannel 0 F 0 F 0 C 0 C Figure 3. LabVIEW Front Panel Figure 4. Sample of the LabVIEW Program In summary, students were asked to design and construct the circuit, utilize LabVIEW to power and control the heater, and display the temperature in degrees Fahrenheit and degrees

Celsius. Then, students examined the operation of the circuit by charting the temperature every five seconds in degrees Fahrenheit and drawing the results for two complete cycles of the temperature control for the system. III. A Real-Time Speech Processing System We now focus on a real-time speech project for the EET program in which the DSP (digital signal processing) technique will be used. The textbook selected was Digital Signal Processing: Fundamentals and Applications. published by Elsevier, 2013 [1]. The textbook presents course materials at an appropriate math level, uses an ample amount of simplified and clearly worked examples, adopts MATLAB programs to demonstrate simulations, and provides application examples to motivate students. Simplification of real-time DSP implementations to the engineering technology level is a plus. To minimize the time required to learn different simulation tools, we simply selected MATLAB, which students had gained familiarity with when they took the first signal processing course as a major simulation and design tool. However, other simulation tools were also welcomed when time permitted. A PCI-1200 DAQ board and LabVIEW were chosen as a platform for teaching real-time signal processing. Students gained working knowledge upon completing their project. We requested the students to design an FIR low-pass filter and an IIR band-pass filter using MATLAB, and then to apply the results to LabVIEW programs to process his/her own audio signal sampled from a microphone. Meanwhile, the original speech spectrum and the processed speech spectrum were obtained and displayed by LabVIEW for comparison. Real-Time Digital System Implementations A. We first introduce a tutorial to verify data acquisition in the system to help students to establish working knowledge. LabView DAQ Card and Software DSP system Function Generator ADC Display of Captured Data DAC Oscilloscope Figure 5. Real-time DSP Laboratory Setup

The laboratory setup is shown in Figure 5 so that the students can verify the sampling and recovering process and gain control of the analog-to-digital conversion (ADC) input and digital-to-analog conversion (DAC) output via the DAQ card. B. Design and construct a signal conditioning circuit (an audio amplifier using LM386 with a gain of 200) and put it into the audio system using a microphone as the input, as shown in Figure 6. Function Generator LabView DAQ Card and Software DSP system Audio Amplifier ADC Display of Captured Data DAC Oscilloscope Figure 6. Test of Audio Amplifier C. Design and construct a second-order low-pass Sallen and Key Filter with a cut-off frequency of 3,200 Hz and connect it into the audio system, as shown in Figure 7. LabView DAQ Card and Software DSP system Function Generator ADC Display of Captured Data DAC Oscilloscope Lowpass Filter Figure 7. Test of the Low-pass Filter

D. FIR filter design and implementation First, design a low-pass FIR filter using the Hamming window design method by MATLAB. Then apply the filter coefficients from MATLAB for a digital filter created in LabVIEW. The filter has 15 taps, a cut-off frequency of 800 Hz, and a sampling rate of 8,000 Hz. This low-pass FIR filter can effectively remove the high-frequency background noise. Figure 8a. Frequency Responses of the Low-pass FIR Filter by MATLAB

Figure 8b. Low-pass Filter Implementation by LabVIEW E. IIR filter design and implementation First, create a band-pass IIR filter using the bilinear-transform method. This is a second order Butterworth filter that passes frequencies between 1,200 Hz and 1,600 Hz. A sampling rate of 8,000 Hz is used. Then apply the filter coefficients from MATLAB for a digital filter created in LabVIEW.

Figure 9a. Frequency Responses of the Band-pass Filter by MATLAB

Figure 9b. Band-pass Filter Implementation by LabVIEW F. The complete system Finally, a complete audio system as shown in Figure 10 is established and the snapshot of its hardware realization is shown in Figure 11. LabView DAQ Card and Software: DSP system Spectrum Analysis Before Processing Spectrum Analysis After Processing Microphone Audio Amplifier Lowpass Filter ADC Digital Signal Processing: FIR Filtering or IIR Filtering DAC Speaker Display Before Processing Display After Processing Lowpass Filter Figure 10. The Overall Speech Processing System To determine the functionality of the project, allow speech input from a microphone and output to a speaker. Then test the program by inputting signals at various frequencies. Next, examine speech through each filter: the low-pass filter cuts off high-end frequencies, making voices sound muffled; the band-pass filter makes speech samples sound watered down by only passing a small range of frequencies.

Figure 11. Snapshot of the Hardware Realization In summary, students were asked to use the MATLAB tool to perform filter design, digital filtering, and spectral analysis of the input and output signals to examine the effects of filtering. Students can also compare the calculated spectrum of the original speech to that of the filtered speech. Meanwhile, the students examined the filtered speech by listening to the processed sound and comparing it with his/her original voice. IV. Future Improvement Based on our experiences from teaching real-time implementation courses, we felt that for all the lectures containing well-established topics such as closed-loop system analysis and the digital spectrum, FIR and IIR filter implementations and developed laboratories are suitable. We have successfully delivered course materials with an emphasis on principles and hands-on applications as opposed to heavy theory. On the other hand, based on the current industrial trend, we could improve the course by introducing additional topics such as adaptive filtering, subband coding, and wavelet coding (as well as its applications). To improve our labs, we should make use of the lab equipment fund to adopt more advanced data processing platforms with multi-channel ADCs and DACs so that many practical realtime laboratory projects can be developed. V. Conclusions The industry has shown a continuous demand for engineering/technology students to possess a working knowledge of advanced and real-time techniques. The traditional

treatment of teaching those subjects using profound mathematics is not appropriate. However, with mathematical simplifications equipped with numerical examples, MATLAB simulations, and real-time laboratories, both engineering and technology students are able to grasp concepts effectively and thus apply their obtained knowledge towards their careers and future technical practices. References [1]. L. Tan and J. Jiang, Digital Signal Processing: Fundamentals and Applications. 2nd Edition, Elsevier/Academic Press, 2013. [2]. L. Tan and J. Jiang, A Simple DSP Laboratory Project for Teaching Real-Time Signal Sampling Rate Conversions, the Interface Technology Journal, Vol. 9, No. 1, Fall 2008. [3]. W. Gan, S. Kuo, Teaching DSP Software Development: From Design to Fixed-Point implementations, IEEE Trans. on Education, vol. 49, issue, 1, pp. 122-131, February 2006. [4]. L. Tan, J. Jiang, Teaching Advanced Digital Signal Processing with Multimedia applications in Engineering Technology Programs, ASEE Annual Conference, June 2009. [5]. Ifeachor, Emmanuel and Jervis, Barrie. Digital Signal Processing, A Practical Approach, Prentice-Hall Publishing, 2002. [6]. de Vegte, Joyce Van. Fundamentals of Digital Signal Processing, Prentice-Hall Publishing, 2002. [7]. J. Essick, LabVIEW for Scientists and Engineers, Oxford University Press, 2009. Biographies JEAN JIANG is an associate professor of Electrical Engineering Technology at Purdue University Northwest. She earned her Ph.D. degree in Electrical Engineering from University of New Mexico. Her research interests include digital and adaptive signal processing, active noise control and control systems. Dr. Jiang may be reached at jjiang@pnw.edu. LI TAN is a full professor of Electrical and Computer Engineering, Purdue University Northwest. He is an IEEE senior member. He received his Ph.D. degree in Electrical Engineering from University of New Mexico. His research interests include digital and adaptive signal processing, active noise control and control systems, and digital communications. Dr. Tan may be reached at lizhetan@pnw.edu.