Difference between revisions of "DNA Melting Part 1: Measuring Temperature and Fluorescence"

From Course Wiki
Jump to: navigation, search
m (Making a rough measurement of the SNR)
m (Wire the Peltier device and test it)
 
(226 intermediate revisions by 8 users not shown)
Line 3: Line 3:
 
{{Template:20.309}}
 
{{Template:20.309}}
  
[[Image:DNA Melting Block Diagram.jpg|frame|DNA melting apparatus block diagram showing the five functional groups of the instrument.]]
+
<center>
 
+
 
+
 
''In theory, there is no difference between theory and practice. But, in practice, there is.''  
 
''In theory, there is no difference between theory and practice. But, in practice, there is.''  
  
 
''&mdash;[http://en.wikiquote.org/wiki/Jan_L._A._van_de_Snepscheut Jan L. A. van de Snepscheut]/[http://en.wikiquote.org/wiki/Yogi_Berra Yogi Berra]/and or [http://c2.com/cgi/wiki?DifferenceBetweenTheoryAndPractice Chuck Reid]''  
 
''&mdash;[http://en.wikiquote.org/wiki/Jan_L._A._van_de_Snepscheut Jan L. A. van de Snepscheut]/[http://en.wikiquote.org/wiki/Yogi_Berra Yogi Berra]/and or [http://c2.com/cgi/wiki?DifferenceBetweenTheoryAndPractice Chuck Reid]''  
 +
</center>
  
You will construct a basic DNA melting instrument consisting of the five functional groups shown in the block diagram:
+
<br />
* excitation
+
<br />
* heating
+
* fluorescent detection
+
* temperature measurement
+
* data acquisition and control
+
  
A metal block will hold a sample vial in the excitation light path and transfer heat to the sample. The sample contains a combination of DNA, SYBR Green I and a salt. Recall that SYBR Green I fluoresces when it is bound to double stranded DNA (dsDNA) by a factor of up to 1000x compared to when it is bound to single stranded DNA (ssDNA). Detection of this fluorescence provides a relative measure of the fraction of dsDNA to total DNA, which can be compared to predictions from a thermodynamic model.
+
==Overview of part 1==
 +
[[Image:Normalized DNA melting curve.gif|thumb|right|386 px|Normalized DNA melting curve. (Plot from [http://www.gene-quantification.de/hrm-dyes.html 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.  
  
The dye has a peak sensitivity to blue light at 497 nm so a blue LED will be used to illuminate the sample. The dye emits green light with an emission peak at 520 nm. A photodiode will be placed at 90&deg; to the LED source to detect the green light emitted by SYBR Green I. Because LEDs have a fairly broad spectrum, first a moderately narrow band-pass filter will be used to limit the excitation wavelength to between 450 and 490 nm. Then a complimentary long-pass emission filter will be placed between the sample and detector to pass only wavelengths longer than 515 nm. This filter combination, when used with this dye system, eliminates any background signal due to the excitation light.
+
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 part 1 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&deg;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 &mdash; in part 2, you will make many improvements to your machine that will make it [https://youtu.be/3rQEbQJx5Bo sing like Elvis].
  
The sample block will be heated by a TEC (thermoelectric cooler) and its temperature measured by an embedded RTD (resistance temperature detector). Also, since photodiodes produce a very small amount of current, a high gain amplifier will convert the photodiode current into a measurable voltage. The DAQ (data acquisition card) and PC will digitize the amplified photodiode and RTD signals. A Matlab program is provided to record these fluorescence and temperature signals over time and save the data to a file. The file can then be loaded into Matlab for analysis, or if you prefer, Python or equivalent where the signals will be converted into dsDNA concentration and sample temperature. Finally, the dsDNA sample melting temperature will be estimated from a plot of df/dT vs T (''f'' represents the fraction of total DNA that is in double-stranded form) and from a comparison to the thermodynamic model.
+
There are instructions below for assembling your DNA melter.
  
The functional groups in the block diagram are one of two fundamental frameworks used to describe an instrument. The other sub-divides the instrument into categories that often mirror historical areas of engineering. The former is focused on what will be done, including the overall scientific goals and the physical processes to be measured. The latter is focused on how it will be done, e.g. using optics, electronics or perhaps a practical knowledge of thermal management. A good engineer will constantly be thinking of the instrument in both frameworks.  
+
==Before you get started in the lab &hellip;==
 +
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.
  
==Mechanical subsystem==
+
===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.
  
[[Image:DNA_Setup_v2_Iso.png|600 px|thumb|center|DNA Melting System Model]]
+
===Transimpedance amplifier===
 +
[[File:Transimpedance amplifier part 1.png|thumb|right|400px|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 &plusmn;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.
  
Mechanical support for the heating block, sample and optics will be built on a portable optical breadboard from [http://www.thorlabs.com ThorLabs]. Most of the components in the lab are from this supplier because the selection is large, the quality is quite good and the price reasonable. Although you are free to modify the design as the lab progresses, begin a build from the standard design shown above and demonstrated by the example in the lab. Gather the following Thorlabs components but do not start to assemble.
+
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 following questions will guide you in selecting these components (note that these questions are very similar to PSet 3).  
  
* 1 MB1224 optical breadboard
+
<ol type = "1">
* 2 CL5 clamps (or similar)
+
<li> For the amplifier circuit shown at the above right, in what case can we ignore the effect of the capacitor? At high or low frequencies? </li>
* 2 1/4-20 5/8" screws
+
<li> Stage 1 of the circuit (shown below) is a transimpedance amplifier, which converts the current coming from your photodiode into a voltage. Ignoring the effect of the capacitor for now (for the case you described in the above question), write an expression for the gain (<math>V_1/i_{in}</math>) of Stage 1 of your amplifier circuit in terms of the resistor values.
* 1 sheet metal support bracket
+
[[File:Transimpedance_Stage1_NoCap.png|thumb|center|220px|Stage 1.]] </li>
* 4 1/4-20 1/4" screws
+
<li> Let’s look at Stage 2 of the amplifier circuit. This stage is a voltage amplifier to further amplify the signal from Stage 1. We need this second stage because when the gain of a single stage is very high (~10<sup>6</sup> &Omega;), the circuit starts to misbehave. At very high gains, you can't ignore the nonidealities of the op amp as casually as you can at low gains. Thus, to achieve an adequate gain, we need the second stage of amplification. What is the gain (<math>V_2/V_1</math>) of Stage 2?
 +
[[File:Transimpedance_Stage2.png|thumb|center|200px|Stage 2.]] </li>
 +
<li> Now that you know the gain of each stages of your amplifier circuit. Pick resistor values such that 1uA current from your photodiode will produce ~10V signal at the final output of the circuit (<math>V_2</math>). Remember that it is best to put as much gain in early stages of a multi-stage amplifier as possible. 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. </li>
 +
<li> It is now time to reconsider the capacitor in Stage 1 of the amplifier circuit. What does this capacitor do at high frequencies? What kind of filter is this? Using impedance analysis, find the gain (<math>V_1/i_{in}</math>) of Stage 1 in terms of the capacitor and resistor values. </li>
 +
<li> What value capacitor will you choose to filter out 60 Hz and 120 Hz noise from the lab? </li>
 +
</ol>
  
==Thermal subsystem==
+
==Assembling the system==
The thermal subsystem includes all components to control heat flow into and out of the sample and monitor its temperature. Heating is accomplished using thermal electric coolers (TECs) in reverse. The hot side is placed in direct contact with the heating block, which is in direct contact with the sample vial. The TECs will be powered by manually controlling the Diablotek power supply. To avoid contamination of the sample or perturbation of its temperature, the temperature of a resistive temperature detector (RTD) embedded in the heating block will be monitored as a proxy for the sample temperature. In this part of the lab, air convection will cool down the sample when the Diablotek is switched off. The heat sink will help and the fan may be connected to a triple-output power supply to help, but these are included primarily for use in Part 2.
+
If you have forgotten your way around the lab, consult the [[Lab orientation]] page.
  
Gather the following components from the bins on the center counter top, the DNA Melting drawer at the right of the wet bench or the counter top opposite the wet bench:
+
Start by mounting all of the main structural components on an optical breadboard. Onward!
* 1 PMD1206 fan
+
* 4 6-32 3/8" screws
+
* 4 6-32 nuts
+
* 1 heat sink (~2x2")
+
* 2 4-40 1/4" screws
+
* 4 1/4-20 1/4" screws
+
* 2 TEC heater/coolers
+
* The shared tube of thermal grease
+
* 3 blue or gray wire nuts
+
* 1 Diablotek 250 W power supply
+
* 1 yellow/white TEC extension wire assembly
+
* 1 heating block
+
* 2 plastic washers
+
* 2 4-40 1/2" screws
+
  
===Assembly instructions===
+
===Mount the DNA melting chassis on an optical breadboard===
 +
<gallery widths=216px caption="Stuff you need:">
 +
File:DNA melting chassis.jpg|1 DNA melting chassis (on top of Center Cabinets)
 +
File:Optical breadboard.jpg|1 aluminum optical breadboard (1 foot by 2 foot, part number MB1224, located in the Instructor Cubbies)
 +
File:Quarter twenty by half screws.jpg|4 &frac14;-20x&frac12;" screws
 +
File:Three wire nuts.jpg|3 wire nuts (DNA melting drawer &mdash; rightmost drawer on the wet bench.)
 +
File:DNA_part_1_TEC_wire_assembly.jpg| TEC extension wire assembly (on top of Center Cabinets)
 +
</gallery>
  
[[Image:TEC_picture.jpg|150 px|thumb|right|TEC showing hot side up when current flows into the red lead]]
+
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.
  
# Attach the fan on the side of the support bracket using the 6-32 screws and nuts.
+
# Mount the chassis on the optical breadboard using the &frac14;-20x5&frac12;" screws.  
# Attach the 2x2 heat sink to the bottom of the support bracket using two 4-40 screws at opposite corners.
+
#* Leave room for your optical setup and an electronic breadboard.
# Attach the support bracket to the MB1224 breadboard using 1/4-20 1/4" screws.
+
# Now place the TECs on a napkin or two, with the red lead extending down and to the right as shown in the figure.
+
# Apply a very thin layer of thermal grease to the exposed side of one of the TECs using a wooden stick from the drawer.
+
#* Use a small amount of grease. Too much is worse than none.
+
#* Best practice is to apply a baby-pea-sized amount, spread with the stick, smooth and remove excess almost to the point of total removal.
+
# Now place the second TEC on top of the first.
+
#* If the two TECs slide freely against each other, then there is too much grease.
+
#** Separate the TECs and smooth/remove the grease until a modest force is required to slide them.
+
#* Verify that the colors of the leads match. If not, flip one TEC.
+
# Connect the black lead of the top TEC to the red lead of the bottom TEC using a wire nut.
+
# Connect the TEC to the extension wire assembly using a wire nut to join the white wire to the red lead of the top TEC and the black wire to the black lead on the bottom TEC.
+
# Join the white connector on the assembly to the black 2x2 connector of the Diabloteck.
+
# Test the TECs by holding the them between thumb and finger while briefly flipping the switch on the Diablotek.
+
#* One side should immediately heat up while the other immediately cools.
+
#* The top side should be the hot side when the red wires extend down and to the right.
+
#* If the Diablotek immediately shuts off (the fan will stop spinning) then there is a short. Check all connections.
+
# Once the TEC assembly checks out, butter the bottom side of the assembly and place that side on the heat sink with the leads facing to the right.
+
# Finally, apply thermal grease to the top side of the TEC assembly, place the heating block on top and anchor to the heat sink using the 1/2" long 4-40 screws and plastic washers.
+
  
===Report questions===
+
===Wire the Peltier device and test it===
# '''How is temperature in the middle of the sample related to the RTD temperature?'''
+
[[Image:Diablotek switching power supply.jpg|thumb|right|Diablotek switching power supply (inside east cabinet) provides power to the Peltier devices.]]
# '''How does the block heating rate affect the experiment?'''
+
Heating and cooling the sample with a Peltier device requires a lot of current. In part 1 of the lab, 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 &mdash; all that heat stuff. This is a pretty crude way to control the sample temperature. We'll come up with something better in part 2.
  
==Optical subsystem==
+
[[Image:DNA part 1 TEC hookup.jpg|thumb|right|Power supply connected to Peltier devices (TECs).]]
 +
# 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.
 +
# 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.
 +
# 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.
 +
# 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.
  
A good optical subsystem design will be compact, stable and simple. It includes the optical components of the excitation and fluorescence detection functional groups from the block diagram. A good design will efficiently illuminate the sample and collect the maximum possible amount of emitted fluorescent light. There are a variety of ways to construct the apparatus. Use the model above and the example system in the lab as guides.
+
===Measure temperature===
 +
<gallery widths=216px caption="Stuff you need:">
 +
File:Electronic breadboard.jpg|1 electronic breadboard (on top of east cabinet)
 +
File:CL5 clamps.jpg|2 CL5 clamps (on top of center cabinet)
 +
File:15 KOhm resistor.jpg|15 K&Omega; resistor
 +
File:Jump wires.jpg|jump wires (on top of east cabinet)
 +
File:Banana cables.jpg|3 banana cables &mdash; preferably two red and one black or three different colors
 +
</gallery>
  
Gather the following components from the DNA Melting drawer and the counter tops:
+
A platinum RTD is embedded inside the heating block. The resistance of the RTD varies with temperature according to the equation ''R<sub>RTD</sub>''=1000 &Omega; + 3.85 ''&theta;'', where ''&theta;'' is the temperature of the RTD in degrees Celsius.
* 2 PH2 post holders
+
* 2 BA1 post holder bases
+
* 2 1/4-20 1/4" screws
+
* 2 1/4-20 5/8" screws
+
* 2 1/4" washers
+
* 4 CP02 cage plates
+
* 2 8-32 1/2" setscrews
+
* 2 TR2 posts
+
* 6 ER4 cage rails
+
* 12 4-40 1/4" setscrews (or similar length)
+
* 4 SML05 lens tubes
+
* 4 SM1LTRR retaining rings
+
* 1 blue LED PCB
+
* 1 D470/40 excitation filter
+
* 1 E515LPv2 emission filter
+
* 1 SM1A6 adapter between SM1 and SM05 threads
+
* 1 SM05PD1A mounted photodiode
+
  
===Assembly instructions===
+
# While the output is off, set the power supply to 15 V and 0.1A  (SERIES operation) and connect to the breadboard.
 +
# Connect the 15k&Omega; resistor in series with the RTD on the breadboard as shown in the diagram. [[Image: DNA_Lab_RTD_circuit.png|thumb|right|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&Omega;.
 +
#* Measure the actual resistance of the 15 k&Omega; resistor with a DMM and record the value in your lab report.
 +
# 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.
 +
# 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]]
  
# Attach each PH2 to a BA1 using 1/4" screws.
+
* 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?
# Attach two of the CP02 cage plates to two TR2 posts using an 8-32 setscrew.
+
* What is the measured voltage of the RTD at room temperature and how does it compare to your predictions above?
# Insert the TR2/CP02 assembly into the PH2/BA1 assemblies and lock in place with the TS25H setscrews.
+
* What is the temperature, based on your measured voltage and how does it compare with the clock on the wall (or some better measure)?
# Insert three ER4 cage rails into each CP02 above and lock in place with SS4S025 set screws or similar.
+
* 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.
#* Leave the blank hole on the bottom of the assembly.
+
# Attach one of the remaining CP02 cage plates on the free end of each assembly above and lock in place.
+
# Attach each of the above assemblies to the MB1224 using a washer and 1/4-20 screw less than 1" in length.
+
# Arrange on the MB1224 and adjust CP02 heights as desired.
+
# Mount the LED PCB in an SML05 lens tube and fix with a retaining ring.
+
# Mount the excitation and emission filters in each of two lens tubes and fix with retaining ring.
+
# Thread the SM1A6 adapter into a lens tube and fix with a retaining ring.
+
# Thread the photodiode into the SM1A6 adapter.
+
#* Teflon pipe thread tape can be used to hold the photodiode in the desired position.
+
# Mount each lens tube in the appropriate CP02 cage plates.
+
# Arrange each the resultant assemblies on the breadboard to most fully illuminate the sample vial and to gather the most of the resultant light on the photodiode.
+
  
===Report questions===
+
===Excite the sample with blue light===
* '''Describe the most important aspect of the optics built in this section and explain how it can be improved upon.'''
+
<figure id="fig:DNA_LED_circuit_part_1">[[File:DNA_LED_Circuit_part_1.svg|thumb|right|50 px|<caption>Schematic diagram of LED circuit</caption>]]</figure>
* '''Describe significant optical noise sources and offer corrective actions.'''
+
The circuit for illuminating the sample is pretty simple &mdash; just a blue LED in series with a resistor, powered by the 15 V supply. The circuit is shown in <xr id="fig:DNA_LED_circuit_part_1"/>. In this connection, the LED will shine with a roughly constant intensity. This part of the circuit will more complicated in part 2. For part 1, a constant, blue light source will do the trick.
  
==Electronics subsystem==
+
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.
  
The electrical subsystem includes the LED with a current-limiting resistor, the photodiode, the transimpedance amplifier and a temperature detection circuit. The remainder of this section provides an example of each of these systems and instructions to build and test each one. Nevertheless, alternate ideas are welcome. Feel free to discuss with the Instructors.
+
<gallery widths=216px caption="Stuff you need:">
 +
File:Blue LED with mounting ring.jpg|1 blue LED with mounting ring (rightmost drawer of west drawers)
 +
File:62 ohm resistor.jpg|1 62 &Omega; resistor
 +
File:D470 filter.jpg|1 D470/40 excitation filter (DNA melting drawer- rightmost drawer on wet bench)
 +
File:SM1L05.jpg|1 &frac12;" SM1 lens tube (on shelves)
 +
File:Optical parts for excitation.jpg|lenses and mounts for excitation optical path
 +
</gallery>
  
Gather the following components from the electronics drawer to the right of the optics drawers, from the counter top opposite the wet bench and from the cable organizer on the East wall to the right of the white board.
+
# Mount the LED in its mounting ring and secure it in a lens tube with a retaining ring.
* 1 electronic breadboard
+
# Assemble your excitation optical path.
* 1 jump wire kit
+
#*  LEDs have a broad emission spectrum, so it's necessary to put an optical filter between the LED and the sample.
* 2 red 3' banana cable or similar
+
#* The arrow on the side of the filter should point toward the sample.  
* 1 black 3' banana cable or similar
+
# Use your electronic breadboard to wire the 62 &Omega; resistor in series with the LED, as shown in <xr id="fig:DNA_LED_circuit_part_1"/>.
* Individual wire, as-needed from the scrap wire box or the wire spools opposite the wet bench
+
# Use banana cables to route the 5V output of the lab power supply to the LED circuit.
* 1 62 &Omega; resistor from the center counter top on the South wall
+
#* Don't forget to connect the resistor &mdash; if there is no resistor in series the LED will blow out.
* 1 15 k&Omega; resistor
+
# Turn on the power supply and enable the output.
* Other resistors, as-needed for the amplifier
+
#* If the LED doesn't glow, it's time for some debugging.
* 1 blue LED from the DNA Melting drawer at the far right of the wet bench
+
* 2 LF411 op-amps from the electronics drawer
+
* 4 capacitors between 0.1 and 22 uF from either the electronics drawer or the counter top where the screws are stored.
+
  
===Assembly instructions===
+
===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.
  
====LED circuit====
+
====Construct the emission optical path====
The led circuit consists of a 62 &Omega; resistor in series with a blue, jumbo LED. The circuit will be powered by the 5 volt fixed output of the lab power supply. The 62 &Omega; resistor prevents excessive current from flowing through the LED. Excessive current will let the smoke out of the LED.
+
<gallery>
 +
File:SM05PD1A Photodiode.jpg|1 SM05PD1A photodiode (DNA melting drawer)
 +
File:SM1A6 adapter.jpg|1 &frac12;" to 1" adapter (DNA melting drawer)
 +
File:E515LPv2 filter.jpg|1 E515LPv2 emission filter (DNA melting drawer)
 +
File:Optical parts for emission.jpg|lenses and mounts for emission optical path
 +
</gallery>
  
# '''Assume the LED has an I-V curve identical to the photodiode I-V curve you measured in the [[Electronics Mini-Lab]] with no light falling on the diode. Calculate the current that will flow the LED in series with a 62 &Omega; resistor.'''
+
# Mount the photodiode in its adapter and place the whole thing inside a lens tube.  
# Build the LED circuit on your electronic breadboard.
+
# Mount and secure the emission optical path. Don't forget the filter (the arrow should be pointing toward the sample).
#* Don't forget to connect the resistor. Directly connecting the LED to V will blow out the LED.
+
# Consider using a lens to focus the light emitted from your sample onto your photodiode.
# Disable the output of the lab power supply.
+
# Connect the LED circuit to the fixed 5 V output.
+
# '''Enable the power supply and measure the current through the LED.'''
+
# '''How does this current compare to the current measured through the photodiode in the Electronics Mini-lab?'''
+
  
====Temperature detection circuit====
+
====Build the transimpedance amplifier====
A platinum RTD is embedded inside the heating block. The resistance of the RTD varies with temperature according to the equation ''R<sub>RTD</sub>''=1000 &Omega; + 3.85 ''&Theta;'', where ''&Theta'' is the temperature of the RTD in degrees Celsius. The easiest way to make a temperature measurement is to connect the RTD in series with a fixed resistor and a power supply. The output voltage of the resulting divider circuit varies as a function of temperature.  
+
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.
  
The maximum current of the RTD is 1 mA. You will use a 15 V supply to the circuit, so the resistor must be at least 14 K&Omega;. Use a 15 K&Omega; resistor.
+
<gallery widths=216px caption="Stuff you need:">
 +
File:LF411 op amps.jpg|2 LF411 op amps (rightmost drawer of west drawers)
 +
File:Resistors for transimpedance amplifier circuit.jpg|Resistors for amplifier circuit
 +
File:DNA bypass capacitors.jpg|4 capacitors > 1 &mu;F (rightmost drawer of west drawers)
 +
File:SMA to BNC.jpg|1 SMA to BNC adapter (DNA melting drawer)
 +
File:BNC cable.jpg|1 BNC cable
 +
File:BNC to wires adapter.jpg|1 BNC wire adapter (on center cabinet)
 +
</gallery>
  
# '''Find an equation for ''V<sub>out</sub> as a function of temperature. What voltage do you expect given an input voltage of 15 V with the RTD at room temperature.'''
+
# Disable the power supply before you start.
# Turn off the output of the triple-output power supply.
+
# Configure the lab power supply for series mode and set the voltage to &plusmn;15 V.
# Connect the RTD to the electronic breadboard.
+
# Use banana plugs to wire +15 V, ground, and -15 V to the breadboard terminals.
# ''Measure the resistance of the 15 k&Omega; resistor with a DMM and record the value'''
+
# 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.
# Connect the 15k&Omega; resistor in series with the RTD.
+
#* Make sure to use the correct kind of amplifier &mdash; there are several types in the drawer that look very similar. The package should say "LF411" on it.
# Set the power supply for '''SERIES''' operation.
+
#* Orient the op-amps so that pin 1 (marked with a dot on the package) is at the upper left.
# Set the output voltage to 15 V.
+
#* 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.
# Set the current limit to 0.1 A.
+
#** Wire the +15 V power supply to the red bus bar on the right of the op amps.
# Connect the positive terminal of '''CH1''' to a banana terminal on the breadboard for +15 V and wire it to the top red bus strip for +15 V supply.
+
#** Wire the -15 V power supply to the red bus bar to the left of the op amps.
# Connect the negative terminal of '''CH2''' to a banana terminal on the breadboard for -15 V.
+
#** Connect the blue bus bars on either side of the amplifiers to ground.
# Connect the positive terminal of '''CH2''' to the black terminal on the breadboard for a ground refernce and wire it to the top blue bus strip.
+
#* Use short wires to connect the power pins of the op amps to the correct power supplies. Double check your connections &mdash; there is no faster way to ruin an op amp than to wire the power backwards.
#* Use three jump wires to minimize the parasitic voltage drop due to the breadboard tie points.
+
#* 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.
# Connect the +15 V bus strip to the second vertical, red bus strip and wire this bus strip to the top of your 15 k&Omega; resistor.
+
# Build the transimpedance amplifier circuit with the component values you selected. [[Image: LF411.jpg|thumb|right|LF411 op amp pin configuration]]
# Turn on the output of the power supply and measure the voltage across the RTD using the DMM.
+
# Use a SMA to BNC adapter; BNC cable; and BNC to wire adapter to connect the photodiode terminals to the electronic breadboard.
# '''What is the measured voltage of the RTD at room temperature and how does it compare to your predictions above?'''
+
# Before you enable the power supply, double check that your component values are correct and your connections match the design.
# '''What is the temperature corresponding to this measured voltage and how does it compare to some other measure of room temperature from a method of your choosing?'''
+
# Test it out
 +
## Enable the power supply and verify that +15V appears on pin 7 and -15V on pin 4.
 +
## Temporarily disconnect the photodiode from the amplifier input. This will set the input current to zero.
 +
## 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.
 +
## Reconnect the photodiode. Hook a voltmeter to the amplifier output.
 +
## 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.
  
====Photodiode amplifier circuit====
+
==Connect your instrument to the computer data acquisition system==
 
+
The current produced by the photodiode detector is a few tens of nA. This very small current must be amplified to a level where it can be easily measured. The data acquisition system you will use can measure voltages between + and -10 V. Use the two-stage op amp circuit shown below to convert the photodiode current to a voltage.
+
 
+
<center>[[Image:Part1_TransimpedanceAmplifier.jpg|700 px|thumb|center|Multi-stage photodiode amplification circuit]]</center>
+
 
+
You will have to decide how to distribute the gain between the two op amp stages in the circuit. It is best to put as much gain in early stages of a multi-stage amplifier as possible. However, when the gain of a single stage becomes very high, nonidealities of the op amp become bothersome. The first stage of the amplifier will behave reasonably well as long as the gain is less than about 10<sup>7</sup> &Omega;
+
 
+
# '''Analyze the photodiode amplifier circuit. Choose resistor values to achieve an overall gain that will yield an output of about 5 V when the input is 10 nA.'''
+
# Construct the circuit on your breadboard.
+
#* Disable the power supply before you build.
+
#* Do not yet connect the photodiode.
+
#* Orient the LF411 op-amps so that pin 1, which is marked with a dot on the package, is at the upper left.
+
# Connect the +/- 15 V bus strips to power the op-amps power pins.
+
# Connect the vertical blue bus strips to the horizontal blue bus strip.
+
 
+
=====Test connectivity and basic operation=====
+
 
+
# Verify that all your component connections are correct and match the design.
+
# Check that wires and components are properly seated in the breadboard and not suspiciously loose.
+
#* You can use the ohm-meter function of the digital multi-meter to verify continuity.
+
# Turn on the power supply and verify that +15V appears on pin 7 and -15V on pin 4.
+
# Verify that pins 2 and 3 (the V- and V+ inputs to the op-amp) are equal.
+
# '''Measure the output voltages of IC1 and IC2.'''
+
#* Without the photodiode, the input current is zero but you may still see a significant offset voltage from 50 to 100 mV at IC1 pin 6.
+
#* Refer to [http://measure.mit.edu/~20.309/wiki/index.php?title=Real_electronics#Real_op-amps Real Electronics, real op-amps] to understand why, as well as how to account for, this non-ideal op-amp behavior.
+
 
+
===Report questions===
+
In addition to any questions in '''bold''' above, answer the following questions in your report.
+
* Why not just use a single amplifier stage?
+
* Why not simply use a resistor?
+
* How does feedback affect the noise of the two-stage amplifier?
+
* What are the dominant sources of noise in the photodiode and amplifier, which do you have the most control over and how could you reduce them instead of trying to filter them?
+
 
+
==Data acquisition hardware subsystem==
+
  
 
{{:20.309:DAQ System}}
 
{{:20.309:DAQ System}}
Line 248: Line 213:
 
==DNAMelter software==
 
==DNAMelter software==
  
A Matlab program called DNAMelter.m controls all the functions of the DNA apparatus. The program is available in the directory CourseMaterials/Labs/DNAMelting.
+
[[Image:BasicDNAMelterIcon.png|75 px|left]]
Make a copy of the program in your group's directory. Double click your copy to open the code in Matlab, then press the triangular Run button at the top of the editor window or type <code>DNAMelter</code> in the command window to run the program.
+
Use the <code>Basic DNA Melter GUI</code> program (located on the lab computer desktop) to collect data from the apparatus.
  
At the end of an experimental run, use the "Save Data" button. 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.
  
====Using the DAQ====
+
Documentation for the DNAMelter software 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.
 
* 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.
 
** Launch Measurement and Automation Explorer by selecting Start->All Applications->National Instruments->Measurement and Automation.
Line 260: Line 227:
 
** 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."  
 
** 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.
 
** Select the "Test Panels" tab to manually control or read signals from the DAQ.
* If you run DNAMelter and Matlab reports a data acquisition error, for example, "<code>NO DATA ACQUISITION DEVICE FOUND!</code>", 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.
+
* If you run DNAMelter and there is a data acquisition error, for example, "<code>Data acquisition cannot start!</code>", 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).
 
* 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.
 
* 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.
 
Documentation for the DNAMelter software is available here: [[DNA Melting: Using the Matlab DNAMelter GUI]]
 
  
 
==Part 1 measurements==
 
==Part 1 measurements==
  
Please read this entire section before beginning. Then start at Testing the instrument, with reference back to the sample sections as-needed.
+
===Test your instrument with fluorescein===
 +
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.
 +
 
 +
# Pipette 500 &mu;l of fluorescein into a glass sample vial.
 +
# Pipette 500 &mu;l of DI 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 uL of 30 uM fluorescein and a vial containing the same amount of water.  
  
===Making samples===
+
# Run the <code>Basic DNA Melter GUI</code>.
 +
# Place a vial of DI 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.
  
{{Template:Biohazard warning|message=SYBR Green I 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 SYBR Green/DNA samples. Do not create aerosols. The health effects of SYBR Green I have not been thoroughly investigated. See the SYBR Green I and synthetic oligonucleotide under <code>../EHS Guidelines/MSDS Repository</code> in the course locker for more information.}}
+
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>.
  
====Sample prep steps====
+
===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 500 &mu;L of DNA plus dye solution into a glass vial.  
#Pipet up to 200 &mu;L of mineral oil on top of the sample to help prevent evaporation. It will help to pipette into the corners first. 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. Place the cap loosely on the 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.  
 
#*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 Part 1 report.
 +
  
 
* You can use the same sample for several heating/cooling cycles.
 
* You can use the same sample for several heating/cooling cycles.
* '''What makes the sample go bad?'''
 
* '''What can you do to limit this effect?'''
 
 
* Only discard a sample if you lose significant volume due to evaporation or if your signal gets too low.  
 
* Only discard a sample if you lose significant volume due to evaporation or if your signal gets too low.  
  
Line 289: Line 281:
 
====Sample disposal====
 
====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 SYBR Green down the drain. Pour your used samples into the waste container provided in the middle of the wet bench.}}
+
{{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.}}
 
+
===Testing the instrument===
+
 
+
Once your apparatus is built, use samples of fluorescein (~ 30&mu;M concentration) as a stand-in for SYBR Green + DNA to test the instrument. Fluorescein is cheap, non-toxic and will not bleach as quickly as SYBR Green. '''Measure the difference between a vial with 500 &micro;L of water and one with 500 &micro;L of fluorescein.'''
+
 
+
====Making a rough measurement of the SNR====
+
 
+
Carry out a simple test of the signal to noise ratio (SNR) of the instrument by comparing the difference between signal with a sample present to the noise level with no sample present. This process requires a fresh vial of DNA, not fluorescein, and a vial containing the same amount of water.
+
 
+
# Use <code>DNAMelter.m</code> to record the photodiode signal with the water vial in the heating block.
+
# Start by clearing the data and then wait about 10 s.
+
# Replace the water vial with the DNA vial and record for another 10 s then save the data.
+
#* Be sure that all other conditions of the instrument are exactly the same.
+
# Plot this data in Matlab and and compare the average signal levels for water and DNA.
+
#* The difference between the two is the signal to be used for the signal-to-noise ratio (SNR) calculation.
+
# Now estimate the amplitude of the variations in the signal, at both low frequency and higher frequency, for the part of the data corresponding to the DNA vial.
+
#* The largest of these variations is the noise value.
+
# '''Calculate the SNR using this rough data as signal divided by noise.'''
+
# '''Comment on the noise you observe, its effect on your melting curve measurement and discuss possible causes of the observed noise.'''
+
 
+
===Experiment steps===
+
  
Once the instrument is confirmed to be functioning properly, follow these instructions to generate melting curve data for the 20 bp DNA-SYBR Green solution.
 
  
#Open and run the <code>DNAMelter.m</code> in Matlab and follow the instructions there.
 
# Confirm that block temperature is near room temperature when the Diablotek supply is off.
 
# Apply heat to the block by switching the Diablotek on to increase the block temperature to 95&deg;C, hold it there briefly, then allow the block to cool down by switching off the Diablotek.
 
#* Other approaches may be used. One goal would be to heat the block more slowly.
 
# Now prepare a sample using the stock of "junk" DNA.
 
# Place the vial in the instrument, but keep the LED off until ready to measure the melting curve.
 
# Review the DNAMelter instructions and plan next steps.
 
# Measure melting curves of the junk DNA sample as-desired to understand instrument operation.
 
# Prepare a sample using the fresh 20 bp 100 mM NaCl DNA.
 
# Measure a melting curve of the fresh sample.
 
#* Be sure to save a copy in a local directory.
 
  
===Report questions===
+
{{:DNA Melting Report Requirements for Part 1}}
In addition to any questions in '''bold''' above, answer the following questions in your report.
+
* Show a plot of dsDNA fraction vs. block temperature.
+
* Estimate the melting temperature based on the plot.
+
* Briefly discuss the issues with the data, speculate on underlying causes and suggest corrective actions.
+
  
 
==Lab manual sections==
 
==Lab manual sections==
Line 346: Line 301:
 
==Subset of datasheets==
 
==Subset of datasheets==
 
(Many more can be found online or on the course share)
 
(Many more can be found online or on the course share)
#[http://sine.ni.com/nips/cds/view/p/lang/en/nid/207096 National Instruments data acquisition card user manual]
+
#[http://www.ni.com/pdf/manuals/371931f.pdf National Instruments USB-6212 user manual]
#[http://www.sigmaaldrich.com/etc/medialib/docs/Sigma/Datasheet/8/s9430dat.Par.0001.File.tmp/s9430dat.pdf SYBR Green I datasheet]
+
#[http://www.ni.com/pdf/manuals/370784d.pdf National Instruments USB-6341 user manual]
 
#[http://www.national.com/ds/LF/LF411.pdf Op-amp datasheet]
 
#[http://www.national.com/ds/LF/LF411.pdf Op-amp datasheet]
#[http://www.clare.com/home/pdfs.nsf/www/CPC1709.pdf/$file/CPC1709.pdf Relay datasheet]
 
#[http://www.learn-c.com/tip120.pdf Darlington transistor
 
  
 
{{Template:20.309 bottom}}
 
{{Template:20.309 bottom}}

Latest revision as of 17:49, 19 April 2017

20.309: Biological Instrumentation and Measurement

ImageBar 774.jpg


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 part 1

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 part 1 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 following questions will guide you in selecting these components (note that these questions are very similar to PSet 3).

  1. For the amplifier circuit shown at the above right, in what case can we ignore the effect of the capacitor? At high or low frequencies?
  2. Stage 1 of the circuit (shown below) is a transimpedance amplifier, which converts the current coming from your photodiode into a voltage. Ignoring the effect of the capacitor for now (for the case you described in the above question), write an expression for the gain ($ V_1/i_{in} $) of Stage 1 of your amplifier circuit in terms of the resistor values.
    Stage 1.
  3. Let’s look at Stage 2 of the amplifier circuit. This stage is a voltage amplifier to further amplify the signal from Stage 1. We need this second stage because when the gain of a single stage is very high (~106 Ω), the circuit starts to misbehave. At very high gains, you can't ignore the nonidealities of the op amp as casually as you can at low gains. Thus, to achieve an adequate gain, we need the second stage of amplification. What is the gain ($ V_2/V_1 $) of Stage 2?
    Stage 2.
  4. Now that you know the gain of each stages of your amplifier circuit. Pick resistor values such that 1uA 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. 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.
  5. It is now time to reconsider the capacitor in Stage 1 of the amplifier circuit. What does this capacitor do at high frequencies? What kind of filter is this? Using impedance analysis, find the gain ($ V_1/i_{in} $) of Stage 1 in terms of the capacitor and resistor values.
  6. What value capacitor will you choose to filter out 60 Hz and 120 Hz noise from the lab?

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 ¼-20x5½" 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 part 1 of the lab, 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 in part 2.

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
  • 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?
  • What is the measured voltage of the RTD at room temperature and how does it compare to your predictions above?
  • What is the temperature, based on your measured voltage and how does it compare with the clock on the wall (or some better measure)?
  • 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 in part 2. For part 1, 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 and testing the amplifier. Then put the optical system together.

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.

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. 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

Use the Basic DNA Melter GUI program (located on the lab computer desktop) to collect data from the apparatus.

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 the DNAMelter software 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.

Part 1 measurements

Test your instrument with fluorescein

use ~ 30μ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.

  1. Pipette 500 μl of fluorescein into a glass sample vial.
  2. Pipette 500 μl of DI water into a another sample vial.
  3. 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 uL of 30 uM fluorescein and a vial containing the same amount of water.

  1. Run the Basic DNA Melter GUI.
  2. Place a vial of DI water in your instrument.
  3. Clear the data and wait 10 seconds.
  4. 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, $ \text{SNR}=\frac{\langle V_{fluorescein} \rangle - \langle V_{water} \rangle}{\sigma_{fluorescein} } $, where $ V_{fluorescein} $ is the portion of the data recorded with a fluorescein sample, $ V_{water} $ is the portion of the signal corresponding to the water sample, and $ \sigma_{fluorescein} $ is the standard deviation of $ V_{fluorescein} $.

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.


Biohazard.jpg 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 ../EHS Guidelines/MSDS Repository in the course locker for more information.


  1. Pipet 500 μL of DNA plus dye solution into a glass vial.
  2. Pipet up to 20 μ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.
  3. Make sure that the Diablotek power supply is off and the sample block is near room temperature.
  4. Place the vial in the instrument
    • To reduce bleaching, keep the LED off until you start the measurement.
  5. Open and run the Basic DNA Melter GUI and follow the instructions there.
  6. Confirm that sample block temperature displayed in Basic DNA Melter GUI is near room temperature.
  7. Turn on the Diablotek power supply until the block temperature reaches 95°C.
  8. Attempt to hold the temperature at 95°C for a minute or so by repeatedly switching the Diablotek power supply off and on.
  9. 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 Part 1 report.


  • You can use the same sample for several heating/cooling cycles.
  • 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.

Sample disposal


Global Tree.gif 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.


Report requirements

  • One member of your group should submit a single PDF file to Stellar in advance of the deadline. The filename should consist of the last names of all group members, CamelCased, in alphabetical order, with a .pdf extension. Example: CrickFranklinWatson.pdf.
  • Include answers to questions embedded in the lab manual (e.g. the questions in the RTD section)
  • The file must be less than 20 MB.
  • Include code at the end of the document in an appendix, in the same pdf file, not as as separate upload.
  • Not counting the appendix, your report should be no longer than 10 pages.

Part 1 report outline

  1. Document your circuit design, optical design, and any ways that your instrument differs from the system described in the lab manual.
    • Include values for all of the resistors, capacitors in your circuit.
    • If you have not modified the circuits from their form in the report, you do not need to include the schematic in your report.
    • Draw a block digram of your optical system, including focal lengths of lenses and key distances.
    • Include a picture of your instrument.
  2. Report your signal to noise measurement.
  3. Plot at least one melting curve.
    • The plot should have temperature in °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 DnaFraction 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.
  4. Report the estimated melting temperature and the best-fit values of ΔH°, ΔS°.
  5. Explain the statistical method you will use to identify your group's unknown sample in part 2 of this lab.

Lab manual sections

Lab manual sections

References

  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

</div>