PCR testing became a household word during the Covid-19 epidemic but Brian built an instrument 30 years ago for a university Chemistry department on a budget. He updates the design here with an ESP32, H-Bridge motor controller, and an LCD panel
During the extended Covid-19 epidemic, the average person, whether they had any interest in biology or not, became aware of the term PCR testing. Probably all that most people knew about PCR testing, beyond the name itself, was that it had something to do with DNA testing and was more involved than the rapid test kits that were being distributed.
While I have no formal biological education, beyond what I learned in high school, I was working in the Chemistry department of Dalhousie University three decades ago when I was approached by Biology faculty members, to design and build an instrument that could replicate commercial units that performed DNA amplification. Such commercial units were relatively new at that time and were expensive. I was able to accomplish this and sold quite a number of such units to the Biology department back then. The design that I used back then was like a certain commercially available unit of that era, but technology has moved on and modern PCR units are much different now. In this column I’ll describe an instrument that I built recently, which more closely resembles current technology.
To start, the term PCR is an acronym for Polymerase Chain Reaction. Readers that are interested in more details can Google that term and find out much more about how it works. For my purposes, all that I needed to know is that very small samples of a substance can have their DNA content amplified exponentially, enough to make measurement practical, by subjecting them to a thermal cycling profile. The samples themselves are tiny and are placed in vials like that shown in Figure 1. These vials hold 0.2 ml and are about 7 mm in diameter and about 20 mm long. Due to their small size, many such samples can be PCR-cycled at one time.

This is a typical sample vial used for PCR samples. It holds 0.2 ml and is 7 mm in diameter and 20 mm long.
The sample must be exposed to three temperatures in a repeating cycle. At each temperature the sample must be held at that temperature for a specific amount of time. The exact temperature of each of the three phases varies somewhat, depending upon the specific DNA being amplified, as does the amount of hold time at each of these temperatures. The amount of the initial DNA sample available, as well as the desired amount of DNA needed at the end of the run, will determine how many cycles are required.
Figure 2 is a graph showing a typical PCR cycle. From room temperature, the sample is first heated up to the denaturation temperature which is in the mid to high ninety degrees C. The PCR controller holds this temperature constant for a user-selected time in the 1 to 10-minute range. The temperature must then drop to a lower annealing temperature (45°C-60°C) and held there for a user-selected time of up to about 1 minute. Then, the temperature must be raised to an intermediate value called the extension temperature (~72°C) and held there for a user-selected time, generally less than 1 minute. After this point the cycle repeats- except that the hold time at the denaturation temperature, while still user-selected, is now much shorter than the initial denaturation hold time.

This is a graph depicting one cycle of a typical PCR run. Note that the initial Denaturation hold time is longer than in subsequent cycles.
Thirty years ago, the PCR cycling instrument that the biology faculty wanted me to replicate was a commercial unit that surprisingly used a modified convection toaster oven to provide the temperature profiles that I’ve described above. To achieve the required temperature profile, an industrial temperature controller with “Ramp and Soak” programming capability was mounted on the side of the convection toaster oven. While this industrial controller was easily able to handle the PCR temperature profile, it was meant to be used by industrial instrumentation technologists and setting it up was difficult for the biologists to get used to. Aside from the cost savings derived from using an inexpensive consumer product, this commercial design allowed for a large number of samples to be cycled at once, since it had a large enough interior to hold one or two “microplates” or holders for 96 sample vials.
My version of this commercial instrument used a low-cost, non-convection Proctor-Silex toaster oven to which I added circulation and exhaust fans and replaced the industrial temperature controller with my own custom-designed controller. My controller was much more user-friendly for biologists since it used their terminology and was easier to set up.
Modern PCR instruments take a different approach than this convection- heated oven, augmented with an exhaust fan for cooling down to the annealing temperature. Instead, they incorporate a metal block, large enough to hold the desired number of samples per run. Both heating and cooling are performed using a Peltier cell, also referred to as a Thermoelectric Cooler. Such TECs were not commonly available 30 years ago and when they did become commercially viable, they were designed for cooling purposes only. It was much later that TECs were specifically designed for repeated heating/cooling cycles
The DIY unit that I designed/built uses a TEC that is specifically designed for heating/cooling and can operate at PCR temperatures. I incorporate a cylindrical aluminum block to hold the PCR samples. The temperature controller is implemented using an ESP32 MCU, a 24-bit ADC for block temperature measurement, and a PWM-controlled full H-Bridge motor controller board to control the power and polarity of the voltage feeding the TEC cell.
The PCR Block Assembly
My major design criterion for the temperature cycling block assembly was low cost. I wanted to use some parts that would be readily available from desktop/laptop computers that had outlived their usefulness. The heating and cooling of the PCR sample block would be handled by a 44 x 40 mm Thermoelectric cell (TEC), also known as a Peltier cell. This size was chosen as it is a common TEC size and is the same size as the thermal pad on many of the CPUs used in desktop computers over the last 10 years. This allowed me to make use of a CPU cooling heatsink/fan assembly found in numerous older computers that had been left with me to dispose of, while I was still working at Dalhousie University.
Figure 3 is a photo of the actual heatsink assembly that I used for this project. The cylindrical aluminum block at the top is the sample holder that I machined out of 2.5” aluminum rod and is 0.7” thick. The sample vial wells had not yet been milled out at this early stage. Just below it is the 44 x 40 mm Thermoelectric cell. Only the white corners of which are visible. Everything else is the CPU heatsink assembly. It consists of a 40 x 40 mm copper block which is thermally bonded to 4 copper heat pipes. These heat pipes are also embedded in the finned aluminum heatsink. Looking at the left side of the assembly, you can see that these copper heat pipes are crimp sealed. Because this was an assembly taken from some unknown desktop PC, in the past, I didn’t have any technical information on it. However, I believe that it is a vapor-phase cooler. That is, there is a liquid in the copper heat pipes that is vaporized when the square copper heatsink block heats up, and the finned aluminum heatsink assembly cools off that vapor. In a PC, this heatsink would be mounted with the copper block pointing down and with the aluminum heatsink/fan above it. This would be the correct orientation for this vapor-phase cooling to work efficiently.

This shows the complete thermal cycling assembly, which is predominantly made up of a surplus desktop PC’s CPU heatsink/fan assembly.
In my application, the assembly is mounted “upside-down”, so to speak, so the vapor-phase operation in the copper heat pipes doesn’t really work as designed. However, the 40 x 40 copper block is also bonded to the finned aluminum heatsink, and this provides enough cooling for the TEC module. The main reasons for this are:
It is only during the cooling phase of the PCR cycle that the TEC module needs its “hot side” to be actively cooled. This is only about half of the time depending upon the actual PRC cycle profile being run. There is also a 4” fan cooling off the heatsink during this phase of the cycle.
During the heating phases of the PCR cycle, the side of the TEC cell attached to the heatsink is now extracting heat from the heatsink and transferring it to the sample block. This cools the heatsink down for about half of the time that the run is being performed.
The maximum power applied to the TEC during sample heating is only about 70 watts, and that is only for short periods of time when the cycle is ramping up or holding the elevated temperatures defined in the PCR cycle profile.
The CPU heatsink assembly contains 4 mounting arms which would normally hold it in place on the motherboard, using screws. In this application, I use two thin plastic extension pieces to connect these 4 mounting holes (on 2.75” centers) to the 2.5” sample block. The low thermal conductivity of these extension pieces, as well as using nylon screws, ensures that the sample block is thermally isolated from the heatsink itself.
For thermally bonding the TEC module to the heatsink, I used a 40 x 40 x 1 mm thermal pad (Digi-key PN 1168-TG-A3500-40-40-1.0-ND). Due to the spacing imposed by the plastic extension pieces used to mount the sample block, there wasn’t enough space to use a similar thermal pad between the TEC module and the sample block, so I used a thin layer of heatsink compound instead.
The fan used on this CPU heatsink assembly used 12 volts DC which is the standard for such assemblies and matched the 12 volts that I used to power the TEC cell. During the heating phases of the PCR cycle, the TEC cell is drawing heat from the heatsink. Therefore, it is not necessary to run the fan during these phases. During the cooling phases of the cycle, the fan runs at full speed to remove heat from the heatsink. During the hold phases of the PCR cycle, the TEC cell will be alternating between heating and cooling to maintain a steady setpoint. The fan is not needed here either, since the TEC cell is transferring very little heat in either direction but just enough to keep the block at a steady temperature.
The temperature of the aluminum sample block is monitored using a 1000 Ω platinum resistance sensor (also known as an RTD). These are highly accurate and quite linear temperature sensors. The RTD is embedded in the block itself and is thermally bonded to the block by filling the hole, used to embed it, with heatsink compound.
The heatsink temperature is also monitored, just in case something goes wrong, like the fan failing. For this I use a 100k NTC thermistor and measure its resistance using the ESP32’s onboard ADC.
While taking the photo for Figure 3, I removed the 4” square rigid foam block that I fashioned, which surrounds the sample block and insulates it from the ambient temperature. Without this insulation, more power would have been required to heat the samples up to the mid ninety degrees C denaturation temperature.
The Power Supply Unit
In addition to using a surplus CPU heat-sink assembly for the temperature cycling unit, I originally thought that a great power supply for this instrument could be provided by a surplus “power brick” from a laptop computer. There are many of these sitting around unused, and I had half a dozen of them myself. Generally, they are 19 or 20-volt units and can deliver 4 to 6 amps current. The 60-100 watts that these units provide was deemed to be enough to power this unit, when I initially envisioned the project.
TEC cells that are designed for temperature cycling purposes, as opposed to the ones that are used strictly for cooling purposes, are more specialized and expensive. I briefly toyed with using the common 12-volt TEC modules that are used in portable coolers (think tail-gate parties!) and are available at low cost on Amazon, etc. However, I expected that they wouldn’t last under repeated heating/cooling cycles, so I ruled them out.
I settled on the European Thermodynamics APHC-12708-S module which is 40 x 44 x 3.5 mm in size and designed for cycling applications. It has a maximum voltage rating of 14.7 volts, and at that voltage it will draw 7.4 amps. Unfortunately, this would not match the 19-volt laptop power supply bricks directly.
However, there are plenty of small, inexpensive switching regulator modules available that would convert a 19-volt/5A laptop power supply brick down to 12-volts at 6 amps or more. This would match the APHC-18708-S nicely, and the 72 watts available was more than needed, experimentally.
However, while I was checking out these switching regulator modules on Amazon, I discovered that they also sold 12 volt/10A power bricks for less than $20, which just a bit more than the cost of the switching module that would be needed to make use of my surplus laptop power bricks. So, I purchased the 12V/10A power brick, and therefore my pile of laptop power bricks has not gotten any smaller!
The TEC Module Power Controller
Power to the TEC module had to be:
- Reversable in polarity to handle heating and cooling phases.
- Adjustable in power to perform the PI algorithm properly. This is most efficiently done using PWM.
Basically, this calls for a full H-Bridge driver circuit. It would have to handle 12 volts or more and carry at least 6 Amps. It should use MOSFETs with a low RDSon so that very little of the 12-volts available from the power brick would be lost in the H-Bridge itself.
An ideal H-Bridge module for this job is the Cytron MD10C R3, shown in Figure 4. This small (3” x 1.8”) module can handle 10A at voltages up to 30 volts. It has two input signals: PWM and DIR, both of which are 3.3 and 5-V logic compatible. It requires only one power source. In this case the 12 Volts is used to power the TEC module.
The Controller Circuitry
I had initially decided that this was to be a low-cost, free-standing unit: i.e. no computer would be needed to operate it. Performing a run containing a small number of temperature ramp and hold periods (known in the instrumentation industry as a “ramp and soak” controller) would not require a very sophisticated MCU. However, a user interface is needed to enter all the parameters for a given PCR run, and I wanted to include provisions to define up to 10 such PCR profiles.
Initially I envisioned using a cellphone for the user interface. Either Bluetooth or Wi-Fi could be used to communicate between the phone and the instrument. The graphic user interface (GUI) needed on the cellphone could be implemented by hosting a webserver in the PCR unit itself and using the phone’s web-browser. Alternatively, I could use the GUI-O Android application (See my Circuit Cellar column “GUI-O: a Virtual Front Panel for ESP32 projects” in issue 389).
In the end, I decided that the dozen or so parameters needed to define a PCR profile could just as easily be entered using an inexpensive 40 char. x 4-line character LCD, and two rotary encoders containing push switches. I have many ESP32 MCU modules on hand, and they turned out to be cost-effective for this project even though I didn’t use either their Wi-Fi or Bluetooth capabilities.
Please refer to Figure 5 for the controller circuit diagram. I chose a DF Robot DFR0654 (FireBeetle2 ESP32-E) module, which I had on-hand, for the MCU. It contains an Espressif ESP32-WROOM32E module and a few other nice features like a LiPo charger and a graphic display interface socket, both of which were not needed for this project.
This module defines its GPIO lines using the Arduino convention: A0-A4 for the analog lines and D2-D13 for the digital lines. When selecting the target board in the Arduino IDE, it is important to choose the FireBeetle2 ESP32-E option, as I refer to the GPIO lines used in the project, using this Arduino convention, in my software. Also, note that the DFR0654 contains a CH340 serial-USB bridge chip, and if you have not yet used a board containing this USB bridge chip, you will have to install a Windows driver for it.
Five-volt power for the DFR0654 MCU module is supplied by an OKI-78SR5/1.5-W36E switching regulator in a TO-220 package. The 5-Volt supply also powers the LCD display and the NAU7802 ADC. Since this regulator is powered from the 12-V power supply, I chose a switching regulator to minimize power dissipation. The DFR0654 MCU module contains its own 3.3-V regulator for powering its ESP32 MCU and that regulated 3.3-V is used for some external circuitry in this project as well.
The PCR sample block temperature is measured using a 1000Ω 0.15% accuracy platinum resistance sensor (Yageo 32207582). It is configured in a bridge circuit comprising R1, R2 and R4. It is measured differentially by the VIN1N and VIN1P terminals of the NAU7802 ADC. The sensor signal has some noise filtering applied using capacitor C4.
The NAU7802 is a 24-bit sigma-delta ADC that was designed primarily for strain-gauge weighing devices. I like it because it’s available in a DIP16 package and is very inexpensive. Besides its high-resolution ADC, it contains a programmable power supply used as the excitation source for the measuring bridge circuit. In this project, I set this power source to 3.3-V, and it’s sent to the NAU7802’s AVDD pin. As well as powering the measuring bridge circuit, it also acts as the ADC’s Vref (REFP pin). This results in a ratiometric measurement since the bridge excitation voltage is equal to Vref and therefore gets cancelled out in the RTD’s resistance equation. The NAU7802 contains a PGA which is set for a gain of 2 in this project. The ADC can be configured for sample rates between 10 and 320 samples/second: I use the 320 samples/sec. rate in this project.
The NAU7802 interfaces with the MCU using the I2C bus. Note that I am not showing any discrete I2C pull-up resistors: the NAU7802 contains these pull-ups internally, although one has to select the NAU7802’s “strong-pullup” option when operating it at the 400 KHz I2C bus rate that I use.
The NAU7802 has two differential input channels which are selected using an internal multiplexer. I also measure the heatsink temperature using a Vishay BC2302 100k thermistor. However, I measure its resistance using the ESP32’s 12-bit ADC. It would not be possible to achieve the desired sampling rate for the PCR block temperature RTD if I were to try to multiplex the NAU7802’s ADC for both readings.
The ESP32 has a function block called LEDC which is designed to provide up to 8 PWM signals for controlling the intensity of LEDs. I use one LEDC channel to control the power to the TEC module, which heats/cools the PCR sample block. The LEDC channel is configured to produce a 60 Hz PWM signal with a resolution of 15 bits (0-32767).
I was concerned with the possibility of burning out the TEC unit if, during software development, my program went astray while it was performing a run. Therefore, I added a circuit comprising comparator IC1A and some associated passive components. This monitors the voltage across the PCR block RTD and if this voltage exceeds 2.0 volts, it removes power to transistor T2’s collector. T2 is fed by the ESP32 LEDC PWM signal, so removal of its collector voltage results in no power being supplied to the TEC module. The 2.0-volt value corresponds to a block temperature of 100°C. The second section of the LM2903 dual comparator, IC1B, performs the same over-temperature monitoring for the heatsink. If the heatsink temperature exceeds 50°C, it also shuts off the PWM signal. In this case, the IC1B comparator’s output must be inverted by transistor T3.
Because the LEDC PWM signal is inverted by T2, the 15-bit PWM values that are calculated by the program must also be inverted (by subtracting them from 32767). The PWM signal, as well as the heating/cooling mode signal are fed to the MD10C full H-Bridge power controller module, mentioned earlier.
Power to the 12-volt heatsink cooling fan is switched on and off by a 2N3904 (T1) connected to ESP32 GPIO line D2.
The user interface is made up of two rotary encoders containing integral push switches, one of which selects a specific menu item and the other a parameter value. These are connected to D5, D6, A1 (Menu encoder) and D12, D13, A2 (Value encoder).
— ADVERTISMENT—
—Advertise Here—
Figure 6 shows the 12-volt power supply and the LCD display module. The 40-char. x 4 Line LCD display comes with a PCF8574 I2C to parallel port I/O chip. This allows the display to be interfaced using I2C, which is important as there are not enough spare ESP32 GPIO lines left to interface it using the standard 4-bit parallel mode.

Not much to see here apart from the power supply unit and LCD display, which wouldn’t fit on the main schematic.
These LCD I2C backpacks are powered by 5-V and the I2C lines are pulled up to 5-V with resistors on that backpack board. However, the ESP32’s I2C lines are 3.3-V logic levels. Figure 7 shows the two resistors that must be removed to allow for 3.3-V logic levels.

The LCD display uses an I2C interface backpack. The two designated pull-up resistors must be removed, as they connect to the 5-volt power bus.
Figure 8 is a photo of the MCU board, H-Bridge Driver and LCD display during development/testing.

This is a photo of the controller board, H-Bridge module and the LCD display as they were connected during development.
Software Description
The software for the project was written using the Arduino IDE, version 1.8.19. The Arduino ESP32 board support package must be installed using the “Manage Boards” option in the board selection menu. Then the “FireBeetle 2 ESP32-E” board must be selected as the target board. The library needed to operate the NAU7802 is “ SparkFun_Qwiic_Scale_NAU7802_Arduino_Library.h” and is included with my source code.
The library needed to operate the I2C-based LCD display is the Arduino “LiquidCrystal_PCF8574.h” library, which can easily be obtained using Arduino’s Library Manager function.
The user interface allows the operator to enter the desired Program Number as well as the 12 parameters needed to configure a PCR run defined by that program number. These 12 parameters are shown in Table 1. The first nine entries define the temperature/time profile for a PCR run and the tenth entry is the number of cycles that are to be performed.

These are the 12 PCR run parameters that can be defined using the rotary encoders. Additionally, there is a menu item which selects which of the ten Run profiles is being configured.
The Proportional Gain entry is the “P” term associated with the PI temperature control algorithm. Simply put, when it is set to 100 percent, it applies full heating (or cooling) power whenever the PCR sample is more than 1 degree different from the desired setpoint (i.e. 1 degree Deviation), at that moment in time.
The Integral value entry is the “I” term in the PI control algorithm. The integral term is used to supplement the proportional term. Simply put, a controller based strictly on proportional control may never reach the desired setpoint because as the deviation from that setpoint approaches zero, the applied heating (cooling) power will also go to zero. Therefore, it can’t reach setpoint with no power being applied. The Integral term allows additional power to be applied to the heater (or cooler) as a function of how long the deviation from the desired setpoint exists, as well as how great that deviation is.
Another possibility is that a proportional-only control algorithm may actually overshoot the desired setpoint due to thermal inertia. That is, as the sample temperature approaches the setpoint and the heater has its power reduced toward zero, the thermal mass of the PCR block will continue to rise because the heater (in this case the TEC module) will still be holding some heat, even after being powered off. It will take a finite amount of time for this heat to transfer into the interior of the PCR sample block, where the RTD sensor is located. Temperature overshoots, due to this thermal inertia, are particularly unwanted when heating up to the denaturation temperature, as the ~95-degree denaturation temperature is close to the boiling point of water.
To mitigate overshooting, as well as making the selection of the Integral term less difficult to determine, during a PCR run the transition to Denaturation, Annealing and Extension temperature setpoints is achieved by executing a linear temperature ramp, at a user-defined rate in degrees/minute. This allows the PI control algorithm to control for a gradually changing setpoint- as opposed to suddenly jumping to the next (and significantly different) setpoint in the cycle. If done using the latter method, it’s much more likely that the controller would overshoot the target setpoint due to thermal inertia in the PCR sample block.
During the PCR cycle, the heating up to the denaturation temperature has its rate controlled by the Ramp1 value. The cooling down to the annealing temperature is performed at the Ramp2 rate, as is the heating cycle between the annealing and the extension Temperature. At each of the 3 temperature setpoints, there is a corresponding hold interval in seconds.
To define each of the parameters (or to select a Program number), the Menu encoder is rotated to the desired parameter and then pressed. Next the value encoder is rotated until the desired value is reached. This value is then selected by pressing this encoder. Whenever any value is entered, all 12 of the parameters are updated in the ESP32’s EEPROM memory, at the proper offset location corresponding to the specific Program number previously selected. The ESP32 does not contain an actual EEPROM memory array. Instead it is emulated by the ESP32’s EEPROM library routine, using a 512-byte section of the ESP32 flash memory. This routine does not perform wear-levelling, but the flash is good for 100,000 writes, and the parameters stored there will never be changed that often.
During a PCR cycle, the only time that the fan is turned on is during that portion of the cycle when the sample is being cooled down from the denaturation temperature to the annealing temperature. During this time, heat is being transferred from the sample block to the heatsink, and the heatsink must have this heat removed by the fan. At all other times the fan doesn’t run, even when the TEC module is cooling the block by small amounts (i.e. to stabilize the temperature during hold intervals).
Whenever the unit is in the menu selection mode (i.e. not actually selecting a value with the value encoder), pressing the Run Start/Stop button will start the PCR run. During a run, if this button is again pressed and held for a second or so, the run will be aborted. If a run is aborted in this way, power will be removed from the TEC module, and the sample block will have to cool down gradually on its own. However, when a PCR run completes normally, the sample block will be returned to room temperature, using the TEC module in cooling mode.
Heatsink Temperature Monitoring
The heatsink temperature monitoring is done with a BC2302 thermistor. This is a 100k thermistor (@ 25°C) and it is configured as a voltage divider with an additional 100k resistor and is powered by the ESP32’s 3.3-V power supply. The ESP32’s A0 analog input is used for this voltage measurement. The thermistor’s resistance can be derived from the ADC voltage reading. To convert the thermistor’s resistance value into a temperature, the Steinhart-Hart equation is used. Using the BC2302’s datasheet and the specified resistances at 0°C, 25°C and 50°C, I calculated the Steinhart-Hart coefficients. Listing 1 shows the routine that calculates the heatsink temperature from the BC2302 resistance.
Listing 1
This is the code which uses the Steinhart-Hart equation to calculate the heatsink temperature from the ADC reading monitoring the heatsink thermistor sensor.
void GetHeatSinkTemperature() { // using BC2302 Thermistor with 100k feed resistor from 3.3V // calculated Steinhart-Hart coefs are float A=0.819376e-3; float B = 2.07203e-4; float C = 0.977245e-7; int aval = analogReadMilliVolts(A0); float resistance = (3300 / (float) aval) - 1.0; float Rth = 100000 / (resistance); float logRth = log(Rth); float T = (1.0 / (A + B * logRth + C * logRth * logRth * logRth)); HeatSinkTemperature= T - 273.15; if (HeatSinkTemperature > 50) { Serial.println(“Heatsink > 50 degrees”); }
Conclusions
While the unit is free-standing and doesn’t need a PC to operate, I have programmed it to send out various values during a run, via its USB-emulated COM port. The data structure is:
Run Time (Sec.) Temperature (°C) Integral Term (PWM counts) % Power
This can be logged to a data file by using the Putty application which provides a Serial console capability, with data logging to a file. This is a bit tricky to set up- you must first define the Connection type by selecting the Serial selection, the baud rate (115,200) and give this session a name. Then you must Save it. After that, if you select the Session-> Logging option in the Category window, you can select “All session output” and define a log folder/filename.
Figure 9 shows a graph generated by Excel using this imported log file. This only shows one cycle to make each phase of the run more readily visible. I also shortened the initial denaturation time down to 1 minute and the extension time to 30 seconds so that they didn’t overly dominate the horizontal (time) axis. I programmed all ramp rates at 10°C/second as that is about as fast as the European Thermodynamics APHC-12708-S module TEC module would ramp the sample block, given the 12-volt supply I was using. This TEC is rated at 14.7 volts max. and would ramp a bit more quickly if I had used a 15-volt power supply (the H-Bridge module would reduce this to around 14.7-volts). Fifteen-volt supplies are less common and a lot more expensive than the 12-volt power brick I used.

This is a graph produced by an Excel spreadsheet using the data logged during a sample run. As explained in the text, the hold times were configured to be shorter than normal, so that they didn’t dominate the time axis.
I am a big fan of Hammond’s extruded aluminum cabinets and use them for most of my projects. However, this project’s dimensions just wouldn’t readily fit into any commercial enclosure that I could find. I built a nice CNC milling machine years back, but I’ve not gotten into 3-D printers yet. Using the tools at my disposal, I fabricated a cabinet using ¼” PVC plastic sheet. Figure 10 is a photo of the finished unit. The internal temperature cycling assembly (heatsink, TEC and sample block) is surrounded by rigid foam, for insulation. The round foam piece visible in the photo is a further insulation block covering the sample block.

This is a shot of the unit in its enclosure. Due to its dimensions, I couldn’t find a suitable commercial enclosure, and made up my own enclosure using ¼” PVC plastic sheet stock.
I believe that this project breaks a personal record with regards to how many years have elapsed between the original project (my original toaster oven PCR) and the newly- updated version of the same project.
— ADVERTISMENT—
—Advertise Here—
RESOURCES
Thermoelectric Cooler:
European Thermodynamics APHC-12708-S
Full H-Bridge Motor controller:
Cytron MD10C R3
https://my.cytron.io/p-10amp-5v-30v-dc-motor-driver-2-channels?gad_Bx6a0BV2Kmv3Hn7GNYhXUu7-q-rYRtnK75TucaAjMQEALw_wcB
DF Robot DFR0654 ESP32 Module:
https://www.dfrobot.com/product-2195.html
24-bit ADC:
Nuvoton NAU7802
Datasheet:
https://www.nuvoton.com/resource-files/NAU7802%20Data%20Sheet%20V1.7.pdf
Source:
https://www.digikey.ca/en/products/detail/nuvoton-technology-corporation/NAU7802KGI/2769783
20 char x 4-line LCD display with I2C backpack:
https://www.amazon.ca/WayinTop-Display-Interface-Adapter-Arduino/dp/B07TXGD3WS/ref=dp_fod_sccl_2/132-7118983-1916246?pd_rd_w=vT61y&content-id=amzn1.sym.6941ca3c-9869-4f9b-9c03-3951944c4e80&pf_rd_p=6941ca3c-9869-4f9b-9c03-3951944c4e80&pf_rd_source=1&gclid=Cj0KCQiAm4WsBhCiARIsAEJIEzWa3rBIGj9wNjZ08-r=49XXH8T9C3JWQAW8A1FH&pd_rd_wg=kWcDO&pd_rd_r=fef717e3-2717-4628-8738-c586e2b045d7&pd_rd_i=B07TXGD3WS&th=1
RESOURCES
Cytron | www.cytron.com
DF Robot | www.dfrobot.com
Nuvoton | www.nuvoton.com

Brian Millier runs Computer Interface Consultants. He was an instrumentation engineer in the Department of Chemistry at Dalhousie University (Halifax, NS, Canada) for 29 years.


