Optical Frameworks - Thermocycler

Thermocycler

2022-11-28 Written by Martin D.C.

Let me show you how I have built my own thermocycler machine for PCR reactions in genetics.



The thermal cycler (also known as a thermocyclerPCR machine or DNA amplifier) is a laboratory apparatus most commonly used to amplify segments of DNA via the polymerase chain reaction (PCR). Thermal cyclers may also be used in laboratories to facilitate other temperature-sensitive reactions, including restriction enzyme digestion or rapid diagnostics. The device has a thermal block with holes where tubes holding the reaction mixtures can be inserted. The cycler then raises and lowers the temperature of the block in discrete, pre-programmed steps.


Final result

thermoFinal
thermoFinal

Four standart PCR vials in a heating chamber. Heating & cooling controlled by two TEC Peltier Elements with separate PID loop with custom software. PCR Reaction Custom controlling software with logging and history.


Intro


One of the most common process in genetics is a PCR, which is shorthand for polymerase chain reaction.

It is a set of chemical reactions that is giving us possibility to selectively duplicate a specific part of DNA that we extract from a tissue (cell) sample.

PCR Reaction

For it to work, it needs a device that controls temperature [C°] in time. [t]


What we want from machine is to heat the sample as follows:

  1. 94 C° for 30s (Denaturation)
  2. 56 C° for 30s (Annealing)
  3. 72 C° for 40s (Extension)

ΔC°/s otherwise called ramp-up & ramp-down time also plays a role. So we will need both heating and cooling.


Commercially available units are usually pretty expensive and look like this:

Thermocycler Unit

Planning


Usual three stages:

  1. find diagrams, plans, pdfs of existing commercial products and copy what you can (i.e. do not reinvent the wheel)
  2. make a breadboard version and measure the performance
  3. make more robust design

These were probably the two most useful diagrams I have found while browsing and are describing the basic structure of device:

thermoFinal
thermoFinal

source1 source2


We can see that a primary method for heating and cooling is a Peltier element (TE or TEC in diagrams).

The most complex part seems to be a “sample block”, which needs to be made out of material with great heating conductivity and also needs to have as minimal mass as possible, because more material = heating and cooling takes longer so our ΔC°/s would also increase.


Construction


First I constructed a diagram of whole device:

PCR Machine Diagram

Device has two identical sections that consist of the controller itself (Arduino in this case) that is connected to H-Bridge driver that forwards power to the TEC Peltier elements. H-Bridge can reverse polarity direction so Peltier can heat and cool the sample block when needed.

Why two identical sections you ask? Well because if we heated the mini vials inserted into the device only from the bottom, there would be lots of condensation due to the temperature gradient inside the vials and from what I have read could interfere with undergoing PCR reaction. Most commercial designs are using heated top lid for this reason, usually heated with resistance wire. (as lid does not have so much mass to be heated up)


I will use TEC Peltier element for both sample block and a lid. Because I dont like the idea of the top lid slacking behind the temperature curve of a sample block.

Let’ put it to test on a breaboard version of a project. Before I make a proper sample block, I used a small chamber with water just to see how Peltier works to make some measurements beforehand.


thermocycler 01 thermocycler 01 thermocycler 01


chamber & lid asembly


Finally, we can move on to mechanical construction and assemble everything together. From the last prototype test, I found out that I needed more power and a bigger cooler! The whole construction was then assembled around those coolers in a tower-like system, making it stable and sturdy.


Some clamps and parts were 3D printed from ABS, which can withstand around 100 C without deforming. Initially, I was hesitant to use ABS as clamps and crimps, but after testing it beyond its temperature limit towards 200 C, I saw there was no reason not to use it. In PCR reactions, there is never a need to go above the boiling point of a sample anyway.


In Fusion360 I had prepared the chamber program for my CNC, this was the hardest part because it was my first time machining metal and it did not went smoothly at all. (you can see that chambers are eliptical, because my X axis got loose)


thermocycler 01 thermocycler 01 thermocycler 01


control parameters & software


Our thermocycler would be useless without reliable control of parameters. One option would be to re-upload the code to Arduino with different parameters every time. I considered this to make my life easier, but then after playing around with controlling Arduino via USB serial PORT, I decided to make my own software to feel better about this project. Proper design needs proper control!


What parameters at min. we need to control each reaction?


  • initial denaturation temperate + duration
  • denaturation temp. + duration
  • annealing temp. + duration
  • extension temp. + duration
  • final extension temp. + duration
  • total cycle count

Making software for controlling thermocycler was straightforward using UE4. I did not need any C++ for this and could use UnrealEngine’s native Blueprint visual scripting language.


The software consists basically only of:


serial read serial print draw graph button to start / stop / connect


PCR Reaction


the two lines you can see are temperature of the chamber vs the lid


And some more pictures from the build:


PCR Reaction PCR Reaction