Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014....

29
Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014.

Transcript of Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014....

Page 1: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014.

Page 2: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014.

Page 3: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014.

Page 4: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014.

Page 5: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014.

Page 6: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014.

Page 7: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014.

Page 8: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014.

Page 9: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014.

Page 10: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014.

Page 11: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

1 C. A. Lindley, Psychedelia II: A Digital Color Organ, Nuts and Volts Magazine, Vol.29, No. 1, January 2008.

2 Similar to Lab VIII: Room Equalizer Design in ECE 203.

3 See the ECE 202 text: Thomas, Rosa and Toussaint, The Analysis and Design of Linear Circuits, Chapter 13.

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 1

ECE 480L: SENIOR DESIGN SCHEDULED LAB

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING

MICHIGAN STATE UNIVERSITY

I. TITLE: Lab I : Digital Color Organ - Power Supply

II. PURPOSE AND PROCEDURES:

A. Introduction

Over the next several labs we are going to build and test a Digital ColorOrgan1. You are also going to try to improve on the original design.

A color organ is an electronic device that divides sounds into severalfrequency bands and modulates colored lights depending on thefrequency content of the sound or music.

Many color organs have been designed since the 1960's using analogfilters to divide incoming sounds into distinct bands2 of frequencies.Silicon-controlled rectifiers (SCRs) were used to control line-voltagecolored incandescent lamps. This was not only dangerous but very energyinefficient.

With the advent of microcontrollers, we can accomplish the samefunctions with much less hardware and lower voltages. In addition, wehave the ability to reconfigure and tune our design after assembly.

This design does have analog circuitry to provide dc power and tomanipulate a microphone input and a stereo line-input. We also need todo some overall analog filtering to limit the bandwidth to half thesampling frequency of 16 kHz as required by the Nyquist criteria3.

The frequency selectivity is done with digital filters using a

Page 12: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

4 Some parts were changed from the original article due to availability.

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 2

microcontroller. The output powers a bank of LEDs. There is a digitalautomatic gain control to allow the color organ to adjust itself to varyingmusical levels.

B. Lab Organization (Please read carefully)

1. In this series of experiments with the Digital Color Organ you will beworking alone. This is being done to help refresh your lab skills and toprepare you for the capstone design experience. All work must be doneby you and only you. You will be asked to sign a Code of EthicsDeclaration for each Lab Report.

2. You need to stop by the ECE shop (Room 3234) during business hoursand sign out your own lab Storage Box. This Storage Box contains tools,cables and most of the parts4 needed to build the Digital Color Organ.This will be your box for the rest of the semester. Please write your nameon the box and take the box home for safe keeping. Bring the boxwhenever you come to lab.

If you damage or loose any of the contents of the Storage Box, youwill be required to replace them (See the Bill of Materials for orderinginformation or the ECE shop). At the end of this project you will get tokeep the Digital Color Organ and only need to return the tools indicatedin Section V: Parts Required.

3. When inside any of the ECE labs, you must wear eye protection. We willdo spot checks for safety glasses. For each instance of not wearingeye protection, your lab report grade will be lowered by 1%.

4. The ECE 480 lab will be open 24 hours a day and you can sign-up for six-hours of time per week for any of Lab Stations 1 - 8 at:https://www.egr.msu.edu/eceshop/Teaching_Labs/ECE480/schedule/Your login is your MSUNet_ID and your password is your PID. You mustchange your password after your first login.

Please report any violations of this sign-up limit to [email protected] such information will be treated as strictly confidential. Lab Stations9 -13 cannot be reserved and are available on a first-come, first-servebasis. Although you are working alone, there needs to be aminimum of two students in the lab at any time.

5. In this lab there are references to the ECE 203 and 303 lab lecture notes.If you did not take these courses at MSU, you can find videos of these lab

Page 13: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 3

lecture notes at: http://www.egr.msu.edu/~wierzba/ .

C. Bound Lab Notebook and Lab Reports (Please read carefully)

1. In this lab and the upcoming labs, you will be asked many questions andyou will be asked to measure or calculate many things. You must recordyour responses and results in your own personal Bound LabNotebook. This is done to make sure things are working correctly andto help you understand how the Digital Color Organ works. The BoundLab Notebook is a great place to record your design ideas.

Your personal Bound Lab Notebook content will be used for some of thequestions on the ECE 480L Lab Exam (see lab syllabus at : http://www.egr.msu.edu/~wierzba/SYLL_480L.pdf ).

2. Your personal Bound Lab Notebook will NOT be given a grade. Ifthere are issues that need to be resolved, you may be asked to turnin your personal Bound Lab Notebook. You may not share yourpersonal Bound Lab Notebook with any other student. You maynot post any of the content on the World Wide Web.

3. If the lab asks you to record something in the Lab Report, then you willfind a place for this in the Lab Report Template at the end of each lab.The emphasis in grading this part of the course is on the final resultsand not the steps leading up to it. So weekly lab reports will be short. Inorder to receive full credit, this Lab Report and the remaining reportsmust be submitted by the dead-line dates in the lab syllabus.

4. Once the Digital Color Organ is completely proto-typed, you will be askedto demonstrate its functionality to the lab TA.

5. You will be asked to submit a final lab report on your attempt to improvethe Digital Color Organ (see pp. 16 - 17 of this lab for details).

III. BACKGROUND MATERIAL:

See Lab Lecture Notes.

IV. EQUIPMENT REQUIRED:

1 Your own personal Bound Lab Notebook1 Agilent Infiniium DSO-9064A Digital Storage Oscilloscope1 Agilent 34401A Digital Multimeter1 Agilent E3611A Power Supply1 Extech LCR Meter4 Agilent N2873A 10:1 Miniature Passive Probes

Page 14: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

5 Parts Q1-Q4 and U1-U6 were donated by Texas Instruments Inc, Dallas Tx.

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 4

V. PARTS REQUIRED5: ECE 480L Storage Box (Tolerances 10% or better)

3 Solderless Breadboard strips1 Bundle of coated hook up wire10 Female-Male 6" jumper wires1 3 ft. Stereo 3.5 mm/1/8” Male-Male audio cable1 USB cableW1 Wall Wart (9 V, 300 mA)C1,C4,C5,C6,C8 4.7 :F capacitor PolarizedC2,C13,C15 0.1 :F capacitor

C3 240 pf capacitor C7,C10 0.022 :F capacitor C9 0.01 :F capacitor C11 0.047 :F capacitor C12,C14,C16 47 :F capacitor Polarized R1 4.7K resistor 1/4W R2,R6-R8,R13,R14 1K resistor 1/4W

R3,R4,R9,R10 20K resistor 1/4W R5 1 meg trimmer (thumb wheel) R11,R12 1.6K resistor 1/4W R15 330 ohm resistor 1/4W R16,R18,R20,R22 470 ohm resistor 1/4W R17, R23 22 ohm resistor 1W R19, R21 18 ohm resistor 1W

D1 1N5819 diode D2,D27-D34 Orange LED

D3-D10 Red LED D11-D18 Yellow LED

D19-D26 Green LED J1 Stereo 1/8” jack male connector J2 Wall Wart barrel type connector M1 Electret condenser microphone Q1-Q4 TIP31A switching/power transistor SW1 Breadboard SPDT Mic/line switch SW2 Breadboard SPDT Power off/on switch

U1 LM324 Quad op-amp U2 LM2940CT 5 V, 1 A voltage regulator U3 LM3940IT 3.3 V, 1 A voltage regulator

U4 MSP430 µController LaunchPad with pre-programmed MSP430G2553 device inserted.Included are an MSP430G2452, an MS3V-T1RMicro Crystal and two 10 pin male-femaleadaptors.

Page 15: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 5

U5 74HCT139 Two to four demultiplexer U6 74HCT04 Hex inverter/buffer

Tools included that are to be returned at the end of the semester:

1 Needle-nose pliers1 Wire stripper1 Flat-head screw driver1 Side cutters1 BNC-to-Banana adapter8 Banana-to-grabber wires

VI. LABORATORY PROCEDURE:

A) Agilent (HP) 34401A Digital Multimeter

1. Check the contents of your Storage Box against the Parts Required inSection V. The color code for resistors and the code for capacitors can befound in the ECE 203 Lab I and Lab III lecture notes, respectively. (Onesimple way to remember the resistor color code is by constructing a shortsentence with the first letters of each color. For example, “Black BearsRun Over Yellow Grass, But Vultures Glide_over Water,” which mightbe an easy way to remember Black 0, Brown 1, Red 2, Orange 3, Yellow4, Green 5, Blue 6, Violet 7, Gray 8 and White 9.)

The MSP430 LaunchPad has a CMOS microcontroller on it and can bedamaged by handling. Only touch the LauchPad by picking it up by theoutside edges of the printed circuit board. Keep the LauchPad in theanti-static bag when not in use.

If any of the contents of your Storage Box is missing, see the technicalstaff in the ECE shop (Room 3234) for replacement. They will onlyreplace missing parts the first week of lab.

2. The Agilent 34401A shown in Fig. 1 is a 6½ digit, six function,autoranging precision multimeter and is usually referred to as a DMM(Digital MultiMeter). The measurement functions are DC and ACVoltage, 2-Wire and 4-Wire Resistance, Frequency and DC and ACcurrent.

You will need two pairs of red and black banana-to-grabber wires. Onesuch wire is shown in Fig. 2 and these can be found in your Storage Box.Connect a red banana-to-grabber wire to the HI Input and a blackbanana-to-grabber wire to the LO Input terminals on the right side. (It

Page 16: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 6

is common in electronics to use red wires for positive and black wires fornegative.)

Press the POWER push button located in the lower left corner. Press theS 2W (2-wire resistance) button.

Figure 1. Agilent 34401A Digital Multimeter

Figure 2. Banana-to-grabber wire

2. Measure all the resistors in your Storage Box greater than 50 S byconnecting the grabber clip to each end of the resistor. The last digitsmay drift due to the “aging” of the resistor. If your values are veryunstable it may be due to a high contact resistance between the grabbersand the wire of the resistor. This is caused by oxidation of the metalgrabbers. One quick way to clean the contact is to hold the resistor firmand rotate each grabber clip. Try not to bend the resistor wire.

Check that all of your resistors are within tolerance. Replace anyresistors that are out-of-tolerance from either the Parts’ Cabinet or theECE shop.

3. The Resistance Accuracy specifications for the DMM that are given inthe ECE 203 Lab I lecture notes are for the Fluke 8840A DMM used in

Page 17: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 7

the ECE 203 lab. Your Agilent DMM is more accurate. It is 6½ digit withan accuracy of ± [0.0020% of the reading + 5 digits]. Re-doing theexample in the ECE 203 Lab I lecture notes, suppose that you read aresistance of

R = 1 3 . 3 4 1 3 0 kSThen

(0.000020)(13.34130 k) = 0.000266826 k

+ 5 digits = 00.00005 k______________________________________________

Accuracy = ±0.000316826 k

Thus your actual value of resistance is between

13.34130 k - 0.000316826 k = 13.34098317 kS

and

13.34130 k + 0.000316826 k = 13.34161683 kS

What this means is that you can trust the first four digits of the DMM.

4. Connect the second pair of banana-to-grabber wires to the HI and LO S4W Sense (4-wire) terminals to measure any resistors less than 50 S.(Put all measurements in your personal Bound Lab Notebook.) Connectthe resistor as shown in the ECE 203 Lab I lecture notes on page 6.Measure the resistance in the S 2W mode. Invoke the S 4W mode byusing the blue shift button. Measure the resistance. From this data, youcan calculate the resistance of the wires and grabber clips. This shouldbe less than 100 mS. If not follow the procedure in Section VI-A-2 forreducing contact resistance.

B) Extech LCR Meter

1. The Extech LCR meter shown in Fig. 3 is a device that measures ACImpedance at two frequencies, 120 Hz and 1 kHz. Turn ON the LCRmeter by pressing the power switch button (k) found in the upper leftcorner. If necessary, press the L/C/R button until a Capacitance screenis displayed. (The turn on screen is the last one used.)

2. The LCR meter has a spring clip fixture that allows the insertion ofcomponent leads. We will measure all the capacitors in your Storage Boxat 120 Hz. The frequency is displayed in the upper right corner and ischanged by pressing the FREQ button.

Page 18: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 8

Figure 3. Extech LCR meter

3. The accuracy of the LCR meter is ± [0.7% of the reading + 3 digits]. Pickone capacitor and measure it. Using the explanation in Section VI-A-3,can you predict the number of trustworthy digits? (Put all calculationsin your personal Bound Lab Notebook.)

4. Measure the remaining capacitors in your Storage Box. Note the polaritymarkings on the LCR meter for measuring polarized capacitors. Checkthat all of your capacitors are within tolerance. Replace any capacitorsthat are out-of-tolerance from either the Parts’ Cabinet or the ECE shop.

5. Turn OFF the meter when finished.

C) Agilent E3611A Power Supply

1. We will be using a wall wart to power the Digital Color Organ, but beforewe do this we are going to use the Agilent E3611A power supply shownin Fig. 4. This power supply has an adjustable voltage and an adjustablecurrent. We are going to set the maximum current low enough so that ifwe make a wiring error or if we have a component failure, we don’t meltour Solderless Breadboard.

Figure 4. Agilent E3611A Power Supply

Page 19: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 9

With no external connections to the three terminals in the lower right,turn ON the power supply by depressing the button in the lower leftcorner. If necessary, set the Range button to the 1.5 A position. There aretwo knobs on each supply. The right knob marked Current controls themaximum magnitude of current available. On this range you can havea maximum current of 1.5A and a maximum voltage of 20 V. (On the .85A range, the maximum voltage is 35 V. For either setting there is about30 Watts max). The left knob marked Voltage allows the user to set adesired voltage magnitude. Turn this knob and observe. Set themagnitude of the supply to approximately 9 V.

2. Since 1.5 A of current is large enough to melt our Solderless Breadboard,let's set the maximum current limit much smaller. To set the maximumcurrent limit, press and hold the CC Set. Rotate the current control to .05A.

3. This is a floating power supply. To make the supply a positive voltagewith respect to ground, we need to connect a wire from the & terminalto the terminal labeled with a ground (z) symbol. To do this, unscrew the& and ground (z) terminals. Strip a piece of wire on both ends and insertfrom the top. Screw both terminals being careful not to tighten down onthe insulating coat. You should be tightening only the bare wire. (Youcan leave this connection after you finish the lab for the next student.)

4. Turn OFF the power supply.

D) Digital Color Organ Power Supplies

The Power Supply Section of the Digital Color Organ is shown in Fig. 5.It has three voltages that will be used to power different parts of theDigital Color Organ. A wall wart will be connected to J2 to supply power.

A wall wart consists of a step-down transformer with full-waverectification and a smoothing filter capacitor. We built this type of circuitin Lab IV of ECE 303 and added a load resistor. Here the load is all ofthe things connected to the right of SW2 in Fig. 5. As we saw in ECE 303,the average value of the output voltage decreased as the load resistancedecreased (or the load current increased). The wall wart for this project

Note: If your circuit ever tries to draw more than 50 mA of current thenthe voltage will collapse, that is, it will drop to a much lower valuein voltage than what is set by the voltage control. Do not try toincrease the current control setting, unless instructed to doso, because something is seriously wrong. Increasing the currentcontrol may melt the Solderless Breadboard. Find your error and fix.

Page 20: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 10

is listed as 9 V @ 300 mA. This means that the output voltage of the wallwart is approximately an average of 9 V when there is a load current of300 mA. This would be the effect of connecting a load resistance of 9/.3= 30 S. What is not known is the peak-to-peak ripple voltage, vr ,whichwill cause the minimum output voltage to be 9 & vr /2 volts. Thisminimum output voltage needs to be big enough to run the linear voltageregulator, U2. We will measure this later.

Figure 5. Power Supply Section

We will use the Agilent E3611A power supply in place of the wall wartfor now so that we can protect our Solderless Breadboards and circuitry.The Agilent power supply is very well regulated and will not have anynoticeable ripple.

1. The Solderless Breadboard strips used for this project are the same onesthat formed the larger Proto-Board we used in ECE 203 and 303. See theECE 203 Lab II lecture notes, if you need to review the layout of theholes. Each strip has 63 rows of holes. We want to fit the circuit for thislab on about 1/4 of one Solderless Breadboard strip.

2. Obtain the data sheets of linear regulator ICs U2 and U3 from the TexasInstruments web site: www.ti.com and find the front view pin out ofthe TO-220 package. Note that the metal tab is connected to the centerpin. Make sure that this doesn’t touch any other metal surface.

3. Build the circuit in Fig. 5 with J2 ONLY to the extreme left as shown inFig. 6 and try to use roughly 15 rows or less of the Solderless Breadboardstrips. Do not wire J2 at this time. To help you, here are some tips:

a. We want to use the SPDT switch SW2 as just an on/off switch. It hasthree terminals, using the ohmmeter figure out which 2 of the 3terminals you need to use. The switch should fit directly into thebreadboard. Position the switch in the block of rows just below thechannel where J2 is connected. Leave enough room for your finger. Youmay need to hold the switch down when you switch from off to on.

Page 21: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 11

Figure 6. Breadboard with J2

b. If you need to connect holes that are close, strip the coating off the coatedwire with the wire strippers and the pair of pliers. Use this bare wire toconnect these nearby holes. Check to see that these jumpers are nottouching any other metal objects.

c. As shown in Fig. 7, mounting resistors or diodes vertically instead ofhorizontally can save a lot of space.

Figure 7. Mounting a resistor vertically

d. LEDs have the n-side shorter than the p-side. Also the lens usually hasa flat or notched side indicating the n-side of the LED.

4. Please check over all of your connections again before doing the nextstep. If power is applied incorrectly then we can damage some or all ofour components.

5. Using the grabbers, connect the E3611A power supply to the left-side ofSW2 in Fig. 5 in place of the wall wart. Turn ON the power supply. Ifnecessary turn ON switch SW2 and the orange LED should be on.

If your power supply voltage drops from its initial setting, there

Page 22: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 12

For this lab and all of the following labs we will always use the probes. Theprobes are somewhat fragile, so do not remove these probes from the scopewhen you are finished with the lab.

is something seriously wrong. Turn OFF the power supply. Look fora wiring error and fix.

E) Agilent Infiniium DSO-9064A Digital Storage Oscilloscope

The Agilent Infiniium DSO-9064A Digital Storage Oscilloscope, shownin Fig. 8, is the next generation of Infiniium oscilloscopes from the onewe used in ECE 203 and 303. In addition, this scope has four analogscope channels and a touchscreen display.

Figure 8. Agilent Infiniium DSO-9064A Digital Storage Oscilloscope

1. Turn ON the Infiniium by pressing the button in the lower-left corner.Use your EGR login.

2. The Infiniium should have four Agilent N2873A 10:1 passive probesconnected to it. If not, carefully reconnect them by rotating the collarclockwise and gently pushing. Press the Default Setup button to clearthe settings of the last user.

Please take a few minutes and familiarize yourself with this scope. Agood place to start is to see if the probes are compensated properly.

3. Connect one probe up to the calibration hook at the bottom left of thescope face and connect the probe ground clip to the ground tab. If you hit

Page 23: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 13

Auto-Scale on the scope, you most likely will pick up some high-frequency noise on the nanosecond scale. Adjust the time-base to display500 :sec/div, if necessary.

[One way to fix the high-frequency noise is to lower the bandwidth of thescope. You can find this by clicking on or touching the number of thechannel you have connected your probe to on the top of the scope screen.A dialog box should appear. Click or touch the HW BW Limit (20 MHz)box. Close the dialog box.]

You should also pick the triggering for the channel that you are using inthe grouping labeled Trigger and rotate the Level knob to intersect thetrigger with your waveform.

4. To further clean up any noise you can use averaging. To activateaveraging, move the mouse pointer to the menu bar on top and findSetup. Under this find Acquisition in the pull down menu. Click on thisand find Averaging in the resulting dialog box. Click on the box next toEnable. Set the # of Averages to 16, by clicking on the up or down arrowuntil you find this value. Your waveform should now appear to besmoother than before. Close the dialog box.

You should now see a square-wave at approximately 810 Hz and 1Vpeak. These probes need a special tool for adjustment. If there is aproblem only the ECE shop can re-compensate your probes.

If you are totally frustrated by the scope, please email the ECE 480 TAand make an appointment for help.

5. Repeat this procedure for the remaining probes.

6. The probes tend to pull parts out of the breadboard. So strip the ends offof some coated wire and place one end of each wire in each of the 4 non-grounded nodes in Fig. 5. Connect the 4 scope probe tips to these wires.Connect the alligator ground clips to the ground strip on the breadboardlikewise using coated wires with stripped ends.

7. Adjust the time-base to display 10 msec/div. Adjust the volts/div scalesand the reference grounds for the 4 measured voltages so that eachvoltage is clear to see.

8. We next want to measure the average (dc) voltage for each probe. Byholding the mouse cursor over the Toolbar icons on the left-side of thescreen, you can see what the icons measure. Find the V average icon andselect by right-clicking the mouse or by touching the icon on the screen.Pick the appropriate Channel for that probe and select Entire Display.

Page 24: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 14

Click or touch Ok. Repeat for the remaining probes.

Are the values consistent with what you expect? (Answer all questionsin your personal Bound Lab Notebook.) If not, look for a wiring error andfix.

Make a hard copy of the screen (select invert waveform colors) includingthe average measurements. Since we are printing in black and white, youwill need to mark which node is which on your printout.

Mark this section letter and number on the plot. Give the plot anappropriate title. Attach as indicated in the Lab Report.

9. Turn OFF the power supply and connect the two 22 S resistors inparallel from your Storage Box at the output of the 3.3 volt regulator(node 4). Calculate the total current in the parallel combination. (Put allcalculations in your personal Bound Lab Notebook.)

10. Turn ON the power supply and observe what has happened to the valuesof the node voltages from Section VI-E-8. Does this make sense withwhat you calculated in Section VI-E-9? (Answer all questions in yourpersonal Bound Lab Notebook.)

11. What value should you reset your current limit to on the E3611A powersupply? (Answer all questions in your personal Bound Lab Notebook.)Disconnect the power supply and re-adjust the current to 20% more thanyou need.

12. Reconnect the power supply and observe what has happened to thevalues of the node voltages from Section VI-E-5. Does this make sensegiven the data sheets of the voltage regulators. Which plot in the datasheet helps explain what just happened? (Answer all questions in yourpersonal Bound Lab Notebook.)

13. Please do not touch the 22 S resistors because they may be very hot.Knowing the average voltage across each resistor, calculate the powerdissipated. Is it less than the 1-Watt rating? (Answer all questions inyour personal Bound Lab Notebook.)

14. Turn OFF SW2 and turn OFF the power supply. Disconnect the wiresfrom the power supply.

F) Wall Wart

1. Locate the wall wart (a rectangular box with wall outlet prongs) in yourlab Storage Box. Remove the connector J2 from the Solderless

Page 25: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 15

Breadboard. The connector has three terminals. Carefully plug the wallwart into the wall socket on the lab bench and insert the other end intothe wall wart connector J2.

2. We need to figure out which terminal is positive and which is negative.We will use the Agilent DMM. Change scales to read dc voltage bypressing the DC V button. Connect the positive terminal to one pin of thewall wart connector and the negative terminal to another pin of the wallwart connector. Do you read a positive voltage greater than 9 V? If so youhave found the % and & terminal of the wall wart connector. If not, tryanother combination. Be careful not to short wires or connections. Makea sketch of this in your personal Bound Lab Notebook.

Disconnect the wall wart from the wall wart connector J2. Unplug thewall wart from the wall outlet socket.

3. Put the wall wart connector J2 back into the breadboard as shown in Fig.6 ONLY.

Using your sketch, wire the connector into the breadboard with thenegative terminal connected to ground and the positive terminalconnected to the left of SW2 in Fig. 5. Does this wiring make sense toyou? If not please ask the ECE 480 lab TA for help.

4. Double check that switch SW2 is OFF and that your Agilent powersupply is OFF and is totally disconnected from your breadboard.

5. Plug the wall wart back into the outlet on your lab bench and connect thewall wart to the connector J2. Turn ON switch SW2. The orange LEDshould come on and you should see some new waveforms on the scope.

6. Are the voltages on the scope consistent with what you expect? (Answerall questions in your personal Bound Lab Notebook.) If not, look for anerror and fix.

7. Using the Measurement Toolbar, add a measurement to find the voltagepeak-to-peak at node 2 in Fig. 5. This is the ripple seen by our powersupply with a load. If you have troubles getting a stable trace, try Linefor your triggering. Adjust the volts/div scales and the reference groundsfor the 4 measured voltages so that each voltage is clear to see. (If youdeleted the 4 average voltage measurements, add them back.)

Make a hard copy of the screen (select invert waveform colors) includingthe Toolbar measurements. Since we are printing in black and white, youwill need to mark which node is which on your printout.

Page 26: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 16

Mark this section letter and number on the plot. Give the plot anappropriate title. Attach as indicated in the Lab Report.

8. Look up the data sheet for D1 on the web. Can you explain what thepurpose of D1 is and why did the author choose this type of diode?(Answer all questions in your personal Bound Lab Notebook.)

9. Take a color photo of your circuit with the orange LED on. The resolutionmust be good enough to see all connections and your board number.Email the photo to [email protected]. State your name in the email, thetitle of the lab experiment and which section of ECE 480 your areenrolled in. This is due on or before the due date of this Lab Report.

10. Turn OFF SW2, unplug the wall wart. Caution: the 22 S resistors inparallel are very hot. Disconnect these resistors from your circuit usinga pair of pliers and let them cool down.

G) Clean up

Do not remove the scope probes from the scope. Turn off allequipment. Put all of your things back into your Storage Box and take ithome with you.

Assemble your lab report, staple it and hand it in as described in theECE 480L Lab Syllabus. Please read and sign the Code of EthicsDeclaration on the cover.

VII. ASSIGNMENT FOR NEXT LAB PERIOD

1. You will be asked to submit a final lab report on your attempt to improvethe Digital Color Organ (see ECE 480L Lab Syllabus) and you will needto start working on this now. The final lab report will need to bedigital in a .doc or .docx format as well as a hard copy.

The best way to improve on a design is to explain how the design works.One way to do this is to explain how the sub-circuits were chosen andhow the component values were selected. One place to start is to look upthe data sheets of each component in the design. There are usuallysuggestions on how to best use the part as well as some analysis. Youmay need to do your own analysis like we did in ECE 201, 202, 203, 302and 303.

If you make a design change, you need to verify it in lab with data andyou need to explain why you made the change(s).

You will receive, by email, the Bill of Materials for the Digital Color

Page 27: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 17

Organ. (If not, contact [email protected]). This is a list of the parts (andtools), the suppliers and the costs associated with the Digital ColorOrgan. Another way to improve a design is to lower the cost of the partsby substitution or elimination. To document this you must find the partand its replacement and compare the cost savings. You will also need tomake some attempt to verify the results in lab.

If you cannot make any improvements then just submit yourexplanation and analysis of the Digital Color Organ.

The report should be in the following format with the following clearlylabeled:

Cover: Title with signed Code of Ethics DeclarationSummary: Stating your improvements, if anyIntroductionBody of reportBrief conclusionAppendices

2. Since you have all of the parts and tools that you need for the nextlab, pre-build the LED Bank of Lights in Lab II, Section VI-I,Steps 1 and 2 before you come to lab again. Fit this circuit on one ofthe three Solderless Breadboards that is in your Storage box. The threeboards should be snapped together, if not, please do this. Build the LEDBank of Lights on the strip farthest from what you built in Lab I.

We will build a Microphone Amplifier, Line-Input Summer and Low-PassFilter between the Power Supply Section of this lab and the LED Bankof Lights in Lab II.

To further reduce your lab time build the Microphone Amplifiercircuit described in Lab II, Section VI B -1 to B - 5 before you cometo lab again.

3. Listen to the next recorded lab lecture and read the Lab Procedureportion of that experiment. Do all web searches before coming to lab.

Page 28: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 18

Lab Report

Lab I - Digital Color Organ - Power Supply

Name: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Date: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Code of Ethics Declaration

All of the attached work was performed by me. I did not obtain any informationor data from any other student. I will not post any of my work on the WorldWide Web.

Signature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 29: Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All …wierzba/480_lab01.pdf · 2014. 1. 11. · Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights

Copyright © 2014 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..Spring 2014. 19

VI-E-8

Mark VI-E-8 on the top right side of your plot and attach as the nextpage. Give the plot an appropriate title.

VI-F-7

Mark VI-F-7 on the top right side of your plot and attach after VI-E-8.Give the plot an appropriate title.