real-world applications for freshman ... - download.ni.com

109
Real-World Applications for Freshman Engineering Education Lina Karam and Naji Mounsef Electrical Engineering Department Arizona State University [email protected] NI Week Copyright 2008 by L. Karam 1 RealWorld Applications for Freshman Engineering Education

Upload: others

Post on 10-Feb-2022

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Real-World Applications for Freshman ... - download.ni.com

Real-World Applications for Freshman Engineering Education

Lina Karam and Naji MounsefElectrical Engineering Department

Arizona State University [email protected]

NI Week ‐ Copyright 2008 by L. Karam 1Real‐World Applications for Freshman Engineering Education 

Page 2: Real-World Applications for Freshman ... - download.ni.com

Resources – To probe furtherResources To probe further…• Lina J. Karam and Naji Mounsef, “Introduction to

E i i A St t ’ G id With H d O Di it lEngineering: A Starter’s Guide With Hands-On Digital Multimedia and Robotics Explorations,” Morgan-Claypool, 2008 (ISBN: 9781598297621 paperback, yp , ( p p ,ISBN: 9781598297638 ebook)

• Lina J. Karam and Naji Mounsef, “Introduction to Engineering: A Starter’s Guide With Hands-On Analog Multimedia Explorations,” Morgan-Claypool, 2008 (ISBN: 9781598297591 paperback ISBN:(ISBN: 9781598297591 paperback, ISBN: 9781598297607 ebook)

NI Week ‐ Copyright 2008 by L. Karam 2Real‐World Applications for Freshman Engineering Education 

Page 3: Real-World Applications for Freshman ... - download.ni.com

ObjectivesImprove recruitment and retention.Excite students about engineering and engineeringExcite students about engineering and engineering

careers.Provide knowledge and hands-on experience in

engineering design and in translating concepts into real-world applications.

Introduce students to data acquisition test andIntroduce students to data acquisition, test, and measurement.

Provide experience using tools and equipmentProvide experience using tools and equipment commonly used in industry.

Provide hands-on instruction tools to other educators.

NI Week ‐ Copyright 2008 by L. Karam 3Real‐World Applications for Freshman Engineering Education 

Page 4: Real-World Applications for Freshman ... - download.ni.com

Strategy

Instrumentation and prototyping boards for data acquisition, analog processing, testing, and measurements, and introduction to circuits, logic, and electromagnetics

NI ELVISNI ELVIS

NI Week ‐ Copyright 2008 by L. Karam 4Real‐World Applications for Freshman Engineering Education 

Page 5: Real-World Applications for Freshman ... - download.ni.com

Strategy

Embedded real-time DSP technology for data/signal acquisition, digital processing, computing systems, communications and controls and their applications in the development of multimedia systems and robotics

Robotics Daughter Card

NI SPEEDY33 moreNI Week ‐ Copyright 2008 by L. Karam 5Real‐World Applications for Freshman Engineering Education 

Page 6: Real-World Applications for Freshman ... - download.ni.com

Strategy

Visual instrumentation and programmingBlock Diagram

Front Panel

NI LabVIEWNI LabVIEW

NI Week ‐ Copyright 2008 by L. Karam 6Real‐World Applications for Freshman Engineering Education 

Page 7: Real-World Applications for Freshman ... - download.ni.com

Hand-On ApplicationsDigital Applications: SPEEDY-33

Audio Level Meter using LEDs

Noise Removal using Digital Filters

Music Equalizer

Telephone

Introduction to Robotics Expanded into t oduct o to obot cs

Digital Audio Effects: Echo, Reverb

Music Composer

Design Project

Music Composer

Modem

AM Radio

NI Week ‐ Copyright 2008 by L. Karam 7Real‐World Applications for Freshman Engineering Education 

Page 8: Real-World Applications for Freshman ... - download.ni.com

Hand-On Applications

Analog Applications: NI ELVIS

L l M t i LED diLevel Meter using LEDs: audio, light, temperature

Noise Removal using Analog g gFilters

Music Equalizer using Op-Amps

Music Composer using 555 timers

AM Radio: AM ModulatorAM Radio: AM Modulator

AM Radio: AM Demodulator

NI Week ‐ Copyright 2008 by L. Karam 8Real‐World Applications for Freshman Engineering Education 

Page 9: Real-World Applications for Freshman ... - download.ni.com

Hand-On Applications

Digital Applications: NI LabVIEW

Digital Image Processing

Real-Time Video Processing

NI Week ‐ Copyright 2008 by L. Karam 9Real‐World Applications for Freshman Engineering Education 

Page 10: Real-World Applications for Freshman ... - download.ni.com

Digital Applications: Audio Level MeterDigital Applications: Audio Level Meter

NI Week ‐ Copyright 2008 by L. Karam 10Real‐World Applications for Freshman Engineering Education 

Page 11: Real-World Applications for Freshman ... - download.ni.com

SPEEDY-33 LEDs and Switches

8 Switches

8 LEDsPrimary focus of multimedia applications are real‐world analog signals (a dio speech signals )signals (audio, speech signals…)

There are applications that benefit from digital inputs and outputs: ‐triggering interrupts using switches‐triggering, interrupts using switches‐error indicator, LED VU Meter using LEDS.NI Week ‐ Copyright 2008 by L. Karam 11Real‐World Applications for Freshman Engineering Education 

Page 12: Real-World Applications for Freshman ... - download.ni.com

SPEEDY-33 LEDs and Switches

8 Switches

8 LEDsDigital Input & Output can be configured easily using LabVIEW

LEDs turn on when a 1 is written to them. They turn off when a 0 is sent.

Switches states can be read in LabVIEW If a switch is pressedSwitches states can be read in LabVIEW. If a switch is pressed, then its state is 1.

NI Week ‐ Copyright 2008 by L. Karam 12Real‐World Applications for Freshman Engineering Education 

Page 13: Real-World Applications for Freshman ... - download.ni.com

Part 1: Controlling LEDs using SwitchesAs a starting application, VI

implemented to check the f h i hstatus of the DIP switches

and accordingly manipulate the corresponding LEDs; p g ;i.e., if DIP switch 1 is ON, turn LED1 ON, and so on.

NI Week ‐ Copyright 2008 by L. Karam 13Real‐World Applications for Freshman Engineering Education 

Page 14: Real-World Applications for Freshman ... - download.ni.com

Part 1: Controlling LEDs using Switchesg g

NI Week ‐ Copyright 2008 by L. Karam 14Real‐World Applications for Freshman Engineering Education 

Page 15: Real-World Applications for Freshman ... - download.ni.com

Part 1: Controlling LEDs using Switchesg g

NI Week ‐ Copyright 2008 by L. Karam 15Real‐World Applications for Freshman Engineering Education 

Page 16: Real-World Applications for Freshman ... - download.ni.com

Part 2: Audio LED VU Meter

For audio systems or recorders, an audio VU (VU standsFor audio systems or recorders, an audio VU (VU stands for Volume Units) meter is a device that indicates the relative levels of the audio being recorded or played.

An audio signal is acquired and and its energy level is compared with different levels If the energy is highercompared with different levels. If the energy is higher than a certain level, corresponding LEDs will be turned on.

NI Week ‐ Copyright 2008 by L. Karam 16Real‐World Applications for Freshman Engineering Education 

Page 17: Real-World Applications for Freshman ... - download.ni.com

Part 2: Audio LED VU Meter

NI Week ‐ Copyright 2008 by L. Karam 17Real‐World Applications for Freshman Engineering Education 

Page 18: Real-World Applications for Freshman ... - download.ni.com

Connect the SPEEDY 33 board to your computer using theHands-On …Connect the SPEEDY-33 board to your computer using the

supplied USB cable.Go to folder DigitalHandsOnApplications/Audio Level Meter.S l t th A di L l M t j t filSelect the Audio Level Meter project file.Or, if no project is available, create a project using LabVIEW:Run LabVIEW 8.5.Under Targets, “DSP Project” should be displayed. Click the Go button under Targets.Click Next under the “Define Project Info” windowClick Next under the Define Project Info window.Under “Target type”, select SPEEDY-33.Click Finish.U d th “P j t E l ” i d li k Fil th l tUnder the “Project Explorer” window, click File then select Open. Go to folder DigitalHandsOnApplications/Audio Level Meter.Select the Audio_Level_Meter VI then save the project.NI Week ‐ Copyright 2008 by L. Karam 18Real‐World Applications for Freshman Engineering Education 

Page 19: Real-World Applications for Freshman ... - download.ni.com

Analog Applications: Audio Level Meter

NI Week ‐ Copyright 2008 by L. Karam 19Real‐World Applications for Freshman Engineering Education 

Page 20: Real-World Applications for Freshman ... - download.ni.com

Analog Applications: Audio Level Meter

Components:DiodesDiodesLEDsComparatorsResistors 

NI Week ‐ Copyright 2008 by L. Karam 20Real‐World Applications for Freshman Engineering Education 

Page 21: Real-World Applications for Freshman ... - download.ni.com

DiodesAnode

Cathode

Diode allows an electric current to flow in one direction.It needs 0.7 V difference between its positive and negative terminal to operate. The negative side (cathode) of a diode is indicated by a gray g ( ) y g ydash.

NI Week ‐ Copyright 2008 by L. Karam 21Real‐World Applications for Freshman Engineering Education 

Page 22: Real-World Applications for Freshman ... - download.ni.com

Light Emitting Diodes (LEDs)g g ( )Small colored lights available in any electronics store.

Used widely in different applications: indicator lights on our stereos automobile dashboardslights on our stereos, automobile dashboards, microwave ovens, numeric displays on clock radios, digital watches, and calculators are composed of bars of LEDs, TV remote controls, jewelry and clothing…

Th ti id f LED i i di t d b thThe negative side of a LED is indicated by the shorter of the two wires extending from the LED. 

LED t t l ti l lt b t b t 1V d 4VLEDs operate at relative low voltages between about 1V and 4V. 

NI Week ‐ Copyright 2008 by L. Karam 22Real‐World Applications for Freshman Engineering Education 

Page 23: Real-World Applications for Freshman ... - download.ni.com

ComparatorsComparators

Basic OperationIf V+ >= V‐, the comparator output voltage will be VccIf V V th t t t lt ill b 0 VIf V+ < V‐, the comparator output voltage will be 0  V

NI Week ‐ Copyright 2008 by L. Karam 23Real‐World Applications for Freshman Engineering Education 

Page 24: Real-World Applications for Freshman ... - download.ni.com

Part 1: Controlling 1 LED with comparator and Power S lSupply

NI Week ‐ Copyright 2008 by L. Karam 24Real‐World Applications for Freshman Engineering Education 

Page 25: Real-World Applications for Freshman ... - download.ni.com

Part 2: Converting AC to DC

NI Week ‐ Copyright 2008 by L. Karam 25Real‐World Applications for Freshman Engineering Education 

Page 26: Real-World Applications for Freshman ... - download.ni.com

Part 3: Voltage Divider

1.86

1.33

0.94

0.698V

0.69

0.49

Divided Voltage = 

Input Voltage*(R2/R1+R2)

0.34

0.24Input Voltage (R2/R1+R2)

NI Week ‐ Copyright 2008 by L. Karam 26Real‐World Applications for Freshman Engineering Education 

Page 27: Real-World Applications for Freshman ... - download.ni.com

Part 4: First Stage of an Audio Level Meter

Convert AC to DC V=8*3/(22+3)     = 1V= 1V

NI Week ‐ Copyright 2008 by L. Karam 27Real‐World Applications for Freshman Engineering Education 

Page 28: Real-World Applications for Freshman ... - download.ni.com

Part 5: 8-LED Audio Level Meter

NI Week ‐ Copyright 2008 by L. Karam 28Real‐World Applications for Freshman Engineering Education 

Page 29: Real-World Applications for Freshman ... - download.ni.com

Part 5: 8-LED Audio Level Meter

NI Week ‐ Copyright 2008 by L. Karam 29Real‐World Applications for Freshman Engineering Education 

Page 30: Real-World Applications for Freshman ... - download.ni.com

Part 5: 8-LED Audio Level Meter

NI Week ‐ Copyright 2008 by L. Karam 30Real‐World Applications for Freshman Engineering Education 

Page 31: Real-World Applications for Freshman ... - download.ni.com

8-LED Audio Level Meter: Digital Versus Analog

ELVISSPEEDY‐33

NI Week ‐ Copyright 2008 by L. Karam 31Real‐World Applications for Freshman Engineering Education 

Page 32: Real-World Applications for Freshman ... - download.ni.com

H d O DHands-On Demo…

NI Week ‐ Copyright 2008 by L. Karam 32Real‐World Applications for Freshman Engineering Education 

Page 33: Real-World Applications for Freshman ... - download.ni.com

Di it l A li ti N i R lDigital Applications: Noise Removal using Digital Filters

NI Week ‐ Copyright 2008 by L. Karam 33Real‐World Applications for Freshman Engineering Education 

Page 34: Real-World Applications for Freshman ... - download.ni.com

Sinusoidal Signals and FrequencySinusoidal Signals and FrequencyA sinusoid is any function of time having the

following form:

NI Week ‐ Copyright 2008 by L. Karam 34Real‐World Applications for Freshman Engineering Education 

Page 35: Real-World Applications for Freshman ... - download.ni.com

Sinusoidal Signals and Frequencyg q yWaveforms can be expressed as the sum of various

sinusoidal componentssinusoidal components.

NI Week ‐ Copyright 2008 by L. Karam 35Real‐World Applications for Freshman Engineering Education 

Page 36: Real-World Applications for Freshman ... - download.ni.com

Sinusoidal Signals and FrequencySinusoidal Signals and Frequency

Signals (voice, music…) are composed g ( ) pof different frequency components. For example, voice signals are composed of frequencies ranging from p q g g300 Hz to 3300 Hz, while music frequencies range from 20 Hz to 20 kHz.

One can take advantage of this fact to eliminate unwanted frequencies.

NI Week ‐ Copyright 2008 by L. Karam 36Real‐World Applications for Freshman Engineering Education 

Page 37: Real-World Applications for Freshman ... - download.ni.com

What is a filter?What is a filter?A filter is a device that accepts an input signal, and

passes or amplifies selected frequencies while itpasses or amplifies selected frequencies while it blocks or attenuates unwanted ones.

Filters can be analog or digitalFilters can be analog or digital.The Frequency Response of a filter is the measure of

the filter's response (filter output) to a sinusoidalthe filter s response (filter output) to a sinusoidal signal of varying frequency and unit amplitude at its input.p

Lowpass Highpass Bandpass Bandstop

NI Week ‐ Copyright 2008 by L. Karam 37Real‐World Applications for Freshman Engineering Education 

Page 38: Real-World Applications for Freshman ... - download.ni.com

Filter Types – Frequency Responseyp q y p

NI Week ‐ Copyright 2008 by L. Karam 38Real‐World Applications for Freshman Engineering Education 

Page 39: Real-World Applications for Freshman ... - download.ni.com

Plotting Signals in Frequency Domaing g q y

NI Week ‐ Copyright 2008 by L. Karam 39Real‐World Applications for Freshman Engineering Education 

Page 40: Real-World Applications for Freshman ... - download.ni.com

Plotting Signals in Frequency Domaing g q y

NI Week ‐ Copyright 2008 by L. Karam 40Real‐World Applications for Freshman Engineering Education 

Page 41: Real-World Applications for Freshman ... - download.ni.com

Noise Removal Design system to remove noise from a

corrupted signal.l d h d di fil d lDownload the corrupted audio file and play

it. The file was corrupted by adding asinusoidal tone to it.

C t th t t d d f th PC tConnect the output sound card of the PC tothe input of the DSP board using thedouble jack stereo cable. The corruptedaudio file is now the input signal for theaudio file is now the input signal for theSpeedy-33 board.

Find the frequency of the noise by lookingat the FFT of the input signal.p g

Design a bandstop filter to eliminate thenoise components and observe thefrequency spectrum of the filtered signal.

NI Week ‐ Copyright 2008 by L. Karam 41Real‐World Applications for Freshman Engineering Education 

Page 42: Real-World Applications for Freshman ... - download.ni.com

C t th SPEEDY 33 b d t t iHands-On …Connect the SPEEDY-33 board to your computer using

the supplied USB cable.Go to folder DigitalHandsOnApplications/NoiseGo to folder DigitalHandsOnApplications/Noise

RemovalSelect the Noise Removal project file.p jConnect Audio cable from PC Audio Out to

SPEEDY-33 Audio InConnect another Audio Cable from SPEEDY-33 Audio

Out to Speakers.

NI Week ‐ Copyright 2008 by L. Karam 42Real‐World Applications for Freshman Engineering Education 

Page 43: Real-World Applications for Freshman ... - download.ni.com

Analog Applications: Noise Removal i A l Filusing Analog Filters

NI Week ‐ Copyright 2008 by L. Karam 43Real‐World Applications for Freshman Engineering Education 

Page 44: Real-World Applications for Freshman ... - download.ni.com

Noise Removal with Analog FiltersNoise Removal with Analog FiltersComponents:

ResistorsResistorsCapacitorOpAmpOpAmp

NI Week ‐ Copyright 2008 by L. Karam 44Real‐World Applications for Freshman Engineering Education 

Page 45: Real-World Applications for Freshman ... - download.ni.com

Noise Removal with Analog FiltersNoise Removal with Analog FiltersLowpassFilter

Filtered Audio Signal

Noisy Audio signal

Filter+

HighpassFilter

g

Noisy A di FilteredAudio signal

Filtered Audio Signal

ADDERNI Week ‐ Copyright 2008 by L. Karam 45Real‐World Applications for Freshman Engineering Education 

Page 46: Real-World Applications for Freshman ... - download.ni.com

AdderAdder

Vout = ‐ (V1+V2)

V1 =lowpass filter outputV1  lowpass filter outputV2=highpass filter output

NI Week ‐ Copyright 2008 by L. Karam 46Real‐World Applications for Freshman Engineering Education 

Page 47: Real-World Applications for Freshman ... - download.ni.com

OPerational AMPlifierOPerational AMPlifier

NI Week ‐ Copyright 2008 by L. Karam 47Real‐World Applications for Freshman Engineering Education 

Page 48: Real-World Applications for Freshman ... - download.ni.com

H d O DHands-On Demo…

NI Week ‐ Copyright 2008 by L. Karam 48Real‐World Applications for Freshman Engineering Education 

Page 49: Real-World Applications for Freshman ... - download.ni.com

Digital Applications: Music EqualizerDigital Applications: Music Equalizer

NI Week ‐ Copyright 2008 by L. Karam 49Real‐World Applications for Freshman Engineering Education 

Page 50: Real-World Applications for Freshman ... - download.ni.com

What is a Music Equalizer?Bass control allows to boost or cut audio signal at low frequencies. q

Treble control allows to boost or cut audio signal at high frequencies.

Music equalizer allows to l di i l lcontrol audio signal at low, 

mid and high frequencies.

The number of bands in anThe number of bands in an equalizer control how finely the frequency pattern can be amplified or attenuated. 

From 2 up to 100 bandsNI Week ‐ Copyright 2008 by L. Karam 50Real‐World Applications for Freshman Engineering Education 

Page 51: Real-World Applications for Freshman ... - download.ni.com

Music Equalizer VIG i C l

freq= index*Sampling rate/(FFT size) FFT size = 512; Sampling Rate = 8000

Gain Control

Slider Indicator

NI Week ‐ Copyright 2008 by L. Karam 51Real‐World Applications for Freshman Engineering Education 

Page 52: Real-World Applications for Freshman ... - download.ni.com

Allocating Frequency Bandsg q y

NI Week ‐ Copyright 2008 by L. Karam 52Real‐World Applications for Freshman Engineering Education 

Page 53: Real-World Applications for Freshman ... - download.ni.com

Connect the SPEEDY-33 board to your computer using Hands-On …

the supplied USB cable.Go to folder DigitalHandsOnApplications/Music

Eq ali erEqualizer.Select the Music Equalizer project.

NI Week ‐ Copyright 2008 by L. Karam 53Real‐World Applications for Freshman Engineering Education 

Page 54: Real-World Applications for Freshman ... - download.ni.com

Analog Applications: Music EqualizerAnalog Applications: Music Equalizer

NI Week ‐ Copyright 2008 by L. Karam 54Real‐World Applications for Freshman Engineering Education 

Page 55: Real-World Applications for Freshman ... - download.ni.com

Op-Amp as an AmplifierOp Amp as an Amplifier

Vout=Vin*(‐Rb/Ra)

NI Week ‐ Copyright 2008 by L. Karam 55Real‐World Applications for Freshman Engineering Education 

Page 56: Real-World Applications for Freshman ... - download.ni.com

Music Equalizer: Volume and Treble Control

Volume Control

Treble Control

NI Week ‐ Copyright 2008 by L. Karam 56Real‐World Applications for Freshman Engineering Education 

Page 57: Real-World Applications for Freshman ... - download.ni.com

Volume Control

Vout=Vin*‐(Rf/Ra+Rp)

NI Week ‐ Copyright 2008 by L. Karam 57Real‐World Applications for Freshman Engineering Education 

Page 58: Real-World Applications for Freshman ... - download.ni.com

Treble Control

Control of high frequency componentsControl of high frequency components

NI Week ‐ Copyright 2008 by L. Karam 58Real‐World Applications for Freshman Engineering Education 

Page 59: Real-World Applications for Freshman ... - download.ni.com

Treble Control at Low FrequenciesTreble Control at Low Frequencies

Capacitor acts as a very high resistance (open circuit)Vout is not affected by changing RpNI Week ‐ Copyright 2008 by L. Karam 59Real‐World Applications for Freshman Engineering Education 

Page 60: Real-World Applications for Freshman ... - download.ni.com

Treble Control at High Frequenciesg q

Capacitor acts as a very low resistance (short circuit)Vout is affected by changing RpNI Week ‐ Copyright 2008 by L. Karam 60Real‐World Applications for Freshman Engineering Education 

Page 61: Real-World Applications for Freshman ... - download.ni.com

H d O DHands-On Demo…

NI Week ‐ Copyright 2008 by L. Karam 61Real‐World Applications for Freshman Engineering Education 

Page 62: Real-World Applications for Freshman ... - download.ni.com

Digital Applications: TelephoneDigital Applications: Telephone

NI Week ‐ Copyright 2008 by L. Karam 62Real‐World Applications for Freshman Engineering Education 

Page 63: Real-World Applications for Freshman ... - download.ni.com

Telephone - DTMFp1876: Telephone was invented by Alexander Graham Bell.

1960’s: DTMF (Dual Tone Multi Frequency)DTMF tones are the tones heard when a key on a ystandard telephone keypad is pressed.With DTMF, each pressed phone key generates two tones of specific frequencies: one tone is generated fromtones of specific frequencies: one tone is generated from a high-frequency group of tones and the other from a low frequency group.Th "C l Offi " i i d fThe "Central Office" equipment can recognized fromthe received tones what numbers were dialed.

NI Week ‐ Copyright 2008 by L. Karam 63Real‐World Applications for Freshman Engineering Education 

Page 64: Real-World Applications for Freshman ... - download.ni.com

Phone Keypad

NI Week ‐ Copyright 2008 by L. Karam 64Real‐World Applications for Freshman Engineering Education 

Page 65: Real-World Applications for Freshman ... - download.ni.com

Generating Dual Toneg

NI Week ‐ Copyright 2008 by L. Karam 65Real‐World Applications for Freshman Engineering Education 

Page 66: Real-World Applications for Freshman ... - download.ni.com

Specifying Frequencies

NI Week ‐ Copyright 2008 by L. Karam 66Real‐World Applications for Freshman Engineering Education 

Page 67: Real-World Applications for Freshman ... - download.ni.com

DTMF Generation VI – Front Panel

NI Week ‐ Copyright 2008 by L. Karam 67Real‐World Applications for Freshman Engineering Education 

Page 68: Real-World Applications for Freshman ... - download.ni.com

DTMF Generation VI – Block Diagramg0

0

t 3

0

697

1477

0

0

0

Index

0

0

0

Index

3

0

0

0

NI Week ‐ Copyright 2008 by L. Karam 68Real‐World Applications for Freshman Engineering Education 

Page 69: Real-World Applications for Freshman ... - download.ni.com

Pushing Buttons

NI Week ‐ Copyright 2008 by L. Karam 69Real‐World Applications for Freshman Engineering Education 

Page 70: Real-World Applications for Freshman ... - download.ni.com

DTMF Generation VI – Block Diagramg0

0

t

0

3

0

697

1477

0

0 Index

14770

0

0

Index

3

0

0

00

NI Week ‐ Copyright 2008 by L. Karam 70Real‐World Applications for Freshman Engineering Education 

Page 71: Real-World Applications for Freshman ... - download.ni.com

Tone Lengthg

One loop length (s) = number of samples/ sampling rate = 128/8000 = 16 ms

Desired tone length = 150 ms

Number of loops = (Desired tone length)/(1 loop length)p ( g ) ( p g )

NI Week ‐ Copyright 2008 by L. Karam 71Real‐World Applications for Freshman Engineering Education 

Page 72: Real-World Applications for Freshman ... - download.ni.com

C t th SPEEDY 33 b d t t iHands-On …Connect the SPEEDY-33 board to your computer using

the supplied USB cable.Run LabVIEW 8 5Run LabVIEW 8.5.Under Targets, “DSP Project” should be displayed. Click the Go button under TargetsClick the Go button under Targets.Click Next under the “Define Project Info” window.Under “Target type”, select SPEEDY-33.U de a get type , se ect S 33.Click Finish.Under the “Project Explorer” window, click File then j p ,

select Open. Go to folder DigitalHandsOnApplications/DTMFSelect the DTMF VI.NI Week ‐ Copyright 2008 by L. Karam 72Real‐World Applications for Freshman Engineering Education 

Page 73: Real-World Applications for Freshman ... - download.ni.com

Digital Applications: Image ProcessingDigital Applications: Image Processing

NI Week ‐ Copyright 2008 by L. Karam 73Real‐World Applications for Freshman Engineering Education 

Page 74: Real-World Applications for Freshman ... - download.ni.com

Histogram EqualizationHistogram Equalization

NI Week ‐ Copyright 2008 by L. Karam 74Real‐World Applications for Freshman Engineering Education 

Page 75: Real-World Applications for Freshman ... - download.ni.com

Segmentation - Thresholding

NI Week ‐ Copyright 2008 by L. Karam 75Real‐World Applications for Freshman Engineering Education 

Page 76: Real-World Applications for Freshman ... - download.ni.com

Segmentation - Thresholdingg g

NI Week ‐ Copyright 2008 by L. Karam 76Real‐World Applications for Freshman Engineering Education 

Page 77: Real-World Applications for Freshman ... - download.ni.com

Reading an Image g g

NI Week ‐ Copyright 2008 by L. Karam 77Real‐World Applications for Freshman Engineering Education 

Page 78: Real-World Applications for Freshman ... - download.ni.com

Histogram Equaliztiong q

NI Week ‐ Copyright 2008 by L. Karam 78Real‐World Applications for Freshman Engineering Education 

Page 79: Real-World Applications for Freshman ... - download.ni.com

Segmentation - Thresholding

NI Week ‐ Copyright 2008 by L. Karam 79Real‐World Applications for Freshman Engineering Education 

Page 80: Real-World Applications for Freshman ... - download.ni.com

Go to folder DigitalHandsOnApplications/Image Hands-On …

g pp gProcessing

Select the Image Processing project.Run using the provided cards.png image.

NI Week ‐ Copyright 2008 by L. Karam 80Real‐World Applications for Freshman Engineering Education 

Page 81: Real-World Applications for Freshman ... - download.ni.com

Robotics

NI Week ‐ Copyright 2008 by L. Karam 81Real‐World Applications for Freshman Engineering Education 

Page 82: Real-World Applications for Freshman ... - download.ni.com

Why Robotics?yRobots are coolWide range of functionalitiesRobots provide an interesting forum to introduce

students to engineering design Robotics tie together several engineering conceptsRobotics tie together several engineering concepts

including analog and digital components, circuits, software/programming, embedded systems, computer

hit t i l i l t i l h i larchitecture, signal processing, electrical, mechanical, and other…

NI Week ‐ Copyright 2008 by L. Karam 82Real‐World Applications for Freshman Engineering Education 

Page 83: Real-World Applications for Freshman ... - download.ni.com

Robotic Project Objectivesj jBuild on Intro to Robotics Application LabDesign a robotic de ice: hard are control logicDesign a robotic device: hardware, control logic

(software/program), body. Robotic device is to traverse obstacle course in the leastRobotic device is to traverse obstacle course in the least

amount of time Team will apply steps of the engineering design processTeam will apply steps of the engineering design process

NI Week ‐ Copyright 2008 by L. Karam 83Real‐World Applications for Freshman Engineering Education 

Page 84: Real-World Applications for Freshman ... - download.ni.com

Robotic Design Project: Robot Kit• Each team is supplied with a SPEEDY-33 Robot kit

NI SPEEDY 33 board– NI SPEEDY-33 board– Robotics Daughter Card

– Two 9-Volt drive Motors– Two bump sensors – Possibly: Infra-red transmitter and receiver– One USB cable– NI LabVIEW 8.5 and LabVIEW DSP Module software

NI Week ‐ Copyright 2008 by L. Karam 84Real‐World Applications for Freshman Engineering Education 

Page 85: Real-World Applications for Freshman ... - download.ni.com

SPEEDY-33 and Robotics Daughter Card

NI Week ‐ Copyright 2008 by L. Karam 85Real‐World Applications for Freshman Engineering Education 

Page 86: Real-World Applications for Freshman ... - download.ni.com

Robotics Daughter Card• Major Components

– M1‐M4: Main/Drive Motor Outputs

SV1 SV4 A ili S M t O t t– SV1‐SV4: Auxiliary Servo Motors Outputs

– RC1‐RC4: R/C Controller Inputs (Bump Sensor Connections)

– PWR: Power ConnectionPWR: Power Connection

NI Week ‐ Copyright 2008 by L. Karam 86Real‐World Applications for Freshman Engineering Education 

Page 87: Real-World Applications for Freshman ... - download.ni.com

Drive Motors

9V drive motors can be operated9V drive motors can be operated without batteries using the DC converter, however this limits motion

Speed control and timing should be considered

NI Week ‐ Copyright 2008 by L. Karam 87Real‐World Applications for Freshman Engineering Education 

Page 88: Real-World Applications for Freshman ... - download.ni.com

Optional Servo Motors p• Servo Motors

– Small, powerful motors with built-in circuitry that allows them to bethat allows them to be programmed to operate at specific angular positionspositions

– Require additional power needs

NI Week ‐ Copyright 2008 by L. Karam 88Real‐World Applications for Freshman Engineering Education 

Page 89: Real-World Applications for Freshman ... - download.ni.com

SensorsTemperature, noise, motion,

impact, IR, and otherspPossible to connect to R/C

inputsRequire no additional power

NI Week ‐ Copyright 2008 by L. Karam 89Real‐World Applications for Freshman Engineering Education 

Page 90: Real-World Applications for Freshman ... - download.ni.com

Introduction to Robotics LabDevelop and execute LabVIEW control programs on the

SPEEDY-33 • Connect and activate two bump sensors• Connect and activate two DC Motors

C b d i• Create a bump sensor detection program• Build a basic robotics program • Counter programCounter program

LabVIEW Embedded DSP has specific Robot Daughter Module VI’s to control RC Inputs, Motor Drive, and Servo Outputs of Robotic Daughter CardServo Outputs of Robotic Daughter Card

NI Week ‐ Copyright 2008 by L. Karam 90Real‐World Applications for Freshman Engineering Education 

Page 91: Real-World Applications for Freshman ... - download.ni.com

Robotics: RC ControlRobotics: RC Control• The VI receives signal from g

the bump sensor connected to the specified RC Input channel.

• Continuous output values reporting the resultant voltagevoltage. 0V - bump sensor is not pressed1V h b-1V- when bump sensor

is pressed

NI Week ‐ Copyright 2008 by L. Karam 91Real‐World Applications for Freshman Engineering Education 

Page 92: Real-World Applications for Freshman ... - download.ni.com

Robotics: Motor Drive ControlRobotics: Motor Drive Control

• Receives value between ‐1 & 1, and sends the speed value to the specified output Motor Driveoutput Motor Drive channel.

NI Week ‐ Copyright 2008 by L. Karam 92Real‐World Applications for Freshman Engineering Education 

Page 93: Real-World Applications for Freshman ... - download.ni.com

Robtics: Applications IdeasRobtics: Applications Ideas

Drive Motors allow motion along surfaces (i.e. an g (object with wheels)

Servo Motors allow secondary motion (i.e. crane, drill rotating disco ball etc )drill, rotating disco ball, etc.)

Sensors allow input signals to affect performance (i.e. bump sensors, streaming video, temperature

IR t )sensors, IR sensors, etc.)Project utilizes a combination of components to

produce a device capable of autonomously p oduce dev ce c p b e o u o o ous ynavigating an obstacle course

Many possibilities for creative designs!

NI Week ‐ Copyright 2008 by L. Karam 93Real‐World Applications for Freshman Engineering Education 

Page 94: Real-World Applications for Freshman ... - download.ni.com

Robot Design Project: Obstacle Course with Turns and Cornerswith Turns and Corners

NI Week ‐ Copyright 2008 by L. Karam 94Real‐World Applications for Freshman Engineering Education 

Page 95: Real-World Applications for Freshman ... - download.ni.com

Robot Design Project: Obstacle Course i h d Cwith Turns and Corners

NI Week ‐ Copyright 2008 by L. Karam 95Real‐World Applications for Freshman Engineering Education 

Page 96: Real-World Applications for Freshman ... - download.ni.com

Robot Design Project: Obstacle Course i h d Cwith Turns and Corners

NI Week ‐ Copyright 2008 by L. Karam 96Real‐World Applications for Freshman Engineering Education 

Page 97: Real-World Applications for Freshman ... - download.ni.com

Robot Design Project: Obstacle Course i h d Cwith Turns and Corners

NI Week ‐ Copyright 2008 by L. Karam 97Real‐World Applications for Freshman Engineering Education 

Page 98: Real-World Applications for Freshman ... - download.ni.com

Robot Design Project: Obstacle Course i h d Cwith Turns and Corners

NI Week ‐ Copyright 2008 by L. Karam 98Real‐World Applications for Freshman Engineering Education 

Page 99: Real-World Applications for Freshman ... - download.ni.com

Robot Design Project: Straight Course with C li d i l Ob lCylindrical Obstacles

NI Week ‐ Copyright 2008 by L. Karam 99Real‐World Applications for Freshman Engineering Education 

Page 100: Real-World Applications for Freshman ... - download.ni.com

B t C t tBeauty ContestFall 2007

Arizona State University

NI Week ‐ Copyright 2008 by L. Karam 100Real‐World Applications for Freshman Engineering Education 

Page 101: Real-World Applications for Freshman ... - download.ni.com

Beauty Contest – 3rd PlaceBeauty Contest 3 Place

• Team # 2Team # 2 – Juan Fermin– Daniel MerrillDaniel Merrill– Hamzeh Obeid

The Monster BobNI Week ‐ Copyright 2008 by L. Karam 101Real‐World Applications for Freshman Engineering Education 

Page 102: Real-World Applications for Freshman ... - download.ni.com

Beauty Contest – 2nd PlaceBeauty Contest 2 Place

• Team # 10 – Chris Anderson– Cade Bartlett– Stephanie Chavezp

The Mighty Mouse ‐WORDNI Week ‐ Copyright 2008 by L. Karam 102Real‐World Applications for Freshman Engineering Education 

Page 103: Real-World Applications for Freshman ... - download.ni.com

Beauty Contest – 1st PlaceBeauty Contest 1 Place

• Team # 11 – Ronnie Caburian– Devon O’Brien– Manuel Soriano

Beast2‐D2NI Week ‐ Copyright 2008 by L. Karam 103Real‐World Applications for Freshman Engineering Education 

Page 104: Real-World Applications for Freshman ... - download.ni.com

S d C t tSpeed ContestFall 2007

Arizona State University

NI Week ‐ Copyright 2008 by L. Karam 104Real‐World Applications for Freshman Engineering Education 

Page 105: Real-World Applications for Freshman ... - download.ni.com

Speed Contest – 3rd PlaceC i h C /Course with Corners/Ramps

• Team # 11 – Ronnie Caburian– Devon O’Brien– Manuel Soriano

• Best Time: 1 min, 1 sec (no hit)Average Time: 1 min, 23 secs

Beast2‐D2NI Week ‐ Copyright 2008 by L. Karam 105Real‐World Applications for Freshman Engineering Education 

Page 106: Real-World Applications for Freshman ... - download.ni.com

Speed Contest – 3rd PlaceFl C i h CFlat Course with Cans

• Team # 10 – Chris Anderson– Cade Bartlett– Stephanie Chavezp

• Best Time: 23 secsAverage Time: 1 min 11Average Time: 1 min, 11 secs

The Mighty Mouse ‐WORDNI Week ‐ Copyright 2008 by L. Karam 106Real‐World Applications for Freshman Engineering Education 

Page 107: Real-World Applications for Freshman ... - download.ni.com

Speed Contest – 2nd PlaceC i h C /RCourse with Corners/Ramps

• Team # 3– Joseph Abrilp– Chris Elsberry– Albert Vasquezq

• Best Time: 53 secsAverage Time: 1 min 3Average Time: 1 min, 3 secs

The Black StallionNI Week ‐ Copyright 2008 by L. Karam 107Real‐World Applications for Freshman Engineering Education 

Page 108: Real-World Applications for Freshman ... - download.ni.com

Speed Contest – 2nd PlaceFl C i h C

• Team # 2

Flat Course with CansTeam # 2 – Juan Fermin– Daniel MerrillDaniel Merrill– Hamzeh Obeid

• Best Time: 23 secs• Best Time: 23 secsAverage Time: 43 secs

The Monster BobNI Week ‐ Copyright 2008 by L. Karam 108Real‐World Applications for Freshman Engineering Education 

Page 109: Real-World Applications for Freshman ... - download.ni.com

Speed Contest – 1st PlaceBOTH CBOTH Courses

• Team # 12 – Stephen Booher– Marc LaPorte

Sh R b t– Shaun Roberts• Best Time:

– Course with CornersCourse with Corners and Ramps: 36 secs (no hit)Fl t C ith C– Flat Course with Cans: 4 seconds

WoodyNI Week ‐ Copyright 2008 by L. Karam 109Real‐World Applications for Freshman Engineering Education