Difference between revisions of "Assignment 7, Part 2: measure temperature and fluorescence"

From Course Wiki
Jump to: navigation, search
(Before you get started in the lab …)
m
(16 intermediate revisions by 3 users not shown)
Line 28: Line 28:
 
===Excitation and emission optics===
 
===Excitation and emission optics===
 
It's possible to build a DNA melter with no lenses at all. Most people find that they can get a better signal-to-noise ratio if they use lenses. The goal is to get as much of the light from the LED to fall on the sample as possible and to get as much of the fluorescent emission on to land on the photodiode as possible. The active area of the photodiode is 3.6 mm x 3.6 mm. Take a little time to think about what lenses you'd like to use between the LED and the sample and photodiode and the sample. It wouldn't hurt to draw a ray diagram.
 
It's possible to build a DNA melter with no lenses at all. Most people find that they can get a better signal-to-noise ratio if they use lenses. The goal is to get as much of the light from the LED to fall on the sample as possible and to get as much of the fluorescent emission on to land on the photodiode as possible. The active area of the photodiode is 3.6 mm x 3.6 mm. Take a little time to think about what lenses you'd like to use between the LED and the sample and photodiode and the sample. It wouldn't hurt to draw a ray diagram.
 
{{Assignment Turn In|message= a diagram of your optical system showing the DNA sample, LED, Photodiode, filters, and lenses. Label relevant distances and lens focal lengths.}}
 
  
 
===Transimpedance amplifier===
 
===Transimpedance amplifier===
Line 46: Line 44:
 
Next, reconsider the capacitor in Stage 1 of the amplifier circuit. What value capacitor will you choose to filter out 60 Hz and 120 Hz noise from the lab?
 
Next, reconsider the capacitor in Stage 1 of the amplifier circuit. What value capacitor will you choose to filter out 60 Hz and 120 Hz noise from the lab?
  
{{Assignment Turn In|message = your chosen values for resistors ''R1'' through ''R5'', and capacitor ''C1''.
+
{{Assignment Turn In|message =Turn in your chosen values for resistors ''R1'' through ''R5'', and capacitor ''C1''.
 
Calculate the resulting cutoff frequency for Stage 1, and the gain of Stage 1 and Stage 2 of your circuit.
 
Calculate the resulting cutoff frequency for Stage 1, and the gain of Stage 1 and Stage 2 of your circuit.
 
* If you have not modified the circuits from their form on the wiki, you do not need to include the schematic in your report.
 
* If you have not modified the circuits from their form on the wiki, you do not need to include the schematic in your report.
Line 67: Line 65:
 
The chassis includes a support bracket, fan, heat sink, and sample holder. There are two Peltier devices sandwiched between the holder and the heat sink. When current is applied to the Peltier device, the sample block will either heat up or cool down, depending on the direction of the current. There is a temperature sensor embedded inside the sample holder.  
 
The chassis includes a support bracket, fan, heat sink, and sample holder. There are two Peltier devices sandwiched between the holder and the heat sink. When current is applied to the Peltier device, the sample block will either heat up or cool down, depending on the direction of the current. There is a temperature sensor embedded inside the sample holder.  
  
# Mount the chassis on the optical breadboard using the ¼-20x5½" screws.  
+
# Mount the chassis on the optical breadboard using the ¼" long ¼-20 screws.  
 
#* Leave room for your optical setup and an electronic breadboard.
 
#* Leave room for your optical setup and an electronic breadboard.
  
Line 109: Line 107:
 
# You may mount your electronic breadboard to your optical breadboard using the CL5 clamps, along with some screws and washers, as shown in right image. [[Image: CL5clamp.JPG|thumb|right|Clamp usage]]
 
# You may mount your electronic breadboard to your optical breadboard using the CL5 clamps, along with some screws and washers, as shown in right image. [[Image: CL5clamp.JPG|thumb|right|Clamp usage]]
  
* Find an equation for the voltage across the RTD as a function of temperature. What voltage do you expect given an input voltage of 15 V with the RTD at room temperature?
+
{{Template: Assignment Turn In |message = <br/>
* What is the measured voltage of the RTD at room temperature and how does it compare to your predictions above?
+
* Find an equation for the block temperature as a function of the voltage across the RTD.
* What is the temperature, based on your measured voltage and how does it compare with the clock on the wall (or some better measure)?
+
* Measure and record the voltage across the RTD, as well as the source voltage of your circuit at room temperature.
* How is the temperature calculation affected by a 1% change in the 15 V input voltage? In other words, if you assume the same measured voltage across the RTD, but have a 1% change in the input voltage, how much does your calculated temperature change? Note the importance of keeping track of your input voltage.
+
* Calculate the temperature based on your measured voltages. How does it compare with the clock on the wall (or some better measure)?
 +
* Assume your source voltage is 15V exactly. How is the temperature calculation affected by a 1% change in the 15 V input voltage? In other words, if you assume the same measured voltage across the RTD, but have a 1% change in the input voltage, how much does your calculated temperature change? Note the importance of keeping track of your input voltage.
 +
}}
  
 
===Excite the sample with blue light===
 
===Excite the sample with blue light===
Line 137: Line 137:
 
# Turn on the power supply and enable the output.  
 
# Turn on the power supply and enable the output.  
 
#* If the LED doesn't glow, it's time for some debugging.
 
#* If the LED doesn't glow, it's time for some debugging.
 
{{Template:Assignment Turn In|message=a detailed description of your optical design, and any ways that your instrument differs from the system described in the lab manual.
 
* Draw a block diagram of your optical system, including focal lengths of lenses and key distances.
 
}}
 
  
 
===Detect green fluorescence===
 
===Detect green fluorescence===
You will use a photodiode, a transimpedance amplifier, an emission filter, and possibly some lenses to detect fluorescent light from the sample. It's time to put all of that together. Start by building and testing the amplifier. Then put the optical system together.
+
You will use a photodiode, a transimpedance amplifier, an emission filter, and possibly some lenses to detect fluorescent light from the sample. It's time to put all of that together. Start by building the optical system. Then build and test the amplifier.
  
 
====Construct the emission optical path====
 
====Construct the emission optical path====
Line 156: Line 152:
 
# Mount and secure the emission optical path. Don't forget the filter (the arrow should be pointing toward the sample).
 
# Mount and secure the emission optical path. Don't forget the filter (the arrow should be pointing toward the sample).
 
# Consider using a lens to focus the light emitted from your sample onto your photodiode.
 
# Consider using a lens to focus the light emitted from your sample onto your photodiode.
 +
 +
{{Template:Assignment Turn In|message=Turn in a detailed description of your optical design, and any ways that your instrument differs from the system described in the lab manual.
 +
* Draw a block diagram of your optical system, including focal lengths of lenses and key distances.
 +
}}
  
 
====Build the transimpedance amplifier====
 
====Build the transimpedance amplifier====
Line 199: Line 199:
 
====Summary of DAQ inputs/outputs====
 
====Summary of DAQ inputs/outputs====
  
A special connector has been prepared for you, connected as shown below. The connections and cable wire colors are also summarized [http://dl.dropbox.com/u/12957607/DAQ_Cable_Assembly_for_DNA_melting_lab.pdf in a memo].
+
A special connector has been prepared for you, connected as shown below. Connect the appropriate wires from the DAC across the RTD and photodiode amplifier circuit.
 +
The rest of the cables will only be used in the next part of the lab. The connections and cable wire colors are also summarized [http://dl.dropbox.com/u/12957607/DAQ_Cable_Assembly_for_DNA_melting_lab.pdf in a memo].
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 226: Line 227:
  
 
[[Image:BasicDNAMelterIcon.png|75 px|left]]
 
[[Image:BasicDNAMelterIcon.png|75 px|left]]
Use the <code>Basic DNA Melter GUI</code> program (located on the lab computer desktop) to collect data from the apparatus.
+
Run <code>BasicMelter</code> in MATLAB to collect data from your instrument.
  
 
Use the "Open file ..." button to write the data to a file. The data will be tab-delimited and can be read into Matlab with the <code>load</code> command.
 
Use the "Open file ..." button to write the data to a file. The data will be tab-delimited and can be read into Matlab with the <code>load</code> command.
  
Documentation for the DNAMelter software is available here: [[DNA Melting: Using the Basic DNAMelter GUI]]
+
Documentation for BasicMelter is available here: [[DNA Melting: Using the Basic DNAMelter GUI]]
  
 
====If you need to debug the DAQ (skip otherwise!)====
 
====If you need to debug the DAQ (skip otherwise!)====
Line 243: Line 244:
 
* If the DAQ gets short-circuited, it may crash. If this happens, Matlab will frequently give a deceptive error message, for example claiming that the limits on the band-pass filter do not satisfy some condition. In this case, correct the connection and cycle the DAQ power.
 
* If the DAQ gets short-circuited, it may crash. If this happens, Matlab will frequently give a deceptive error message, for example claiming that the limits on the band-pass filter do not satisfy some condition. In this case, correct the connection and cycle the DAQ power.
  
==Assignment 7 measurements==
 
  
===Test your instrument with fluorescein===
+
==References and reference material==
Use ~ 30&mu;M fluorescein to test your instrument before you get started with DNA samples. Fluorescein is good for testing; it's cheap, non-toxic, and it does not bleach as quickly like LC Green.
+
<references/>
 
+
# Pipette 500 &mu;L of fluorescein into a glass sample vial.
+
# Pipette 500 &mu;L of deionized water into a another sample vial.
+
# Alternate between the two samples. You should see a difference in the transimpedance amplifier output.
+
 
+
===Measure signal to noise ratio===
+
 
+
Measure the signal to noise ratio (SNR) of the instrument by comparing the difference between the average signal with a sample present and with water as a null reference. This process requires a vial containing 500 &mu;L of 30 &mu;M fluorescein and a vial containing the same amount of water.
+
 
+
# Run the <code>Basic DNA Melter GUI</code>.
+
# Place a vial of deionized water in your instrument.
+
# Clear the data and wait 10 seconds.
+
# Replace the water vial with the DNA of fluorescein vial, record for another 10 seconds, then save the data.
+
#* Be sure that all other conditions, such as temperature, are stable throughout the test.
+
 
+
Compute the signal to noise ratio, <math>\text{SNR}=\frac{\langle V_{fluorescein} \rangle - \langle V_{water} \rangle}{\sigma_{fluorescein} }</math>, where <math>V_{fluorescein}</math> is the portion of the data recorded with a fluorescein sample, <math>V_{water}</math> is the portion of the signal corresponding to the water sample, and <math>\sigma_{fluorescein}</math> is the standard deviation of <math>V_{fluorescein}</math>.
+
 
+
{{Template:Assignment Turn In|message=<br>
+
# Include a picture of your instrument.
+
# Report your signal-to-noise measurement.
+
}}
+
 
+
===Make a DNA melting curve===
+
 
+
Once the instrument is confirmed to be functioning properly, follow these instructions to generate melting curve data for a 20 bp DNA and green dye solution.
+
 
+
{{Template:Biohazard warning|message=LC Green in DMSO is readily absorbed through skin. Synthetic oligonucleotides may be harmful by inhalation, ingestion, or skin absorption. Wear gloves when handling samples. Wear safety goggles at all times when pipetting the LC Green/DNA samples. Do not create aerosols. The health effects of LC Green have not been thoroughly investigated. See the LC Green and synthetic oligonucleotide under <code>../EHS Guidelines/MSDS Repository</code> in the course locker for more information.}}
+
 
+
#Pipet 500 &mu;L of DNA plus dye solution into a glass vial.
+
#Pipet up to 20 &mu;L of mineral oil on top of the sample to help prevent evaporation.
+
#* The oil layer will reduce evaporation.
+
#* Be careful not to get oil on the cuvette sides far above the sample. It will run down during your experiment and cause shifts in the photodiode signal.
+
#*Keep the sample vertical to make sure the oil stays on top.
+
# Make sure that the Diablotek power supply is off and the sample block is near room temperature.
+
# Place the vial in the instrument
+
#* To reduce bleaching, keep the LED off until you start the measurement.
+
# Open and run the Basic DNA Melter GUI and follow the instructions there.
+
# Confirm that sample block temperature displayed in Basic DNA Melter GUI is near room temperature.
+
# Turn on the Diablotek power supply until the block temperature reaches 95&deg;C.
+
# Attempt to hold the temperature at 95&deg;C for a minute or so by repeatedly switching the Diablotek power supply off and on.
+
# Switch off the power supply and allow the block to cool down to room temperature.
+
#* Be sure to save your data so you can plot it in your report.
+
 
+
You can use the same sample for several heating/cooling cycles.<br>
+
Only discard a sample if you lose significant volume due to evaporation or if your signal gets too low.
+
 
+
To clean your glass vial between samples, flush with alcohol in the waste container and rinse with water at the drain. Suck out residual liquid with the vacuum and drawn Pasteur pipette to the left of the sink.
+
 
+
{{Template:Assignment Turn In|message=<br>
+
# Plot at least one melting curve.
+
#* The plot should have temperature in &deg;C on the horizontal axis and fraction of double stranded DNA on the vertical axis.
+
#* On the same set of axes, include a simulated curve generated by DINAMelt, OligoCalc, or another software simulator.
+
#* Also on the same set of axes, plot the output of the <tt>DnaFraction</tt> function evaluated with best-fit parameters. You may use nlinfit to choose the best-fit parameters or you may choose them manually. (See: [[DNA Melting: Simulating DNA Melting - Basics]])
+
#* Include a legend.
+
# Report the estimated melting temperature and the best-fit values of ''&Delta;H&deg;'', ''&Delta;S&deg;''.
+
# Explain the statistical method you will use to identify your group's unknown sample in [[Assignment 10 Overview| Assignment 10]].
+
#* State the acceptance/rejection criteria for any hypotheses tests you will use.
+
#* This page may be a helpful reference: [[Identifying the unknown DNA sample]].
+
}}
+
 
+
====Sample disposal====
+
 
+
{{Template:Environmental Warning|message=Discard pipette tips with DNA sample residue in the pipette tips or the ''Biohazard Sharps'' container. Do not pour synthetic oligonucleotides with LC Green down the drain. Pour your used samples into the waste container provided in the middle of the wet bench.}}
+
 
+
Back to [[Assignment 7 Overview| Assignment 7]]<br>
+
On to [[Assignment 8 Overview| Assignment 8]]
+
 
+
==Useful code and reading==
+
* [[DNA Melting: Simulating DNA Melting - Basics]]
+
* [[DNA Melting: Simulating DNA Melting - Intermediate Topics]]
+
* [[DNA melting: Identifying the unknown sample]]
+
* [[DNA Melting: Model function and parameter estimation by nonlinear regression]]
+
* [[Electronics Primer]]
+
 
+
===Reference materials===
+
 
* [[DNA Melting Thermodynamics]]
 
* [[DNA Melting Thermodynamics]]
 
* [[DNA Melting: DNA Sequences]]
 
* [[DNA Melting: DNA Sequences]]
 
* [http://mfold.rna.albany.edu/?q=DINAMelt/Hybrid2 DINAMelt Web Server]
 
* [http://mfold.rna.albany.edu/?q=DINAMelt/Hybrid2 DINAMelt Web Server]
 
==References==
 
<references/>
 
  
 
==Subset of datasheets==
 
==Subset of datasheets==
Line 335: Line 257:
 
#[http://www.national.com/ds/LF/LF411.pdf Op-amp datasheet]
 
#[http://www.national.com/ds/LF/LF411.pdf Op-amp datasheet]
  
 +
{{Template:Assignment 7 navigation}}
 
{{Template:20.309 bottom}}
 
{{Template:20.309 bottom}}

Revision as of 23:40, 7 November 2017

20.309: Biological Instrumentation and Measurement

ImageBar 774.jpg


This is Part 2 of Assignment 7.

In theory, there is no difference between theory and practice. But, in practice, there is.

Jan L. A. van de Snepscheut/Yogi Berra/and or Chuck Reid



Overview of the lab portion of this assignment

Normalized DNA melting curve. (Plot from gene-quantification.de )

In this part of the lab, you will construct a crude version of a temperature-cycling fluorometer and measure a DNA melting curve or two. Even though this first version of the instrument has some shortcomings, it will give you a good idea of how all of the parts work together to make melting curves. The instrument includes a resistance temperature detector (RTD) to measure the temperature of the sample holder, a blue LED to excite the sample, a Peltier device that will heat the sample, optical filters, a photodiode for detecting fluorescent emission, a high-gain transimpedance amplifier to convert photocurrent to voltage, and a computer data acquisition system to record the voltages that come out of the instrument.

When you get it all put together, the instrument will produce two voltages: one related to the sample temperature and another that depends on the amount of fluorescence coming out of the sample. The goal of this first part is to produce at least one reasonable quality melting curve. This involves recording the temperature and fluorescence voltage as you heat a sample of DNA + dye from room temperature to about 95°C and then let it cool back down. Computer software for recording the voltages has already been written for you. After you have a melting curve, you will use nonlinear regression to fit thermodynamic parameters to your data and do a little planning for part 2 of this lab. You will probably notice some shortcomings your instrument as you work. Don't worry about that — in part 2, you will make many improvements to your machine that will make it sing like Elvis.

There are instructions below for assembling your DNA melter.

Before you get started in the lab …

Two parts of the DNA melter require you to do some design work. You will have to decide what lenses (if any) you would like to use in your system and you will also need to select component values for your transimpedance amplifier. Come up with at least a preliminary design both of these before you start building.

Excitation and emission optics

It's possible to build a DNA melter with no lenses at all. Most people find that they can get a better signal-to-noise ratio if they use lenses. The goal is to get as much of the light from the LED to fall on the sample as possible and to get as much of the fluorescent emission on to land on the photodiode as possible. The active area of the photodiode is 3.6 mm x 3.6 mm. Take a little time to think about what lenses you'd like to use between the LED and the sample and photodiode and the sample. It wouldn't hurt to draw a ray diagram.

Transimpedance amplifier

Two-stage transimpedance amplifier for converting photocurrent to voltage.

Fluorescent light from the sample falls on the photodiode and produces a photocurrent. The amount of current depends on the irradiance of the sample and the light collection efficiency of your optical system (and probably some other stuff). In most instruments, the photocurrent is around a microamp, but this number can vary up or down by a few orders of magnitude depending on the details of your optics. This small current must be amplified to a level where it can be easily measured. The voltage measurement range of the data acquisition system is ±10 V. It makes sense to shoot for an output voltage that fills most of the range of the data acquisition system. The circuit shown to the right is a two-stage amplifier which converts the photodiode current to a voltage, and amplifies this voltage.

Before you build the circuit, you will need to choose values for the resistors and capacitors to get the right amount of gain and an appropriate cutoff frequency. The two stages of the amplifier should look familiar from your answers to the questions in Assignment 7, Part 1, where the current source has been replaced by the photodiode.

Start by ignoring the effects of the capacitor, and pick resistor values such that 1 μA current from your photodiode will produce ~10V signal at the final output of the circuit ($ V_2 $). Remember that it is best to put as much gain in early stages of a multi-stage amplifier as possible, but you don't want to go much higher than 106 per stage. Since you won’t know the exact current values from your photodiode until you build your system, you will start with these values and adjust them as necessary after you build it.

Stage 1. Stage 2.

Next, reconsider the capacitor in Stage 1 of the amplifier circuit. What value capacitor will you choose to filter out 60 Hz and 120 Hz noise from the lab?


Pencil.png

Turn in your chosen values for resistors R1 through R5, and capacitor C1. Calculate the resulting cutoff frequency for Stage 1, and the gain of Stage 1 and Stage 2 of your circuit.

  • If you have not modified the circuits from their form on the wiki, you do not need to include the schematic in your report.


Assembling the system

If you have forgotten your way around the lab, consult the Lab orientation page.

Start by mounting all of the main structural components on an optical breadboard. Onward!

Mount the DNA melting chassis on an optical breadboard

The chassis includes a support bracket, fan, heat sink, and sample holder. There are two Peltier devices sandwiched between the holder and the heat sink. When current is applied to the Peltier device, the sample block will either heat up or cool down, depending on the direction of the current. There is a temperature sensor embedded inside the sample holder.

  1. Mount the chassis on the optical breadboard using the ¼" long ¼-20 screws.
    • Leave room for your optical setup and an electronic breadboard.

Wire the Peltier device and test it

Diablotek switching power supply (inside east cabinet) provides power to the Peltier devices.

Heating and cooling the sample with a Peltier device requires a lot of current. In this first iteration of the instrument, you will hook the Peltier device (also called a thermoelectric cooler, or TEC) directly to its own power supply. When you turn the power supply on, the sample will heat up. After you turn the supply off, the sample will return to room temperature by radiation, conduction, and convection — all that heat stuff. This is a pretty crude way to control the sample temperature. We'll come up with something better as we progress through this lab.

Power supply connected to Peltier devices (TECs).
  1. Hook up the Peltier devices (TECs) in series.
    • There are two Peltier devices (TECs) sandwiched between the sample holder and the heat sink.
    • They must be connected in series.
    • The black lead of the top device should be connected to the red lead of the bottom device.
    • If these two wires are not already connected, twist them together and secure the connection with a wiring nut.
  2. Connect the TEC to the power supply
    • Use the TEC extension wire assembly (the correct one has black/white/black/yellow colored wires)
    • Join the white wire to the red lead of the top TEC and the black wire to the black lead on the bottom TEC using wire nuts.
  3. Warning: there are two connectors on the Diablotek power supply that the connector on the TEC extension wire can fit into. Make sure to use the black connector, not the white one.
    • Connect the TEC extension to the black connector on the Diablotek power supply.
  4. Test the TECs by touching the base of your heating block and turning the Diablotek on.
    • The base should start to feel warm within 10-15 seconds.
    • If the power supply immediately shuts off (the fan inside the power supply stops spinning) it is likely that you either used the wrong connector or there is a short circuit. Double check your wiring.

Measure temperature

A platinum RTD is embedded inside the heating block. The resistance of the RTD varies with temperature according to the equation RRTD=1000 Ω + 3.85 θ, where θ is the temperature of the RTD in degrees Celsius.

  1. While the output is off, set the power supply to 15 V and 0.1A (SERIES operation) and connect to the breadboard.
  2. Connect the 15kΩ resistor in series with the RTD on the breadboard as shown in the diagram.
    RTD circuit
    • The maximum current of the RTD is 1 mA. Since you will use a 15 V supply to the circuit, the resistor must be at least 14 kΩ.
    • Measure the actual resistance of the 15 kΩ resistor with a DMM and record the value in your lab report.
  3. Making sure your circuit is powered and grounded properly, turn on the output of the power supply.
    • Make note of the actual supply voltage measured by your DMM.
    • Measure the voltage across the RTD using the DMM.
  4. You may mount your electronic breadboard to your optical breadboard using the CL5 clamps, along with some screws and washers, as shown in right image.
    Clamp usage


Pencil.png


  • Find an equation for the block temperature as a function of the voltage across the RTD.
  • Measure and record the voltage across the RTD, as well as the source voltage of your circuit at room temperature.
  • Calculate the temperature based on your measured voltages. How does it compare with the clock on the wall (or some better measure)?
  • Assume your source voltage is 15V exactly. How is the temperature calculation affected by a 1% change in the 15 V input voltage? In other words, if you assume the same measured voltage across the RTD, but have a 1% change in the input voltage, how much does your calculated temperature change? Note the importance of keeping track of your input voltage.


Excite the sample with blue light

Figure 1: Schematic diagram of LED circuit

The circuit for illuminating the sample is pretty simple — just a blue LED in series with a resistor, powered by the 15 V supply. The circuit is shown in Figure 1. In this connection, the LED will shine with a roughly constant intensity. This part of the circuit will more complicated later in the lab. For this first iteration of the instrument, a constant, blue light source will do the trick.

Light coming out of the LED diverges pretty quickly. You might be able to get more light to fall on the sample with a lens.

  1. Mount the LED in its mounting ring and secure it in a lens tube with a retaining ring.
  2. Assemble your excitation optical path.
    • LEDs have a broad emission spectrum, so it's necessary to put an optical filter between the LED and the sample.
    • The arrow on the side of the filter should point toward the sample.
  3. Use your electronic breadboard to wire the 62 Ω resistor in series with the LED, as shown in Figure 1.
  4. Use banana cables to route the 5V output of the lab power supply to the LED circuit.
    • Don't forget to connect the resistor — if there is no resistor in series the LED will blow out.
  5. Turn on the power supply and enable the output.
    • If the LED doesn't glow, it's time for some debugging.

Detect green fluorescence

You will use a photodiode, a transimpedance amplifier, an emission filter, and possibly some lenses to detect fluorescent light from the sample. It's time to put all of that together. Start by building the optical system. Then build and test the amplifier.

Construct the emission optical path

  1. Mount the photodiode in its adapter and place the whole thing inside a lens tube.
  2. Mount and secure the emission optical path. Don't forget the filter (the arrow should be pointing toward the sample).
  3. Consider using a lens to focus the light emitted from your sample onto your photodiode.


Pencil.png

Turn in a detailed description of your optical design, and any ways that your instrument differs from the system described in the lab manual.

  • Draw a block diagram of your optical system, including focal lengths of lenses and key distances.


Build the transimpedance amplifier

It's time to build the transimpedance amplifier that will convert the tiny current produced by the photodiode into a measurable voltage. If you didn't already select component values, you are probably not very good at following directions. Pick component values before you start building.

  1. Disable the power supply before you start.
  2. Configure the lab power supply for series mode and set the voltage to ±15 V.
  3. Use banana plugs to wire +15 V, ground, and -15 V to the breadboard terminals.
  4. Mount the two op amps a short distance apart on the electronic breadboard. The amplifiers should straddle the notch on the breadboard that separates the two sets of bus strips.
    • Make sure to use the correct kind of amplifier — there are several types in the drawer that look very similar. The package should say "LF411" on it.
    • Orient the op-amps so that pin 1 (marked with a dot on the package) is at the upper left.
    • Use jump wires to connect the power supplies from the breadboard terminals to the bus bars on the left and right of the op amps.
      • Wire the +15 V power supply to the red bus bar on the right of the op amps.
      • Wire the -15 V power supply to the red bus bar to the left of the op amps.
      • Connect the blue bus bars on either side of the amplifiers to ground.
    • Use short wires to connect the power pins of the op amps to the correct power supplies. Double check your connections — there is no faster way to ruin an op amp than to wire the power backwards.
    • Add the bypass capacitors (the blue ones in the above image) to your circuit to reduce noise from the power supply. Do this by straddling a capacitor between the +15 V supply (pin 7) to ground, and another capacitor between the -15 V supply (pin 4) to ground. Be sure to note the polarity of your capacitor (the black stripe should go toward the more negative potential) otherwise you might get an unwanted explosion.
  5. Build the transimpedance amplifier circuit with the component values you selected.
    LF411 op amp pin configuration
  6. Use a SMA to BNC adapter; BNC cable; and BNC to wire adapter to connect the photodiode terminals to the electronic breadboard.
  7. Before you enable the power supply, double check that your component values are correct and your connections match the design.
  8. Test it out
    1. Enable the power supply and verify that +15V appears on pin 7 and -15V on pin 4.
    2. Temporarily disconnect the photodiode from the amplifier input. This will set the input current to zero.
    3. Measure the voltage on the output pins of both amplifiers (pin 6).
      • If the outputs are not close to zero (say, less than a hundred millivolts), there is probably something wrong. Time for some debugging.
    4. Reconnect the photodiode. Hook a voltmeter to the amplifier output.
    5. Point the photodiode at the lights. Now cover the photodiode with your thumb or another appendage.
      • If the voltage doesn't change as expected, it's time for some debugging.

Connect your instrument to the computer data acquisition system

Each lab PC is equipped with a National Instruments USB-6212 or USB-6341 data acquisition (DAQ) card.

The USB-6212[1] has 16, 16-bit analog input channels which can, in sum total, accomplish 400 thousand samples per second (400kS/s). That is, if there are two channels, each one will be alternately sampled, and EACH sampled at 200kS/s. A multiplexer sequentially selects from among the 16 single-ended and 8 differential input signals. The card also supports two 16 bit analog output channels with an update rate of 250 kS/s and an output range of +/-10 V and up to +/-2 mA.

The USB-6212 also has 32 digital input/output channels and a digital ground. A 50 kΩ pull-down resistor is typically used in series with connections to these channels.

The USB-6341[2] is s little more powerful. It has 16, 16-bit analog input channels which can, in sum total, accomplish 500 thousand samples per second (500kS/s). Again, a multiplexer sequentially selects from among the 16 single-ended and 8 differential input signals. The card also supports two 16 bit analog output channels but they have an update rate of 900 kS/s and an output range of +/-10 V and up to +/-2 mA.

Finally, the USB-6341 has 24 digital input/output channels and a digital ground, as well as 4, 100 MHz counter/timers.

Summary of DAQ inputs/outputs

A special connector has been prepared for you, connected as shown below. Connect the appropriate wires from the DAC across the RTD and photodiode amplifier circuit. The rest of the cables will only be used in the next part of the lab. The connections and cable wire colors are also summarized in a memo.

Signal Name Signal Location Ground Location Pin wire color
DAQ Inputs
RTD AI0+ AI0- +Orange / -Black [lone pair, not with third (red) wire]
Photodiode AI1+ AI1- +Green / -White
DAQ Connection Cable

DNAMelter software

BasicDNAMelterIcon.png

Run BasicMelter in MATLAB to collect data from your instrument.

Use the "Open file ..." button to write the data to a file. The data will be tab-delimited and can be read into Matlab with the load command.

Documentation for BasicMelter is available here: DNA Melting: Using the Basic DNAMelter GUI

If you need to debug the DAQ (skip otherwise!)

  • When debugging problems, it is frequently useful to ascertain whether the data acquisition system is working properly. National Instruments provides an application for this purpose called Measurement and Automation Explorer. Use Measurement and Automation Explorer to verify that the DAQ is properly connected to and communicating with the computer. The program also provides the ability to manually control all of the DAQ system's inputs and outputs.
    • Launch Measurement and Automation Explorer by selecting Start->All Applications->National Instruments->Measurement and Automation.
    • In the "Configuration" tab, select "Devices and Interfaces" and then "NI-DAQMx Devices." Select "Dev1."
    • If Dev 1 does not show up, the problem is that computer cannot communicate with the DAQ system. Ensure that the USB cable is connected to the DAQ system. If the cable is connected and the device still does not show up, unplug the USB cable, count to five, and plug it back in.
    • If the DAQ shows up under a different name, disconnect the USB cable. Delete all the "NI USB-6xxx" entries and then reconnect the USB cable. Verify that one entry reappears and that it is called "Dev1."
    • Select the "Test Panels" tab to manually control or read signals from the DAQ.
  • If you run DNAMelter and there is a data acquisition error, for example, "Data acquisition cannot start!", open Measurement and Automation Explorer and follow the steps above. Run DNAMelter again. If it still doesn't work, grab a beer or ask an instructor for help.
  • The DAQ has only one analog-to-digital converter (ADC). A multiplexer circuit sequentially samples voltages from the analog inputs configured in the control software. If any of the inputs is outside the allowable range of +/-10V, all of the inputs may behave erratically. The voltages reported may look reasonable so this can be very misleading. If none of the DAQ readings make sense, ensure that all of the analog voltages are in the allowable range and reset the DAQ by cycling the power of the DAQ (use the switch on the 6341 or disconnect the USB of the 6212).
  • If the DAQ gets short-circuited, it may crash. If this happens, Matlab will frequently give a deceptive error message, for example claiming that the limits on the band-pass filter do not satisfy some condition. In this case, correct the connection and cycle the DAQ power.


References and reference material

  1. Datasheet for the USB-6212
  2. Datasheet for the USB-6341

Subset of datasheets

(Many more can be found online or on the course share)

  1. National Instruments USB-6212 user manual
  2. National Instruments USB-6341 user manual
  3. Op-amp datasheet

Navigation

Back to 20.309 Main Page