Programmable Precision Fast TEC Controller
Author(s):
Eli Flaxer - AFEKA
Industry:
University/Education
Products:
LabWindows/CVI
The Challenge:
Controlling temperatures with a high level of precision for ThermoElectric Coolers.
The Solution:
Using National Instruments LabWindows/CVI to design a versatile program capable of optimizing temperature procedures.
Temperature control is needed for a wide range of applications. For some, a precision of ±1°C is satisfactory, but critical applications may require precision of 0.1°C, and sometimes even 0.01°C. For example, the performance of optoelectronics devices such as diodes lasers, photodiodes, and electro-optic modulators depend strongly on temperature, so these devices require high precision temperature control. Moreover, in several systems it is not enough to regulate the temperature to a constant value, but instead, an optimization procedure is required. In systems like these, a feedback control mechanism (or user) varies the target temperature to maximize the output signal from the device under control.
ThermoElectric Coolers[i],[ii],[iii] (TEC) are solid state heat pumps that operate according to the Peltier effect[iv] - a heating or cooling effect which occurs when an electric current passes through two conductors.
Design Considerations
The controller presented here was developed to operate with a 1A/5V TEC[v] at room temperature and connect to a personal computer (PC) via the standard parallel port - to set the target temperature (and monitor some other signals). We show that by integrating a digital control, and regulating the TEC by pulse width modulation (PWM) with a dedicated smart driver with proper protection mechanisms, one can implement a compact, reliable, accurate and safe system at relatively low costs. Our controller has a temperature control range of 0-50 °C, a precision of 0.1°C and a time constant of few seconds, using a small PCB of 2.5" x 4.0" in size.
Our initial consideration in the design was to choose the regulation method (PWM or Linear). To achieve a compact design without cooling elements, we choose to use a high frequency PWM technique with a small coil filter. High frequency PWM techniques combine the advantages of high efficiency energy transfer (the switching element does not waste any energy) and a very low ripple at the output. As mentioned above, the TEC heat pump capacity is proportional to the current flow through the device, which means that by inverting the current direction, one converts the cooler to a heater and vice versa. To improve the controller performance, we drive the TEC with a bi-directional current, switched by full-bridge solid-state devices.
Electronic Circuit
The circuit is composed of three blocks: a digital control, a smart analog PID controller for the PWM bridge, and an eight channel, 12 bit data acquisition unit. The TEC is connected to J1 connector while the temperature sensor is connected to J2. Figure 2 depicts the smart PWM analog PID controller unit and the power-switching bridge. Each one of U6 and U8 is a half bridge, while both compose the full bridge driver for the TEC. The smart driver, ADN8830[vi] is the heart of the system - it controls all the required parameters for the TEC, and it also provides the necessary protection. This device relies on a Negative Temperature Coefficient (NTC) thermistor or on a solid-state temperature sensing device to sense the temperature of the object attached to the TEC. The target temperature is set with an analog input voltage supply by a 12-bit DAC (U7 AD5341), which enables a resolution better than 0.05°C.
Two analog voltage outputs are provided to monitor the TEC condition: TEMPOUT - the temperature of the object, and VTEC - the voltage across the TEC. A data acquisition unit measures these analog signals, as we explain later. In addition, two digital signals indicate the status of the system: LOCK - indicates when the thermistor temperature is within ±0.1°C of target temperature as set by the reference voltage, FAULT - indicates an open or a short circuit condition of the thermostat. These signals are monitored by the digital unit and sampled by the computer.
The data acquisition unit, shown in figure 3, is made of a single Analog to Digital Converter (ADC), that operate with an internal reference and clock. The MAX197[vii] is a multi range, 12 bit data acquisition system, which requires only a single +5V supply for operation. This converter provides 8 analog input channels that are independently software programmable for a variety of ranges: ±10V, ±5V, 0V to +10V, or 0V to +5V[viii], while the input is protected against an over voltage of ±16.5V. This converter support a 100 ksps sampling rate, an 8 + 4 bits parallel interface to microprocessor, and an internal reference of 4.096V. Two channels of this unit are connected permanently to TEMPOUT and VTEC to monitor the TEC condition, while the others six channels are kept free for any other user purpose.
Drivers and Software
From the programmer’s point of view, one needs three low-level functions (drivers): setAddress, writeData, and readData to establish communications between the PC and the chipset that work in SPP or EPP mode. Above this low-level layer, the user needs a data acquisition library to translate the digital data to real data (voltage or temperature). These functions can be written in assembly, C or any other high level language. We used C language to write both the low-level drivers and the data acquisition library.
We use National Instruments[ix] LabWindows/CVI to write the program and the GUI for the CVI environment has several distinct advantages. First, a complete transparency to the programmer who programs in C, as there is no need to write any source code line to produce this GUI. Second, full compatibility with ANSI C, and compatibility to C++ using an external compiler like visual C. Next, a wide support range in addressing many hardware devices and instruments. Also, low-level support drivers for I/O port addressing. Finally, a wide rang of libraries (Advance analysis, PID, TCP, Internet, GPIB, VISA, RS-232, VXI, and much more).
To control the system by the personal computer, we built a Graphical User Interface (GUI) under windows 2000 using a CVI, as shown in figure 4: In this panel one sees, a numeric slide that sets the target temperature, six analog meters to monitor six analog channels that indicate several parameters in our system, and two LEDs for the status bits - LOCK and FAULT.
In order to optimize external parameter in the system it is not enough to regulate the temperature to a constant value, but instead, an optimization procedure is required. In that case, a feedback control mechanism varies the target temperature to maximize the output signal from the device under control. As opposed to the temperature control that achieve by hardware PID, the optimization control performed by the software on personal computer using National Instrument PID library. Since the characteristic time constants of the two loops are in a different scale they can work simultaneously. In figure 4 one can see the switch MEASURE than turn the optimization mode on and off.
For more information, contact:
Eli Flaxer
AFEKA - The
Tel: 972-3-6449344
Fax: 972-3-6480944
e-mail: eli@flaxer.net
[i] D. M. Rowe, CRC Handbook of Thermoelectrics (ISBN 0849301467), (CRC Press, 1995).
[ii] J. Sharp, H. J. Goldsmid, George Nolas, Julian Goldsmid, Thermoelectrics: Basic Principles and New Materials Developments (ISBN 354041245X), (Springer Verlag, 2001).
[iii] Marlow Industries, Inc: http://www.marlow.com
[iv] Mark W. Zemansky, Richard H. Dittman, Heat and Thermodynamics (ISBN 0-07-072808-9), p. 431-438 (McGraw-Hill, NY, 1981).
[v] For example: Marlow MI1015T.
[vi] Analog Devices: http://www.analog.com
[vii] Maxim: http://www.maxim-ic.com
[viii] Max197 Datasheet: http://www.maxim-ic.com
[ix] National Instrument: http://www.ni.com
Related Case Studies
Creating Utility System Temperature Control for an Open Plate ReactorUsing National Instruments Data Acquisition in a Microgravity Environment
Advanced Distributed Modular Data Acquisition Using NI CompactRIO
Cold Cuts In Deep Water Using LabVIEW and NI Data Acquisition
High-Speed In-Vehicle Data Acquisition System for ABS Testing
|
|

