# Difference between revisions of "Electronics Obstacle Course"

## Permanent Materials (located in the electronics area):

- power supplies
- function generators
- oscilloscopes
- Fluke 179 multimeter (MM)
- capacitance meter
- electronic proto-boards
- wire, resistors, capacitors, inductors, diodes, Op-Amps, other ICs
- photodiodes (PDs), light-emitting diodes (LEDs), laser diodes (LDs)
- soldering equipment and supplies

### Materials to borrow when necessary

- LTSpice circuit simulation software (on computers in lab)
- lab copy of The Art of Electronics, Horowitz & Hill
- inductance meter
- Keithley voltage supply - Red LD module - Optical power meter - Spectrometer

### Activities

• If you have zero electronic training or experience read chapters 1-6 of Keith Brindley's eBook Starting Electronics.
• If you have some small experience with electronics proceed and consult Starting Electronics or The Art of Electronics as needed.
• CLEAN UP THE OBSTACLE COURSE SETUP AFTER USE - PUT BACK ELECTRONIC COMPONENTS IN APPROPRIATE PLACES AFTER EACH ACTIVITY
• Keep a journal of your activities, results and answers to any questions asked in the activities below. You will use this for your write-up.

#### Resistor & Capacitor Basics

1. With a MM measure the resistance of five 100 Ohm resistors. Do they fall within the specified tolerance?
1. What is resistance? Can you provide an analogy based on water flowing through pipes?
2. Describe physically a resistor.
3. Is energy stored in a resistor or dissipated as heat? Can you provide an explanation of the basic physical processes?
4. What is the resistance of two 100 Ohm resistors in series? How do resistors in series add?
5. What is the resistance of two 100 Ohm resistors in parallel? How do resistors in parallel add?
6. How does the MM measure the resistance?
7. What can you say about the "internal" resistance of the MM in resistance measurement mode?
8. Using a proto-board and one of the 100 Ohm resistors put 2.5VDC across the resistor. Calculate the current. Use the MM in ammeter mode to measure the current. Are the calculated and measured values close? Does the power applied to the resistor fall within the power rating of the resistor? What is power? What could happen if you applied too much power to the resistor?
9. What is current?
10. How does the MM measure current?
11. What can you say about the "internal" resistance of the ammeter used in the measurement of the current?
12. How do the MM wire leads effect these measurements?
13. Could you measure the resistance of a 1cm length of copper wire with the MM? Why?
2. Put 150mA of DC current through a 10 Ohm resistor.
1. What power is being applied to the resistor? Calculate the voltage across the resistor. With the MM measure the voltage across the resistor. Are these values close?
2. What is voltage?
3. How does the MM measure a voltage?
4. What can you say about the MM's "internal" resistance when it measures a voltage?
3. With a function generator put a 2.5VAC (peak-to-peak) sinusoidal voltage at frequencies of 50, 500 and 1000Hz across a 100 Ohm resistor.
1. Using the MM in voltage mode measure the AC voltage. Does it vary with frequency?
2. Using the MM in current mode measure the AC current. Does it vary with frequency?

4. Measure the capacitance of five 0.1 $\mu$f unpolarized capacitors. Do they fall within the specified tolerance?
1. What is capacitance? Describe physically a very simple capacitor.
2. How is energy stored in a capacitor?
3. What is the difference between unpolarized and polarized capacitors?
4. What is the capacitance of two 0.1 $\mu$f capacitors in series? How do capacitors in series add?
5. What is the capacitance of two 0.1 $\mu$f capacitors in parallel? How do capacitors in parallel add?
6. How does the capacitance meter measure the capacitance?
7. Using a proto-board apply 2.5VDC across an 0.1 $\mu$f capacitor and 100 Ohm resistor in series. Using a MM measure the voltage across the entire capacitor + resistor series network. Measure the voltage across the capacitor only. Measure the voltage across the resistor only. Explain the measured voltage across the resistor.
8. Now apply a 2.5VAC sinusoidal voltage across the capacitor + resistor network at 50, 500 and 1000 Hz.
9. What's the voltage across the resistor for 50, 500 and 1000Hz?
10. What's the voltage across the capacitor for 50, 500 and 1000Hz?
11. How does the voltage across the capacitor as a function of frequency compare to the voltage across a resistor as a function of frequency?

5. Build a network of two (possibly different valued) resistors that takes an input voltage of 5VDC and produces an output voltage at 2.5VDC.
6. Build a network of two (possibly different valued) resistors that takes an input voltage of 5VDC and produces an output voltage at 1.25VDC.
7. Build a network of an $\mu$f capacitor and a 100 Ohm resistor in series.
1. Apply a 1VAC sinusoidal (input) signal to the capacitor at 100, 1000, 5000, 10000, 15000, 20000, 25000 and 50000 Hz and measure the (output) voltage between the capacitor and the resistor for each frequency.
2. Plot as a function of frequency. What can you say about the frequency dependence of the ratio of output to input voltage?
3. You've just built three very useful circuits called voltage dividers. Would a voltage divider containing only resistors work for AC voltages? If you're unsure, try it. Would a voltage divider containing at least one capacitor work for DC voltages? Again, if you're unsure, try it.

8. Now, apply a 1V 10Hz square pulse to a 500 Ohm resistor and an 470 $\mu$f capacitor in parallel.
1. Using an oscilloscope measure the voltage across the capacitor + resistor parallel network. (You'll need to use the oscilloscope's front-panel controls to get the waveform on the screen and get the triggering to work)
2. Are the leading and trailing edges of the pulse similar? Why?
3. What is the "rise time" of the leading edge (10% to 90%)?
4. What is the "fall time" of the trailing edge (10% to 90%)?
5. What is the time it takes for the trailing edge to fall to 1/e of its initial value?
6. What is the value of the resistance multiplied by the capacitance?
7. Repeat the above measurements with a 100 $\mu$f capacitor instead of the 470 $\mu$f capacitor.
8. Are the rise and fall times faster or slower?
9. What can you say about the rise time as a function of capacitance?
9. Next let's use resistors and a capacitors to build one frequency-low-pass circuit and one frequency-high-pass circuit.
1. Use what you've learned about the AC and DC responses of capacitors and resistors to put together a resistor + capacitor network that blocks DC current, strongly attenuates low frequencies but passes high frequencies (hint: recall the voltage divider of 7 above).
2. Determine the circuit's 3dB point.
3. Put together a resistor + capacitor network that passes DC current and low frequencies but strongly attenuates high frequencies.
4. Determine the circuit's 3dB point.

#### Inductor Basics

1. Measure the inductance of five 1mH inductors. Estimate their tolerance (5%, 10%, 15% or 20%).
1. What is inductance? Describe physically a very simple inductor.
2. How is energy stored in an inductor?
3. What is the inductance of two 1mH inductors in series? How do inductors add in series?
4. What is the inductance of two 1mH inductors in parallel? How do inductors add in parallel?
5. Do inductors add like resistors or capacitors?
6. How does the inductance meter measure inductance?
2. Using a proto-board apply 1VDC across a 1mH inductor and 500 Ohm resistor in series. Using a MM measure the voltage across the entire inductor + resistor series network. What is the inductors "resistance" in this situation?
3. Put a 1VAC sinusoidal signal across the inductor + resistor network at 50, 500, 2kHz, 5kHz and 10kHz, 25kHz, 50000, 250kHz and 1Mhz.
1. At each frequency measure the voltage across the inductor only. Measure the voltage across the resistor only. Explain the measured voltage across the resistor in terms of how the inductor behaves with frequency.

#### Resonant circuits

1. Construct the circuit shown at the right using a 100 Ohm resistor, 1mH inductor and a 10uf capacitor.
1. Apply a 1VAC sinusoidal input voltage at frequencies between 10 and 3000Hz and plot the output voltage as a function of frequency.
2. At what frequency is the response of the circuit maximum?
3. Explain the response of this circuit based on what you've learned about capacitors and inductors.
4. When would a circuit with a response like this be useful?
5. Can you think of an optical-cavity analogy?

#### Impedance and Reactance

Impedance is resistance generalized. A resistor resists (dissipates power) but does not change the waveform (square wave in square wave out). Capacitors and inductors (since they store energy) can react and cause changes in the waveform (see section 8 above).

The concept of impedance includes resistance and reactance effects. That is, Impedance = Resistance + Reactance. All the frequency dependence is contained within the reactance. For ideal capacitors and inductors their resistance is zero (not the case in real life). An ideal resistor is a purely resistive component and has no reactance (again, not the case in real life).

We can use the word "impedance" in general. When we say something like, "What's the resistor's impedance", we are referring to the resistance term of the resistor's impedance equation. When we say something like, "What's the impedance of the capacitor", we are referring to the reactance term of the capacitor's impedance equation.

1. Think back to the previous exercises.
1. What is the frequency dependence of a capacitor's impedance?
2. What is the frequency dependance of an inductors impedance?

#### Diodes

For the electronic components considered above (resistor, capacitor, inductor) it doesn't matter which way you put them into a circuit - they are non-directional. That is, you can flip their leads and the circuit will behave the same. For diodes this is not the case. Diodes are directional and it matters which way they are oriented in a circuit. Diodes are physically more complicated than the components treated above so we won't go into an explanation of just what a diode is now. We'll only consider how diodes behave.

1. Put a P6KE6.8 diode in series with a MM in ammeter mode and ground the anode.
1. Apply 0.7VDC to the cathode and measure the current through the diode.
2. Now ground the cathode and apply 0.7VDC to the anode and measure the current through the diode.
3. Are the currents the same?
2. With the cathode grounded apply voltages from 0-1.5 VDC to the anode in 0.1 V increments and plot the result. This is the forward I-V curve for the diode. The diode is said to be "forward biased" in this situation.
1. There should be a "knee" in this curve where the diode "turns on" or conducts. About what voltage is this?
3. Using the (current limited) Keithley voltage supply, apply voltages from 0-100VDC to the anode grounded diode and plot the result. This is the reverse I-V curve for the diode. The diode is said to be "reverse biased" in this situation.
1. There should be a "knee" in this curve too where the diode starts to conduct in the reverse direction. About what voltage is this?
2. Are the forward and reverse "turn on" voltages symmetric about 0V?
4. Construct the diode clamp circuit shown at the right.
1. Apply input voltages from 0-10VDC and plot the output voltage vs. input voltage.
2. Does the diode clamp earn its name?
3. Can you explain the maximum output voltage?

5. Employ an AC voltage divider with a resistor and the P6KE6.8 to measure the diode's capacitance as a function of bias voltage. This diode capacitance issue will play a role later on when we encounter optoelectronic devices. In the AC voltage divider shown at the right the C indicates the capacitance of the diode. That is, don't put a capacitor where "C" is but the P6KE6.8 diode with its cathode grounded. Apply a 20mV AC sinusoidal signal with varying (positive to the anode) DC offsets (larger than 20mV) to the input. The DC offset is the diode's bias voltage. Look for amplitude changes to the AC signal at the output. With the voltage divider formula and the formula for the impedance of a capacitor you should be able to plot the diodes capacitance Cd as a function of bias voltage (the DC offset).
1. Does the diode's capacitance decrease of increase with positive bias voltages?
2. Is there a limiting behaviour? If so, can you explain it?
3. Now measure the diode's capacitance for reverse biases from 0 to 25VDC (positive to the cathode).
4. Does the diode's capacitance change much for reverse bias voltages?

#### Transistors

All the components (even diodes) examined above are considered "passive" components. That is, they can't supply energy. Transistors are considered "active" in the sense that they can supply energy (or amplify). Like diodes, transistors are physically more complicated than resistors, capacitors and inductors and we won't go into detail about just what they are. Instead we'll focus on how transistors behave. The collector C must be biased more positive than the emitter E. The current through the collector IC is roughly proportional to the current into the base IB (usually anywhere from 50 to 250 times IB). So there you have it. In a first approximation the transistor is a current amplifier. A small current flowing into the base controls a much larger current flowing into the collector.

1. Ground the emitter of a TIP31C npn transistor. Put a 22 Ohm resistor in parallel with a MM in ammeter mode between the collector and a +2.5VDC supply. Put a 1kOhm resistor in series with an ammeter between the base and the +2.5VDC supply.
1. Measure the collector current and the base current for supply voltages VS between 1.3 to 3VDC.
2. Plot IC/IB vs. VS.
3. What is the proportionality factor between IC and IB at VS = 1.3VDC?
4. Is the proportionality factor independent of VS ?
5. Does the transistor amplify current?

#### Operational Amplifiers (OpAmps)

OpAmps are integrated circuits (ICs) that contain within them many transistors, resistors, capacitors and possibly diodes miniaturized into a single IC component (see chapter 9 of the eBook Starting Electronics). OpAmps are very high gain dc-coupled differential amplifiers with single-ended outputs and are usually employed with feedback.

The OpAmp we will be using is National semiconductor's general purpose LM741. OpAmp behaviour can may be simplified into two simple rules.

• The output attempts to do whatever is necessary to make the voltage difference between the inputs zero.
• The inputs draw no (very little anyway) current.

1. Use an LM741, a 1kOhm and a 500Ohm resistor to construct the non-inverting amplifier shown at the right (power to OpAmp not shown).
1. Power the OpAmp at +10VDC and -10VDC.
2. Apply a +1VDC signal to the input and measure the output voltage.
3. Can you explain the OpAmps behaviour in terms of the first rule above?
4. What is the gain of your amplifier (Vout/Vin)?
5. What is the value of 1 + Rf/Rg?
6. Are these last two values the same?
7. Replace Rf with Rg and Rg with Rf.
8. Apply a +1VDC signal to the input and measure the output voltage.
9. What is the gain of your amplifier (Vout/Vin)?
10. What is the value of 1 + Rf/Rg (remember you switched the values of Rf and Rg)?
11. What is the general formula for the gain of a non-inverting amplifier?

2. Reconfigure the LM741, the 1kOhm and 500Ohm resistors for an inverting amplifier (see diagram at right).
3. Apply a +1VDC input and measure the output.
1. Can you explain the OpAmps behaviour in terms of the first rule above?
2. What is the gain of your amplifier (Vout/Vin)?
3. What is the value of -Rf/Rin
4. Are these last two values the same?
5. Switch Rf and Rin.
6. Apply a -1VDC signal to the input and measure the output voltage.
7. What is the gain of your amplifier (Vout/Vin)?
8. What is the value of -Rf/Rin (remember you switched the values of Rf and Rin)?
9. What is the general formula for the gain of an inverting amplifier?

Since electronic instruments (MMs, oscilloscopes, function generators, even Opamps, etc.) are composed of resistors, capacitors, inductors, diodes, transistors, OpAmps, etc., they have characteristic net input and output impedances.

Consider the simple voltage divider circuit shown at the right.

Let Vin be 10VDC and R1 = R2 = 10MOhm. Based on your experience in section 5 above what do you think Vout should be?

1. Construct the voltage divider.
1. Let R1 = R2 = 1kOhms. Measure Vout. Is Vout what you expected?
2. Change both resistors to 10kOhm. Measure Vout. Is Vout what you expected?
3. Change both resistors to 500kOhm. Measure Vout. Is Vout what you expected?
4. Change both resistors to 1MOhm. Measure Vout. Is Vout what you expected?
5. Change both resistors to 10MOhm. Measure Vout. Is Vout what you expected?
6. Plot Vout vs. R2.
7. What do you think is going on? Remember how the MM measures voltage.

This voltage sagging effect is the result of circuit loading. The MM bleeds off a small bit of the current and runs it through a very precise calibrated large value resistor (usually between 1MOhm and 10MOhms). When R2 is 1kOhm the MM bleeds off a very small fraction of the current that should have flowed through R2. Consequently, the measured voltage at Vout sags minimally. However, as R2 increases to values approaching the MM's "internal" resistance (or input impedance) the MM draws off larger and larger fractions of the current that should have run through R2. Consequently, the measured voltage at Vout sags substantially.

The voltage divider and MM can be thought of as a two stage electrical device. The first stage does something and then "hands off" the result to the second stage which also does something.

What can you say about the output impedance of a first-stage electronic device in relation to the input impedance of a second-stage electronic device?

#### Unity Gain Non-Inverting Amplifier: The Follower or Buffer

The above consideration on instrumentation and loading naturally lead to a very useful OpAmp device. A follower (pictured at right)
is a unity gain non-inverting amplifier. Why would anyone want this? It just reproduces what you've already got.

Well let's consider the follower's input and output impedances. From the second simple rule for OpAmps (see above) the input impedance (looking into the (+) OpAmp input) is "infinite" (well, very high anyway as it draws little to no current). The OpAmp's output impedance (looking from Vout to the (-) OpAmp input) is zero (or very nearly).

So the follower has the useful properties that it's input impedance is "infinite" and it's output impedance is "zero". This would have been a wonderful thing to have between the voltage divider stage and the MM stage in the previous section.

1. Redo the measurements of the previous section with the follower (or in this case it's maybe better to call it a buffer) in between the stages.
1. Plot the new Vout vs. R2.
2. Does Vout still sag with increasing R2?

#### Optoelectronics

The electronic components considered above lie completely in the realm of "pure" electronics. In addition to these "pure" electronic components there exists hybrid components that blend the characteristics of electronics and optics. These are called optoelectronic (OE) components and include photodiodes (PDs), light-emitting diodes (LEDs) and laser diodes (LDs). We won't go into detail of what these OE components are but just look at how they behave. Suffice it to say, at this point, that the PD, LED and LD are all diodes and if you understand what a diode is you'll go a long way towards understanding these OE devices.

The Photodiode or photodetector: Photodiodes are very much like the diodes you encountered above with the exception that currents can be induced not only by biasing voltages but also by light (called the photo-current).
1. Measure the "dark" forward I-V curve of Optek's OP950 PD. That is, shield the PD from ambient room light while doing the measurement.
1. Plot the dark forward I-V curve.
2. How does it look compared to the "pure" electronic diode's forward I-V curve?
3. At what voltage does the PD "turn on". How does this compare with the "pure" diode's turn-on voltage?
4. Now open up the PD to ambient room light and look at the forward I-V curve again. Has it changed?
5. Get a red LD module and shine laser light on the PD. Observe the forward I-V curve again. Has it changed?
6. What can you say about the PD's I-V curve as a function of incident light power?
7. Measure the dark reverse I-V curve of the PD between 0 and -25VDC.
8. Open the PD to ambient light and redo the previous measurement.
9. Shine the red laser light on the PD and repeat the measurement again.
10. What can you say about the reverse I-V curve of the PD vs. incident light power?

The Light Emitting Diode:
The PD above is a device that when light is incident on it a photocurrent is produced. The LED, on the other hand, is a device that when a (suitable) current is induced through it light is produced.
1. Forward bias (positive voltages applied to the Anode) ANDOptoelectronic's AND114-R LED between 0 and 2VDC.
1. What happens as the voltage is increased?
2. With a power meter measure the optical power as a function of forward current and plot.
3. Are there distinct regimes of optical output?
4. With a spectrometer measure the optical power as a function of wavelength.

The Laser diode: Laser diodes are similar to LEDs but in addition have optical feedback. Without going into detail, this
feedback greatly improves the optical characteristics of the LD (think of the difference between a flashlight and a laser pointer).

LEDs are fairly robust devices. You can mistreat them, within reason, and they'll still function (at least to some degree). LDs, on the other hand, are easily destroyed or damaged.

• Static Electricity: The static electricity generated by walking across a carpet can (and usually does) destroy them.
• Reverse Bias Voltages: LDs (and LEDs too) are meant to operate in forward bias only. As such, they can be destroyed by applying too high a reverse bias to them (this reverse bias damage value is usually spec'd).
• Rapid Current Changes: Abruptly cutting off (or turning on) a LD driving current can (and usually does) destroy the LD.
• Putting too much current through the LD (again, this usually does destroy the LD).

For all these reasons LD are usually operated within a protective circuit (see right).

There are two components you haven't seen yet. The LM317 and the square blue component (the pot) connected to the middle pin of the LM317. A pot or potentiometer is a variable resistor. It's got a knob or screw that can be turned to adjust its resistance.

Let's discuss the parts of this circuit and what they do to help protect and operate the LD. The LM317 is a voltage regulator. The pot allows for adjusting the LD current and the resistors act to limit the maximum current. The "pure" electronic diode clamps any reverse biases (accidentally applied) to ~ 0.6V (which is below the reverse bias damage value). The capacitor suppresses static discharges or voltage transients and slows the LD turn-on/turn-off behaviour.

In addition to the LD protection circuit always wear an antistatic wrist band when handling LDs.

Also, it's always best to test your CC circuit with an LED first (LED is more robust - and cheaper) before trying it with the LD.

The LD we'll use is LiteOn's LTLD505T. It has a center wavelength around 650nm, 5mW optical power, turn-on (or threshold) current around 35mA, operating current 45mA, operating voltage around 2.4V, max operating voltage 2.6V and max reverse voltage of 2V.

1. Put together this LD CC circuit with V(-) at ground, V(+) at 7VDC, a 1K pot, , R = 30Ohms, C = 10 $\mu$f and a P6KE6.8 diode (oriented the correct way).
1. Test the CC circuit with an LED (cathode grounded).
2. Does the circuit light up the LED? If yes, proceed. If not, troubleshoot the circuit.
3. Replace the LED with the LD (remember to wear the antistatic wrist band).
4. Does the circuit light up the LD? Is yes, proceed. If not, troubleshoot.
5. With the power meter measure the optical power vs. LD current. What's the turn-on current? Is it close to the LD's spec'd threshold current?
6. What is the optical power at the operating current?
7. Are there distinct optical regimes?
8. How does the LD's threshold current relate to these regimes?
9. With a spectrometer measure and plot the optical power vs. wavelength for currents just below threshold and well above threshold.
10. Are these plots similar? Explain.

• Submit a write-up outlining your activities, results and the answers to all the questions asked above.

• CLEAN UP THE OBSTACLE COURSE SETUP AFTER USE