Difference between revisions of "Spring 11:QRT-PCR"

From Course Wiki
Jump to: navigation, search
(Weekly goals)
(Conclusions / Final Thoughts)
 
(43 intermediate revisions by one user not shown)
Line 1: Line 1:
Looking for [[Spring_11:QRT-PCR_weekly_reports|weekly reports?]]
+
[[File:Pcr-setup.jpg|center|200px]]
 +
<big><center>QRT-PCR: 20.345 Spring 2011</center></big>
  
Or [[QRT-PCR:LabView-versions | LabView QRT-PCR version info?]]
+
== Goal==
  
== To-Do ==
+
The ultimate goal of this project is to create an inexpensive QRT-PCR kit for teaching laboratories at the undergraduate, or even high school, level. At the beginning of term, I had hoped to have a functional QRT-PCR machine by this time. Part way through term, it became clear that this would not happen, so I lowered my sights to traditional PCR alone. Unfortunately, even more setbacks occurred, and not even this early milestone was achieved.
Last updated 15:50, 1 April 2011 (EDT)
+
* get used to version 2.712.
+
* convert RTD code in 2.712 to Thermistor code
+
* talk to Steven about improving optics.
+
** would adding a filter help?
+
** what else could be the problem?
+
* test heat transfer equation with sample vs block thermistor.
+
  
== Weekly goals ==
+
== Progress==
as of 15:50, 1 April 2011 (EDT)
+
* 3/25: Optics finished. Code started.
+
* 4/1: Heated lid finished.
+
* 4/8: No really, heated lid finished. Updated heat transfer function.
+
* 4/15: Successful PCR.
+
* 4/22: Optics are ready for QRT-PCR!
+
* 4/29: Successful QRT-PCR from the side.
+
* 5/6: QRT-PCR from the top. Now which one was better?
+
  
== Heated Lid research notes ==
+
Some progress, however, has been made, which should be of some use to Steven, or future students.
Desired specs:
+
* 1/2 inch diameter circle
+
* can handle up to 3A
+
* can go from room temp (27C) to 92C in less than 5-ish minutes
+
  
 +
=== Optics===
 +
At the start of term, I worked to increase the signal-to-noise ratio of the optics. After constructing and investigating several model systems of a green LED and neutral density filters, I determined that the autofluorescence of the fiber optic was producing a prohibitive amount of noise. The replacement fiber optic that was acquired also exhibited autofluorescence, so it seems that we will not be able to use a fiber optic in our design.
  
OpenPCR first used nichrome wire and silicone tape sandwiched between two plates of aluminum...but it didn't work too well. They said it "smoked and burned out." However, they were designing for 16 samples, not just one (so we won't need to use as much wire). Also, we're not planning on using silicone tape. I still think it's worth trying.
+
=== Electronics===
 +
A bug was discovered in the H-bridge circuit: its dynamic range is now limited to 1-5 V, instead of 0-10 V. Not even a replacement H-bridge solved the problem, so the issue is somewhere beyond the basic electrical connections.
  
Then they used a peltier device with an aluminum plate + thermal pad.
+
=== Labview VI===
 +
Version 2.712 was updated to calculate the temperature properly from the thermistors. When thermal coupling between the block and the lid was a problem, a Tlid gain term was added to the model temperature to account for the extra power coming from the lid. When this part of the code was no longer needed, it was removed.
  
Another option: using a PCB. [http://wiki.makerbot.com/cchb1 Instructions here.]
+
I also determined appropriate error constants for the PWM controller:
 +
* Kp = 0.09
 +
* Ki = 0.0015
 +
* Kd = 0.01
 +
Note: Ki must begin at 0. Switch to 0.0015 after the block has equilibrated to almost 95C.
  
 +
[[File:Pcr_cycle.png|frame|none|A PCR cycle using the constants mentioned above. The green line is the temperature of the sample - notice how it stays well within typical PCR temperature ranges.]]
  
'''Option 1: Nichrome wire'''
+
=== Heated Lid===
 +
[[File:Heated_lid.png|right|300px]]
 +
A heated lid, to reduce condensation and rescue the efficacy of the PCR machine, was designed, constructed, and implemented.
  
Researching nichrome wire... looks like NiChrome 80 is the best.
+
The lid design (see right) consists of 29-gauge resistance wire, thermal epoxy, a copper wire, and a thermistor to measure the temperature. All of these are encased by a half-inch lens tube. 1.03 A of current through the resistance wire generates about 100C of heat, which is transferred to the tube lid via the thermal epoxy and the copper washer.
Here is the [http://www.resistancewire.com/Html/Technical/AlloyDataTables/PDFDocs/ADT2001.12.17.N8.ENG.pdf datasheet].
+
Now for calculations:
+
  I = 3A
+
  V = 15V
+
  n = length of wire (feet)
+
  rpf = resistance per foot (ohms/ft)
+
 
+
  I = V/R = V/(n*rpf)
+
  
  rpf and n are inversely proportional - and cost goes up with rpf. So we want to minimize that.
+
29-gauge wire was chosen to minimize the current needed to heat the wire, while still being thick enough to work with. The thermal epoxy ensures that the resistance wire does not make contact with itself, which could cause dangerously high resistance, and therefore heat, levels.
  reasonable values seem to be:
+
  rpf = 6.46
+
  n = 0.77 feet
+
  which means a 30 gauge wire, d = 0.0100 inches.
+
  
Okay, this turns out to be too long. If we're looking to use only one coil of wire, using nichrome is not feasible.
 
  
 +
== What Worked, or Not==
  
'''Option 2: Flexible heaters'''
+
As could be inferred from the above, not everything I tried this semester worked as I expected. First, the fiber optic prevented progress in the optics arena, which was unforeseen and unfortunate.
  
Mica, polyimide, silicon
+
Then, the initial lid heater design failed. To ensure contact between the lid and its heater, pressure must be applied to the lid heater. To provide this pressure, my first design involved screwing the lid heater onto the heating block. Unfortunately, this created a great deal of thermal coupling – so much so, that to appropriately model the sample temperature, I had to introduce into the Labview VI a gain term proportional to the lid temperature. Since this was not ideal, the design was changed so that the heater balances on top of the PCR tube (which is why the metal supports in the top image are necessary). The required pressure was provided by a weight on top of the lid. This was quite effective in decoupling the lid and the sample block.
These are pretty expensive. Is it possible to just attach leads in random places to these foils, I wonder? That would make it cheaper. But as it is, they're more expensive than a TEC.
+
  
It may also turn out to be cheap to order bulk custom-made flexible heaters. I will call and get a quote.  
+
A third roadblock occurred when I snapped one of the resistance wire leads coming out of the lid heater, forcing me to construct a second lid.
  
 +
In general, however, using resistance wire and thermal epoxy to heat the lid worked well - temperatures over 100C were easily achieved.
  
 +
The Labview VI v2.712 worked well for thermal cycling, but the error constants were difficult to adjust. Please see the on-paper lab notebook for details about what constants worked when.
  
'''Option 3: PCB'''
+
== Results ==
 +
{| class="wikitable"
 +
|-
 +
! Old PCR machine
 +
! Current version
 +
|-
 +
|[[File:First_pcr_run.png|600px]]
 +
|[[File:Pcr-check-1.jpg|600px]]
 +
|}
  
Would it be fast enough? who knows.
+
We definitely see less smearing with newer version. There is of course much work still to do.
  
 +
== Future Directions==
  
Windell Oskay says:
+
Important!
''"If you have such a specific spec that's not in the off the shelf units, that's a second argument (besides price) for making them yourself.
+
* Implement Kelly's new PWM controller, once it's ready.
 +
* Redesign the optical setup so we don't need a fiber optic. This may involve drilling new holes in the heating block, or changing its configuration.
 +
* Fine-tune the model of the sample temperature, so that we can successfully control the block temperature without needing a sample thermistor.
  
I don't know about your mechanical design, but you may be more confident in making a heater out of a traditional circuit board-- it can easily handle 110 C, will be rigid, can be custom shaped with mounting holes, and you can dip it in a biocompatible coating if necessary. Final cost will be a few dollars (or lower), per board, exactly meeting your specs in terms of size, shape, voltage input, and power dissipation.  
+
Less Important
 +
* Add a control circuit for the lid heater.
 +
* Find a more elegant way to apply pressure to the lid heater.
 +
* Make a another lid heater. One with a ''flat'' copper washer and a ''centered'' hole.
  
So you need 12 V input, and maybe 4-6 ohm resistance to get 20-30 W. Let's call it 5 ohms, and you'll then need 12/5 = 2.4 A available for the heater. 1 oz copper has resistance of *roughly* 0.05 ohms/inch in a 10 mil trace, so you need about 100 inches of wire. Suppose that you use 10 mil wires with 10 mil spacing, with a simple single-sided back-and-forth pattern. Then one wire plus spacing is 20 mil, and you can fit 50 wires per linear inch. If you have a 1.5" square, then in each linear inch, you get 1.5*50 wires = 75 wires per inch, and in 1.5 inches of that you get 1.5*75 wires = about 112 inches of wire total-- right on target."''
+
== Conclusions / Final Thoughts ==
  
  resistance per inch for copper ~ 0.05
+
20.345 was a lesson in practical engineering - a long, hard, but necessary one. How do you pick up a project in the middle of its execution? How do you identify appropriate goals for your project? What about the concrete steps to reach those goals? Before this class, I was not even aware of how unprepared I was to answer these questions. I had worked on countless group projects before, but I no idea how different the challenges of an individual project could be. I wasn't checking tasks off in a lab manual with two of my peers to keep me accountable - I ''was'' the lab manual, and I was the only person keeping myself accountable.
  I = 3A
+
  V = 15V
+
  n = length of wire (inches)
+
 
+
  I = V/R = V/(n*rpf)
+
  n = V/(I*rpi) = 15/(3*0.05) = 100 inches of wire
+
  
That's a lot to fit on a 0.5" diameter circle. Batchpcb.org has a minimum trace width of 8 mils with 8 mils spacing - too big to fit 100 inches. I wonder if other trace materials, with higher resistances per inch, could be used.
+
It was terrifying at first to come into lab, and have to create my own milestones and check-offs. In this way, 20.345 can be compared to a roller coaster. At the top of the roller coaster, I am quite petrified. Whose idea was this? What am I doing here? People die doing this!! But, it always ends up being pretty awesome. Yes, being in control was alarming, and I made a lot of mistakes, but it was also very rewarding, even though I didn't accomplish too much.
  
== Progress Notes ==
+
Some of my lack of success can be attributed to mere ignorance and poor fine motor skills, but I blame most of it on not checking in with you guys often enough. I didn't go over my timeline with you; I didn't come find you when I wasn't sure what to do, or what was going on. It's a lesson I've ostensibly learned before, but I bet this time it will stick: hiding in a hole is not a good way to become less confused. Unless you're the Buddha, or something.
  
==== 4/4/11 ====
+
If I were to take another individually-driven project class, I would be at a distinct advantage, because now I know what pitfalls to expect, both from the project and from myself. So much of this knowledge can only be obtained through experience, which is why I'm especially glad I took this class!
Posted 15:00, 4 April 2011 (EDT)
+
  
I now know the reason for the background signal. The fiber optic cable is auto-fluorescing. BOO. It works okay for now (there is a small, but extant difference between H20 and SYBR+dsDNA), but in order to do any serious testing, I'll need to change the design. Or get a new fiber optic
+
On the concrete side, I learned a ton about LabView. What was before a frightening jumble of colored lines and inscrutable icons is now a language I can play around with - as long as I have the documentation close at hand! It was also very edifying to see how a circuit model of heat flow can actually be extremely useful, and what sort of constants affect that model. Because many parts of the thermal cycler are just extended versions of the DNA Melting Lab, I really felt that I was able to take my knowledge from 309 and build upon it.
  
It might, in fact, be time to get rid of the fiber optic all together. But I will also look around for fiber optics that really, really do not fluoresce.
+
== Links==
  
 
+
[[QRT-PCR | QRT-PCR project overview page]]. <br />
==== 4/1/11 ====
+
<!-- [[QRT-PCR:Get Started | Quickstart guide]]. <br /> -->
Posted 15:50, 1 April 2011 (EDT)
+
[[Spring_11:QRT-PCR:_Progress_Notes | Detailed progress notes]]. <br />
 
+
[[Spring 11:QRT-PCR weekly reports | Weekly reports]]. <br />
Officially ordered 29-gauge wire.
+
[[QRT-PCR:LabView-versions ‎| Notes on QRT-PCR Labview VI versions]]. <br />
 
+
[[QRT-PCR:Heated Lid | Research notes on the heated lid]]. <br />
The optics *do* detect a difference between water and SYBR dsDNA, but it's a fairly small difference. I think this small difference is due to the HUGE amount of background signal at the carrier frequency. Why is this happening? My current hypothesis is that the dichroic mirror is directly reflecting some light from the blue LED into the photodiode... but with the filters in place, this shouldn't be happening!  
+
 
+
Question: how good are the filters we're using? Could they still be letting some other light through? (maybe we need another blue filter in front of the blue LED).  
+
 
+
Steven went over with me some of the different existing versions of the LabView code. I will be working with versions 2.700 and later. Not all of them work. I will take notes on this; take a look at [[QRT-PCR:LabView-versions]].
+
 
+
==== 3/28/11 ====
+
Turns out my calculations were all messed up before! With corrected calculations, and the data from [www.heatersplus.com], I decided on 29-gauge resistance wire for our heated lid.
+
 
+
==== 3/22/11 ====
+
Getting the temperature calculation right earned me a level-up... meaning I got to graduate to the Current Version of the Code. Got a brief intro to it. It's pretty complicated.
+
 
+
==== 3/20/11 ====
+
Based on model system (blue LED + ND filter), I don't think gain is high enough. Increased gain of transimpedance amp from 2.5e4 to 2.5e5.
+
Well, it didn't help that much. So it's back the way it was. In any case, we get a significant signal (~0.25 units amplitude) with the model system. Huzzah!
+
 
+
After much wrestling with simple math, the temperature sensing is largely working! yay
+
 
+
==== 3/18/11 ====
+
Optical setup appears to be working.
+
 
+
==== 3/16/11 ====
+
Added dichroic mirror.
+
 
+
Question: how can I verify the optical setup? it seems to respond to driving signal, not fluorescence.
+
 
+
TODO: put away 25mm lens
+

Latest revision as of 19:36, 19 May 2011

Pcr-setup.jpg
QRT-PCR: 20.345 Spring 2011

Goal

The ultimate goal of this project is to create an inexpensive QRT-PCR kit for teaching laboratories at the undergraduate, or even high school, level. At the beginning of term, I had hoped to have a functional QRT-PCR machine by this time. Part way through term, it became clear that this would not happen, so I lowered my sights to traditional PCR alone. Unfortunately, even more setbacks occurred, and not even this early milestone was achieved.

Progress

Some progress, however, has been made, which should be of some use to Steven, or future students.

Optics

At the start of term, I worked to increase the signal-to-noise ratio of the optics. After constructing and investigating several model systems of a green LED and neutral density filters, I determined that the autofluorescence of the fiber optic was producing a prohibitive amount of noise. The replacement fiber optic that was acquired also exhibited autofluorescence, so it seems that we will not be able to use a fiber optic in our design.

Electronics

A bug was discovered in the H-bridge circuit: its dynamic range is now limited to 1-5 V, instead of 0-10 V. Not even a replacement H-bridge solved the problem, so the issue is somewhere beyond the basic electrical connections.

Labview VI

Version 2.712 was updated to calculate the temperature properly from the thermistors. When thermal coupling between the block and the lid was a problem, a Tlid gain term was added to the model temperature to account for the extra power coming from the lid. When this part of the code was no longer needed, it was removed.

I also determined appropriate error constants for the PWM controller:

  • Kp = 0.09
  • Ki = 0.0015
  • Kd = 0.01

Note: Ki must begin at 0. Switch to 0.0015 after the block has equilibrated to almost 95C.

A PCR cycle using the constants mentioned above. The green line is the temperature of the sample - notice how it stays well within typical PCR temperature ranges.

Heated Lid

Heated lid.png

A heated lid, to reduce condensation and rescue the efficacy of the PCR machine, was designed, constructed, and implemented.

The lid design (see right) consists of 29-gauge resistance wire, thermal epoxy, a copper wire, and a thermistor to measure the temperature. All of these are encased by a half-inch lens tube. 1.03 A of current through the resistance wire generates about 100C of heat, which is transferred to the tube lid via the thermal epoxy and the copper washer.

29-gauge wire was chosen to minimize the current needed to heat the wire, while still being thick enough to work with. The thermal epoxy ensures that the resistance wire does not make contact with itself, which could cause dangerously high resistance, and therefore heat, levels.


What Worked, or Not

As could be inferred from the above, not everything I tried this semester worked as I expected. First, the fiber optic prevented progress in the optics arena, which was unforeseen and unfortunate.

Then, the initial lid heater design failed. To ensure contact between the lid and its heater, pressure must be applied to the lid heater. To provide this pressure, my first design involved screwing the lid heater onto the heating block. Unfortunately, this created a great deal of thermal coupling – so much so, that to appropriately model the sample temperature, I had to introduce into the Labview VI a gain term proportional to the lid temperature. Since this was not ideal, the design was changed so that the heater balances on top of the PCR tube (which is why the metal supports in the top image are necessary). The required pressure was provided by a weight on top of the lid. This was quite effective in decoupling the lid and the sample block.

A third roadblock occurred when I snapped one of the resistance wire leads coming out of the lid heater, forcing me to construct a second lid.

In general, however, using resistance wire and thermal epoxy to heat the lid worked well - temperatures over 100C were easily achieved.

The Labview VI v2.712 worked well for thermal cycling, but the error constants were difficult to adjust. Please see the on-paper lab notebook for details about what constants worked when.

Results

Old PCR machine Current version
First pcr run.png Pcr-check-1.jpg

We definitely see less smearing with newer version. There is of course much work still to do.

Future Directions

Important!

  • Implement Kelly's new PWM controller, once it's ready.
  • Redesign the optical setup so we don't need a fiber optic. This may involve drilling new holes in the heating block, or changing its configuration.
  • Fine-tune the model of the sample temperature, so that we can successfully control the block temperature without needing a sample thermistor.

Less Important

  • Add a control circuit for the lid heater.
  • Find a more elegant way to apply pressure to the lid heater.
  • Make a another lid heater. One with a flat copper washer and a centered hole.

Conclusions / Final Thoughts

20.345 was a lesson in practical engineering - a long, hard, but necessary one. How do you pick up a project in the middle of its execution? How do you identify appropriate goals for your project? What about the concrete steps to reach those goals? Before this class, I was not even aware of how unprepared I was to answer these questions. I had worked on countless group projects before, but I no idea how different the challenges of an individual project could be. I wasn't checking tasks off in a lab manual with two of my peers to keep me accountable - I was the lab manual, and I was the only person keeping myself accountable.

It was terrifying at first to come into lab, and have to create my own milestones and check-offs. In this way, 20.345 can be compared to a roller coaster. At the top of the roller coaster, I am quite petrified. Whose idea was this? What am I doing here? People die doing this!! But, it always ends up being pretty awesome. Yes, being in control was alarming, and I made a lot of mistakes, but it was also very rewarding, even though I didn't accomplish too much.

Some of my lack of success can be attributed to mere ignorance and poor fine motor skills, but I blame most of it on not checking in with you guys often enough. I didn't go over my timeline with you; I didn't come find you when I wasn't sure what to do, or what was going on. It's a lesson I've ostensibly learned before, but I bet this time it will stick: hiding in a hole is not a good way to become less confused. Unless you're the Buddha, or something.

If I were to take another individually-driven project class, I would be at a distinct advantage, because now I know what pitfalls to expect, both from the project and from myself. So much of this knowledge can only be obtained through experience, which is why I'm especially glad I took this class!

On the concrete side, I learned a ton about LabView. What was before a frightening jumble of colored lines and inscrutable icons is now a language I can play around with - as long as I have the documentation close at hand! It was also very edifying to see how a circuit model of heat flow can actually be extremely useful, and what sort of constants affect that model. Because many parts of the thermal cycler are just extended versions of the DNA Melting Lab, I really felt that I was able to take my knowledge from 309 and build upon it.

Links

QRT-PCR project overview page.
Detailed progress notes.
Weekly reports.
Notes on QRT-PCR Labview VI versions.
Research notes on the heated lid.