Difference between revisions of "Electronics Mini-Lab"

From Course Wiki
Jump to: navigation, search
(Part 1:making and characterizing a resistive voltage divider circuit)
(Build the circuit)
 
(475 intermediate revisions by 6 users not shown)
Line 3: Line 3:
 
{{Template:20.309}}
 
{{Template:20.309}}
  
[[Image:Resistor Bug.jpg|thumb|right|350 px|Photo by Brendan Dolan-Gavitt]]
+
[[Image:Resistor Bug.jpg|right|300 px|thumb|Photo by Brendan Dolan-Gavitt]]
  
 
==Overview==
 
==Overview==
During the next lab exercise on measuring DNA melting curves, you will build and debug several electronic circuits. This mini-lab will introduce you to the electronic components and test equipment you will use. A short answer-book style writeup is required. Items to include in your report are shown below in '''bold'''.
+
During the next lab exercise on measuring DNA melting curves, you will build and debug several electronic circuits. This bootcamp will introduce you to the electronic components and test equipment you will use. A short answer-book style writeup is required. Your writeup should include the practice problems and any '''bolded questions''' asked throughout the lab instructions. Don't forget the basics: report measurements with an appropriate number of significant figures, units, and uncertainty. Label plot axes.
  
This mini-lab requires an understanding of basic circuits. If you need to review circuit concepts, start with the [[Electronics Primer]] page. If you have a lot of experience with electronics, ask one of the instructors about doing a stimulating mini-project instead of the mini-lab assignment.
+
This bootcamp requires an understanding of basic circuits. If you need to review circuit concepts, start with the [[Electronics Primer]] page. If you have a lot of experience with electronics, ask one of the instructors about doing a stimulating mini-project instead of the mini-lab assignment.
  
==Part 1:making and characterizing a resistive voltage divider circuit==
+
==Problems==
[[Image:ElectronicsModuleFig-1.png|thumb|Schematic diagram of voltage divider circuit.]]
+
====Question 1====
 +
Consider the following circuit composed of a network of resistors:
 +
[[Image: Circuit1.png|center|250px|thumb]]
  
In part 1 of the mini-lab, you will analyze and build a voltage divider.  The divider circuit comprises two resistors and a voltage source, as shown in the schematic diagram. You will select the values for R<sub>1</sub> and R<sub>2</sub>.  Choose any resistor values you like, but there are a few practical constraints.  
+
'''a)''' Combining resistance values in parallel and in series, draw a simplified version of the circuit containing the given voltage source (10V) and one equivalent resistor. Label the equivalent resistance value.  
  
The resistors in the lab range in value from 1&Omega; to 10M&Omega;. Within that range, manufacturers only produce certain standard values. Check the supply bins or [http://ecee.colorado.edu/~mcclurel/resistorsandcaps.pdf this table] to see which values are available.  
+
'''b)''' Find the voltage values for the nodes <math>V_A</math> and <math>V_B</math> in the above diagram.
  
Power dissipation in resistors increases as the square of current, ''P=I<sup>2</sup>R''. The maximum power rating of the resistors in the lab is 1/4 Watt. Components operated at too high a power level may get very hot and fail. A noxious puff of smoke frequently accompanies failure. Even if a component operated at an excessive power level does not completely fail, its behavior will be unpredictable. Ensure that the power dissipated by R<sub>1</sub> and R<sub>2</sub> does not exceed the maximum rating.
+
====Question 2====
 +
Referring to the circuit shown below, what value of <math>R_L</math> (in terms of <math>R_1</math> and <math>R_2</math>) will result in the maximum power being dissipated in the load?
  
You will use an oscilloscope to measure voltages in the circuit. The oscilloscope has an input impedance 1M&Omega;. Connecting the oscilloscope probe to a node of the circuit is equivalent to placing a 1M&Omega; resistor between that node and ground. In circuits that use very large resistors, the current flowing into the oscilloscope can significantly distort measurements.
+
Hint: this is much easier to do if you first remove the load, and calculate the equivalent Thevenin output resistance <math>R_T</math> of the divider looking into the node labeled <math>V_{out}</math>. Then express <math>R_L</math> for maximal power transfer in terms of <math>R_T</math>.
 +
 
 +
[[Image: VoltageDivider.jpg|center|200px|thumb|A voltage divider formed by <math>R_1</math> and <math>R_2</math> driving a resistive load <math>R_L</math>.]]
 +
 
 +
 
 +
====Question 3====
 +
In the following circuit, R = 10 k&Omega; and C = 10 nF.
 +
[[Image: Filter1.jpg|center|220px|thumb]]
 +
 
 +
'''a)''' Find the transfer function <math>{V_{out} \over V_{in}}</math>.
 +
 
 +
'''b)''' What type of filter is this? Justify your answer.
 +
 
 +
'''c)''' What is the cutoff frequency of this filter? Write your answer in units of Hz. Remember that <math>\omega = 2 \pi f </math>.
 +
 
 +
Note: You may find the pages on [[Impedance Analysis]] and [[Bode plots| Transfer Functions and Bode Plots]] helpful for this problem.
 +
 
 +
==Lab Exercises==
 +
===Voltage divider===
 +
[[Image:VdividerSchematic_idealsymbol.png|right|250px|thumb|Schematic diagram of voltage divider circuit.]]
 +
 
 +
In the first hands-on part of the bootcamp, you will analyze and build a voltage divider.  The divider circuit comprises two resistors and a voltage source, as shown in the schematic diagram. You will select the values for ''R<sub>1</sub>'' and ''R<sub>2</sub>''. 
 +
 
 +
====Before you build====
 +
Choose any two resistor values you like, but there are a few practical constraints. The resistors in the lab range in value from 1 &Omega; to 10 M&Omega;. Within that range, manufacturers only produce certain standard values. Check the supply bins or [http://ecee.colorado.edu/~mcclurel/resistorsandcaps.pdf this table] to see which values are available.
 +
 
 +
Resistors convert electric power to heat. Since the ideal circuit model does not include heat energy, ideal resistors have the effect of making power disappear from a circuit. Of course, energy is conserved in a real circuit. The energy is converted to a form that is extrinsic to the ideal circuit model.
 +
 
 +
The fact that energy disappears from a circuit model doesn't mean that you can ignore it. Power dissipation in resistors increases in proportion to resistance and the square of current, <math>P=I^2R</math>. Physical resistors must be able to shed their heat to the environment or else they tend to get very hot and fail.  A noxious puff of smoke frequently accompanies failure. Even if a component operated at an excessive power level does not vaporize, it may no longer behave as specified. The maximum power rating of the resistors in the lab is &frac14; Watt. Ensure that the power dissipated by ''R<sub>1</sub>'' and ''R<sub>2</sub>'' does not exceed the maximum rating for ''V<sub>in</sub>'' values in the range of 0-15 V.
 +
 
 +
You will use an oscilloscope and a volt meter to measure voltages in the circuit. The oscilloscope has an input impedance of 1 M&Omega;. Connecting the oscilloscope probe to a node of the circuit is equivalent to placing a 1 M&Omega; resistor between that node and ground. In circuits that use very large resistors, the current flowing into the oscilloscope can significantly distort measurements.
  
 
Before building the divider circuit:
 
Before building the divider circuit:
  
# '''Record the resistor values you selected and the gain of circuit, ''V<sub>out</sub>'' / ''V<sub>in</sub>''.
+
# '''Record the values you selected for R<sub>1</sub> and R<sub>2</sub>.'''
# '''Plot an I-V curve showing ''i'' on the horizontal axis and ''V<sub>in</sub>'' on the vertical axis over the range -15V <  ''V<sub>in</sub>'' < 15V.'''
+
# '''Find the gain of the circuit, <math>^{V_{out}}/_{V_{in}}</math>'''
# '''Derive a formula for the power dissipated in R<sub>1</sub> and R<sub>2</sub> as a function of ''V<sub>in</sub>''.'''
+
# '''Plot an ''I-V'' curve with ''I'' on the vertical axis and ''V<sub>in</sub>'' on the horizontal axis, over the range 0 V <  ''V<sub>in</sub>'' < 15 V.'''  
# Derive a formula for the change in <i>V<sub>o</sub></i> if a 1M&Omega; resistor is added in parallel to R<sub>2</sub>. '''Show the equivalent circuit and your derivation.'''
+
#* A hand-drawn plot is fine.
 +
# '''What is the maximum power dissipated in each resistor between 0 V < ''V<sub>in</sub>'' < 15 V?'''
  
===Build the circuit===
+
====Another practical issue: tolerance====
 +
[[Image:Museum_of_tolerance.jpg|right|thumb|The [http://www.museumoftolerance.com Museum of Tolerance] in Los Angeles, California contains many exhibits about the concept of tolerance.]]
  
Most electronic components look like bugs. They have a central body with a bunch of gangly legs sticking out, called leads. The leads carry current from the outside of a component to its innards. One of the first challenges facing an aspiring circuit maker is to properly connect all the bugs' legs whilst keeping the circuit robust and orderly. Of the various options, solderless electronic breadboards are convenient for circuits that need to be debugged or require frequent reconfiguration.
+
It's easy enough to write down an exact value for a resistor like 15 k&Omega; or e<sup>&pi;</sup> &Omega; and analyze a circuit model that contains such a component. But fabricating a 15 k&Omega; or e<sup>&pi;</sup> &Omega; resistor is another matter. It is not possible to realize physical components with infinite precision. The values you specify on paper are called nominal values. Nominal means: "stated or expressed but not necessarily corresponding exactly to the real value."<ref>http://www.merriam-webster.com/dictionary/nominal</ref> When you go to build the circuit, the actual value of the resistors you use will be somewhat different than the nominal values you used to analyze the circuit.  
  
{| class = "wikitable"
+
To account for the difference between the nominal and actual values of a component, the manufacturer guarantees that the actual value will differ from the nominal value by no more than a certain amount. Resistor tolerances are usually specified as a percent of nominal value. Some common resistor tolerances are 10%, 5%, 2.5%, and 1%. Even smaller tolerances are available from some manufacturers &mdash; down to 0.05& in some cases. The resistors in the lab are guaranteed by the manufacturer to be within 5% of the nominal value.
|-
+
|align=center|[[Image:ElectronicsModuleFig-BB.png|350 px|center]]
+
|align=center|[[Image:Vdivider_Breadboard_zoom.JPG|center|350 px|center]]
+
|-style="text-align:center;"
+
|Top view of a solderless electronic breadboard.
+
|Voltage divider circuit implemented on a breadboard.
+
|}
+
  
Breadboards have a large number of square holes in them called tie points. A single wire or component lead fits into each tie point. Spring-loaded contacts inside each tie point hold the leads in place and provide an electrical connection.  
+
Because the actual values of the resistors differ from the nominal values, the power dissipation in ''R<sub>1</sub>'' and ''R<sub>2</sub>'' will under some circumstances be greater than what you computed using the nominal values. To be safe, the best thing to do is compute the power dissipated in both resistors under worst-case assumptions.
  
Sets of tie points are electrically connected in a pattern that allows component leads to be connected together in almost any arrangement. Connections between component leads are made by running jump wires between tie points that are connected to each lead. In the image above on the left, the two central grids of tie points separated by a notch are called the field. Each row of tie points in the field is called a terminal strip. The terminal strips are numbered. Columns are designated by a letter. Within a terminal strip, the five tie points on the left side of the notch are electrically connected, as are the five on the right. In other words, tie points A-E are connected, and tie points F-J are connected. Points A-E are not connected to points F-J.  
+
====Measure the resistors with a digital multimeter====
 +
[[Image:ElectronicsModuleFig-MM.png|125 px|thumb|right|Digital multimeter with test leads configured for voltage or resistance measurement.]]
 +
Go ahead and get the resistors for your circuit from the bins in the lab.  
  
The lines of tie points highlighted by red and blue lines are called bus strips. All of the tie points in a bus strip are connected together. Most circuits have a lot of power and ground connections. To facilitate the large number of supply connections, the bus strips are almost always connected to the power supply. Connecting a wire directly from the power supply to a tie point is tenuous, so the breadboard also has four colored posts, which are visible in the image above right. These are called banana terminals. Each post accepts a connector on the inside and a bare wire on the outside. The wire can be wrapped around the exposed metal part of the post or passed through the hole at the base of the post and secured with the colored plastic nut. A cable with banana connectors on both ends connects the power supply to the posts. The banana terminals are not connected to any tie points, so it is necessary to run a wires from the posts to  tie points on the bus strips.
+
The value of each resistor is indicated by a set of color-coded bands on the component body. Through negligence or malice of last semester's scholars, components occasionally end up in the wrong bin. Ensure that you have the correct resistors by reading the color bands. Instructions for reading resistor markings are available at [http://en.wikipedia.org/wiki/Electronic_color_code this Wikipedia page].
  
# Gather components to build the divider circuit:
+
Measure the actual value of both resistors with a digital multimeter (DMM). DMMs are multifunction instruments that usually include functions for measuring voltage, current, and resistance. They connect to component terminals through a pair of test leads. DMMs measure resistance by applying a small voltage across the test leads and measuring the resulting current flow. To get an accurate measurement of a resistor, its leads must be isolated from other circuit elements. If the resistor leads are connected to other components, current flowing through other paths will distort the measurement.
#* the solderless electronic breadboard
+
#* a lab station with a working power supply and digital multimeter (DMM)
+
#* jump wires, or a few lengths of different colored wire (located near the breadboards)
+
#* wire strippers (located in your lab station drawer)
+
#* banana cables (located on the West wall)
+
#* resistors of the selected values (located on the bench at the North wall)
+
# Mount the resistors by pressing component leads into the tie points in the field.  
+
#* Trim the resistors leads to keep the component body close to the board. This will also prevent long leads from shorting on the bottom metal of the board.
+
# Run jump wires to connect the divider to power and ground
+
#* Keep your wiring neat and easy to follow. A good way to do this is to route wires horizontally or vertically, making right-angle bends to change directions.
+
#* Use the right length of wire. The right length of wire is the shortest length of wire that satisfies the previous guideline.
+
#* Use the bus strips to distribute power supplies and ground.
+
# Connect the power supply to the breadboard.
+
#* Use the black banana connector and blue bus strips for ground. Red bus strips are almost always used for power supplies.
+
#* The exposed metal screws on the bottom of the banana connectors can short to the metal optical table. Cover them with electrical tape to prevent a calamity.
+
#* When making wire connections to the banana terminals, be sure that only bare wire touches the terminal. Insulation under the screw terminal may cause an intermittent connection.
+
  
 +
# Plug two test leads into the DMM.
 +
#* The black lead goes into the terminal labeled COM.
 +
#* The red lead plugs into different terminals depending on the measurement you are making. For resistance measurements, use the '''V &Omega;''' terminal. The '''A''' terminal is for current measurements.
 +
# Select the resistance mode, which is labeled with an &Omega; symbol.
 +
# If you've inserted your resistors on the breadboard, remove them and connect the DMM leads to the resistor that you want to measure.
 +
# '''Measure your resistors and record their actual values.'''
 +
 +
From this point on, use the actual value instead of the nominal value in your calculations. Using the actual value will reduce the error in results that depend on ''R<sub>1</sub>'' or ''R<sub>2</sub>''.
 +
 +
====Build the circuit====
 +
[[Image:Vdivider_Breadboard_zoom.png|right|thumb|An example voltage divider circuit implemented on a breadboard. Note that you don't need as many connections and can build the circuit however you choose.]]
 +
[[Image:ElectronicsModuleFig-BB.png|right|thumb|Top view of a solderless electronic breadboard.]]
 +
The next step is to build the divider circuit. If you have worked with electronic components before, you probably noticed that most of them look a little bit like bugs. They have a central body with some gangly legs sticking out, called leads. The leads carry current from the outside of a component to its innards where the magic happens. One of the first challenges facing an aspiring circuit maker is to properly connect all the bugs' legs whilst keeping the circuit robust and orderly. Solderless electronic breadboards are a convenient platform for building circuits that might require a lot of debugging or frequent reconfiguration. Breadboards are flexible and easy to use, but they have a few downsides. They have high interconnect capacitance and resistance. If you don't know why that's bad, pay closer attention in lecture.
 +
 +
Before you go on, gather the items that you will need:
 +
 +
* solderless electronic breadboard,
 +
* lengths of different colored wire to make jump wires,
 +
* wire strippers (located in the lab station tool drawers).
 +
 +
The image on the right shows an example of solderless electronic breadboard. The breadboard has a large number of square holes in it called ''tie points''. A single wire or component lead fits into each tie point. Spring-loaded contacts inside each tie point hold leads in place and provide electrical connections.
 +
 +
Sets of tie points are electrically connected to each other in a pattern that allows just about any circuit arrangement to be realized on the breadboard. The two central grids of tie points separated by a notch are called the field. Each row of tie points in the field is called a terminal strip. Rows of terminal strips are numbered. Columns are designated by a letter. Within a terminal strip, the five tie points A-E are connected, and tie points F-J are connected. Points A-E are not connected to points F-J. Connections between component leads are made by running jump wires between tie points that are connected to each lead, as shown in the image above on the right.
 +
 +
The long lines of tie points to the left, right, and above the field are called bus strips. Bus strips are highlighted by red and blue lines. All of the tie points in a bus strip are connected together. Because most circuits have a lot of power and ground connections, the bus strips are almost always connected to the power supply. Using the bus strips as a power distribution network makes it easy to connect any terminal strip to power or ground with a short jump wire.
  
 
If you are unsure whether two holes on the breadboard are connected, insert short wires in the holes. Use the resistance or continuity features of the DMM to check if they are connected.
 
If you are unsure whether two holes on the breadboard are connected, insert short wires in the holes. Use the resistance or continuity features of the DMM to check if they are connected.
  
There are a few downsides to breadboards. They have high interconnect capacitance and resistance. If you don't know why that's bad, pay attention in lecture over the next few weeks and discuss with an instructor.
+
# Mount R<sub>1</sub> on the breadboard by bending its leads at a 90 degree angle and trimming them to about half an inch long. Press the leads into the breadboard.  
 +
# Mount R<sub>2</sub> so that one of its leads is in the same terminal strip as one of the leads from R<sub>1</sub>. This will create an electrical connection between the two resistors.
  
 +
====Connect the power supply====
 +
[[Image:ElectronicsModuleFig-PS.jpg|right|thumb|Triple-output DC power supply.]]
  
The value of a resistor is encoded on its package by a series of color-coded bands. Through negligence or malice of prior classes, components occasionally end up in the wrong bin. Verify the value of each resistor you take from stock by reading the coded bands. Instructions for reading resistor markings are available at [http://samstechlib.com/24614782/en/read/4_Band_Resistor_Color_Codes this website].
+
Now it's time to complete the circuit by connecting a voltage source. You will use a laboratory power supply to drive your circuit. The lab supply has three separate DC outputs called '''CH1''', '''CH2''', and '''CH3'''. Each supply has a '''+''' and '''-''' terminal, from which motivated electrons begin and end their journeys. <ref>Don't read this if you think you understand circuits. The electrons begin their journey at the minus terminal; however, positive current is defined to flow from plus to minus. It's all <a href="http://www.allaboutcircuits.com/vol_1/chpt_1/7.html">Benjamin Franklin's fault</a>.</ref> The '''CH1''' and '''CH2''' outputs are adjustable. The '''CH3''' output always produces 5 volts with a current limit of 3 amps.  
  
The manufacturer's tolerance for the resistors in the lab is 5% of the nominal value. Therefore, the resistances in the circuit you build will be somewhat different than the nominal values you analyzed.
+
When you turn the power supply on, all three of the outputs will be disabled (which is a rather sensible way of doing things). Press the '''OUTPUT''' button to enable all three supplies. Press '''OUTPUT''' again to disable all three supplies.
  
===Measure the resistors with the DMM===
+
Four dials on the front of the supply set the current and voltage limits for each of the two supplies from 0-20V and 0-3A. At all times, each adjustable supply will be either current or voltage limited. Multicolor LEDs indicate which limit is currently in effect: green for voltage-limited and red for current-limited. When the supply is disabled, the numeric displays will show the values of the limit settings. When the supply is in operation, the displays show the actual current and voltage values for each supply.
[[Image:ElectronicsModuleFig-MM.png|thumb|right|A DMM serves as a voltmeter, ammeter, ohmmeter. Connect black lead into COM. Connect red lead into V/&Omega; for voltage and resistance measurements or into A for current measurements.]]
+
  
The DMM serves as a voltmeter, an ammeter, an ohmmeter among other functions. The black (negative) lead always plugs into COM at the bottom of the meter while the red (positive) lead plugs into V/&Omega; for voltage and resistance measurements or into A for current measurements. The voltage and current measurement modes of the DMM are very different, so don't forget to reconnect the leads.
+
Two pushbuttons near the middle of the the lab supply control panel configure the interconnection of '''CH1''' and '''CH2'''. There are 3 possible settings: independent, series, or parallel. In independent mode, '''CH1''' and '''CH2''' are not connected together. The two sets of voltage and current dials operate independently. In series mode, the plus terminal of '''CH2''' supply is internally connected to the minus terminal of '''CH1'''. Both supplies operate with the same voltage limit. The current limits are independent. This provides a ''split supply'' with equal positive and negative voltages relative to the common terminal. In parallel mode, the '''+''' terminals of '''CH1''' and '''CH2''' are connected together, as are the '''-''' terminals. Parallel configuration allows a maximum possible current of 6 amps &mdash; 3 amps from each of the supplies.  
  
#If you've read ahead and already connected power to your circuit, turn it off.
+
The post labeled "GND" in green letters is connected to ''earth ground''. Earth ground is a wire that runs through the third prong of the electrical plug to a post driven deep into the ground somewhere near Building 16. Earth ground is not needed for this lab.
#Disconnect the resistor you want to measure. This is important both in order to protect the DMM and because other parts of the circuit will affect the resistance you measure for one particular branch. You may find it convenient to insert the resistor across the notch in an unused portion of the field. This will make it easier to make firm contact between the resistor leads and the DMM leads.
+
#Switch the DMM to resistance mode, which is labeled with a &Omega;
+
#Place the DMM leads in parallel with the resistor of interest.
+
#'''Read and record the value on the DMM. Repeat for the second resistor.'''
+
  
'''Do they match your chosen resistances? By what percentage do the actual values differ from the nominal values?'''
+
In this part of the lab, you will use a 15 volt, split supply. Configure the lab supply in series mode with a voltage of 15 V and a current limit of about 0.1 amps on '''CH1''' and '''CH2'''.
  
===Complete the circuit===
+
The breadboard has four colored post terminals at the top right to facilitate power supply connections. These are called banana post terminals. Each post terminal accepts a banana connector inserted at the top and a bare wire at the base. The banana terminals are not connected to any of the tie points, so it is necessary to run wires from the post terminals to tie points on the bus strips. Wires connected to the post should pass through the hole through the base of the post. Be sure that only bare wire touches the terminal. Insulation under the screw terminal may cause an intermittent connection. Secure the wire by tightening the colored plastic nut (onto bare wire, not insulation plastic sleeve).  
Jump wire may be found in small boxes on the bench where you found the breadboards. There is also a larger box of wire pieces that you may wish to use. If you find no wire to your liking, there are also spools of wire on the right end of the bench.
+
  
Place the components on your breadboard and use the jump wire to connect the leads of your resistors to the bus strips (and possibly to each other). As a guide, you may use the picture of a voltage divider on a breadboard (above). Feel free to build the circuit as you wish while following the guidelines in the section describing the breadboard. You may also wish to connect the vertical bus strips to the horizontal red and blue bus strips, and connect those to the (+) and (-) 15 V power terminals on the breadboard, respectively.  
+
Use jump wires to connect the power post terminals to the bus strips on the breadboard. Hook up the power as shown in the picture above (note that the circuit shown is not yet complete, however). Power the voltage divider circuit by connecting it to the +15 V bus strip and ground.  
  
===Connect the power supply===
+
# Use the cutting jaws of the wire stripper to trim the resistor leads so that the component bodies will be close to the board.
[[Image:ElectronicsModuleFig-PS.jpg|360 px|Triple-output DC power supply with dual variable output (CH1 & CH2) and fixed 5V output (CH3).]]
+
#* In addition to being untidy, leads that are too long may make unintentional contact with the metal under the breadboard.
 +
#* Don't cut the leads too short either, or they may not make good contact with the tie point.
 +
# Mount the resistors by pressing their leads into tie points in the field.
 +
# Run jump wires to connect the divider to the power and ground bus strips.
 +
#* Keep your wiring neat, close to the board, and easy to follow. A good way to do this is to route wires horizontally or vertically, making right-angle bends to change directions.
 +
#* Use the right length of wire. The right length of wire is the shortest length of wire that satisfies the previous guideline.
 +
#* Use the bus strips to distribute power supplies and ground as described in the text above.
  
The lab power supplies provide three voltage outputs. The (+) and (&minus;) outputs have adjustable current limits and voltages up to &plusmn;20V can be set either independently, or together (using the mode buttons located between the paris of voltage and current knobs). While the '''POWER''' button at lower left applies power to the supply itself, the white '''OUTPUT''' button on the upper left enables power to flow to the outputs: always remember to turn this off or disconnect it when rewiring your circuits. There is also one fixed 5V output at the lower left. Use this output with care, as it's current has a very hight limit, noted below the terminals as 3 A.
+
Use a cable with banana connectors on both ends to connect the power supply to the posts. You can find banana cables hanging on the cable rake near the time travel poster. Refer back to left side of the lab map in [[Optics_Bootcamp#Orientation|lab orientation]] if you need to. Convention is to use black cables and connectors and blue bus strips for ground. Red bus strips are almost always used for power supplies.  
  
For powering op-amp circuits, you will use the power supply in '''SERIES''' mode.  In SERIES mode, the (+) output of CH2 is connected to the (&minus;) output of CH1, so that '''CH1+''' is the V+ power for the op-amps and '''CH2&minus;''' is V&minus; power and '''CH1&minus;''' is ground (0V) for your circuit.
+
The exposed metal screws on the bottom of the banana connectors (on the back side of the breadboard) can short to the metal optical table. Cover them with electrical tape to prevent a calamity.
  
Note that the green GND connector is connected to the power supply chassis ground (or AC power ground); it is '''not''' ground for your circuit.
+
====Measure voltage ''V<sub>out</sub>''====
 +
[[Image:VoltageMeasurementZoomText.png|250 px|thumb|Test leads in parallel with ''R<sub>2</sub>''.]]
 +
The DMM has modes for measuring DC and AC voltages. In DC mode, the meter reads the average value of the test signal. In AC mode, the meter reads the root-mean-square value of a time varying signal. In this lab you will use DC mode, which is labeled with a solid line above a dashed line.
  
# Connect the power supply to the breadboard with the banana cables.  
+
#Switch the DMM to DC voltage mode and connect the DMM test leads. Insert the black lead into the receptacle marked '''COM''' and the red lead in '''V&Omega;'''.  
# '''Measure  <i>V<sub>O</sub></i> and <i>I</i> with the supply to 2.5, 5, 10, and 15 Volts.'''
+
#Connect the test leads across the terminals of ''R<sub>2</sub>''.
# '''Plot the measured values on the same set of axes.'''
+
#'''Record the voltage shown on the DMM for each input voltage ''V<sub>in</sub>'' = 0, 2.5, 5, 10 and 15 V.''' Hint: You can make the +15 V bus strip whatever voltage you want simply by adjusting the voltage at the power supply.
  
===Measure voltages with the DMM===
+
The DMM has a very high input impedance. We can simulate the effect of an inferior meter with lower input impedance by adding a 1 k&Omega; resistor in parallel with ''R<sub>2</sub>''.
The DMM has modes for measuring DC and AC signals. In DC mode, the meter reads the average value of the test signal. In AC mode, the meter reads the root-mean-square value of a time varying signal. In the [[Electronics Mini-Lab]] you will use DC mode, which is labeled with a solid line above a dashed line.
+
  
{| class = "wikitable"
+
#'''Add the 1 k&Omega; resistor in parallel with ''R<sub>2</sub>'' and measure the voltage across ''R<sub>2</sub>''. By what percentage did the measurement change?'''
|-
+
#Remove the 1 k&Omega; resistor and the DMM from the circuit.
|align=center|[[Image:ElectronicsModuleFig-2.png|350 px|center]]
+
|align=center|Pic of connection
+
|-style="text-align:center;"
+
|<span style="color: red;">'''Show realistic DMM model.'''</span> Schematic showing how to measure voltage across ''R''<sub>2</sub>.
+
|Actual connections to measure voltage across ''R''<sub>2</sub>. The voltage drop across a component is measured from the red, connected to the '''V&Omega;''' socket, to the black lead, connected to the '''COM''' socket.
+
|}
+
  
#Switch the DMM to DC voltage mode and connect the DMM test leads properly: Insert black in '''COM''' and red in '''V&Omega;'''.  
+
====Measure current ''I''====
#Make firm contact with the two leads across the terminals of ''R''<sub>2</sub>.
+
[[Image:CurrentMeasurementZoomText.png|250 px|thumb|right|DMM test leads connected in series with ''R<sub>2</sub>''.]]
#'''Record the resistance shown on the DMM.'''
+
In order to measure current, you must move the red test lead from the '''V&Omega;''' receptacle on the DMM to the '''A''' receptacle. The reason for the change is that there is a fundamental difference between measuring voltage and current. Voltage is a measure of potential; current is a measure of flow. To make an accurate voltage measurement, the meter should have very high input impedance. High input impedance in a voltage measurement ensures that only a small percentage of the current flowing in the circuit goes through the meter. Measuring current essentially requires counting the number of electrons that flow past a certain point in a given time, so the opposite is true. To get a good count, all of the current must flow through the meter. Making a good current measurement requires a meter with very low input impedance. In addition, you must place the meter in series with the current you want to measure so that all of the current flows through the meter.
#'''Record the uncertainty of the measurement.'''
+
* ''Note:'' In the 20.309 lab, the Fluke 115 DMMs can accurately measure a few milliamps of current, while the 111 models should not be trusted at very low current levels. Click these links for full documentation for the (discontinued) [http://www.fluke.com/fluke/m2en/digital-multimeters/Fluke-110.htm?PID=55988 Fluke 111] and [http://www.fluke.com/fluke/m2en/digital-multimeters/Fluke-115.htm?PID=55993 Fluke 115] multimeters.
#'''Quantitatively predict the change in the measurement if the DMM input impedance were 10 k&Omega;?'''
+
* For this section of the electronics mini-lab, feel free to swap R<sub>1</sub> and R<sub>2</sub> for smaller-value resistors, so the current flowing through R<sub>2</sub> is large enough to be measured by your Fluke 11x ammeter. Simply make a note of the new resistor values and justify your choice in your lab report.
  
===Measure current with the DMM===
+
# Switch the DMM to DC current mode and configure the leads for current measurement.
{| class = "wikitable"
+
#* Move the red lead to the receptacle marked '''A'''.
|-
+
#* Positive current flows into the red lead and out of the black.
|align=center|[[Image:ElectronicsModuleFig-3.png|350 px|center]]
+
# Place the leads of the DMM in series with R<sub>2</sub> as show in the image at right.
|align=center|Pic of current measurement connection
+
# '''Record the current through the circuit at each input voltage ''V<sub>in</sub>'' = 0, 2.5, 5, 10 and 15 V'''
|-style="text-align:center;"
+
# '''Plot the measured ''I-V'' curve on the same set of axes as the calculated curve.'''
|<span style="color: red;">'''Show realistic DMM model.'''</span>Schematic showing how to measure voltage across ''R''<sub>2</sub>.
+
|Actual connections to measure current through ''R''<sub>2</sub> and ''R''<sub>2</sub>. Positive current is measured into the red lead, connected to the '''A''' socket of the DMM, and out of the black lead, connected to the '''COM''' socket.
+
|}
+
  
#Switch the DMM to DC current mode and connect the leads as shown in the figure.
 
#Place the leads of the DMM in series with the circuit loop.
 
#'''Record the current through your circuit at each input voltage in units of mA.'''
 
#'''For the highest voltage, quantitatively describe the effect of increasing the input impedance to 10 k&Omega;.'''
 
#'''Calculate the resistance of ''R''<sub>2</sub> using Ohm's law and each of the currents and voltages that you measured.'''
 
#'''Calculate the percent error in the measured resistance values.'''
 
#'''Compare to the tolerance value specified by the manufacturer.'''
 
  
{{Template:Assignment|message=<span style="color: red;">'''Describe format for submitted solution.'''</span>'''Assignment:''' The current-voltage (''i-v'') curve of a circuit element is simply a plot of the current through it as a function of applied voltage. In your lab notebook, sketch the ''i-v'' curve of the resistor you measured. What is the slope of this curve? (Ohm's law should make this very easy).}}
+
===RC low-pass filter===
 +
[[Image:LowPassFilter.png|275 px|thumb|RC filter circuit schematic.]]
 +
In this part of the lab, you will replace R<sub>2</sub> with a capacitor. This will transform your humdrum voltage divider circuit into a spectacular low-pass filter. You will measure the time constant and frequency response of the filter circuit. Capacitors are available in the lab with a range of values from 0.01 - 0.1 uF. Check the supply bins to see what is available and choose a value for C<sub>1</sub>.
  
==Part 2:making and characterizing a filter circuit==
+
# '''Choose a capacitor value and calculate the cutoff frequency of your filter.'''
{| class = "wikitable"
+
#* If the frequency is below 100 Hz or above 10 kHz, you might want to rethink your capacitor or resistor choice. Change either the resistor or capacitor to get a cutoff frequency in this range.
|
+
# '''Draw a Bode plot of the filter response using straight line segments to approximate the transfer function.''' (For help with drawing Bode plots, visit the page on [[Bode plots]].)
|
+
# Replace ''R<sub>2</sub>'' with a capacitor of the selected value.
|--style="text-align:center;"
+
|RC filter circuit schematic.
+
|RC filter on a breadboard.
+
|}
+
  
===Time-varying signals and AC measurements===
+
[[Image:Filter_Breadboard_Zoom.jpg|300 px|thumb|RC filter on a breadboard.]]
Generally, we refer to signals that vary with time as AC signals (alternating current, as opposed to DC - direct current). When we leave DC behind, the DMM we've used so far is no longer enough to observe what is happening. At this point, you'll need to get acquainted with the [[#Function Generator|function generator]] and the [[#Oscilloscope|oscilloscope]], to generate and record AC signals, respectively. We'll also start making extensive use of BNC cables and connectors.
+
  
[[Image:ElectronicsModuleFig-AC.png|thumb|right|The familiar divider circuit driven by an oscillator, with a voltage measurement across ''R''<sub>2</sub>.]]
+
====Replace the power supply with a function generator====
 +
[[Image:140127_FunctionGenerator.png|300 px|right|thumb|An SFG-2120 digital function generator.]]
 +
The behavior of ideal resistors is independent of frequency, so it was possible to measure the (frequency independent) transfer function of a voltage divider using the constant voltages produced by a lab power supply. Since the impedance of a capacitor varies in proportion to the inverse of signal frequency, it will be necessary to measure the response of the low-pass filter circuit over a range of frequencies. This requires a more sophisticated method of creating input voltages. Sine and square waves are especially useful for this task. In this part of the lab, you will also replace the power supply with a ''function generator'', which is a piece of equipment that can generate several kinds of periodic signals: sine, triangle, and square waves. The amplitude and frequency of the function generator's output are adjustable.  
  
First, let's look at how the resistive voltage divider with which you're already familiar behaves
+
There are several types of function generators in the lab. The digital function generators allow you to enter frequencies on a keypad. Press one of the unit keys (Hz, kHz or MHz) to complete your entry. Use the decade selector knob and frequency dial to set the frequency of the analog function generators. The output frequency is adjustable between about 0.01 Hz and 10 MHz. Amplitude ranges from 0.1 V to 10.0 V.  
with AC signals. Build the divider circuit as you did previously, but use the function generator in place of ''V''<sub>in</sub>, and the oscilloscope in place of the DMM.
+
  
[[Image:ElectronicsModuleFig-FG.png|360 px|thumb|right|An SFG-2120 digital function generator.]]
+
# Disable the power supply and disconnect it from the circuit.
===Function Generator===
+
# Connect a function generator in place of the power supply.
A function generator generates signal waveforms for standard functions: sinusoids, triangles, square waves. The digital function generators in the lab generate waveforms at precise frequencies in the range from 0.01Hz to 10MHz, and amplitude range from about &plusmn;0.1V to &plusmn;10.0V. It can output waveforms with and without offset. Frequencies may be entered directly on the number keypad in units of Hz, kHz, and MHz or using the knob on the upper right hand side of the unit to change one digit at a time.
+
#* Attach a BNC cable to the '''Output''' connector on the front right of the function generator.
 +
#* This circuit is sensitive to the parasitic capacitance added to a circuit by multiple jump-wire to tie-point connections, so use a BNC to grabby clip adapter to connect directly to the left side of the resistor as shown in the picture. Remove the jump wires between there and the +15 V bus strip.
 +
#* The connections can also be made using BNC to bare wire adapters found in the bins on the south wall.
 +
#* The center conductor of the BNC cable is the positive signal lead; the outer conductor/shield is the ground signal lead.
 +
# Turn on the function generator.
 +
#* Set the frequency to 10 Hz.
 +
#* Select a sine wave output. (Press the '''WAVE''' button on the digital function generators or use the waveform knob on the analog generators.)
  
[[Image:ElectronicsModuleFig-OSC.png|360 px|thumb|right|The Rigol digital oscilloscope.]]
+
====Connect an oscilloscope====
===Oscilloscope===
+
[[Image:140127_Oscilloscope_LowPassRC.png|300 px|thumb|right|Digital oscilloscope.]]
An oscilloscope ("scope" for short) is designed for observing signal waveforms that change faster than can be usefully seen on a DMM. Most often, the signals observed are periodic, and the scope is effectively a "time magnifier" letting you stretch and compress the timebase (as well as the waveform magnitude) for convenient viewing.
+
The oscilloscopes used in the lab are digital. Digital scopes are essentially special purpose computers which digitize the analog inputs and display the data on an LCD.  Digital scopes perform many basic measurement tasks such as peak-to-peak, frequency, and phase measurements.  Most functions are controlled via menus.  Below is a brief description of the most important controls:
+
  
* CH1, CH2 coax connectors: Signals connect to these via BNC cables.  
+
Oscilloscopes provide a graphic display of time-varying voltage signals. In the most frequently used mode, the oscilloscope screen shows a plot of voltage on the vertical axis versus time on the horizontal axis. The oscilloscopes in the lab have two inputs. Either or both of the inputs may be plotted. Two knobs adjust the voltage and time scales so that it is possible to display a wide range of waveforms. The display also includes status indicators and configurable waveform measurements such as amplitude, frequency, and phase.  
* CH1, CH2 buttons: Activates channel menu. Allows selection of DC or AC coupling. 
+
* Vertical Position knob: Changes zero position on display, shifting waveform up or down.
+
* Vertical Scale knob: Changes scale for selected channel (volts per division).
+
* Horizontal Scale knob: Changes time scaling (seconds per division).
+
* Measure button: Activates measure menu. Allows selection of up to 3 quantities to display on screen such as ''V''<sub>pp</sub>, frequency, and phase.
+
  
You will get a feel for these as you use the instrument in lab.
+
Click these links for full documentation for the [http://www.tequipment.net/pdf/Rigol/DS1000E_DS1000D_series_manual.pdf Rigol DS1052e] and [http://micromir.ucoz.ru/Oscil/Atten/ADS1000_User_Manual.pdf ATTEN ADS1022c] oscilloscopes.
You'll notice that the scope only measures voltages &mdash; there are no modes for directly measuring current or resistance. It's also important to remember that scope measurements are always referenced to ground. The shield (black lead when using grabber wires) of the BNC connector is hard-wired to ground. This means you can't use just one channel of a scope to measure the voltage between two non-ground nodes in a circuit.
+
  
#Set the frequency to 5kHz, and the waveform to sinusoid with no offset.
+
# Get two oscilloscope probes from the cable rakes on the wall next to the time machine poster.
#Set the voltage to 3V peak-to-peak (often written as 3V<sub>pp</sub>). Verify that the voltage is set as you intend with the scope, since there are no markings on the knob.
+
# Connect the oscilloscope to the circuit.  '''CH2''' will monitor ''V<sub>in</sub>'', '''CH1''' ''V<sub>out</sub>''.
#Connect the waveform to your circuit.
+
#* Connect the BNC connector of the first oscilloscope probe to the '''CH1''' oscilloscope input. Connect the probe to ''V<sub>out</sub>'', the top of the capacitor, using a small jump wire held in the retractable clip at the end.  Connect the black alligator clip to ground, the bottom of the capacitor.  '''CH1''' is thus in parallel with the capacitor.
#Use the other channel of the scope to measure ''V''<sub>pp</sub> across ''R''<sub>2</sub>. You can display both the input and output waveforms at the same time by using the scope's dual mode. Does this resistive voltage divider behave any differently at AC than it did at DC? What's the relationship between the output and input waveforms?
+
#* Using a BNC T-connector, attach the other oscilloscope probe to the '''CH2''' input and to ''V<sub>in</sub>'' from the function generator.
 +
# Set the oscilloscope vertical scale for each channel to 5 V per division.
 +
#* The Rigol oscilloscopes have one knob that controls the vertical scale for both channels. Press one of the channel select buttons before you adjust the "vertical position" knob  until the bottom-row display indicates "CH1 - 5.00V" and "CH2 - 5.00V".
 +
#* The ATTEN oscilloscopes have a knob for each channel. Software menu functions still require you to press the button for the desired channel.
 +
# Make sure the scope triggers on '''CH2''':
 +
#* The oscilloscope begins recording and displaying the waveform when it is ''triggered''. There are several options to configure when the trigger occurs. One of the simplest modes causes a trigger when the input signal crosses a certain voltage level. 
 +
#* On both the Rigol and the ATTEN oscilloscopes, press the "menu" button of the right "Trigger" panel, and on the screen select "CH2" as the "Source".  Adjust the trigger level by rotating the "Level" knob.
  
===Capacitors===
+
====Measure and plot the transfer function====
An intuitive way to think about capacitor behavior is that they are reservoirs for electric charge, which take time to fill up or empty out. The size of the reservoir (the capacitance ''C'') along with size of the pipe (intervening resistance between the voltage supply and capacitor) supplying the current determines how quickly or slowly.  Circuits with capacitors in them have time- and frequency-dependent behavior. Capacitors act like open circuits at DC or very low frequencies, and like short circuits at very high frequencies.
+
  
Capacitors can be polarized or non-polarized. Polarized capacitors must always have the voltage applied to one terminal (the anode) positive relative to the other. One terminal or the other of a polarized capacitor is marked either + or &minus; to indicate polarity. Polarized capacitors are typically used as bypass capacitors on power supply lines.
+
# Set up the signal generator for 5 V peak-to-peak, sine wave output.
 +
#* Select sine-wave mode using the mode buttons.
 +
#* Set the peak-to-peak amplitude of the signal generator's output to 5 V using the "Ampl" tab on the function generator.
 +
# Use the "Freq" tab on the signal generator to select a frequency of 10 Hz.
 +
# Adjust the horizontal scale on the oscilloscope to display about 3 periods of the sine wave.
 +
# Record the peak-to-peak amplitude of V<sub>out</sum> and V<sub>in</sub>.
 +
#* The oscilloscope has a built-in feature for measuring peak-to-peak voltages that will make your life much easier.  
 +
#*# Press the "Measure" button in the "Menu" top panel
 +
#*# Choose the channel of interest under "Source"
 +
#*# Choose "Vp-p".
 +
# Repeat the measurement of V<sub>out</sub> and V<sub>in</sub> at frequencies of 100 Hz, 1 KHz, 10 KHz, 100 KHz, 1 MHz, and several frequencies in the vicinity of the cutoff frequency.
 +
# Make a Bode plot
 +
#* '''Plot the measured values of <math>\frac{V_{out}}{V_{in}}</math> versus frequency on the same set of axes as your Bode plot.
  
Now replace ''R''<sub>2</sub> with a capacitor in the 0.05-0.1 &mu;F range. Again use dual mode on the scope to see both the input and output waveforms. Qualitatively observe what happens to the output as you change the frequency of the input. What kind of circuit is this?
+
===Identify unknown filter circuits===
 +
In this part of the lab, you will measure the transfer function of four filter circuits made out of resistors and capacitors. The circuits will be hidden inside blue boxes marked A through D. Your goal is to figure out what type of circuit is inside of each "black box."
  
==Part 3:identifying unknown filter circuits==
+
All of the boxes have two BNC connectors. You will use a function generator to drive sine waves of various frequencies into one connector and an oscilloscope to measure the resulting output on the other connector. Input and output are marked on the box.
{| class = "wikitable"
+
|
+
|
+
|--style="text-align:center;"
+
|RC filter circuit schematic.
+
|RC filter on a breadboard.
+
|}
+
  
[[Image:ElectronicsModuleFig-BBTF.png|thumb|right|Circuit for measuring "blue-box" transfer function.]]
+
Measure each box at each decade of frequency between 10 Hz and 1 MHz. You may want to measure choose additional frequencies in transition regions. The transfer function consists of two plots: one that shows the magnitude of the output divided by the magnitude of the input as a function of frequency; and another that shows the phase difference between the input and the output. The former is the Bode gain plot like that for your RC filter. The latter is the Bode phase plot. From those plots, you can derive the topology of the circuits inside and determine the cutoff frequencies of each filter.
  
==="Black-box" transfer functions===
+
# Use BNC cables to connect the function generator and oscilloscope to a box.
{{Template:Assignment|message='''Assignment:''' Measure and plot the transfer relations (magnitude and phase) for several "black-box" circuits.}}
+
# Set the scope to trigger from the input channel.
You'll find prepared for you several metal boxes with "mystery" circuits wired up inside, labelled "A" through "D". Your goal is to determine their transfer functions. Connect the waveform generator and oscilloscope to each "blue box" as shown with the waveform generator connected to both the input of the blue box and CH1 input of the oscilloscope and with the blue box output connected to CH2. Use the measure functions of the oscilloscope to measure ''V''<sub>pp</sub> of the input and output as well as the phase difference between the signals.  Plot the ratio of the output to input versus frequency (as a log-log plot) and the phase vs frequency (as a lin-log plot).
+
# Measure the input, output, and phase difference at a range of frequencies.
 +
#* Make sure to take enough measurements to completely identify the transfer function.
 +
#* Take extra measurements in the vicinity of the cutoff frequency or frequencies.
 +
# '''Generate the Bode gain plot and the Bode phase plot for each of the four black (blue) boxes: A through D.'''
 +
# '''Draw the circuit inside each box.'''
 +
# Optional: '''In Matlab, use <tt>nlinfit</tt> to fit parameters of a transfer function for each circuit.'''
  
==Part 4:characterizing a photodiode==
 
{| class = "wikitable"
 
|
 
|[[Image:PhotodiodeBasicZoom.JPG]]
 
|--style="text-align:center;"
 
|Photodiode circuit schematic.
 
|Photodiode circuit on a breadboard.
 
|}
 
  
===Diodes===
+
===Photodiode ''I-V'' curve===
[[Image:ElectronicsModuleFig-DIODE.png|thumb|right|Various types of diodes and their symbols in a schematic.]]
+
[[Image:PhotodiodeSchematic_v2.png|250 px|thumb|Photodiode measurement circuit schematic diagram. AC power supply symbol V<sub>1</sub> represents a function generator. Power supply to the ADS622 not shown.]]
Diodes are non-linear devices. Diodes can function as an electronic "valve", as a light-emitter (LED), or a light-detector (photodiode).
+
In this part of the lab, you will examine how light falling on a photodiode affects its ''I-V'' characteristic. You will use a function generator and an instrumentation amplifier to make simultaneous measurements of voltage across and current through the photodiode and plot an ''I-V'' curve on an oscilloscope.  
'''Diode as electrical "valve":''' In the simplest model, a diode acts as a one-way electrical valve &mdash; it behaves almost as a short circuit when a positive voltage is applied across it and as an open circuit with a negative voltage (reverse bias). For these reasons, diodes are frequently used in power supplies as rectifiers to convert alternating current (AC) to direct current (DC). As you might guess, this is not the whole story, and is only true for relatively large voltages. You will explore diode behavior in more detail, especially around the critical transition region near 0 volts.
+
'''Photodiodes''' are optimized to work as a light detector by capturing photons and converting them to electrical signals. This happens when photons absorbed in the semiconductor generate electron-hole pairs. Run in reverse bias, the current out of the photodiode is linearly proportional to the light power striking the device.
+
Light-emitting diodes ('''LEDs''') are designed to output light when current passes through
+
them. In this case, we have recombination of electron-hole pairs producing photons in the semiconductor. Light is emitted in forward bias, and power output depends on the current through the device.
+
 
+
All diodes exhibit breakdown when a large reverse voltage (typically &gt; 50V) is applied, typically destroying the diode.  '''Zener diodes''' however are designed to have a relatively low but precise breakdown voltage.  These diodes are operated in reverse bias and are typically used as voltage references or limiters.
+
  
[[Image:ElectronicsModuleFig-PD-AC.png|thumb|right|Circuit for diode ''v-i'' measurements.]]
+
In the preceding sections of this lab, you used an oscilloscope to plot voltage signals versus time. The oscilloscope also has an X-Y mode. In X-Y mode, the oscilloscope plots channel 1 on the horizontal axis versus channel 2 on the vertical axis. Using X-Y mode, it is possible to use an oscilloscope to plot an ''I-V'' curve.  
The circuit shown will be setup in the lab. It consists of a signal generator driving a diode in series with a 1k­&Omega; resistor. The scope should be set to "X-Y" mode with the diode voltage on the x-axis and the resistor voltage (proportional to the diode current) on the y-axis. The scope will then display the ''v-i'' curve.
+
* Start by covering the window of a photodiode &mdash; with no light coming in, it is just a regular diode. Illuminate it to see its photodiode action.
+
* Sketch the curve displayed or use the scope "acquire" function to save the data to a thumb drive.
+
* For photodiode behavior, uncover the window of the device, and aim a Fiber-Lite illuminator at it. You should repeat the measurements you made at three levels of light intensity. You can now combine your data to produce four ''v-i'' curves for this diode at different light levels including the no-light condition. Plot these on the same graph to see how incident light affects diode ''v-i'' characteristics. You'll need this data for the [[Intro Electronics Lab Report]].
+
  
{{Template:Assignment|message=<span style="color: red;">'''Describe format for submitted solution.'''</span>'''Assignment:''' Measure and plot the current-voltage relationship for a diode in the transition region from non-conducting to conducting.}}
+
''I-V'' curves usually show current on the vertical axis and voltage on the horizontal axis. Using the oscilloscope to plot ''V<sub>D1</sub>'' on the horizontal axis is easy. Just hook the channel 1 probe across the photodiode.  
  
===Using an instrumentation amplifier to measure the photodiode IV characteristic===
+
It is not as straightforward to plot ''I<sub>diode</sub>''. The oscilloscope measures voltage, so first it is necessary to convert ''I<sub>D1</sub>'' to a voltage. This can be done by placing a resistor (R<sub>1</sub>) in series with the photodiode. The voltage across R<sub>1</sub> is proportional to the current through the photodiode.
  
Explain the in
+
It's a little harder than you might anticipate to measure the voltage across R<sub>1</sub> with an oscilloscope. You might be tempted to hook the channel 2 probe across R<sub>1</sub>. Unfortunately, the ground leads of the oscilloscope probes are wired together. Connecting the probe in this way causes a short from R<sub>1</sub> to ground. Because the ground leads of the probes are wired together, it is a very good idea to hook probe ground clips only to the ground node of your circuit.
  
* Place integrated circuits so that the #1 lead is at the top left.
+
An instrumentation amplifier produces an output equal to the difference between the voltages at its two input terminals. The instrumentation amplifier shown in the schematic diagram computes ''V<sub>R1</sub>'' = ''V<sub>in</sub>'' - ''V<sub>D1</sub>''. The input terminals of the instrumentation amplifier have very high input impedance, so current flowing into the instrumentation amplifier inputs is negligible. There are many kinds of instrumentation amplifiers available. In this lab, you will use an integrated circuit (IC) instrumentation amplifier, part number AD622 manufactured by Analog Devices. [[http://www.analog.com/static/imported-files/data_sheets/AD622.pdf Click here]] for the AD622 data sheet.
* Most types of components are placed so that they straddle the notch.
+
  
 +
[[Image:AD622Pinout.png|thumb|250px|right]]
 +
The instrumentation amplifier comes in an 8 pin plastic package called a dual-inline package (DIP). The leads on the package have the same spacing as the tie points on the breadboard, so the amplifier can be inserted directly into a breadboard. The arrangement of component leads for the instrumentation amplifier is shown at right.
  
==Circuit Components==
+
====Construct the photodiode circuit====
 +
[[Image:PhotodiodeWith_AD622DiffAmp.png|300 px|thumb|Photodiode measurement circuit with AD622 instrumentation amplifier]]
  
===Operational Amplifiers===
+
# Make sure your power supply is disabled.
<span style="color: red;">'''Move this material to DNA Lab Manual'''</span>
+
# Mount the instrumentation amplifier so that it straddles the notch.
[[Image:ElectronicsModuleFig-IOA.png|thumb|right|Basic non-inverting op-amp circuit.]]
+
# Connect the signals as shown in the schematic to pins 2 and 3. The output is pin 6.
In the upcoming lab module we will start using integrated circuits (ICs) known as operational
+
#* Use a 10K&Omega; resistor for R1.
amplifiers, or op-amps. They are an enormously versatile circuit component, and come in hundreds of special varieties, built to have particular characteristics and trade-offs. We will use some very common general-purpose op-amp, of which a typical example is the LM741.
+
#* Connect the REF signal on the amplifier (pin 5) to ground.
 +
# Configure the power supply for series mode.
 +
# Set the power supply for +/- 15V.
 +
#* In series mode, the negative terminal of the left supply will be at -15V. The positive terminal of the left supply and the negative terminal of the right supply will be connected together inside the power supply. This is the ground potential. The plus terminal of the right supply will be at +15V.
 +
# Connect the power supply leads to the +V<sub>S</sub> and -V<sub>S</sub> pins: pins 7 and 4 will be at +15V and -15V, respectively.
  
Every op-amp manufacturer provides a datasheet for every IC they make, and you should always familiarize yourself with it. It provides information on everything from pin and signal connections, to special features, limitations, or applications of a particular IC. We have copies of the datasheets available on-line for the op-amps we used in the lab. 
+
====Procedure====
  
[[Image:ElectronicsModuleFig-OPAMP.png|282 px|thumb|right|The pin assignments of the LM741 in a DIP-8 package.]]
+
# Connect the function generator to provide ''V<sub>in</sub>'' to the circuit. Configure the function generator to apply a triangle wave between &plusmn; 1-3 V at 1 kHz.  
 +
# Connect Channel 1 of the oscilloscope to ''V<sub>d</sub>''.
 +
# Connect Channel 2 of the oscilloscope to  ''V<sub>R1</sub>'' (the output of the instrumentation amplifier).
 +
# Set the oscilloscope to X-Y display mode.
 +
# With the photodiode covered, save the curve to a USB memory stick ([[Save_the_curve_to_a_USB_memory_stick|see abbreviated instructions]]).
 +
# Load the curve into Matlab and plot the ''I-V'' curve
 +
#* Remember to convert the resistor voltage to current.
 +
# Repeat the measurement for several intensities of light illuminating the diode.
 +
# '''Plot the curves for all light intensities on the same set of axes.'''
 +
# '''What operating condition of the photodiode is best for measuring light intensity?'''
  
Besides the (&minus;) and (+) (inverting and non-inverting) inputs, an op-amp needs DC power connections, which is what enables it to be an active circuit element. These power connections are usually omitted on a schematic, but always shown on the datasheet. Typically &plusmn;15 volts is used, but you should check the datasheet to be sure.
+
[[Image:Photodiode_Illuminated4x.gif|thumb|250px|center|Example photodiode ''I-V'' curves.]]
  
Every IC has a marking on the package to indicate pin 1, and the datasheet shows the relative positions of the other pins. On the LM741 there is a dot near pin 1 (or a semi-circle on one end of the chip). NC on the datasheet stands for No Connection.
+
<references />
Important: ICs are sensitive to static electricity discharges. Your body can easily store enough charge to damage an IC, especially on a dry winter day. To prevent this, always make sure to touch the grounded metal case of an instrument to dissipate the charge. Use caution when handling the chips.
+
  
 
{{Template:20.309 bottom}}
 
{{Template:20.309 bottom}}

Latest revision as of 18:46, 7 April 2017

20.309: Biological Instrumentation and Measurement

ImageBar 774.jpg


Photo by Brendan Dolan-Gavitt

Overview

During the next lab exercise on measuring DNA melting curves, you will build and debug several electronic circuits. This bootcamp will introduce you to the electronic components and test equipment you will use. A short answer-book style writeup is required. Your writeup should include the practice problems and any bolded questions asked throughout the lab instructions. Don't forget the basics: report measurements with an appropriate number of significant figures, units, and uncertainty. Label plot axes.

This bootcamp requires an understanding of basic circuits. If you need to review circuit concepts, start with the Electronics Primer page. If you have a lot of experience with electronics, ask one of the instructors about doing a stimulating mini-project instead of the mini-lab assignment.

Problems

Question 1

Consider the following circuit composed of a network of resistors:

Circuit1.png

a) Combining resistance values in parallel and in series, draw a simplified version of the circuit containing the given voltage source (10V) and one equivalent resistor. Label the equivalent resistance value.

b) Find the voltage values for the nodes $ V_A $ and $ V_B $ in the above diagram.

Question 2

Referring to the circuit shown below, what value of $ R_L $ (in terms of $ R_1 $ and $ R_2 $) will result in the maximum power being dissipated in the load?

Hint: this is much easier to do if you first remove the load, and calculate the equivalent Thevenin output resistance $ R_T $ of the divider looking into the node labeled $ V_{out} $. Then express $ R_L $ for maximal power transfer in terms of $ R_T $.

A voltage divider formed by $ R_1 $ and $ R_2 $ driving a resistive load $ R_L $.


Question 3

In the following circuit, R = 10 kΩ and C = 10 nF.

Filter1.jpg

a) Find the transfer function $ {V_{out} \over V_{in}} $.

b) What type of filter is this? Justify your answer.

c) What is the cutoff frequency of this filter? Write your answer in units of Hz. Remember that $ \omega = 2 \pi f $.

Note: You may find the pages on Impedance Analysis and Transfer Functions and Bode Plots helpful for this problem.

Lab Exercises

Voltage divider

Schematic diagram of voltage divider circuit.

In the first hands-on part of the bootcamp, you will analyze and build a voltage divider. The divider circuit comprises two resistors and a voltage source, as shown in the schematic diagram. You will select the values for R1 and R2.

Before you build

Choose any two resistor values you like, but there are a few practical constraints. The resistors in the lab range in value from 1 Ω to 10 MΩ. Within that range, manufacturers only produce certain standard values. Check the supply bins or this table to see which values are available.

Resistors convert electric power to heat. Since the ideal circuit model does not include heat energy, ideal resistors have the effect of making power disappear from a circuit. Of course, energy is conserved in a real circuit. The energy is converted to a form that is extrinsic to the ideal circuit model.

The fact that energy disappears from a circuit model doesn't mean that you can ignore it. Power dissipation in resistors increases in proportion to resistance and the square of current, $ P=I^2R $. Physical resistors must be able to shed their heat to the environment or else they tend to get very hot and fail. A noxious puff of smoke frequently accompanies failure. Even if a component operated at an excessive power level does not vaporize, it may no longer behave as specified. The maximum power rating of the resistors in the lab is ¼ Watt. Ensure that the power dissipated by R1 and R2 does not exceed the maximum rating for Vin values in the range of 0-15 V.

You will use an oscilloscope and a volt meter to measure voltages in the circuit. The oscilloscope has an input impedance of 1 MΩ. Connecting the oscilloscope probe to a node of the circuit is equivalent to placing a 1 MΩ resistor between that node and ground. In circuits that use very large resistors, the current flowing into the oscilloscope can significantly distort measurements.

Before building the divider circuit:

  1. Record the values you selected for R1 and R2.
  2. Find the gain of the circuit, $ ^{V_{out}}/_{V_{in}} $
  3. Plot an I-V curve with I on the vertical axis and Vin on the horizontal axis, over the range 0 V < Vin < 15 V.
    • A hand-drawn plot is fine.
  4. What is the maximum power dissipated in each resistor between 0 V < Vin < 15 V?

Another practical issue: tolerance

The Museum of Tolerance in Los Angeles, California contains many exhibits about the concept of tolerance.

It's easy enough to write down an exact value for a resistor like 15 kΩ or eπ Ω and analyze a circuit model that contains such a component. But fabricating a 15 kΩ or eπ Ω resistor is another matter. It is not possible to realize physical components with infinite precision. The values you specify on paper are called nominal values. Nominal means: "stated or expressed but not necessarily corresponding exactly to the real value."[1] When you go to build the circuit, the actual value of the resistors you use will be somewhat different than the nominal values you used to analyze the circuit.

To account for the difference between the nominal and actual values of a component, the manufacturer guarantees that the actual value will differ from the nominal value by no more than a certain amount. Resistor tolerances are usually specified as a percent of nominal value. Some common resistor tolerances are 10%, 5%, 2.5%, and 1%. Even smaller tolerances are available from some manufacturers — down to 0.05& in some cases. The resistors in the lab are guaranteed by the manufacturer to be within 5% of the nominal value.

Because the actual values of the resistors differ from the nominal values, the power dissipation in R1 and R2 will under some circumstances be greater than what you computed using the nominal values. To be safe, the best thing to do is compute the power dissipated in both resistors under worst-case assumptions.

Measure the resistors with a digital multimeter

Digital multimeter with test leads configured for voltage or resistance measurement.

Go ahead and get the resistors for your circuit from the bins in the lab.

The value of each resistor is indicated by a set of color-coded bands on the component body. Through negligence or malice of last semester's scholars, components occasionally end up in the wrong bin. Ensure that you have the correct resistors by reading the color bands. Instructions for reading resistor markings are available at this Wikipedia page.

Measure the actual value of both resistors with a digital multimeter (DMM). DMMs are multifunction instruments that usually include functions for measuring voltage, current, and resistance. They connect to component terminals through a pair of test leads. DMMs measure resistance by applying a small voltage across the test leads and measuring the resulting current flow. To get an accurate measurement of a resistor, its leads must be isolated from other circuit elements. If the resistor leads are connected to other components, current flowing through other paths will distort the measurement.

  1. Plug two test leads into the DMM.
    • The black lead goes into the terminal labeled COM.
    • The red lead plugs into different terminals depending on the measurement you are making. For resistance measurements, use the V Ω terminal. The A terminal is for current measurements.
  2. Select the resistance mode, which is labeled with an Ω symbol.
  3. If you've inserted your resistors on the breadboard, remove them and connect the DMM leads to the resistor that you want to measure.
  4. Measure your resistors and record their actual values.

From this point on, use the actual value instead of the nominal value in your calculations. Using the actual value will reduce the error in results that depend on R1 or R2.

Build the circuit

An example voltage divider circuit implemented on a breadboard. Note that you don't need as many connections and can build the circuit however you choose.
Top view of a solderless electronic breadboard.

The next step is to build the divider circuit. If you have worked with electronic components before, you probably noticed that most of them look a little bit like bugs. They have a central body with some gangly legs sticking out, called leads. The leads carry current from the outside of a component to its innards where the magic happens. One of the first challenges facing an aspiring circuit maker is to properly connect all the bugs' legs whilst keeping the circuit robust and orderly. Solderless electronic breadboards are a convenient platform for building circuits that might require a lot of debugging or frequent reconfiguration. Breadboards are flexible and easy to use, but they have a few downsides. They have high interconnect capacitance and resistance. If you don't know why that's bad, pay closer attention in lecture.

Before you go on, gather the items that you will need:

  • solderless electronic breadboard,
  • lengths of different colored wire to make jump wires,
  • wire strippers (located in the lab station tool drawers).

The image on the right shows an example of solderless electronic breadboard. The breadboard has a large number of square holes in it called tie points. A single wire or component lead fits into each tie point. Spring-loaded contacts inside each tie point hold leads in place and provide electrical connections.

Sets of tie points are electrically connected to each other in a pattern that allows just about any circuit arrangement to be realized on the breadboard. The two central grids of tie points separated by a notch are called the field. Each row of tie points in the field is called a terminal strip. Rows of terminal strips are numbered. Columns are designated by a letter. Within a terminal strip, the five tie points A-E are connected, and tie points F-J are connected. Points A-E are not connected to points F-J. Connections between component leads are made by running jump wires between tie points that are connected to each lead, as shown in the image above on the right.

The long lines of tie points to the left, right, and above the field are called bus strips. Bus strips are highlighted by red and blue lines. All of the tie points in a bus strip are connected together. Because most circuits have a lot of power and ground connections, the bus strips are almost always connected to the power supply. Using the bus strips as a power distribution network makes it easy to connect any terminal strip to power or ground with a short jump wire.

If you are unsure whether two holes on the breadboard are connected, insert short wires in the holes. Use the resistance or continuity features of the DMM to check if they are connected.

  1. Mount R1 on the breadboard by bending its leads at a 90 degree angle and trimming them to about half an inch long. Press the leads into the breadboard.
  2. Mount R2 so that one of its leads is in the same terminal strip as one of the leads from R1. This will create an electrical connection between the two resistors.

Connect the power supply

Triple-output DC power supply.

Now it's time to complete the circuit by connecting a voltage source. You will use a laboratory power supply to drive your circuit. The lab supply has three separate DC outputs called CH1, CH2, and CH3. Each supply has a + and - terminal, from which motivated electrons begin and end their journeys. [2] The CH1 and CH2 outputs are adjustable. The CH3 output always produces 5 volts with a current limit of 3 amps.

When you turn the power supply on, all three of the outputs will be disabled (which is a rather sensible way of doing things). Press the OUTPUT button to enable all three supplies. Press OUTPUT again to disable all three supplies.

Four dials on the front of the supply set the current and voltage limits for each of the two supplies from 0-20V and 0-3A. At all times, each adjustable supply will be either current or voltage limited. Multicolor LEDs indicate which limit is currently in effect: green for voltage-limited and red for current-limited. When the supply is disabled, the numeric displays will show the values of the limit settings. When the supply is in operation, the displays show the actual current and voltage values for each supply.

Two pushbuttons near the middle of the the lab supply control panel configure the interconnection of CH1 and CH2. There are 3 possible settings: independent, series, or parallel. In independent mode, CH1 and CH2 are not connected together. The two sets of voltage and current dials operate independently. In series mode, the plus terminal of CH2 supply is internally connected to the minus terminal of CH1. Both supplies operate with the same voltage limit. The current limits are independent. This provides a split supply with equal positive and negative voltages relative to the common terminal. In parallel mode, the + terminals of CH1 and CH2 are connected together, as are the - terminals. Parallel configuration allows a maximum possible current of 6 amps — 3 amps from each of the supplies.

The post labeled "GND" in green letters is connected to earth ground. Earth ground is a wire that runs through the third prong of the electrical plug to a post driven deep into the ground somewhere near Building 16. Earth ground is not needed for this lab.

In this part of the lab, you will use a 15 volt, split supply. Configure the lab supply in series mode with a voltage of 15 V and a current limit of about 0.1 amps on CH1 and CH2.

The breadboard has four colored post terminals at the top right to facilitate power supply connections. These are called banana post terminals. Each post terminal accepts a banana connector inserted at the top and a bare wire at the base. The banana terminals are not connected to any of the tie points, so it is necessary to run wires from the post terminals to tie points on the bus strips. Wires connected to the post should pass through the hole through the base of the post. Be sure that only bare wire touches the terminal. Insulation under the screw terminal may cause an intermittent connection. Secure the wire by tightening the colored plastic nut (onto bare wire, not insulation plastic sleeve).

Use jump wires to connect the power post terminals to the bus strips on the breadboard. Hook up the power as shown in the picture above (note that the circuit shown is not yet complete, however). Power the voltage divider circuit by connecting it to the +15 V bus strip and ground.

  1. Use the cutting jaws of the wire stripper to trim the resistor leads so that the component bodies will be close to the board.
    • In addition to being untidy, leads that are too long may make unintentional contact with the metal under the breadboard.
    • Don't cut the leads too short either, or they may not make good contact with the tie point.
  2. Mount the resistors by pressing their leads into tie points in the field.
  3. Run jump wires to connect the divider to the power and ground bus strips.
    • Keep your wiring neat, close to the board, and easy to follow. A good way to do this is to route wires horizontally or vertically, making right-angle bends to change directions.
    • Use the right length of wire. The right length of wire is the shortest length of wire that satisfies the previous guideline.
    • Use the bus strips to distribute power supplies and ground as described in the text above.

Use a cable with banana connectors on both ends to connect the power supply to the posts. You can find banana cables hanging on the cable rake near the time travel poster. Refer back to left side of the lab map in lab orientation if you need to. Convention is to use black cables and connectors and blue bus strips for ground. Red bus strips are almost always used for power supplies.

The exposed metal screws on the bottom of the banana connectors (on the back side of the breadboard) can short to the metal optical table. Cover them with electrical tape to prevent a calamity.

Measure voltage Vout

Test leads in parallel with R2.

The DMM has modes for measuring DC and AC voltages. In DC mode, the meter reads the average value of the test signal. In AC mode, the meter reads the root-mean-square value of a time varying signal. In this lab you will use DC mode, which is labeled with a solid line above a dashed line.

  1. Switch the DMM to DC voltage mode and connect the DMM test leads. Insert the black lead into the receptacle marked COM and the red lead in .
  2. Connect the test leads across the terminals of R2.
  3. Record the voltage shown on the DMM for each input voltage Vin = 0, 2.5, 5, 10 and 15 V. Hint: You can make the +15 V bus strip whatever voltage you want simply by adjusting the voltage at the power supply.

The DMM has a very high input impedance. We can simulate the effect of an inferior meter with lower input impedance by adding a 1 kΩ resistor in parallel with R2.

  1. Add the 1 kΩ resistor in parallel with R2 and measure the voltage across R2. By what percentage did the measurement change?
  2. Remove the 1 kΩ resistor and the DMM from the circuit.

Measure current I

DMM test leads connected in series with R2.

In order to measure current, you must move the red test lead from the receptacle on the DMM to the A receptacle. The reason for the change is that there is a fundamental difference between measuring voltage and current. Voltage is a measure of potential; current is a measure of flow. To make an accurate voltage measurement, the meter should have very high input impedance. High input impedance in a voltage measurement ensures that only a small percentage of the current flowing in the circuit goes through the meter. Measuring current essentially requires counting the number of electrons that flow past a certain point in a given time, so the opposite is true. To get a good count, all of the current must flow through the meter. Making a good current measurement requires a meter with very low input impedance. In addition, you must place the meter in series with the current you want to measure so that all of the current flows through the meter.

  • Note: In the 20.309 lab, the Fluke 115 DMMs can accurately measure a few milliamps of current, while the 111 models should not be trusted at very low current levels. Click these links for full documentation for the (discontinued) Fluke 111 and Fluke 115 multimeters.
  • For this section of the electronics mini-lab, feel free to swap R1 and R2 for smaller-value resistors, so the current flowing through R2 is large enough to be measured by your Fluke 11x ammeter. Simply make a note of the new resistor values and justify your choice in your lab report.
  1. Switch the DMM to DC current mode and configure the leads for current measurement.
    • Move the red lead to the receptacle marked A.
    • Positive current flows into the red lead and out of the black.
  2. Place the leads of the DMM in series with R2 as show in the image at right.
  3. Record the current through the circuit at each input voltage Vin = 0, 2.5, 5, 10 and 15 V
  4. Plot the measured I-V curve on the same set of axes as the calculated curve.


RC low-pass filter

RC filter circuit schematic.

In this part of the lab, you will replace R2 with a capacitor. This will transform your humdrum voltage divider circuit into a spectacular low-pass filter. You will measure the time constant and frequency response of the filter circuit. Capacitors are available in the lab with a range of values from 0.01 - 0.1 uF. Check the supply bins to see what is available and choose a value for C1.

  1. Choose a capacitor value and calculate the cutoff frequency of your filter.
    • If the frequency is below 100 Hz or above 10 kHz, you might want to rethink your capacitor or resistor choice. Change either the resistor or capacitor to get a cutoff frequency in this range.
  2. Draw a Bode plot of the filter response using straight line segments to approximate the transfer function. (For help with drawing Bode plots, visit the page on Bode plots.)
  3. Replace R2 with a capacitor of the selected value.
RC filter on a breadboard.

Replace the power supply with a function generator

An SFG-2120 digital function generator.

The behavior of ideal resistors is independent of frequency, so it was possible to measure the (frequency independent) transfer function of a voltage divider using the constant voltages produced by a lab power supply. Since the impedance of a capacitor varies in proportion to the inverse of signal frequency, it will be necessary to measure the response of the low-pass filter circuit over a range of frequencies. This requires a more sophisticated method of creating input voltages. Sine and square waves are especially useful for this task. In this part of the lab, you will also replace the power supply with a function generator, which is a piece of equipment that can generate several kinds of periodic signals: sine, triangle, and square waves. The amplitude and frequency of the function generator's output are adjustable.

There are several types of function generators in the lab. The digital function generators allow you to enter frequencies on a keypad. Press one of the unit keys (Hz, kHz or MHz) to complete your entry. Use the decade selector knob and frequency dial to set the frequency of the analog function generators. The output frequency is adjustable between about 0.01 Hz and 10 MHz. Amplitude ranges from 0.1 V to 10.0 V.

  1. Disable the power supply and disconnect it from the circuit.
  2. Connect a function generator in place of the power supply.
    • Attach a BNC cable to the Output connector on the front right of the function generator.
    • This circuit is sensitive to the parasitic capacitance added to a circuit by multiple jump-wire to tie-point connections, so use a BNC to grabby clip adapter to connect directly to the left side of the resistor as shown in the picture. Remove the jump wires between there and the +15 V bus strip.
    • The connections can also be made using BNC to bare wire adapters found in the bins on the south wall.
    • The center conductor of the BNC cable is the positive signal lead; the outer conductor/shield is the ground signal lead.
  3. Turn on the function generator.
    • Set the frequency to 10 Hz.
    • Select a sine wave output. (Press the WAVE button on the digital function generators or use the waveform knob on the analog generators.)

Connect an oscilloscope

Digital oscilloscope.

Oscilloscopes provide a graphic display of time-varying voltage signals. In the most frequently used mode, the oscilloscope screen shows a plot of voltage on the vertical axis versus time on the horizontal axis. The oscilloscopes in the lab have two inputs. Either or both of the inputs may be plotted. Two knobs adjust the voltage and time scales so that it is possible to display a wide range of waveforms. The display also includes status indicators and configurable waveform measurements such as amplitude, frequency, and phase.

Click these links for full documentation for the Rigol DS1052e and ATTEN ADS1022c oscilloscopes.

  1. Get two oscilloscope probes from the cable rakes on the wall next to the time machine poster.
  2. Connect the oscilloscope to the circuit. CH2 will monitor Vin, CH1 Vout.
    • Connect the BNC connector of the first oscilloscope probe to the CH1 oscilloscope input. Connect the probe to Vout, the top of the capacitor, using a small jump wire held in the retractable clip at the end. Connect the black alligator clip to ground, the bottom of the capacitor. CH1 is thus in parallel with the capacitor.
    • Using a BNC T-connector, attach the other oscilloscope probe to the CH2 input and to Vin from the function generator.
  3. Set the oscilloscope vertical scale for each channel to 5 V per division.
    • The Rigol oscilloscopes have one knob that controls the vertical scale for both channels. Press one of the channel select buttons before you adjust the "vertical position" knob until the bottom-row display indicates "CH1 - 5.00V" and "CH2 - 5.00V".
    • The ATTEN oscilloscopes have a knob for each channel. Software menu functions still require you to press the button for the desired channel.
  4. Make sure the scope triggers on CH2:
    • The oscilloscope begins recording and displaying the waveform when it is triggered. There are several options to configure when the trigger occurs. One of the simplest modes causes a trigger when the input signal crosses a certain voltage level.
    • On both the Rigol and the ATTEN oscilloscopes, press the "menu" button of the right "Trigger" panel, and on the screen select "CH2" as the "Source". Adjust the trigger level by rotating the "Level" knob.

Measure and plot the transfer function

  1. Set up the signal generator for 5 V peak-to-peak, sine wave output.
    • Select sine-wave mode using the mode buttons.
    • Set the peak-to-peak amplitude of the signal generator's output to 5 V using the "Ampl" tab on the function generator.
  2. Use the "Freq" tab on the signal generator to select a frequency of 10 Hz.
  3. Adjust the horizontal scale on the oscilloscope to display about 3 periods of the sine wave.
  4. Record the peak-to-peak amplitude of Vout</sum> and Vin.
    • The oscilloscope has a built-in feature for measuring peak-to-peak voltages that will make your life much easier.
      1. Press the "Measure" button in the "Menu" top panel
      2. Choose the channel of interest under "Source"
      3. Choose "Vp-p".
  5. Repeat the measurement of Vout and Vin at frequencies of 100 Hz, 1 KHz, 10 KHz, 100 KHz, 1 MHz, and several frequencies in the vicinity of the cutoff frequency.
  6. Make a Bode plot
    • Plot the measured values of $ \frac{V_{out}}{V_{in}} $ versus frequency on the same set of axes as your Bode plot.

Identify unknown filter circuits

In this part of the lab, you will measure the transfer function of four filter circuits made out of resistors and capacitors. The circuits will be hidden inside blue boxes marked A through D. Your goal is to figure out what type of circuit is inside of each "black box."

All of the boxes have two BNC connectors. You will use a function generator to drive sine waves of various frequencies into one connector and an oscilloscope to measure the resulting output on the other connector. Input and output are marked on the box.

Measure each box at each decade of frequency between 10 Hz and 1 MHz. You may want to measure choose additional frequencies in transition regions. The transfer function consists of two plots: one that shows the magnitude of the output divided by the magnitude of the input as a function of frequency; and another that shows the phase difference between the input and the output. The former is the Bode gain plot like that for your RC filter. The latter is the Bode phase plot. From those plots, you can derive the topology of the circuits inside and determine the cutoff frequencies of each filter.

  1. Use BNC cables to connect the function generator and oscilloscope to a box.
  2. Set the scope to trigger from the input channel.
  3. Measure the input, output, and phase difference at a range of frequencies.
    • Make sure to take enough measurements to completely identify the transfer function.
    • Take extra measurements in the vicinity of the cutoff frequency or frequencies.
  4. Generate the Bode gain plot and the Bode phase plot for each of the four black (blue) boxes: A through D.
  5. Draw the circuit inside each box.
  6. Optional: In Matlab, use nlinfit to fit parameters of a transfer function for each circuit.


Photodiode I-V curve

Photodiode measurement circuit schematic diagram. AC power supply symbol V1 represents a function generator. Power supply to the ADS622 not shown.

In this part of the lab, you will examine how light falling on a photodiode affects its I-V characteristic. You will use a function generator and an instrumentation amplifier to make simultaneous measurements of voltage across and current through the photodiode and plot an I-V curve on an oscilloscope.

In the preceding sections of this lab, you used an oscilloscope to plot voltage signals versus time. The oscilloscope also has an X-Y mode. In X-Y mode, the oscilloscope plots channel 1 on the horizontal axis versus channel 2 on the vertical axis. Using X-Y mode, it is possible to use an oscilloscope to plot an I-V curve.

I-V curves usually show current on the vertical axis and voltage on the horizontal axis. Using the oscilloscope to plot VD1 on the horizontal axis is easy. Just hook the channel 1 probe across the photodiode.

It is not as straightforward to plot Idiode. The oscilloscope measures voltage, so first it is necessary to convert ID1 to a voltage. This can be done by placing a resistor (R1) in series with the photodiode. The voltage across R1 is proportional to the current through the photodiode.

It's a little harder than you might anticipate to measure the voltage across R1 with an oscilloscope. You might be tempted to hook the channel 2 probe across R1. Unfortunately, the ground leads of the oscilloscope probes are wired together. Connecting the probe in this way causes a short from R1 to ground. Because the ground leads of the probes are wired together, it is a very good idea to hook probe ground clips only to the ground node of your circuit.

An instrumentation amplifier produces an output equal to the difference between the voltages at its two input terminals. The instrumentation amplifier shown in the schematic diagram computes VR1 = Vin - VD1. The input terminals of the instrumentation amplifier have very high input impedance, so current flowing into the instrumentation amplifier inputs is negligible. There are many kinds of instrumentation amplifiers available. In this lab, you will use an integrated circuit (IC) instrumentation amplifier, part number AD622 manufactured by Analog Devices. [Click here] for the AD622 data sheet.

AD622Pinout.png

The instrumentation amplifier comes in an 8 pin plastic package called a dual-inline package (DIP). The leads on the package have the same spacing as the tie points on the breadboard, so the amplifier can be inserted directly into a breadboard. The arrangement of component leads for the instrumentation amplifier is shown at right.

Construct the photodiode circuit

Photodiode measurement circuit with AD622 instrumentation amplifier
  1. Make sure your power supply is disabled.
  2. Mount the instrumentation amplifier so that it straddles the notch.
  3. Connect the signals as shown in the schematic to pins 2 and 3. The output is pin 6.
    • Use a 10KΩ resistor for R1.
    • Connect the REF signal on the amplifier (pin 5) to ground.
  4. Configure the power supply for series mode.
  5. Set the power supply for +/- 15V.
    • In series mode, the negative terminal of the left supply will be at -15V. The positive terminal of the left supply and the negative terminal of the right supply will be connected together inside the power supply. This is the ground potential. The plus terminal of the right supply will be at +15V.
  6. Connect the power supply leads to the +VS and -VS pins: pins 7 and 4 will be at +15V and -15V, respectively.

Procedure

  1. Connect the function generator to provide Vin to the circuit. Configure the function generator to apply a triangle wave between ± 1-3 V at 1 kHz.
  2. Connect Channel 1 of the oscilloscope to Vd.
  3. Connect Channel 2 of the oscilloscope to VR1 (the output of the instrumentation amplifier).
  4. Set the oscilloscope to X-Y display mode.
  5. With the photodiode covered, save the curve to a USB memory stick (see abbreviated instructions).
  6. Load the curve into Matlab and plot the I-V curve
    • Remember to convert the resistor voltage to current.
  7. Repeat the measurement for several intensities of light illuminating the diode.
  8. Plot the curves for all light intensities on the same set of axes.
  9. What operating condition of the photodiode is best for measuring light intensity?
Example photodiode I-V curves.
  1. http://www.merriam-webster.com/dictionary/nominal
  2. Don't read this if you think you understand circuits. The electrons begin their journey at the minus terminal; however, positive current is defined to flow from plus to minus. It's all <a href="http://www.allaboutcircuits.com/vol_1/chpt_1/7.html">Benjamin Franklin's fault</a>.

</div>